Reference/Webhook Endpoint

Webhook Endpoint

whe_

A WebhookEndpoint is an HTTPS URL that Officely sends matching Events to as they happen. Each request is signed with the endpoint's secret, following Standard Webhooks, and failed requests are retried for about 3 days. Officely disables an endpoint whose requests have failed for 3 days. Each Event sent to an endpoint is a WebhookDelivery you can read and resend.

The Webhook Endpoint object

#fields
Unique identifier for the WebhookEndpoint (whe_).
accountAccountId
The Account that owns the WebhookEndpoint (acc_).
created_atInstant
Time the WebhookEndpoint was created.
eventsarray of string
Events Officely sends to the WebhookEndpoint. Each item is an Event name, <object>.* for every Event about one kind of object, or * for every Event webhooks send. Wildcards also cover Events added to webhooks later. Webhooks don't send an Account's own account.created, account.archived or account.restored, a WebhookEndpoint's own Events, or favourite coworkers.
objectwebhook_endpoint
Object type. Always webhook_endpoint.
statusstringenableddisabledarchived
Status of the WebhookEndpoint. Lifecycle statuses
updated_atInstant
Time the WebhookEndpoint was last updated.
urlstring
HTTPS URL Officely sends Events to.
Omitted from responses when they don't apply.

Lifecycle statuses

#statuses

Every described status value for webhook_endpoint.

archived

Officely sends nothing to the WebhookEndpoint and it can't be changed. Its WebhookDeliveries are kept.

disabled

Officely sends nothing to the WebhookEndpoint, apart from tests and resends you ask for. Events that happen while it's disabled are never sent, and a retry that comes due while it's disabled fails for good.

enabled

Officely sends each matching Event to the WebhookEndpoint as it happens.

The Webhook Endpoint object
{
  "account": "acc_011o61ia",
  "created_at": "2026-08-11T09:30:00Z",
  "events": [
    "booking.created",
    "booking.cancelled"
  ],
  "id": "whe_008nf1uy",
  "object": "webhook_endpoint",
  "status": "enabled",
  "updated_at": "2026-08-11T09:30:00Z",
  "url": "https://example.com/officely/webhooks"
}

Operations

#operations

Methods that change state.

webhook_endpoint.createoperation#operation-webhook-endpoint-create
POST/webhook-endpoints201

Create a WebhookEndpoint. It starts enabled, so matching Events are sent from now on. The response includes the signing secret, which isn't shown again.

Requireswebhook_endpoint.manage
descriptionstringOptional
Description of the WebhookEndpoint, up to 500 characters. Can't be blank.
max length 500
eventsarray of stringRequired
Events to send. Each item is an Event name such as booking.created, <object>.* for every Event about one kind of object, or * for every Event webhooks send. Wildcards also cover Events added to webhooks later. Webhooks don't send an Account's own account.created, account.archived or account.restored, a WebhookEndpoint's own Events, or favourite coworkers. Up to 200 items, each listed once.
min items 1max items 200
urlstringRequired
HTTPS URL to send Events to, up to 2,048 characters.
curl -X POST https://api.officely.app/webhook-endpoints \
  -H "Authorization: Bearer $OFFICELY_TOKEN" \
  -H "Officely-Version: 2026-08-11" \
  -d '{
    "events": [
      "booking.created",
      "booking.cancelled"
    ],
    "url": "https://example.com/officely/webhooks"
  }'
webhook_endpoint.updateoperation#operation-webhook-endpoint-update
PATCH/webhook-endpoints/:webhook_endpoint200

Change a WebhookEndpoint's URL, Events, or description.

Requireswebhook_endpoint.manage
descriptionstring | nullOptional
New description, up to 500 characters. Can't be blank. Set null to remove it, or omit to leave it unchanged.
max length 500
eventsarray of stringOptional
New Events to send, replacing the current list. Events to send. Each item is an Event name such as booking.created, <object>.* for every Event about one kind of object, or * for every Event webhooks send. Wildcards also cover Events added to webhooks later. Webhooks don't send an Account's own account.created, account.archived or account.restored, a WebhookEndpoint's own Events, or favourite coworkers. Up to 200 items, each listed once.
min items 1max items 200
urlstringOptional
New HTTPS URL. Requests already waiting to be retried go to the new URL. Omit to leave it unchanged.
webhook_endpointWebhookEndpointIdRequiredpath
WebhookEndpoint to update (whe_).
curl -X PATCH https://api.officely.app/webhook-endpoints/whe_01hms5o2 \
  -H "Authorization: Bearer $OFFICELY_TOKEN" \
  -H "Officely-Version: 2026-08-11"
