Reference/Webhook Delivery

Webhook Delivery

whd_

A WebhookDelivery is one Event sent to one WebhookEndpoint. It records the request body and every attempt, with its response. Officely retries a failed delivery for about 3 days. You can read a WebhookDelivery and resend it once it has finished.

Fields

#fields
Unique identifier for the WebhookDelivery (whd_).
accountAccountId
The Account that owns the WebhookDelivery (acc_).
attemptsarray of { attempted_at, duration_ms, error, manual, response_body, response_status, signature, succeeded }
Every request sent so far, oldest first.
created_atInstant
Time the WebhookDelivery was created.
eventEventId
Event being sent (evt_). Also sent as the webhook-id header.
event_namestring
Name of the Event being sent, such as booking.created.
objectwebhook_delivery
Object type. Always webhook_delivery.
payloadEvent
The request body: the Event, exactly as the Event history returns it.
statusstringpendingsucceededfailed
Status of the WebhookDelivery. pending: a request is due or under way. succeeded: the last request got a 2xx response. failed: the last request failed and no more are due.
updated_atInstant
Time the WebhookDelivery was last updated.
webhook_endpointWebhookEndpointId
WebhookEndpoint the Event is sent to (whe_).
Omitted from responses when they don't apply.
The Webhook Delivery record
{
  "account": "acc_01me0qwv",
  "attempts": [
    {
      "attempted_at": "2026-08-11T09:30:00Z",
      "duration_ms": 1,
      "succeeded": true
    }
  ],
  "created_at": "2026-08-11T09:30:00Z",
  "event": "evt_00cfuqco",
  "event_name": "booking.created",
  "id": "whd_019qujx9",
  "object": "webhook_delivery",
  "payload": {
    "actor": {
      "id": "per_00x29c5c",
      "type": "person"
    },
    "created": "2026-08-11T09:30:00Z",
    "data": {
      "booking": "bk_014f2b9c",
      "status": "cancelled"
    },
    "id": "evt_0185znjy",
    "name": "account.archived",
    "object": "event",
    "sequence": 1
  },
  "status": "pending",
  "updated_at": "2026-08-11T09:30:00Z",
  "webhook_endpoint": "whe_00br5nov"
}

Queries

#queries

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

webhook_delivery.getquery#query-webhook-delivery-get
GET/webhook-deliveries/:webhook_delivery200

Retrieve a WebhookDelivery with its body and every request sent so far.

Requireswebhook_endpoint.read
webhook_deliveryWebhookDeliveryIdRequiredpath
WebhookDelivery to retrieve (whd_).
curl https://api.officely.app/webhook-deliveries/whd_0109v0yd \
  -H "Authorization: Bearer $OFFICELY_TOKEN" \
  -H "Officely-Version: 2026-08-11"
webhook_deliveries.listquery#query-webhook-deliveries-list
GET/webhook-deliveries200

List WebhookDeliveries, newest first.

Requireswebhook_endpoint.read
afterWebhookDeliveryIdOptionalquery string
Return WebhookDeliveries after this one in newest-first order. Pass the previous page's next_after.
eventEventIdOptionalquery string
Return only WebhookDeliveries of this Event (evt_).
limitintegerOptionalquery string
How many to return. Defaults to 100; 500 is the maximum.
min 1max 500
statusstringpendingsucceededfailedOptionalquery string
Return only WebhookDeliveries with this status.
webhook_endpointWebhookEndpointIdOptionalquery string
Return only WebhookDeliveries to this WebhookEndpoint (whe_).
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-deliveries \
  -H "Authorization: Bearer $OFFICELY_TOKEN" \
  -H "Officely-Version: 2026-08-11"

Refusal reasons

#refusal-reasons

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

CodeCategoryReturned when
webhook_delivery_not_foundnot_foundNo WebhookDelivery matches webhook_delivery.
Refusal body · 404
{
  "error": {
    "category": "not_found",
    "code": "webhook_delivery_not_found",
    "message": "No WebhookDelivery matches webhook_delivery.",
    "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.