Skip to content

Product documentation

WebhookEndpoint

**Preview.** The WebhookEndpoint push-subscription API is live in preview: register an endpoint, subscribe it to catalog event types, receive signed (`X-Thoryn-Signature`) deliveries, and read each endpoint's recent delivery attempts. Delivery is currently wired for the `user.created` event on a best-effort (at-most-once) basis; full event-catalog coverage and at-least-once delivery hardening (retries, dead-letter) are still in progress. Tracked under SSO-1885.

WebhookEndpoint

Preview. The WebhookEndpoint push-subscription API is live in preview: register an endpoint, subscribe it to catalog event types, receive signed (X-Thoryn-Signature) deliveries, and read each endpoint's recent delivery attempts. Delivery is currently wired for the user.created event on a best-effort (at-most-once) basis; full event-catalog coverage and at-least-once delivery hardening (retries, dead-letter) are still in progress. Tracked under SSO-1885.

Base URL: https://api.stg.thoryn.org

Operations

MethodPathSummaryScopes
GET/api/v1/webhook-endpointsWebhook Endpoint Listtenant:webhooks.read
POST/api/v1/webhook-endpointsWebhook Endpoint Createtenant:webhooks.write
GET/api/v1/webhook-endpoints/{id}Webhook Endpoint Gettenant:webhooks.read
PATCH/api/v1/webhook-endpoints/{id}Webhook Endpoint Updatetenant:webhooks.write
DELETE/api/v1/webhook-endpoints/{id}Webhook Endpoint Deletetenant:webhooks.write
GET/api/v1/webhook-endpoints/{id}/deliveriesWebhook Endpoint Deliveriestenant:webhooks.read

Operation details

GET /api/v1/webhook-endpoints

Webhook Endpoint List

  • Operation ID: webhookEndpointList
  • Required scopes: tenant:webhooks.read

Parameters:

NameInRequiredTypeDescription
limitquerynointeger
cursorquerynostring

Responses:

StatusDescriptionBody
200OKListEnvelopeWebhookEndpointResponse
401Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim.Problem (problem+json)
403Forbidden — token lacks a required tenant:* scope, or the tnt claim does not match the tenant addressed by the request path.Problem (problem+json)

POST /api/v1/webhook-endpoints

Webhook Endpoint Create

  • Operation ID: webhookEndpointCreate
  • Required scopes: tenant:webhooks.write

Request body (required): application/jsonCreateWebhookEndpointRequest

Responses:

StatusDescriptionBody
200OKobject
401Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim.Problem (problem+json)
403Forbidden — token lacks a required tenant:* scope, or the tnt claim does not match the tenant addressed by the request path.Problem (problem+json)

GET /api/v1/webhook-endpoints/{id}

Webhook Endpoint Get

  • Operation ID: webhookEndpointGet
  • Required scopes: tenant:webhooks.read

Parameters:

NameInRequiredTypeDescription
idpathyesstring

Responses:

StatusDescriptionBody
200OKobject
401Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim.Problem (problem+json)
403Forbidden — token lacks a required tenant:* scope, or the tnt claim does not match the tenant addressed by the request path.Problem (problem+json)

PATCH /api/v1/webhook-endpoints/{id}

Webhook Endpoint Update

  • Operation ID: webhookEndpointUpdate
  • Required scopes: tenant:webhooks.write

Parameters:

NameInRequiredTypeDescription
idpathyesstring

Request body (required): application/jsonUpdateWebhookEndpointRequest

Responses:

StatusDescriptionBody
200OKobject
401Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim.Problem (problem+json)
403Forbidden — token lacks a required tenant:* scope, or the tnt claim does not match the tenant addressed by the request path.Problem (problem+json)

DELETE /api/v1/webhook-endpoints/{id}

Webhook Endpoint Delete

  • Operation ID: webhookEndpointDelete
  • Required scopes: tenant:webhooks.write

Parameters:

NameInRequiredTypeDescription
idpathyesstring

Responses:

StatusDescriptionBody
200OKobject
401Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim.Problem (problem+json)
403Forbidden — token lacks a required tenant:* scope, or the tnt claim does not match the tenant addressed by the request path.Problem (problem+json)

GET /api/v1/webhook-endpoints/{id}/deliveries

Webhook Endpoint Deliveries

  • Operation ID: webhookEndpointDeliveries
  • Required scopes: tenant:webhooks.read

Parameters:

NameInRequiredTypeDescription
idpathyesstring
limitquerynointeger
cursorquerynostring

Responses:

StatusDescriptionBody
200OKobject
401Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim.Problem (problem+json)
403Forbidden — token lacks a required tenant:* scope, or the tnt claim does not match the tenant addressed by the request path.Problem (problem+json)