Skip to main content
The project webhooks endpoints let your application set up vote webhooks on a user’s project without the user touching the dashboard. They require an OAuth access token; see the OAuth overview. Your application only sees and manages webhooks it created. Webhooks created in the dashboard or by other applications are not returned and cannot be modified, even with the project.webhooks.write scope. Webhooks created through an integration are managed on the project integrations endpoints instead. Deliveries are signed exactly like dashboard webhooks. See the webhooks overview for payloads and signature verification.

GET /projects/:project_id/webhooks

Required scope: project.webhooks.read Lists the webhooks your application created on the project.

Response fields

Returns an array of webhook objects.
string
required
The webhook ID.
string
required
The label shown in the project’s dashboard.
string
required
The URL events are delivered to.

Example response


POST /projects/:project_id/webhooks

Required scope: project.webhooks.write Creates a vote webhook on the project.

Request body

string
required
Label shown in the project’s dashboard. Up to 100 characters.
string
required
Absolute https URL events are delivered to. Up to 2048 characters.

Response fields

Returns 201 Created with the webhook and its secret.
string
required
The webhook ID.
string
required
The label.
string
required
The delivery URL.
string
required
The secret used to sign deliveries. Returned only in this response. Store it now.

Example response

Error responses


DELETE /projects/:project_id/webhooks/:webhook_id

Required scope: project.webhooks.write Deletes a webhook your application created.

Response

Returns 204 No Content on success.

Error responses


POST /projects/:project_id/webhooks/:webhook_id/rotate

Required scope: project.webhooks.write Replaces the signing secret of a webhook your application created. The previous secret stops working immediately.

Response fields

string
required
The new signing secret. Returned only in this response.

Example response

Error responses


POST /projects/:project_id/webhooks/:webhook_id/test

Required scope: project.webhooks.write Sends a webhook.test event to a webhook your application created.

Response

Returns 204 No Content once the destination accepted the event.

Error responses