webhook_endpoint.enableoperation#operation-webhook-endpoint-enable
POST/webhook-endpoints/:webhook_endpoint/enable200

Start sending matching Events again, from now on. Events that happened while it was disabled aren't sent. Clears disabled_reason and failing_since. Returns the WebhookEndpoint unchanged if it's already enabled.

Requireswebhook_endpoint.manage
webhook_endpointWebhookEndpointIdRequiredpath
WebhookEndpoint to act on (whe_).
curl -X POST https://api.officely.app/webhook-endpoints/whe_01ye3vbc/enable \
  -H "Authorization: Bearer $OFFICELY_TOKEN" \
  -H "Officely-Version: 2026-08-11"
webhook_endpoint.disableoperation#operation-webhook-endpoint-disable
POST/webhook-endpoints/:webhook_endpoint/disable200

Stop sending Events. Requests waiting to be retried fail instead of being sent. Returns the WebhookEndpoint unchanged if it's already disabled.

Requireswebhook_endpoint.manage
webhook_endpointWebhookEndpointIdRequiredpath
WebhookEndpoint to act on (whe_).
curl -X POST https://api.officely.app/webhook-endpoints/whe_00le3397/disable \
  -H "Authorization: Bearer $OFFICELY_TOKEN" \
  -H "Officely-Version: 2026-08-11"
webhook_endpoint.archiveoperation#operation-webhook-endpoint-archive
POST/webhook-endpoints/:webhook_endpoint/archive200

Archive a WebhookEndpoint. Officely stops sending to it, and it can't be changed or enabled again. Its WebhookDeliveries are kept.

Requireswebhook_endpoint.manage
webhook_endpointWebhookEndpointIdRequiredpath
WebhookEndpoint to act on (whe_).
curl -X POST https://api.officely.app/webhook-endpoints/whe_01ltuj9l/archive \
  -H "Authorization: Bearer $OFFICELY_TOKEN" \
  -H "Officely-Version: 2026-08-11"
webhook_endpoint.rotate_secretoperation#operation-webhook-endpoint-rotate-secret
POST/webhook-endpoints/:webhook_endpoint/rotate-secret200

Replace the WebhookEndpoint's signing secret. The previous secret keeps signing for 24 hours, so each request carries both signatures until previous_secret_expires_at. The response includes the new secret, which isn't shown again.

Requireswebhook_endpoint.manage
webhook_endpointWebhookEndpointIdRequiredpath
WebhookEndpoint to act on (whe_).
curl -X POST https://api.officely.app/webhook-endpoints/whe_0027z13x/rotate-secret \
  -H "Authorization: Bearer $OFFICELY_TOKEN" \
  -H "Officely-Version: 2026-08-11"
webhook_endpoint.send_testoperation#operation-webhook-endpoint-send-test
POST/webhook-endpoints/:webhook_endpoint/send-test200

Send a webhook_endpoint.tested Event to this WebhookEndpoint only, whatever its events list and status. It gets one attempt and isn't retried. List the endpoint's WebhookDeliveries to see the result.

Requireswebhook_endpoint.manage
webhook_endpointWebhookEndpointIdRequiredpath
WebhookEndpoint to act on (whe_).
curl -X POST https://api.officely.app/webhook-endpoints/whe_00qlru6g/send-test \
  -H "Authorization: Bearer $OFFICELY_TOKEN" \
  -H "Officely-Version: 2026-08-11"
webhook_delivery.resendoperation#operation-webhook-delivery-resend
POST/webhook-deliveries/:webhook_delivery/resend200

Send a WebhookDelivery again now, with the same body and webhook-id. The attempt is marked manual: it isn't retried, doesn't count toward the 12 automatic attempts or toward disabling a failing WebhookEndpoint, and a delivery still being retried keeps its next automatic attempt where it was. Works on a disabled WebhookEndpoint too.

Requireswebhook_endpoint.manage
webhook_deliveryWebhookDeliveryIdRequiredpath
WebhookDelivery to send again (whd_).
curl -X POST https://api.officely.app/webhook-deliveries/whd_01v4l11c/resend \
  -H "Authorization: Bearer $OFFICELY_TOKEN" \
  -H "Officely-Version: 2026-08-11"

Queries

#queries

Read methods. Kept apart from operations because only operations change state.

