Skip to main content
GET
/
push-subscriptions
List subscriptions
curl --request GET \
  --url https://store.salesive.com/api/v1/push-subscriptions \
  --header 'Authorization: Bearer <token>' \
  --header 'x-shop-id: <api-key>'

Request

GET /push-subscriptions
Authorization: Bearer {{token}}
x-shop-id: {{shopId}}

Headers

HeaderTypeDescription
AuthorizationstringProvide the customer token as Bearer <jwt>.
x-shop-idstringIdentify the shop.

Successful response

{
    "status": 200,
    "success": true,
    "message": "Subscriptions retrieved",
    "data": {
        "subscriptions": [
            {
                "_id": "678bd7e2e37452d19efcb4e9",
                "endpoint": "https://fcm.googleapis.com/fcm/send/...",
                "keys": {
                    "p256dh": "BNxDfz8lKc2l5HQbGJWW0D...",
                    "auth": "xY8zA0bC1dE2fG3hI4jK..."
                },
                "userAgent": "Mozilla/5.0...",
                "createdAt": "2025-01-18T12:30:00.000Z"
            }
        ]
    }
}

Empty response

{
    "status": 200,
    "success": true,
    "message": "Subscriptions retrieved",
    "data": {
        "subscriptions": []
    }
}

Authorizations

Authorization
string
header
required

JWT issued by the Salesive Store API for authenticated shoppers.

x-shop-id
string
header
required

Optional storefront identifier sent as a header to scope responses to a specific shop. Try It requests remember this value once provided.

Response

200

Subscriptions retrieved