List user's device tokens
GET {{baseUrl}}/push_subscriptions
Returns the list of device tokens registered for push notifications.
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-MAGICBELL-API-KEY | string | (Required) The (public) API key of your MagicBell project. | |
X-MAGICBELL-USER-EXTERNAL-ID | string | ID of the user. Provide the X-MAGICBELL-USER-EMAIL header instead if you identify users by email. | |
X-MAGICBELL-USER-EMAIL | string | Email address of the user. Provide the X-MAGICBELL-USER-EXTERNAL-ID header instead if you identify users by ID. | |
X-MAGICBELL-USER-HMAC | string | HMAC calculated with the API secret and ID, or email, of the user. Required if the project has HMAC enabled. | |
Accept | string |
RESPONSES
status: OK
{"per_page":"\u003cinteger\u003e","current_page":"\u003cinteger\u003e","push_subscriptions":[{"id":"\u003cstring\u003e","user_id":"\u003cuuid\u003e","device_token":"\u003cstring\u003e","platform":"\u003cstring\u003e","created_at":"\u003cdateTime\u003e","discarded_at":"\u003cdateTime\u003e"},{"id":"\u003cstring\u003e","user_id":"\u003cuuid\u003e","device_token":"\u003cstring\u003e","platform":"\u003cstring\u003e","created_at":"\u003cdateTime\u003e","discarded_at":"\u003cdateTime\u003e"}]}