webhook_endpoint.getquery#query-webhook-endpoint-get
GET/webhook-endpoints/:webhook_endpoint200

Retrieve a WebhookEndpoint, including an archived one.

Requireswebhook_endpoint.read
webhook_endpointWebhookEndpointIdRequiredpath
WebhookEndpoint to retrieve (whe_).
curl https://api.officely.app/webhook-endpoints/whe_00l218di \
  -H "Authorization: Bearer $OFFICELY_TOKEN" \
  -H "Officely-Version: 2026-08-11"
webhook_endpoints.listquery#query-webhook-endpoints-list
GET/webhook-endpoints200

List the Account's WebhookEndpoints. Archived ones are left out unless include_archived is true.

Requireswebhook_endpoint.read
afterWebhookEndpointIdOptionalquery string
Return WebhookEndpoints ordered after this one (whe_). Pass the previous page's next_after.
include_archivedbooleanOptionalquery string
Whether to include archived WebhookEndpoints. Defaults to false.
limitintegerOptionalquery string
How many to return. Defaults to 100; 500 is the maximum.
min 1max 500
RefusesNo refusal reason. Every accepted request answers with a page, and an empty data array is a result rather than a refusal.
curl https://api.officely.app/webhook-endpoints \
  -H "Authorization: Bearer $OFFICELY_TOKEN" \
  -H "Officely-Version: 2026-08-11"

Events

#events

Recorded when something happens to a Webhook Endpoint. The payload is the Event's data.

webhook_endpoint.archivedevent#event-webhook-endpoint-archived

Occurs when a WebhookEndpoint is archived.

Payload 1
The Webhook Endpoint as it was when the Event was recorded.
Example Event
{
  "actor": {
    "id": "per_00y7dkg3",
    "type": "person"
  },
  "created": "2026-08-11T09:30:00Z",
  "id": "evt_01a7tx9d",
  "name": "webhook_endpoint.archived",
  "object": "event",
  "sequence": 1,
  "data": {
    "account": "acc_011o61ia",
    "created_at": "2026-08-11T09:30:00Z",
    "events": [
      "booking.created",
      "booking.cancelled"
    ],
    "id": "whe_008nf1uy",
    "object": "webhook_endpoint",
    "status": "enabled",
    "updated_at": "2026-08-11T09:30:00Z",
    "url": "https://example.com/officely/webhooks"
  }
}
webhook_endpoint.createdevent#event-webhook-endpoint-created

Occurs when a WebhookEndpoint is created.

Payload 1
The Webhook Endpoint as it was when the Event was recorded.
Example Event
{
  "actor": {
    "id": "per_018wn2ff",
    "type": "person"
  },
  "created": "2026-08-11T09:30:00Z",
  "id": "evt_01ccqm09",
  "name": "webhook_endpoint.created",
  "object": "event",
  "sequence": 1,
  "data": {
    "account": "acc_011o61ia",
    "created_at": "2026-08-11T09:30:00Z",
    "events": [
      "booking.created",
      "booking.cancelled"
    ],
    "id": "whe_008nf1uy",
    "object": "webhook_endpoint",
    "status": "enabled",
    "updated_at": "2026-08-11T09:30:00Z",
    "url": "https://example.com/officely/webhooks"
  }
}
webhook_endpoint.disabledevent#event-webhook-endpoint-disabled

Occurs when a WebhookEndpoint is disabled, by a request or because its requests failed for 3 days.

Payload 1
The Webhook Endpoint as it was when the Event was recorded.
Example Event
{
  "actor": {
    "id": "per_005k765p",
    "type": "person"
  },
  "created": "2026-08-11T09:30:00Z",
  "id": "evt_00056vu3",
  "name": "webhook_endpoint.disabled",
  "object": "event",
  "sequence": 1,
  "data": {
    "account": "acc_011o61ia",
    "created_at": "2026-08-11T09:30:00Z",
    "events": [
      "booking.created",
      "booking.cancelled"
    ],
    "id": "whe_008nf1uy",
    "object": "webhook_endpoint",
    "status": "enabled",
    "updated_at": "2026-08-11T09:30:00Z",
    "url": "https://example.com/officely/webhooks"
  }
}
webhook_endpoint.enabledevent#event-webhook-endpoint-enabled

Occurs when a WebhookEndpoint is enabled.

