Fetch user's topic subscriptions

GET {{baseUrl}}/subscriptions

Fetch a user's topic subscriptions.

HEADERS

KeyDatatypeRequiredDescription
X-MAGICBELL-API-KEYstring(Required) The (public) API key of your MagicBell project.
X-MAGICBELL-USER-EXTERNAL-IDstringID of the user. Provide the X-MAGICBELL-USER-EMAIL header instead if you identify users by email.
X-MAGICBELL-USER-EMAILstringEmail address of the user. Provide the X-MAGICBELL-USER-EXTERNAL-ID header instead if you identify users by ID.
X-MAGICBELL-USER-HMACstringHMAC calculated with the API secret and ID, or email, of the user. Required if the project has HMAC enabled.
Acceptstring

RESPONSES

status: OK

{"subscriptions":[{"topic":"\u003cstring\u003e","categories":[{"slug":"\u003cstring\u003e","reason":"\u003cstring\u003e","status":"subscribed"},{"slug":"\u003cstring\u003e","reason":"\u003cstring\u003e","status":"unsubscribed"}]},{"topic":"\u003cstring\u003e","categories":[{"slug":"\u003cstring\u003e","reason":"\u003cstring\u003e","status":"unsubscribed"},{"slug":"\u003cstring\u003e","reason":"\u003cstring\u003e","status":"subscribed"}]}]}