API reference · Serverless
Completion webhook deliveries with their attempt log, newest first
/v1/serverless/endpoints/{endpoint_id}/webhook-deliveries- TypeScript
client.serverless.listWebhookDeliveries()- Python
client.serverless.list_webhook_deliveries()- CLI
hayonix serverless webhook-deliveries
One delivery per finished job that had a webhook URL, with its status and every attempt (status code, error, duration). Use it to see why your receiver did not get a job's result.
Project API key (Authorization: Bearer sk_…), or a console session. Requires the serverless_endpoint:read permission (a key's scope, or a role that includes it).
Examples
The samples read API_KEY and API_BASE_URL from the environment (see Setup). Values are examples.
curl -sS "$API_BASE_URL/serverless/endpoints/sep_01jc5zq4m8k3v6x9t2w7r0b1e4/webhook-deliveries" \
-H "Authorization: Bearer $API_KEY"Request
| Header | Required | Description |
|---|---|---|
Authorization | yes | Bearer and your API key. The key implies its project. |
X-Project-Id | session only | The project to act in, for console sessions. Requests with an API key leave it out. |
Path parameters
endpoint_idstringrequiredID of the endpoint
ID with prefix sep_
Query parameters
limitinteger1–200, default 50
1–200
cursorstring`next_cursor` of the previous page
up to 200 characters
Response
200 a page of results — Deliveries
The items of this page.
ShowHide 14 fields of
dataobjectstringrequiredAlways `webhook_delivery`: the type of this object
One of
webhook_deliveryidstringrequiredUnique ID (`whd_…`)
ID with prefix whd_
eventstringrequiredWhat happened, for example `job.completed`
subject_idstringrequiredID of the subject
urlstringrequiredThe endpoint’s webhook URL the delivery is sent to
statusstringrequired`pending` (not delivered yet; retried), `delivered` (a 2xx answer), `failed` (every attempt failed)
One of
pendingdeliveredfailedattemptsintegerrequiredAttempts made so far
max_attemptsintegerrequiredAttempts made before giving up
last_status_codeinteger | nullrequiredHTTP status of the last attempt (null: no answer)
last_errorstring | nullrequiredWhy the last attempt failed (null: it did not)
next_attempt_atstring (date-time) | nullrequiredTime next attempt (ISO 8601, UTC)
delivered_atstring (date-time) | nullrequiredTime delivered (ISO 8601, UTC)
attempt_logarray of objectrequiredEvery attempt, oldest first
ShowHide 5 fields of
attempt_logattemptintegerrequiredAttempt number, from 1
atstringrequiredWhen it was made (ISO 8601, UTC)
status_codeinteger | nullrequiredHTTP status answered (null: no answer)
errorstring | nullrequiredWhy it failed (null: it did not)
duration_msintegerrequiredTime to answer, in milliseconds
created_atstring (date-time)requiredWhen it was created (ISO 8601, UTC)
next_cursorstring | nullrequiredPass as `cursor` for the next page; null on the last page.
Example response
{
"data": [
{
"object": "webhook_delivery",
"id": "whd_01jc5zq4m8k3v6x9t2w7r0b1e4",
"event": "string",
"subject_id": "string",
"url": "string",
"status": "pending",
"attempts": 1,
"max_attempts": 1,
"last_status_code": 1,
"last_error": "string",
"next_attempt_at": "2026-01-01T00:00:00.000Z",
"delivered_at": "2026-01-01T00:00:00.000Z",
"attempt_log": [
{
"attempt": 1,
"at": "string",
"status_code": 1,
"error": "string",
"duration_ms": 1
}
],
"created_at": "2026-01-01T00:00:00.000Z"
}
],
"next_cursor": "string"
}Errors
Errors use the standard envelope. What this operation can answer:
| Status | Type | When |
|---|---|---|
400 | invalid_request_error | A parameter or body field is missing or not allowed; param names it. |
401 | authentication_error | The key or session is missing, revoked or expired. |
403 | permission_error | The credential lacks the permission this needs, or the organization is suspended. |
404 | not_found_error | No such resource in this project (an ID from another project is answered the same way). |
429 | rate_limit_error rate_limited | Too many requests; retry after retry-after seconds. |