Payload 1
The Webhook Endpoint as it was when the Event was recorded.
Example Event
{
  "actor": {
    "id": "per_018qorig",
    "type": "person"
  },
  "created": "2026-08-11T09:30:00Z",
  "id": "evt_014lczxi",
  "name": "webhook_endpoint.enabled",
  "object": "event",
  "sequence": 1,
  "data": {
    "account": "acc_011o61ia",
    "created_at": "2026-08-11T09:30:00Z",
    "events": [
      "booking.created",
      "booking.cancelled"
    ],
    "id": "whe_008nf1uy",
    "object": "webhook_endpoint",
    "status": "enabled",
    "updated_at": "2026-08-11T09:30:00Z",
    "url": "https://example.com/officely/webhooks"
  }
}
webhook_endpoint.secret_rotatedevent#event-webhook-endpoint-secret-rotated

Occurs when a WebhookEndpoint's signing secret is replaced.

Payload 1
The Webhook Endpoint as it was when the Event was recorded.
Example Event
{
  "actor": {
    "id": "per_00h3le5z",
    "type": "person"
  },
  "created": "2026-08-11T09:30:00Z",
  "id": "evt_009mqlq5",
  "name": "webhook_endpoint.secret_rotated",
  "object": "event",
  "sequence": 1,
  "data": {
    "account": "acc_011o61ia",
    "created_at": "2026-08-11T09:30:00Z",
    "events": [
      "booking.created",
      "booking.cancelled"
    ],
    "id": "whe_008nf1uy",
    "object": "webhook_endpoint",
    "status": "enabled",
    "updated_at": "2026-08-11T09:30:00Z",
    "url": "https://example.com/officely/webhooks"
  }
}
webhook_endpoint.testedevent#event-webhook-endpoint-tested

Occurs when a test is sent to a WebhookEndpoint. Only that endpoint receives it.

Payload 1
The Webhook Endpoint as it was when the Event was recorded.
Example Event
{
  "actor": {
    "id": "per_00b26q32",
    "type": "person"
  },
  "created": "2026-08-11T09:30:00Z",
  "id": "evt_003x0bs4",
  "name": "webhook_endpoint.tested",
  "object": "event",
  "sequence": 1,
  "data": {
    "account": "acc_011o61ia",
    "created_at": "2026-08-11T09:30:00Z",
    "events": [
      "booking.created",
      "booking.cancelled"
    ],
    "id": "whe_008nf1uy",
    "object": "webhook_endpoint",
    "status": "enabled",
    "updated_at": "2026-08-11T09:30:00Z",
    "url": "https://example.com/officely/webhooks"
  }
}
webhook_endpoint.updatedevent#event-webhook-endpoint-updated

Occurs when a WebhookEndpoint's URL, Events, or description changes.

Payload 1
The Webhook Endpoint as it was when the Event was recorded.
Example Event
{
  "actor": {
    "id": "per_00kpjqvm",
    "type": "person"
  },
  "created": "2026-08-11T09:30:00Z",
  "id": "evt_01b6dqb4",
  "name": "webhook_endpoint.updated",
  "object": "event",
  "sequence": 1,
  "data": {
    "account": "acc_011o61ia",
    "created_at": "2026-08-11T09:30:00Z",
    "events": [
      "booking.created",
      "booking.cancelled"
    ],
    "id": "whe_008nf1uy",
    "object": "webhook_endpoint",
    "status": "enabled",
    "updated_at": "2026-08-11T09:30:00Z",
    "url": "https://example.com/officely/webhooks"
  }
}

Refusal reasons

#refusal-reasons

Every refusal reason defined by webhook_endpoint. The reason is the machine-readable key a caller receives.

CodeCategoryReturned when
event_name_not_foundvalidationAn item in events names an Event, or a kind of object, that doesn't exist or that webhooks don't send. The message says which.
no_changestateThe update wouldn't change the WebhookEndpoint.
webhook_delivery_not_foundnot_foundNo WebhookDelivery matches webhook_delivery.
webhook_endpoint_archivedstateThe WebhookEndpoint is archived and can't be changed. Create a new one instead.
webhook_endpoint_not_foundnot_foundNo WebhookEndpoint matches webhook_endpoint.
Refusal body · 400
{
  "error": {
    "category": "validation",
    "code": "event_name_not_found",
    "message": "An item in events names an Event, or a kind of object, that doesn't exist or that webhooks don't send.",
    "retryable": false
  }
}

The code is the machine-readable refusal reason. Every code in this table is a permanent URL you can link from error toasts and logs.

REST examples use https://api.officely.app. See Officely-Version for endpoint versioning.