Notify API reference

Notify API · Client

get/v1/client/webpush/vapid-public-keyAuth

Get the web push key

The VAPID public key the browser subscribes with (`pushManager.subscribe({ applicationServerKey })`).

Response · 200 The public key.

public_key*string

The workspace's VAPID public key (base64url): pass it as `applicationServerKey` to `pushManager.subscribe()`.

Example: "BEl62iUYgUivxIkv69yViEuiBIa-Ib9-SkvMeAtA3LFgDzkrxZJjSgSnfckjBJuBkr3qBUYIHBQFLXYp5Nksh8U"

Example

Request

GET https://api.notify.productcraft.co/v1/client/webpush/vapid-public-key
Authorization: Bearer YOUR_TOKEN

Response

{
  "public_key": "BEl62iUYgUivxIkv69yViEuiBIa-Ib9-SkvMeAtA3LFgDzkrxZJjSgSnfckjBJuBkr3qBUYIHBQFLXYp5Nksh8U"
}