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

Request

GET /push-subscriptions/public-key
x-shop-id: {{shopId}}

Headers

HeaderTypeDescription
x-shop-idstringIdentify the shop.

Successful response

{
    "status": 200,
    "success": true,
    "message": "Public key retrieved",
    "data": {
        "publicKey": "BE-4KwRSReXt1KpIQAjK2kshVpR3vNPnCm01LShvdmcS8Xfrjw5krLkr_7BqpahTLjrPrvgbLjEZFrmaWinLmaM"
    }
}

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

Public key retrieved