> ## 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.

# Get VAPID public key

> Retrieve the VAPID public key for push notifications.

## Request

```http theme={null}
GET /push-subscriptions/public-key
x-shop-id: {{shopId}}
```

## Headers

| Header      | Type   | Description        |
| ----------- | ------ | ------------------ |
| `x-shop-id` | string | Identify the shop. |

## Successful response

```json theme={null}
{
    "status": 200,
    "success": true,
    "message": "Public key retrieved",
    "data": {
        "publicKey": "BE-4KwRSReXt1KpIQAjK2kshVpR3vNPnCm01LShvdmcS8Xfrjw5krLkr_7BqpahTLjrPrvgbLjEZFrmaWinLmaM"
    }
}
```


## OpenAPI

````yaml GET /push-subscriptions/public-key
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/public-key:
    get:
      summary: Get VAPID public key
      description: Retrieve the VAPID public key for push notifications.
      responses:
        '200':
          description: Public key 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.

````