Get a webhook subscription

Get the subscribed webhook.

Get the subscribed webhook.

GET/organizations/{organizationId}/workspaces/{workspaceId}/webhook-subscriptions/{webhookSubscriptionId}
Authorization
Path parameters
workspaceId*Workspace ID

The ID for the workspace.

organizationId*Organization ID

The ID for the organization.

webhookSubscriptionId*WebhookSubscriptionID

The ID for the webhook subscription.

Response

Get a webhook-subscription.

Body
id*string (uuid)
organizationId*string (uuid)
workspaceId*string (uuid)
service*string
event*string
eventFiltersarray of WebhookEventFilter (object)
templatestring
url*string
signingKeystring
status*WebhookSubscriptionStatus (enum)
activeinactive
createdAtstring (date-time)
updatedAtstring (date-time)
Request
const response = await fetch('/organizations/{organizationId}/workspaces/{workspaceId}/webhook-subscriptions/{webhookSubscriptionId}', {
    method: 'GET',
    headers: {
      "Authorization": "Bearer jwt"
    },
});
const data = await response.json();
Response
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "organizationId": "123e4567-e89b-12d3-a456-426614174000",
  "workspaceId": "123e4567-e89b-12d3-a456-426614174000",
  "service": "text",
  "event": "text",
  "eventFilters": [
    {
      "key": "text",
      "value": "text"
    }
  ],
  "template": "text",
  "url": "text",
  "signingKey": "text",
  "status": "active",
  "createdAt": "2024-04-24T15:19:41.660Z",
  "updatedAt": "2024-04-24T15:19:41.660Z"
}

Last updated