Landing Platform Landing Platform
Developer Subscriber Records
POST /api/subscribers/{token}/upsert Token + HMAC

Upsert a record

Create or update a subscriber and its structured records in one call. The subscriber is matched by email within the list; each record is matched by (kind, external_id). Writes must be signed when the list has a secret — send the HMAC-SHA256 of the raw request body in the X-Signature header.

Path parameters

token
string required
—

Body parameters

email
string · email optional
The subscriber's email address. Required — identifies the subscriber.
first_name
string optional
Subscriber first name (optional).
last_name
string optional
Subscriber last name (optional).
custom_data
string optional
Object merged into the subscriber's stored custom data (optional).
records
string optional
Array of records to upsert. Each requires `kind`, `external_id`, and a `payload` object; a `date` (with optional `recurs: "annual"`) anywhere in the payload schedules the record's `next_event_at`.

Responses

200 { "success": true, "subscriber_id": 4471, "records": [ { "id": 88, "kind": "appo...
401 { "error": "Invalid signature" }
422 { "error": "email is required" }
response
{
  "success": true,
  "subscriber_id": 4471,
  "records": [
    { "id": 88, "kind": "appointment", "external_id": "u_88", "next_event_at": "2026-06-12" }
  ]
}
GET /api/subscribers/{token}/{email} API key

Fetch records

Fetch a subscriber and all of their records by email. Reads are not signed — they're already scoped by the list token and don't mutate state.

Path parameters

token
string required
—
email
string required
— pattern: .*

Responses

200 { "email": "a@b.com", "first_name": "Jane", "last_name": "Doe", "custom_data": {...
404 { "error": "Subscriber not found" }
response
{
  "email": "a@b.com",
  "first_name": "Jane",
  "last_name": "Doe",
  "custom_data": {},
  "records": [
    { "kind": "appointment", "external_id": "u_88", "payload": {}, "next_event_at": "2026-06-12", "recurrence": "annual" }
  ]
}
DELETE /api/subscribers/{token}/records/{externalId} Token + HMAC

Delete a record

Delete a single record by its external_id. The kind and email query parameters identify which subscriber's record to remove. Signed like upsert.

Path parameters

token
string required
—
externalId
string required
—

Query parameters

kind
string optional
Record category to delete (query param). Required.
email
string · email optional
Email of the owning subscriber (query param). Required.

Responses

204 (no content — deleted or already absent)
401 { "error": "Invalid signature" }
422 { "error": "kind and email query params required" }
response
(no content — deleted or already absent)