Skip to content
Navigation

Register an encrypted webpush, Slack, or email endpoint

POST
/api/v1/notifications/endpoints

Authorization

  • bearerAuth
    optional
    HTTP Bearer (API key)
    Authorization: Bearer <token>
  • cookieAuth
    optional
    API key in cookie

Request body JSON required

  • channel
    webpush
    or
    slack
    or
    email
    required
  • endpoint
    string
    required
    maxLength: 4096 · minLength: 3
  • keys
    optional
    object
    • auth
      string
      required
      maxLength: 512 · minLength: 8
    • p256dh
      string
      required
      maxLength: 1024 · minLength: 16
  • metadata
    optional
    map of
    unknown

Returns

200

Endpoint registered

400

Invalid body
JSON
  • error
    string
    required
  • ok
    optional
    boolean
  • detail
    optional
    string
  • code
    optional
    string

401

Unauthorized
JSON
  • error
    string
    required
  • ok
    optional
    boolean
  • detail
    optional
    string
  • code
    optional
    string

Type to search…

↑↓ navigate↵ selectEsc close