Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Webhook subscriptions

Signed events sent to your HTTPS endpoint.

Subscribe an endpoint to event types, then read its deliveries, retry one, send a test event, pause, resume, or rotate its signing secret.

Fields: The webhook object · The webhook delivery object.

List webhooks

get

The workspace's webhook subscriptions, newest first, whoever created them. At most 20 exist per workspace, so the list is never paged.

Returns a list of webhook objects.

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

A workspace API token. Each operation lists the scopes it needs; write implies read, and send/complete are never implied.

Responses
200

Success.

application/json
get/v1/webhooks
curl https://api.shortcutco.com/v1/webhooks \
  -H "Authorization: Bearer $SHORTCUT_TOKEN"
{
  "data": [
    {
      "id": "22c7f63c-1f12-4183-8b5c-6cca17a6a811",
      "object": "webhook",
      "url": "https://example.com/shortcut/webhooks",
      "description": null,
      "eventTypes": [
        "customer.created"
      ],
      "requiredScopes": [
        "customers:read"
      ],
      "status": "active",
      "consecutiveFailures": 0,
      "disabledAt": null,
      "previousSecretExpiresAt": null,
      "createdVia": "api_token",
      "createdAt": "2026-10-16T17:04:12.381Z",
      "updatedAt": "2026-10-16T17:04:12.381Z"
    }
  ]
}

Create a webhook

post

Subscribes an HTTPS endpoint (port 443, public address) to event types. Subscribing to a family needs its read scope as well as webhooks:manage (for example invoices:read for invoice.paid); those read scopes are stored as requiredScopes, and every payload is limited to them. The response carries the signing secret once; it is not kept for idempotent replays, so a replay omits it. The subscription belongs to the workspace and keeps working if this token is revoked. At most 20 per workspace.

Returns the webhook object.

Errors specific to this endpoint: invalid_webhook_url, webhook_limit_reached, webhook_signing_unavailable. Every endpoint can also return the common errors.

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

A workspace API token. Each operation lists the scopes it needs; write implies read, and send/complete are never implied.

Header parameters
Idempotency-Keystring · max: 255Optional

Any string up to 255 characters. Retrying with the same key returns the first response instead of repeating the write, for 24 hours.

Body
urlstring · min: 1 · max: 2048Required

The HTTPS endpoint (port 443) to send events to.

descriptionstring · max: 200 · nullableOptional

A note to tell subscriptions apart, such as Zapier: new invoices.

Responses
201

Success.

application/json
post/v1/webhooks
curl https://api.shortcutco.com/v1/webhooks \
  -X POST \
  -H "Authorization: Bearer $SHORTCUT_TOKEN" \
  -H "Idempotency-Key: b58d3b2b-b1d7-4672-8e21-b1b9aa6bed00" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com/shortcut/webhooks","eventTypes":["customer.created"]}'
{
  "data": {
    "id": "764b2f0c-7295-4a53-8edf-a59a6b29e0e1",
    "object": "webhook",
    "url": "https://example.com/shortcut/webhooks",
    "description": null,
    "eventTypes": [
      "customer.created"
    ],
    "requiredScopes": [
      "customers:read"
    ],
    "status": "active",
    "consecutiveFailures": 0,
    "disabledAt": null,
    "previousSecretExpiresAt": null,
    "createdVia": "api_token",
    "createdAt": "2026-10-16T17:04:12.381Z",
    "updatedAt": "2026-10-16T17:04:12.381Z",
    "secret": "whsec_…"
  }
}

Get a webhook

get

One webhook subscription. The signing secret is never returned here.

Returns the webhook object.

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

A workspace API token. Each operation lists the scopes it needs; write implies read, and send/complete are never implied.

Path parameters
idstring · uuidRequired

The object's id.

Responses
200

Success.

application/json
get/v1/webhooks/{id}
curl https://api.shortcutco.com/v1/webhooks/2a0b6c09-2655-4750-829f-e2971eea1dde \
  -H "Authorization: Bearer $SHORTCUT_TOKEN"
{
  "data": {
    "id": "2a0b6c09-2655-4750-829f-e2971eea1dde",
    "object": "webhook",
    "url": "https://example.com/shortcut/webhooks",
    "description": null,
    "eventTypes": [
      "customer.created"
    ],
    "requiredScopes": [
      "customers:read"
    ],
    "status": "active",
    "consecutiveFailures": 0,
    "disabledAt": null,
    "previousSecretExpiresAt": null,
    "createdVia": "api_token",
    "createdAt": "2026-10-16T17:04:12.381Z",
    "updatedAt": "2026-10-16T17:04:12.381Z"
  }
}

Delete a webhook

delete

Deletes a webhook subscription with its delivery history and returns it. Nothing new is sent to it; a request already in progress when it was deleted (at most one per delivery) may still arrive.

Returns the webhook object.

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

A workspace API token. Each operation lists the scopes it needs; write implies read, and send/complete are never implied.

Path parameters
idstring · uuidRequired

The object's id.

Responses
200

Success.

application/json
delete/v1/webhooks/{id}
curl https://api.shortcutco.com/v1/webhooks/2a0b6c09-2655-4750-829f-e2971eea1dde \
  -X DELETE \
  -H "Authorization: Bearer $SHORTCUT_TOKEN"
{
  "data": {
    "id": "2a0b6c09-2655-4750-829f-e2971eea1dde",
    "object": "webhook",
    "url": "https://example.com/shortcut/webhooks",
    "description": null,
    "eventTypes": [
      "customer.created"
    ],
    "requiredScopes": [
      "customers:read"
    ],
    "status": "active",
    "consecutiveFailures": 0,
    "disabledAt": null,
    "previousSecretExpiresAt": null,
    "createdVia": "api_token",
    "createdAt": "2026-10-16T17:04:12.381Z",
    "updatedAt": "2026-10-16T17:04:12.381Z"
  }
}

Update a webhook

patch

Changes a webhook's URL, description, or event types, or pauses or resumes it. Send only the fields to change. status: paused (from active only) holds everything not yet sent until it is set back to active, which sends the held deliveries, about two a minute; setting a disabled webhook to active turns it back on and resets its failure count, and a disabled webhook cannot be paused (409 state_conflict). Except for pausing, the token must hold the webhook's read scopes (its requiredScopes after the change), so a token cannot redirect events it could not read.

Returns the webhook object.

Errors specific to this endpoint: invalid_webhook_url, state_conflict. Every endpoint can also return the common errors.

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

A workspace API token. Each operation lists the scopes it needs; write implies read, and send/complete are never implied.

Path parameters
idstring · uuidRequired

The object's id.

Body
urlstring · min: 1 · max: 2048Optional

The HTTPS endpoint (port 443) to send events to.

descriptionstring · max: 200 · nullableOptional

A note to tell subscriptions apart, such as Zapier: new invoices.

statusstring · enumOptional

paused holds new events until the subscription is set back to active. Setting a disabled subscription to active turns it back on and resets its failure count.

Possible values:
Responses
200

Success.

application/json
patch/v1/webhooks/{id}
curl https://api.shortcutco.com/v1/webhooks/2a0b6c09-2655-4750-829f-e2971eea1dde \
  -X PATCH \
  -H "Authorization: Bearer $SHORTCUT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com/shortcut/webhooks"}'
{
  "data": {
    "id": "2a0b6c09-2655-4750-829f-e2971eea1dde",
    "object": "webhook",
    "url": "https://example.com/shortcut/webhooks",
    "description": null,
    "eventTypes": [
      "customer.created"
    ],
    "requiredScopes": [
      "customers:read"
    ],
    "status": "active",
    "consecutiveFailures": 0,
    "disabledAt": null,
    "previousSecretExpiresAt": null,
    "createdVia": "api_token",
    "createdAt": "2026-10-16T17:04:12.381Z",
    "updatedAt": "2026-10-16T17:04:12.381Z"
  }
}

List a webhook's deliveries

get

The webhook's deliveries, newest first, test events included, with each one's status, attempts, last response status, and a redacted excerpt of the last response. Deliveries are kept for 30 days.

Returns a list of webhook delivery objects.

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

A workspace API token. Each operation lists the scopes it needs; write implies read, and send/complete are never implied.

Path parameters
idstring · uuidRequired

The object's id.

Query parameters
limitinteger · min: 1 · max: 200Optional

How many items to return, 1-200. Defaults to 50.

Default: 50
cursorstring · min: 1 · max: 4096Optional

The meta.nextCursor from the previous page. Omit it for the first page.

statusstring · enumOptional

Only deliveries in this status.

Possible values:
Responses
200

Success.

application/json
get/v1/webhooks/{id}/deliveries
curl https://api.shortcutco.com/v1/webhooks/08d50ae0-051f-4627-8169-816efdb3bcb5/deliveries \
  -H "Authorization: Bearer $SHORTCUT_TOKEN"
{
  "data": [
    {
      "id": "35dae517-3225-405e-8e6f-5ba52ab996ec",
      "object": "webhook_delivery",
      "webhookId": "08d50ae0-051f-4627-8169-816efdb3bcb5",
      "eventId": "evt_9b2e4c6a8d0f1e3b5a7c9d2f4e6b8a0c",
      "eventType": "customer.updated",
      "status": "succeeded",
      "attempts": 1,
      "nextAttemptAt": null,
      "deliveredAt": "2026-10-16T17:04:12.381Z",
      "lastResponseStatus": 200,
      "lastError": null,
      "lastResponseExcerpt": "ok",
      "createdAt": "2026-10-16T17:04:12.381Z"
    }
  ],
  "meta": {
    "nextCursor": null,
    "hasMore": false
  }
}

Retry a delivery

post

Sends a failed or exhausted delivery again within about a minute, with the object as it is now. The webhook must be active, and the token must hold its read scopes. Test events cannot be retried; send another.

Returns the webhook delivery object.

Errors specific to this endpoint: delivery_not_retryable, webhook_not_active. Every endpoint can also return the common errors.

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

A workspace API token. Each operation lists the scopes it needs; write implies read, and send/complete are never implied.

