Skip to main content

Overview

GET /v2/wallet/deliveries returns a paginated list of callback delivery records for your wallet address. Use it to monitor delivery health, investigate failures, and audit which cases triggered callbacks. Base URL: https://api.docketlayer.ai Price: $0.99 per call

Request

Parameters

FieldTypeRequiredDescription
limitnumberNoRecords to return. Min: 1, max: 200. Default: 50.
cursorstringNoPagination cursor from next_cursor in a prior response.
statusstringNoFilter by delivery status: succeeded, failed, or retrying.
sincestringNoISO-8601 timestamp — return only deliveries with last_attempt_at after this time.

Example request

curl "https://api.docketlayer.ai/v2/wallet/deliveries?limit=25&status=failed"
# x402 payment required — use your x402 client library

Response

{
  "meta": {
    "request_id": "req_01jt7y4kx0",
    "queried_at": "2026-04-29T12:00:00Z",
    "query_cost_usd": 0.99,
    "sandbox": false
  },
  "wallet": "YourSolanaPublicKey...",
  "deliveries": [
    {
      "delivery_id": "del_abc123",
      "case_id": "1:24-cv-01234",
      "court_code": "nysd",
      "callback_url": "https://yourapp.com/webhooks/docketlayer",
      "status": "succeeded",
      "attempts": 1,
      "first_attempt_at": "2026-04-29T10:00:00Z",
      "last_attempt_at": "2026-04-29T10:00:03Z",
      "last_response_code": 200,
      "idempotency_key": "idem_xyz789"
    }
  ],
  "next_cursor": null
}

Delivery object fields

FieldTypeDescription
delivery_idstringUnique delivery identifier
case_idstring | nullCase that triggered this delivery
court_codestring | nullCourt of the triggering case
callback_urlstringThe URL DocketLayer posted to
statusstringsucceeded, failed, or retrying
attemptsnumberTotal delivery attempts made
first_attempt_atstringISO-8601 timestamp of first attempt
last_attempt_atstringISO-8601 timestamp of most recent attempt
last_response_codenumber | nullHTTP status code from your endpoint’s last response
idempotency_keystringStable key for deduplication — present on all retry attempts

Delivery status values

StatusMeaning
retryingDelivery has failed at least once and will be retried
succeededYour endpoint returned 2xx
failedMaximum retry attempts exhausted without a 2xx response

Retry schedule

DocketLayer retries failed deliveries up to 7 times with exponential backoff:
AttemptDelay after previous
23 minutes
39 minutes
427 minutes
5~1.4 hours
6~4 hours
7~12 hours
After 7 attempts with no 2xx response, the delivery moves to failed and no further attempts are made.

Pagination

When there are more results than limit, the response includes next_cursor. Pass it as cursor in your next request to retrieve the next page.
cursor = None
while True:
    params = {"limit": 50}
    if cursor:
        params["cursor"] = cursor

    page = client.get(
        "https://api.docketlayer.ai/v2/wallet/deliveries",
        params=params
    ).json()

    process(page["deliveries"])

    cursor = page.get("next_cursor")
    if not cursor:
        break