Skip to main content
POST
Add a Webhook to an Organization

Authorizations

Authorization
string
header
required

A user API token, or a product API key created in a product's settings.

A product API key only works on the routes for its own product, under /api/orgs/{org_name}/products/{product_name}, and on /api/devices/{identifier} for that product's devices. What it may do there is decided by the role it holds, the same way a member's role decides what they may do.

Path Parameters

org_name
string
required

Organization Name

Body

application/json

Webhook creation request body

POST body for adding a webhook to an organization

events
enum<string>[]
required

At least one event type

Available options:
device.connected,
device.disconnected,
device.health_reported,
device.metrics_reported,
device.health_status_changed,
device.firmware_update.scheduled,
device.firmware_update.progress,
device.firmware_update.finished,
device.firmware_validated,
error_group.created,
error_group.reopened,
deployment_group.workflow_step.started,
deployment_group.workflow_step.awaiting_approval,
deployment_group.workflow_step.completed,
deployment_group.workflow_step.failed,
deployment_group.workflow_step.skipped
url
string
required

An https:// or http:// URL with no username or password

all_products
boolean

Send the events of every product in the organization, including products added later. Defaults to true, or to false when products is given.

description
string

Optional: what receives these events

enabled
boolean
default:true
products
string[]

The names of the products whose events to send, instead of every product's

Response

Webhook with secret response

A webhook and its signing secret

data
WebhookWithSecret · object

A webhook and its signing secret. Only returned when the webhook is created and when its secret is regenerated.

Example: