API

Add and update contacts, custom fields, tags, orders and events from your shop or app. JSON in, JSON out, base URL https://fastlaunch.cloud/api/v1. Machine-readable: the OpenAPI spec, and llms.txt for AI tools.

Authentication

Create a key in API keys (in your account menu) and send it with every request. A key gives full access to your contacts: use it only from your server, never in a web page or mobile app.

curl https://fastlaunch.cloud/api/v1/contacts \
  -H "Authorization: Bearer ec_..."

Keys are read and write, or read only: those can only make GET requests (anything else is a 403 with code read_only_key). Give read-only keys to tools that only look things up, like an AI assistant.

Rate limit

Each account may make 300 requests per minute, across all its keys. Every response has RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset (seconds until the next minute) headers. Over the limit you get a 429 with code rate_limited and a Retry-After header.

Errors

Errors have an HTTP status (400, 401, 403, 404, 409, 413, 422, 429, 500) and a body like:

{"error": {"code": "invalid", "message": "Some properties are invalid.",
           "details": {"fields": {"email": "Not a valid email address."}}}}

Times are ISO 8601 in UTC (2026-10-17T14:30:00Z). Times you send may carry any offset.

Opt-in status

Every contact has a status. Only subscribed contacts receive campaigns.

Send proof of consent along with the status: the consent object holds the wording the person agreed to (your opt-in text or marketing permissions), their IP address and browser, and when. It's recorded in the contact's consent history (GET /contacts/{contact}/consents) whenever the status changes, and when they become subscribed it's also their opt_in. After a double opt-in, opt_in has the time and IP of the confirmation click and the wording from the signup. Setting pending on a contact that is already subscribed changes nothing.

Every contact also has a source: how it was added (api, import, manual), set once when it's created.

Contacts

{contact} in a path is the contact's id or email address (URL-encoded).

Create or update: POST /contacts

Creates the contact (201), or updates the one with this email (200). Only the properties you send are changed.

{
  "email": "[email protected]",
  "name": "Ana Silva",
  "birthdate": "1990-04-12",
  "status": "pending",
  "fields": {"company_size": 50, "vip": true},
  "tags": ["newsletter", "webshop"],
  "consent": {
    "text": "Yes, send me the weekly newsletter. I can unsubscribe at any time.",
    "ip": "203.0.113.7",
    "user_agent": "Mozilla/5.0 ...",
    "at": "2026-10-17T14:30:00Z"
  }
}

fields uses your custom fields' keys; send null to clear one. tags are added (created if new). The response is the contact:

{
  "id": "k3j9x2m1qa7z",
  "email": "[email protected]",
  "name": "Ana Silva",
  "birthdate": "1990-04-12",
  "status": "pending",
  "source": "api",
  "opt_in": null,
  "fields": {"company_size": 50, "vip": true},
  "tags": ["newsletter", "webshop"],
  "confirmation_sent_at": "2026-10-17T14:30:02Z",
  "created_at": "2026-10-17T14:30:01Z",
  "updated_at": "2026-10-17T14:30:01Z"
}

Other contact endpoints

Custom fields and tags

Orders

POST /orders records an order for the contact with email (or contact_id). Unknown emails become contacts with status non_subscribed: buying something isn't consent to marketing. Sending an order with an external_id you sent before updates it (200), for status changes and refunds: what you leave out keeps its value, and items, if sent, replaces all items. The status is your own text; in_cart, pending and cancelled orders don't count as purchases in segments.

{
  "email": "[email protected]",
  "external_id": "1001",
  "status": "paid",
  "currency": "EUR",
  "ordered_at": "2026-10-17T14:30:00Z",
  "items": [
    {"sku": "TSHIRT-M", "name": "T-shirt, medium", "quantity": 2, "unit_price": 19.95}
  ]
}

For new orders, total defaults to the sum of the items; status to completed; currency to EUR; ordered_at to now. Up to 500 items. Also GET /orders/{external_id} and DELETE /orders/{external_id}.

Status in_cart is a shopping cart, not a purchase: it doesn't count in segments (number of orders, total spent, products bought). The shop on your website keeps its carts the same way.

Events

POST /events records something a contact did, for segments ("Event of type …") and automations ("Has an event"). Unknown emails become non_subscribed contacts. Your website records some events by itself (form_submitted, booking_made, booking_rescheduled, booking_cancelled) and Event trigger blocks on its pages add your own.

{
  "email": "[email protected]",
  "type": "trial_started",
  "name": "Pro plan",
  "value": {"seats": 5},
  "occurred_at": "2026-10-17T14:30:00Z"
}

type is required (up to 100 characters). value may be any JSON value, stored as text up to 1000 characters.