Fetch user's push subscriptions
GET {{baseUrl}}/users/:user_id/push_subscriptions?page=<integer>&per_page=<integer>
Fetch a user's push subscriptions. Returns a paginated list of web and mobile push subscriptions for all platforms.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
page | string | The page number of the paginated response. Defaults to 1. | |
per_page | string | The number of items per page. Defaults to 20. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-MAGICBELL-API-KEY | string | (Required) The (public) API key of your MagicBell project. | |
X-MAGICBELL-API-SECRET | string | (Required) The API secret of your MagicBell project. | |
Accept | string |
RESPONSES
status: OK
{"total":"\u003cinteger\u003e","per_page":"\u003cinteger\u003e","total_pages":"\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"}]}