> ## Documentation Index
> Fetch the complete documentation index at: https://docs.salesive.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List subscriptions

> List all push subscriptions for the current user.

## Request

```http theme={null}
GET /push-subscriptions
Authorization: Bearer {{token}}
x-shop-id: {{shopId}}
```

## Headers

| Header          | Type   | Description                                   |
| --------------- | ------ | --------------------------------------------- |
| `Authorization` | string | Provide the customer token as `Bearer <jwt>`. |
| `x-shop-id`     | string | Identify the shop.                            |

## Successful response

```json theme={null}
{
    "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

```json theme={null}
{
    "status": 200,
    "success": true,
    "message": "Subscriptions retrieved",
    "data": {
        "subscriptions": []
    }
}
```


## OpenAPI

````yaml GET /push-subscriptions
openapi: 3.1.0
info:
  title: Salesive Store API
  description: >-
    REST interface for querying products, categories, and merchandising banners
    exposed by Salesive storefronts.
  version: 1.0.0
servers:
  - description: Production
    url: https://store.salesive.com/api/v1
security:
  - BearerAuth: []
    ShopIdHeader: []
paths:
  /push-subscriptions:
    get:
      summary: List subscriptions
      description: List all push subscriptions for the current user.
      responses:
        '200':
          description: Subscriptions retrieved
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT issued by the Salesive Store API for authenticated shoppers.
    ShopIdHeader:
      type: apiKey
      in: header
      name: x-shop-id
      description: >-
        Optional storefront identifier sent as a header to scope responses to a
        specific shop. Try It requests remember this value once provided.

````