Skip to content
Navigation

Subscribe to lifecycle events

POST
/v1/webhooks

Register an allowed HTTPS endpoint for execution, completion and failure events. Store the returned one-time signing secret.

Authorization

  • bearerAuth
    optional
    HTTP Bearer

    Authorization: Bearer <token>

  • browserSession
    optional
    API key in cookie
  • localBrowserSession
    optional
    API key in cookie

Request body JSON required

  • url
    string
    required

    Allowed public HTTPS destination on port 443; redirects are not followed.

    format: uri
  • events
    array of
    task.execution
    or
    task.completed
    or
    task.failed
    required

Returns

201

Created subscription

JSON
  • webhook
    object
    required
    • id
      string
      required
    • url
      string
      required

      Allowed public HTTPS destination on port 443; redirects are not followed.

      format: uri
    • events
      array of
      task.execution
      or
      task.completed
      or
      task.failed
      required
    • createdAt
      optional
      string
      format: date-time
    • revokedAt
      optional

      Any of the following:

      • string
      • null
  • secret
    string
    required

    One-time HMAC signing secret. Store it in your application’s secret store.

400

Invalid input
JSON
  • error
    string
    required

401

Authentication is required
JSON
  • error
    string
    required

403

The credential lacks permission
JSON
  • error
    string
    required

429

Webhook limit reached
JSON
  • error
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close