Docs Open org

API reference

Webhooks API

Webhooks

GET /orgs/{org}/webhooks

Every webhook.

Parameters

NameInTypeDescription
org requiredpathstringThe org slug.

Responses

200
OK. Paged_Webhook application/json

POST /orgs/{org}/webhooks

Subscribes a URL to events. The response carries the signing secret once.

Parameters

NameInTypeDescription
org requiredpathstringThe org slug.

Request body

application/json, CreateWebhook.

FieldTypeDescription
events requiredstring[]Event types (task.*, page.created, *).
spacesstring[]Only these spaces (slugs or ids).
url requiredstringWhere to deliver (https in production).

Responses

201
Created. Webhook application/json

PATCH /orgs/{org}/webhooks/{id}

Changes a webhook.

Parameters

NameInTypeDescription
org requiredpathstringThe org slug.
id requiredpathstring (uuid)The webhook.

Request body

application/json, UpdateWebhook.

FieldTypeDescription
activeboolean | nullDelivering.
eventsstring[] | nullEvent types.
spacesstring[] | nullSpaces.
urlstring | nullWhere to deliver.

Responses

200
OK. Webhook application/json

DELETE /orgs/{org}/webhooks/{id}

Deletes a webhook.

Parameters

NameInTypeDescription
org requiredpathstringThe org slug.
id requiredpathstring (uuid)The webhook.

Responses

204
No content

GET /orgs/{org}/webhooks/{id}/deliveries

Recent deliveries, newest first.

Parameters

NameInTypeDescription
org requiredpathstringThe org slug.
id requiredpathstring (uuid)The webhook.

Responses

200
OK. Paged_Delivery application/json

POST /orgs/{org}/webhooks/{id}/test

Queues a webhook.test delivery to this webhook only.

Parameters

NameInTypeDescription
org requiredpathstringThe org slug.
id requiredpathstring (uuid)The webhook.

Responses

202
Accepted. TestDelivery application/json