Skip to main content
This endpoint tells you if Pacifica sends Web Push notifications, and gives you the VAPID public key. You need the key to subscribe a browser to push. This request needs no signature and no parameters.

Response

  • Status 200: Successfully retrieved the Web Push config
FieldTypeDescription
”enabled”booleantrue when Pacifica sends Web Push notifications
”vapid_public_key”string or nullBase64url VAPID public key. null when “enabled” is false
If 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

Code Example (Python)