Back to API overview

Webhooks

5 endpoints

Receive real-time events from WordAuth for integration and automation.

webhooks.read
webhooks.manage

Register HTTPS webhook endpoints for OS events. Delivery is recorded; outbound dispatch is best-effort.

Authenticate with your organization API key. Include subOrgId as a query parameter or in the request body when using an org-wide key. Sub-org-scoped keys automatically target their sub-organization.
GET
/v1/webhooks

List webhook endpoints. Requires webhooks.read.

Query Parameters

ParamTypeRequiredDescription
subOrgIdstringNoSub-organization ID. Required for org-wide keys on write operations; optional on list when the key is scoped to one sub-org.

Response — 200

{ "webhooks": [ /* endpoints */ ] }
POST
/v1/webhooks

Create a webhook endpoint. Returns a signing secret once. Requires webhooks.manage.

Query Parameters

ParamTypeRequiredDescription
subOrgIdstringNoSub-organization ID. Required for org-wide keys on write operations; optional on list when the key is scoped to one sub-org.

Request Body

ParamTypeRequiredDescription
namestringYesWebhook display name
urlstringYesHTTPS endpoint URL
eventsstring[]YesEvent types to subscribe to
subOrgIdstringYesSub-organization ID. Required for org-wide keys on write operations; optional on list when the key is scoped to one sub-org.

Response — 200

{ "webhook": { /* ... */ }, "signingSecret": "whsec_..." }
GET
/v1/webhooks/{webhookId}

Get a webhook; optionally include recent deliveries. Requires webhooks.read.

Query Parameters

ParamTypeRequiredDescription
subOrgIdstringNoSub-organization ID. Required for org-wide keys on write operations; optional on list when the key is scoped to one sub-org.
deliveriesbooleanNoInclude recent delivery attempts when true
limitintegerNoMax events to return (default 50, max 200; CSV export max 1000)

Response — 200

{ "webhook": { /* ... */ }, "deliveries": [] }
PATCH
/v1/webhooks/{webhookId}

Update webhook URL, events, or enabled state. Requires webhooks.manage.

Query Parameters

ParamTypeRequiredDescription
subOrgIdstringNoSub-organization ID. Required for org-wide keys on write operations; optional on list when the key is scoped to one sub-org.

Request Body

ParamTypeRequiredDescription
namestringNoWebhook display name
urlstringNoHTTPS endpoint URL
enabledbooleanNoWhether the webhook is active
eventsstring[]NoEvent types to subscribe to
subOrgIdstringYesSub-organization ID. Required for org-wide keys on write operations; optional on list when the key is scoped to one sub-org.

Response — 200

{ "webhook": { /* updated */ } }
DELETE
/v1/webhooks/{webhookId}

Delete a webhook endpoint. Requires webhooks.manage.

Query Parameters

ParamTypeRequiredDescription
subOrgIdstringNoSub-organization ID. Required for org-wide keys on write operations; optional on list when the key is scoped to one sub-org.

Response — 200

{ "success": true }