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

KeyDatatypeRequiredDescription
pagestringThe page number of the paginated response. Defaults to 1.
per_pagestringThe number of items per page. Defaults to 20.

HEADERS

KeyDatatypeRequiredDescription
X-MAGICBELL-API-KEYstring(Required) The (public) API key of your MagicBell project.
X-MAGICBELL-API-SECRETstring(Required) The API secret of your MagicBell project.
Acceptstring

RESPONSES

status: OK

{&quot;per_page&quot;:&quot;\u003cinteger\u003e&quot;,&quot;current_page&quot;:&quot;\u003cinteger\u003e&quot;,&quot;push_subscriptions&quot;:[{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;user_id&quot;:&quot;\u003cuuid\u003e&quot;,&quot;device_token&quot;:&quot;\u003cstring\u003e&quot;,&quot;platform&quot;:&quot;\u003cstring\u003e&quot;,&quot;created_at&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;discarded_at&quot;:&quot;\u003cdateTime\u003e&quot;},{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;user_id&quot;:&quot;\u003cuuid\u003e&quot;,&quot;device_token&quot;:&quot;\u003cstring\u003e&quot;,&quot;platform&quot;:&quot;\u003cstring\u003e&quot;,&quot;created_at&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;discarded_at&quot;:&quot;\u003cdateTime\u003e&quot;}]}