Developers

Replay the webhook event history.

List events#

GET/v1/events

Required scope events:read

Newest first, cursor-paginated. Filter with type and since.

Each row is exactly what a webhook delivery carries, so a replay and a live delivery can be handled by the same code. Events are the record of what happened, not of what was delivered: an event appears here whether or not any endpoint received it, and appears once no matter how many endpoints it went to.

Query parameters

  • typestringoptional

    Only this event type, e.g. payment.sent

  • sincestringoptional

    Only events at or after this RFC 3339 UTC timestamp

    Example 2026-09-22T09:00:00Z
  • cursorstringoptional

    next_cursor from the previous page

  • limitintegeroptional

    Page size, max 100

Responses

200A page of events, newest first

application/json

Schema List

  • dataarray of map of object
  • next_cursorstring

    Pass back as ?cursor= to fetch the next page; null at the end of the list

  • has_moreboolean
400Unknown event type, malformed since, or a cursor ekash did not issue

application/json

Schema Error

  • 5 child attributes
    • typestring

      Coarse error family

      One of authentication permission invalid_request validation not_found conflict rate_limited server
    • codestring

      Stable machine-readable code — branch on this, not on the message

      Example validation_failed
    • messagestring

      Human-readable explanation, safe to log

      Example Please correct the highlighted fields.
    • fieldsmap of string

      Per-field errors, present for validation failures

    • request_idstring

      Echo of the X-Request-Id header — quote it in a support request

Example · 400
{
  "error": {
    "type": "invalid_request",
    "code": "unknown_event_type",
    "message": "Unknown event type, malformed since, or a cursor ekash did not issue.",
    "request_id": "6f0c1e1a-2b7d-4c55-9f0e-3a1d2c4b5e6f"
  }
}
Request
curl 'https://stage.ekash.ai/dev/v1/events?type=payment.sent&since=2026-09-22T09:00:00Z&limit=50' \
  -H "Authorization: Bearer $EKASH_API_KEY"
Response · 200
{
  "data": [
    {
      "id": "evt_9f1c7b2e4a6d4f0b8c3e5a7d9f1b3c5e",
      "type": "payment.sent",
      "created_at": "2026-09-22T09:30:00Z",
      "data": {
        "id": "48210",
        "status": "sent"
      }
    }
  ],
  "next_cursor": "MTc1ODUzMzQwMDpldnRf…",
  "has_more": true
}