curl --request GET \
--url https://apix.spotzee.com/api/client/users/me \
--header 'Authorization: Bearer <token>' \
--header 'X-Spotzee-Contact-Token: <api-key>'{
"id": 1024,
"project_id": 42,
"external_id": "cust-9f4b21",
"created_at": "2026-04-28T05:14:00.000Z",
"updated_at": "2026-04-28T05:14:00.000Z",
"anonymous_id": "anon-2c8a3e",
"email": "jane@example.com",
"phone": "+61400123456",
"timezone": "Australia/Sydney",
"locale": "en-AU",
"data": {
"first_name": "Jane",
"last_name": "Doe",
"plan": "pro"
},
"has_push_device": true,
"devices": [
{}
]
}Returns the contact bound to the calling session token. Designed for browser-side preference-centre flows: pass a publishable key (pk_…) plus a contact session token (see POST /users/{userId}/sessions) in the X-Spotzee-Contact-Token header. A project-scoped key on this endpoint is rejected to keep semantics clear.
curl --request GET \
--url https://apix.spotzee.com/api/client/users/me \
--header 'Authorization: Bearer <token>' \
--header 'X-Spotzee-Contact-Token: <api-key>'{
"id": 1024,
"project_id": 42,
"external_id": "cust-9f4b21",
"created_at": "2026-04-28T05:14:00.000Z",
"updated_at": "2026-04-28T05:14:00.000Z",
"anonymous_id": "anon-2c8a3e",
"email": "jane@example.com",
"phone": "+61400123456",
"timezone": "Australia/Sydney",
"locale": "en-AU",
"data": {
"first_name": "Jane",
"last_name": "Doe",
"plan": "pro"
},
"has_push_device": true,
"devices": [
{}
]
}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 publishable key (pk_…). Safe for browser use. Allowed only on a strict allow-list of endpoints.
Short-lived signed token that scopes the call to one contact. Mint via POST /users/{userId}/sessions (sk_-only). Required alongside a publishable key on the preference-centre endpoints.
The contact bound to the session token.
A customer record being marketed to. Owned by a project; identified by external_id.
Numeric identifier. Use external_id as the stable cross-system reference.
1024
Identifier of the project this contact belongs to.
42
Stable identifier supplied by the calling system. Treated as the contact’s primary key for upserts.
"cust-9f4b21"
Time the contact was first created. ISO 8601.
"2026-04-28T05:14:00.000Z"
Time the contact was last modified. ISO 8601.
"2026-04-28T05:14:00.000Z"
Anonymous tracking identifier captured before the contact was identified, when available.
"anon-2c8a3e"
Contact’s email address. Format-validated on write.
"jane@example.com"
Contact’s phone number in E.164 format on read.
"+61400123456"
IANA timezone used for time-of-day delivery scheduling.
"Australia/Sydney"
BCP-47 locale used for content rendering.
"en-AU"
True when the contact has at least one registered push device.
Was this page helpful?