Response
- Status 200: Successfully retrieved the Web Push config
| Field | Type | Description |
|---|---|---|
”enabled” | boolean | true when Pacifica sends Web Push notifications |
”vapid_public_key” | string or null | Base64url VAPID public key. null when “enabled” is false |
enabled is false, hide Web Push in your app.
Pass vapid_public_key as applicationServerKey to pushManager.subscribe. Then send the same value as vapid_public_key to Register Web Push subscription. The response isn’t cacheable. Get the key again each time that you subscribe.
- Status 429: Rate limit exceeded
- Status 500: Internal server error