Skip to main content
POST
Create a new webhook
Creates a webhook endpoint for receiving events. Only OWNERS and ADMINS can create webhooks.

Authentication

This endpoint requires authentication via Bearer token:
  • Authorization: Bearer <token>

Path Parameters

Request Body

Available Events

Subscribe to any of these events:
  • Organization: organization.created, organization.updated, organization.deleted
  • Members: member.added, member.removed, member.role_updated
  • Invites: invite.created, invite.accepted, invite.cancelled
  • OAuth: oauth_app.created, oauth_app.revoked
  • Webhooks: webhook.created

Permissions

Only OWNERS and ADMINS can create webhooks.

Example Request

Example Response

⚠️ Important: Save the secret value - it’s only returned once and used for signature verification.

Webhook Payload

Your endpoint will receive POST requests with this format:

Signature Verification

All webhook requests include an HMAC SHA-256 signature in the X-Webhook-Signature header for verification.

Retry Logic

Failed webhook deliveries are retried up to 3 times with exponential backoff (1s, 5s, 30s).

Common Errors

400 Bad Request

Invalid input data.

401 Unauthorized

Authentication required.

403 Forbidden

Only owners and admins can create webhooks.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

organizationId
string
required

Body

application/json
url
string
required

Webhook endpoint URL

Example:

"https://example.com/webhooks"

events
enum<string>[]
required

Events to subscribe to

Available options:
organization.created,
organization.updated,
organization.deleted,
member.added,
member.removed,
member.role_updated,
invite.created,
invite.accepted,
invite.cancelled,
oauth_app.created,
oauth_app.revoked,
webhook.created
Example:

Response

Webhook created successfully. Returns webhook configuration with signing secret.