githubEdit

Webhooks

The webhook Object

Represents a webhookarrow-up-right that enables you to receive notifications of events. When you create a webhook, specify the endpoint URL at which you want to receive events and the set of event types that you want to receive.

A webhook resource.

{
  "event_types": ["device.connected", "device.disconnected"],
  "secret": "mySecret",
  "url": "https://example.com/webhook",
  "webhook_id": "ffe5cc3c-f3f4-48e8-b377-6f76c05d09a1"
}

Properties

event_types List of Strings

Types of events that the webhookarrow-up-right should receive.


secret String

Secret associated with the webhookarrow-up-right.


url String

URL for the webhookarrow-up-right.


webhook_id String

ID of the webhookarrow-up-right.


Endpoints

/webhooks/create

Creates a new webhookarrow-up-right.

/webhooks/delete

Deletes a specified webhookarrow-up-right.

/webhooks/get

Gets a specified webhookarrow-up-right.

/webhooks/list

Returns a list of all webhooksarrow-up-right.

/webhooks/update

Updates a specified webhookarrow-up-right.

Last updated

Was this helpful?