Skip to content
Hayonix

API reference · Serverless

Completion webhook deliveries with their attempt log, newest first

GET/v1/serverless/endpoints/{endpoint_id}/webhook-deliveries
API keyserverless_endpoint:readProjectPaginated
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

Headers
HeaderRequiredDescription
AuthorizationyesBearer and your API key. The key implies its project.
X-Project-Idsession onlyThe project to act in, for console sessions. Requests with an API key leave it out.

Path parameters

  • endpoint_idstringrequired

    ID of the endpoint

    ID with prefix sep_

Query parameters

  • limitinteger

    1–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.

    Show 14 fields of data
    • objectstringrequired

      Always `webhook_delivery`: the type of this object

      One ofwebhook_delivery

    • idstringrequired

      Unique ID (`whd_…`)

      ID with prefix whd_

    • eventstringrequired

      What happened, for example `job.completed`

    • subject_idstringrequired

      ID of the subject

    • urlstringrequired

      The endpoint’s webhook URL the delivery is sent to

    • statusstringrequired

      `pending` (not delivered yet; retried), `delivered` (a 2xx answer), `failed` (every attempt failed)

      One ofpendingdeliveredfailed

    • attemptsintegerrequired

      Attempts made so far

    • max_attemptsintegerrequired

      Attempts made before giving up

    • last_status_codeinteger | nullrequired

      HTTP status of the last attempt (null: no answer)

    • last_errorstring | nullrequired

      Why the last attempt failed (null: it did not)

    • next_attempt_atstring (date-time) | nullrequired

      Time next attempt (ISO 8601, UTC)

    • delivered_atstring (date-time) | nullrequired

      Time delivered (ISO 8601, UTC)

    • attempt_logarray of objectrequired

      Every attempt, oldest first

      Show 5 fields of attempt_log
      • attemptintegerrequired

        Attempt number, from 1

      • atstringrequired

        When it was made (ISO 8601, UTC)

      • status_codeinteger | nullrequired

        HTTP status answered (null: no answer)

      • errorstring | nullrequired

        Why it failed (null: it did not)

      • duration_msintegerrequired

        Time to answer, in milliseconds

    • created_atstring (date-time)required

      When it was created (ISO 8601, UTC)

  • next_cursorstring | nullrequired

    Pass as `cursor` for the next page; null on the last page.

Example response
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:

Errors
StatusTypeWhen
400invalid_request_errorA parameter or body field is missing or not allowed; param names it.
401authentication_errorThe key or session is missing, revoked or expired.
403permission_errorThe credential lacks the permission this needs, or the organization is suspended.
404not_found_errorNo such resource in this project (an ID from another project is answered the same way).
429rate_limit_error rate_limitedToo many requests; retry after retry-after seconds.