Path parameters
idstring · uuidRequired

The webhook's id.

deliveryIdstring · uuidRequired

The delivery's id.

Header parameters
Idempotency-Keystring · max: 255Optional

Any string up to 255 characters. Retrying with the same key returns the first response instead of repeating the write, for 24 hours.

Responses
200

Success.

application/json
post/v1/webhooks/{id}/deliveries/{deliveryId}/retry
curl https://api.shortcutco.com/v1/webhooks/5473a661-50bd-41a8-8d08-1cef49525836/deliveries/e8d0c5d9-e51b-4120-8165-3c67ddaf77ae/retry \
  -X POST \
  -H "Authorization: Bearer $SHORTCUT_TOKEN" \
  -H "Idempotency-Key: a1fe4769-9e48-42b0-8a92-bdf796dcf93e"
{
  "data": {
    "id": "e8d0c5d9-e51b-4120-8165-3c67ddaf77ae",
    "object": "webhook_delivery",
    "webhookId": "5473a661-50bd-41a8-8d08-1cef49525836",
    "eventId": "evt_9b2e4c6a8d0f1e3b5a7c9d2f4e6b8a0c",
    "eventType": "customer.updated",
    "status": "pending",
    "attempts": 6,
    "nextAttemptAt": "2026-10-16T17:04:12.381Z",
    "deliveredAt": null,
    "lastResponseStatus": 503,
    "lastError": null,
    "lastResponseExcerpt": "Service Unavailable",
    "createdAt": "2026-10-15T09:12:40.000Z"
  }
}

Rotate a webhook's signing secret

post

Issues a new signing secret, returned once as secret. For the next 24 hours every delivery is signed with both the new and the previous secret (two v1= signatures), so the receiver can switch without missing events. A replay omits the secret; rotate again if you lost it. The token must hold the webhook's read scopes.

Returns the webhook object.

Errors specific to this endpoint: webhook_signing_unavailable. Every endpoint can also return the common errors.

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

A workspace API token. Each operation lists the scopes it needs; write implies read, and send/complete are never implied.

Path parameters
idstring · uuidRequired

The object's id.

Header parameters
Idempotency-Keystring · max: 255Optional

Any string up to 255 characters. Retrying with the same key returns the first response instead of repeating the write, for 24 hours.

Responses
200

Success.

application/json
post/v1/webhooks/{id}/rotate-secret
curl https://api.shortcutco.com/v1/webhooks/ff89fcb0-fbd4-47f7-881e-733ef468ae85/rotate-secret \
  -X POST \
  -H "Authorization: Bearer $SHORTCUT_TOKEN" \
  -H "Idempotency-Key: ab14ea2a-a75f-4571-83a9-60b89ff39bff"
{
  "data": {
    "id": "ff89fcb0-fbd4-47f7-881e-733ef468ae85",
    "object": "webhook",
    "url": "https://example.com/shortcut/webhooks",
    "description": null,
    "eventTypes": [
      "customer.created"
    ],
    "requiredScopes": [
      "customers:read"
    ],
    "status": "active",
    "consecutiveFailures": 0,
    "disabledAt": null,
    "previousSecretExpiresAt": null,
    "createdVia": "api_token",
    "createdAt": "2026-10-16T17:04:12.381Z",
    "updatedAt": "2026-10-16T17:04:12.381Z",
    "secret": "whsec_…"
  }
}

Send a test event

post

Sends one signed webhook.test event to the webhook now and returns the delivery with the receiver's answer. It carries no workspace data, is not retried, does not count toward the failure limit, and works whatever the webhook's status.

Returns the webhook delivery object.

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

A workspace API token. Each operation lists the scopes it needs; write implies read, and send/complete are never implied.

Path parameters
idstring · uuidRequired

The object's id.

Header parameters
Idempotency-Keystring · max: 255Optional

Any string up to 255 characters. Retrying with the same key returns the first response instead of repeating the write, for 24 hours.

Responses
200

Success.

application/json
post/v1/webhooks/{id}/test
curl https://api.shortcutco.com/v1/webhooks/751ee98c-7169-44d3-8db3-601a69fd9b61/test \
  -X POST \
  -H "Authorization: Bearer $SHORTCUT_TOKEN" \
  -H "Idempotency-Key: 14adbca2-10f7-47e9-8d42-3330098c6e77"
{
  "data": {
    "id": "ecfe5acb-e948-4612-8592-d159e1dd0ca0",
    "object": "webhook_delivery",
    "webhookId": "751ee98c-7169-44d3-8db3-601a69fd9b61",
    "eventId": "evt_9b2e4c6a8d0f1e3b5a7c9d2f4e6b8a0c",
    "eventType": "webhook.test",
    "status": "succeeded",
    "attempts": 1,
    "nextAttemptAt": null,
    "deliveredAt": "2026-10-16T17:04:12.381Z",
    "lastResponseStatus": 200,
    "lastError": null,
    "lastResponseExcerpt": "ok",
    "createdAt": "2026-10-16T17:04:12.381Z"
  }
}

Last updated