Webhooks overview
Inspect webhook events, delivery history, and retries.
Use the Webhooks API to inspect event history and delivery attempts, retrieve individual events, and resend supported events.
How it works
Gravv sends each event to the webhook endpoints you registered in the Dashboard for the key's environment (up to 2, each with the events it takes). Gravv stores every delivery as a record, and these routes let you see and recover them:
event_type filter takes the category, such as transfer. A full type such as transfer.status.completed returns an empty list. An unknown status also returns an empty list.payload, attempts, delivery_attempts, max_retries and your endpoint's last response. Its call history lists each attempt. Both include successful deliveries and attempts that failed before they were sent. Neither returns the request headers Gravv sent.payload and processing it, or by resending the event to the endpoint it was queued for. A resend is signed like an automatic delivery, with X-Signature. The call returns HTTP 200 with your endpoint's status code. If the resend fails, Gravv retries the event again and signs those retries.Three ids appear in these routes:
items[].id in history is the record id, the {id} of the other routes.event_id on the record is the event's event_group_id, the same value as the X-Event-ID header.payload.event_id is the id your endpoint received. Deduplicate on that one.These routes return errors as HTTP 400 with {"data":null,"error":"<message>"}, including for an unknown id. A missing or wrong API key still gets 401. A scoped key without webhook:create gets 403 on the resend. Too many requests get 429.
For the event types and their fields, see the event catalogue. For signatures, retries and deduplication, see Set up webhooks.
Endpoints
| Endpoint | Description |
|---|---|
GET /v1/webhooks/history | List webhook event history, paginated, with category, status, date and transaction filters |
GET /v1/webhooks/event/{id} | Get one record with the stored event, its attempts and your endpoint's last response |
GET /v1/webhooks/calls/{id} | List each delivery attempt for a record |
POST /v1/webhooks/event/send/{id} | Trigger an immediate, signed manual redelivery (requires the webhook:create permission) |
Authentication
All requests use https://api.gravv.xyz/v1/ and authenticate with the Api-Key header. See Authentication for details.