List Push Subscriptions
Description
Section titled “Description”wss push_subscription_list
The push_subscription_list
request returns an array of active device subscriptions for a specific user.
Request Parameters
Section titled “Request Parameters”Name | Type | Description |
---|---|---|
user_id | string | User ID |
Response Fields
Section titled “Response Fields”Name | Type | Description |
---|---|---|
subscriptions | array[object] | Array of devices for push notifications |
Example
Section titled “Example”{ "request": { "push_subscription_list": { "user_id": "644157e316eec28e3dfb8b31" }, "id": "RequestId" }}
{ "response": { "id": "RequestId", "subscriptions": [ { "_id": "644157e316eec28e3dfb8b34", "platform": "web", "web_endpoint": "enpoint1", "web_key_auth": "auth1", "web_key_p256dh": "p256dh1", "device_udid": "deviceId1", "user_id": "644157e316eec28e3dfb8b31", "created_at": "2025-08-13T05:51:44.733Z", "updated_at": "2025-08-13T05:51:44.733Z" }, { "_id": "644157e316eec28e3dfb8b35", "platform": "ios", "web_endpoint": "enpoint2", "web_key_auth": "auth2", "web_key_p256dh": "p256dh2", "device_udid": "deviceId2", "user_id": "644157e316eec28e3dfb8b31", "created_at": "2025-08-13T05:51:44.733Z", "updated_at": "2025-08-13T05:51:44.733Z" } ] }}
See Also
Section titled “See Also” SAMA chat server API: Push Notifications Yes, you’ve heard this sound on your phone or other device many times. Nowadays, any application has notifications and...