curl --request PATCH \
--url https://apix.spotzee.com/api/client/users \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"anonymous_id": "anon-2c8a3e",
"external_id": "cust-9f4b21",
"email": "jane@example.com",
"phone": "+61400123456",
"timezone": "Australia/Sydney",
"locale": "en-AU",
"data": {
"first_name": "Jane",
"plan": "pro"
}
}
]
'{}Creates or updates up to 100 contacts in a single call. Each item must include either anonymous_id or external_id; supplying both links the two identifiers. Processing is asynchronous — the response is 204 once the batch is queued.
curl --request PATCH \
--url https://apix.spotzee.com/api/client/users \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"anonymous_id": "anon-2c8a3e",
"external_id": "cust-9f4b21",
"email": "jane@example.com",
"phone": "+61400123456",
"timezone": "Australia/Sydney",
"locale": "en-AU",
"data": {
"first_name": "Jane",
"plan": "pro"
}
}
]
'{}Documentation Index
Fetch the complete documentation index at: https://docs.spotzee.com/llms.txt
Use this file to discover all available pages before exploring further.
Project-scoped secret API key (sk_…). Pass in the Authorization: Bearer <key> header. Grants access to the project the key was issued for.
1 - 100 elementsA single contact upsert. At least one of anonymous_id or external_id must be present. When both are present they are linked.
Anonymous tracking identifier captured before the contact was identified.
"anon-2c8a3e"
Optional system-of-record identifier to attach to this anonymous contact.
"cust-9f4b21"
Contact’s email address. Validated against RFC 5322 on write.
"jane@example.com"
Contact’s phone number. E.164 preferred; other formats are normalised when possible.
"+61400123456"
IANA timezone (for example Australia/Sydney).
50"Australia/Sydney"
BCP-47 locale tag (for example en-AU).
255"en-AU"
The batch was accepted for asynchronous processing.
Empty response body. Returned with HTTP 204 when an operation is accepted for processing.
Was this page helpful?