Skip to content
Docs

Deliveries

List deliveries

GET /v1/webhook/deliveries shows each message's status, attempts, and last error.

Overview

GET/v1/webhook/deliveries

Every message Gray3 tries to send is a delivery. This route lists them, newest first, so you can see what was sent, what failed, and why.

Query parameters

FieldRequiredDescription
pageNoPage number, starting at 1. Default 1.
limitNoItems per page, up to 100. Default 25.
statusNopending, delivered, failed, or dead.

Request

Request
curl -sS "https://webhooks.gray3.io/v1/webhook/deliveries?status=failed" \
  -H "X-Gray-Project-Id: proj_your_project_id" \
  -H "Authorization: Bearer gray_whk_your_webhook_key"

Response

HTTP 200 — success envelope wraps the payload in data.

json
{
  "data": {
    "items": [
      {
        "id": "whdlv_Zp41…",
        "eventId": "base:0x6f1e…c2a9:41:token_transfer:whsub_7Qm2…",
        "chainId": "base",
        "category": "token_transfer",
        "stage": "confirmed",
        "address": "0x8ba1f109551bD432803012645Ac136ddd64DBA72",
        "label": "user_1842",
        "status": "failed",
        "attempts": 2,
        "responseCode": 503,
        "lastError": "endpoint responded 503",
        "nextAttemptAt": "2026-10-16T09:36:14.000Z",
        "createdAt": "2026-10-16T09:31:12.081Z"
      }
    ],
    "total": 1,
    "page": 1,
    "limit": 25
  }
}
FieldRequiredDescription
statusYespending (waiting for the first try), delivered (got a 2xx), failed (will retry), or dead (gave up).
stageYesseen for the unconfirmed message, confirmed for the confirmed one.
attemptsYesHow many times Gray3 has tried to send it.
responseCodeNoHTTP status from your server on the last try.
lastErrorNoWhy the last try failed, such as a timeout or a non-2xx status.
nextAttemptAtNoWhen the next retry is due. Only on pending and failed deliveries.
deliveredAtNoWhen your server accepted it.

Errors

Errors use HTTP { "error": { "code", "message", "retryable" } }. Branch on code, not the message text.

CodeHTTPWhen
invalid_argument400status is not one of the four values
json
{
  "error": {
    "code": "invalid_argument",
    "message": "Human-readable detail (may be sanitized).",
    "retryable": false
  }
}