Skip to content
Chatwise
Skip to Content
Developer docs

List deliveries

GET /v1/webhook-endpoints/{endpointId}/deliveries. Lists an endpoint's deliveries, newest first.

View as Markdown

GEThttps://api.chatwise.so/v1/webhook-endpoints/{endpointId}/deliveries

Lists an endpoint's deliveries, newest first. Deliveries are kept for 30 days.

The API key needs the webhooks:read scope. See authentication and scopes.

Example

curl 'https://api.chatwise.so/v1/webhook-endpoints/we_01JE2Z3K8Q9V7W5X4Y3Z2A1B0C/deliveries?limit=25&status=RETRY' \
  -H "Authorization: Bearer $CHATWISE_API_KEY"

Path parameters

NameTypeDescription
endpointIdstringRequired. The endpoint's id (we_…).

Query parameters

NameTypeDescription
limitintegerHow many to return, from 1 to 100. Default: 50.
cursorstringThe previous page's pagination.nextCursor. Repeat the same filters and order with it. At most 512 characters.
statusstringOnly deliveries with this status. One of PENDING, PROCESSING, RETRY, DELIVERED, FAILED, CANCELLED.
eventTypestringOnly deliveries of this event. One of message.received, message.sent, message.delivered, message.read, message.failed, comment.received.

Unknown query parameters are refused with a 400.

Response

200. A page of deliveries.

{
  "data": [
    {
      "id": "wd_3f1c0a9b5d7e42688c1f0e2d4b6a8c90",
      "eventId": "evt_01JE2Z3QK4T8M6N2R5S7V9W1X3",
      "eventType": "message.received",
      "occurredAt": "2026-11-12T09:25:36.000Z",
      "status": "RETRY",
      "attempts": 1,
      "lastStatusCode": 503,
      "lastError": "http_503",
      "lastDurationMs": 214,
      "nextAttemptAt": "2026-11-12T09:25:47.000Z",
      "deliveredAt": null,
      "createdAt": "2026-11-12T09:25:37.000Z"
    }
  ],
  "pagination": {
    "nextCursor": null
  }
}
FieldTypeDescription
data[].idstringThe delivery's id, also sent as the X-Chatwise-Delivery header.
data[].eventIdstringThe event's id, also sent as the webhook-id header.
data[].eventTypestringThe event's name. One of message.received, message.sent, message.delivered, message.read, message.failed, comment.received.
data[].occurredAtstringWhen the event happened. ISO 8601, in UTC.
data[].statusstringPENDING (waiting), PROCESSING (being sent), RETRY (waiting for its next attempt), DELIVERED, FAILED or CANCELLED.
data[].attemptsintegerAttempts so far. Redelivering starts again from 0.
data[].lastStatusCodeinteger or nullThe HTTP status the last attempt got. Null when there was no answer.
data[].lastErrorstring or nullWhy the last attempt failed, such as http_500 or timeout. retry_exhausted once the last of all attempts failed.
data[].lastDurationMsinteger or nullHow long the last attempt took, in milliseconds.
data[].nextAttemptAtstring or nullWhen it is next due to be sent, while it is PENDING or RETRY. Otherwise null. ISO 8601, in UTC.
data[].deliveredAtstring or nullWhen it was delivered. ISO 8601, in UTC.
data[].createdAtstringWhen the delivery was created. ISO 8601, in UTC.
pagination.nextCursorstring or nullSend it as cursor for the next page. Null on the last page.

Errors

StatusMessageWhat it means
400Validation failedA parameter or body field is missing, unknown or malformed. errors lists each one.
400Invalid cursor or cursor does not match this requestThe cursor isn't one this route returned, or the filters or order changed since.
401A valid Bearer API key is requiredThe Authorization header is missing or isn't Bearer <API key>.
401Invalid or revoked API keyThe key doesn't exist, was revoked, or has expired.
401Invalid API keyChatwise couldn't check the key. Try again.
403API key does not have the required scope: webhooks:readThe key lacks the route's scope. Create a key that has it.
404Webhook endpoint not foundNo endpoint with this id in the key's workspace.
429API key rate limit exceededWait the number of seconds in the Retry-After header.
500Internal server errorSomething failed in Chatwise. Retry reads with backoff.

The body of an error is described in errors.

On this page