> For the complete documentation index, see [llms.txt](https://apidocs.akinon.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apidocs.akinon.com/commerce-openapis/admin/webhooks/webhook-events/retrieve-a-webhook-event.md).

# Retrieve a webhook event

Returns a single webhook event with its webhook, request body and last response.

```json
{"openapi":"3.1.0","info":{"title":"Admin API","version":"1.0.0"},"tags":[{"name":"Webhook Events","description":"A log of webhook deliveries. Each record is one event sent to one webhook, with the request body, the target's last response and the time of every attempt. Records are written by the platform; this API does not create, edit or delete them, but an undelivered event can be sent again (see **Retrying an Event**).\n\nSuperusers see every event; any other account sees only events of its own webhooks (see **Visibility** under **Webhooks**).\n\n## Webhook Event Fields\n\n| Field | Type | Description |\n|-------|------|-------------|\n| `id` | integer | The unique identifier of the record. |\n| `uuid` | UUID | The event identifier, also sent as `event.uuid` in the request body (without hyphens). |\n| `webhook` | object | The webhook the event was sent to, with all its fields. |\n| `request_payload` | object | The JSON body that was sent. |\n| `response_http_status` | integer | The status of the last attempt. `500` when the target could not be reached. |\n| `response_content` | string | The body of the last response, or the error when the target could not be reached. |\n| `response_time` | duration string or `null` | How long the last attempt took, as `[DD ]HH:MM:SS.ffffff`. `null` for events recorded before this field existed. |\n| `delivered` | boolean | Whether an attempt received a `2xx` response. |\n| `request_datetimes` | array of date-time | When each attempt was made, newest first. |\n| `retry_count` | integer or `null` | The number of attempts made. |\n| `content_type` | integer or `null` | The content type of the object the event is about (for example the user). |\n| `object_id` | string or `null` | The identifier of that object. |\n| `created_date`, `modified_date` | date-time | When the event was recorded and last updated. |\n\n## Filtering & Ordering\n\n| Parameter | Match | Notes |\n|-----------|-------|-------|\n| `uuid` | Exact | One event. |\n| `event_type` | Exact, case-insensitive | The webhook's event type. |\n| `webhook` | Exact | The webhook's `id`. An id that does not exist is rejected with `400`. |\n| `delivered` | `true` or `false` | `false` lists failed deliveries. Any other value is ignored. |\n| `response_http_status` | Exact | For example `500`. |\n| `content_type` + `object_id` | Exact | Every event about one object: `content_type` is the object's content type id, `object_id` its identifier. |\n| `created_date`, `created_date__gt`, `created_date__gte`, `created_date__lt`, `created_date__lte` | Date-time | A time window. |\n\nFilters can be combined; an event must satisfy all of them. Use the `sort` parameter to order the results by any event field (for example `sort=-created_date`). Without `sort` the order is not guaranteed, so pass one when paging through results.\n\n## Retrying an Event\n\n`POST /whisperer/hook_events/{id}/retry/` sends the event's stored `request_payload` to its webhook's current `target_url` once, immediately, and records the attempt on the same event: `retry_count`, `request_datetimes`, `response_http_status`, `response_content`, `response_time` and `delivered` are updated. No further automatic retries are scheduled.\n\n| Event state | Result |\n|-------------|--------|\n| Already delivered | `406`, `event_100_3`. Nothing is sent. |\n| Undelivered, automatic retries still running (`retry_count` below `11`) | `406`, `event_100_6`. Nothing is sent, unless the body is `{\"force\": true}`. |\n| Undelivered, automatic retries finished, or `force` is `true` | The event is sent. `200` when the target answered `2xx`, otherwise `406`; both return the attempt's outcome. |\n\nRetrying requires the same model permission as other write operations; without it the request is refused with `403`."}],"servers":[{"description":"Omnitron Remote Proxy (external access — recommended)","url":"https://{omnitron_url}/api/v1/remote/{channel_id}","variables":{"omnitron_url":{"default":"sandbox.akinon.com","description":"Omnitron server URL (e.g., {omnitron.akinon.com})"},"channel_id":{"default":"1","description":"The channel identifier the remote request is routed through"}}},{"description":"Commerce API Server (internal / direct access only)","url":"https://{commerce_url}/api/v1","variables":{"commerce_url":{"default":"sandbox.akinon.com","description":"Internal commerce server URL, reachable only from within the Omnitron network"}}}],"security":[{"tokenAuth":[]}],"components":{"securitySchemes":{"tokenAuth":{"type":"apiKey","in":"header","name":"Authorization","description":"Token credential sent in the Authorization header, in the form: `Token <your-token>`. Requires a staff (admin) account."}},"parameters":{"webhookEventId":{"name":"id","in":"path","required":true,"description":"The unique identifier of the webhook event.","schema":{"type":"integer"}}},"schemas":{"WebhookEvent":{"type":"object","description":"One event sent to one webhook, with every delivery attempt.","properties":{"id":{"type":"integer","description":"The unique identifier of the record."},"webhook":{"$ref":"#/components/schemas/Webhook"},"created_date":{"type":"string","format":"date-time","description":"When the event was recorded."},"modified_date":{"type":"string","format":"date-time","description":"When the record was last updated."},"uuid":{"type":"string","format":"uuid","description":"The event identifier, sent as `event.uuid` (without hyphens) in the request body."},"request_payload":{"type":"object","additionalProperties":true,"description":"The JSON body that was sent."},"response_content":{"type":"string","description":"The body of the last response, or the error when the target could not be reached."},"response_http_status":{"type":"integer","description":"The HTTP status of the last attempt; `500` when the target could not be reached."},"response_time":{"type":["string","null"],"description":"How long the last attempt took, as `[DD ]HH:MM:SS.ffffff`; `null` for events recorded before this field existed."},"delivered":{"type":"boolean","description":"Whether an attempt received a `2xx` response."},"request_datetimes":{"type":"array","description":"When each attempt was made, newest first.","items":{"type":"string","format":"date-time"}},"retry_count":{"type":["integer","null"],"description":"The number of attempts made."},"object_id":{"type":["string","null"],"description":"The identifier of the object the event is about."},"content_type":{"type":["integer","null"],"description":"The content type id of the object the event is about."}}},"Webhook":{"type":"object","description":"A webhook subscription.","properties":{"id":{"type":"integer","description":"The unique identifier of the webhook."},"retry_countdown_config":{"$ref":"#/components/schemas/WebhookRetryCountdownConfig"},"created_date":{"type":"string","format":"date-time","description":"When the webhook was registered."},"modified_date":{"type":"string","format":"date-time","description":"When the webhook was last modified."},"target_url":{"type":"string","maxLength":255,"description":"The URL events are posted to."},"is_active":{"type":"boolean","description":"Whether the webhook receives events."},"secret_key":{"type":["string","null"],"maxLength":124,"description":"The key requests are signed with, returned as stored; `null` when requests are not signed."},"event_type":{"type":"string","maxLength":124,"description":"The event type the webhook subscribes to."},"callback":{"type":["string","null"],"maxLength":64,"description":"Reserved for platform integrations; normally `null`."},"additional_headers":{"type":"object","additionalProperties":{"type":"string"},"description":"Extra HTTP headers sent with every request."},"config":{"type":"object","additionalProperties":true,"description":"Delivery options, such as `auth` for HTTP basic authentication."}}},"WebhookRetryCountdownConfig":{"type":"object","description":"The wait between retries of a failed delivery. `kwargs` depends on `choice`; see **Retry Countdown** in the **Webhooks** section.","required":["choice","kwargs"],"properties":{"choice":{"type":"string","enum":["fixed","linear","exponential","random"],"description":"The retry strategy."},"kwargs":{"type":"object","additionalProperties":true,"description":"The strategy's parameters."}}},"Error":{"type":"object","description":"An error response.","properties":{"detail":{"type":"string","description":"A human-readable description of the error."}},"additionalProperties":true}},"responses":{"Unauthorized":{"description":"Authentication credentials were not provided or are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"The authenticated user does not have administrator privileges.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"WebhookEventNotFound":{"description":"The requested webhook event does not exist or is not visible to the requesting account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/whisperer/hook_events/{id}/":{"get":{"tags":["Webhook Events"],"operationId":"retrieveWebhookEvent","summary":"Retrieve a webhook event","description":"Returns a single webhook event with its webhook, request body and last response.","parameters":[{"$ref":"#/components/parameters/webhookEventId"}],"responses":{"200":{"description":"The webhook event.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/WebhookEventNotFound"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://apidocs.akinon.com/commerce-openapis/admin/webhooks/webhook-events/retrieve-a-webhook-event.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
