curl --request GET \
--url https://apix.spotzee.com/api/client/users/{userId}/subscriptions \
--header 'Authorization: Bearer <token>'{
"results": [
{
"subscription_id": 7,
"state": 1,
"name": "Weekly newsletter",
"channel": "email"
}
],
"nextCursor": "<string>",
"prevCursor": "<string>",
"limit": 123
}Returns the calling contact’s state across every subscription type defined on the project. Use this to render a preference centre or to inspect opt-out history.
curl --request GET \
--url https://apix.spotzee.com/api/client/users/{userId}/subscriptions \
--header 'Authorization: Bearer <token>'{
"results": [
{
"subscription_id": 7,
"state": 1,
"name": "Weekly newsletter",
"channel": "email"
}
],
"nextCursor": "<string>",
"prevCursor": "<string>",
"limit": 123
}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.
Numeric ID (admin scope) or contact external_id (project scope) — the route resolves both.
"cust-9f4b21"
Opaque cursor returned by a previous page response. Omit on the first request.
Direction to walk relative to cursor. Defaults to next when omitted.
next, prev Maximum results per page. Use -1 to request all (rate-limited; large pages may be rejected).
-1 <= x <= 10025
Field to sort by. Defaults vary per resource.
"created_at"
Sort direction. Defaults vary per resource.
asc, desc Free-text search across the resource’s indexed fields.
A page of subscription states for the contact.
Paginated response of ContactSubscriptionList.
Page of results, ordered per the request’s sort and direction.
Hide child attributes
Numeric subscription-type identifier.
7
Subscription state: 0 unsubscribed, 1 subscribed, 2 explicit double-opt-in. Reads return the current state; writes accept any of the three values to set it.
0 1
Subscription-type name as shown to the caller.
"Weekly newsletter"
Delivery channel the subscription type covers.
"email"
Opaque cursor for the next page. null when no further pages exist.
Opaque cursor for the previous page. null when on the first page.
Page size used to build this response.
Was this page helpful?