agenttools
Webhooks

Get a captured event

No auth required
GET/api/webhooks/{id}/events/{eventId}

Parameters

Path
idstringrequired
The webhook endpoint ID (`wh_…`).
eventIdstringrequired
The webhook event ID (`wev_…`).

Responses

200The webhook event.
idstring
Unique identifier for the webhook event, prefixed with `whe_`.Example: "whe_xxxxxxxxxxxxxxxxxxxxxxxx"
object"webhook_event"
endpoint_idstring
ID of the capturing endpoint (wh_…).
organization_idstring | null
Owning organization ID, or null if the resource is public (created without an API key).
methodstring
HTTP method of the captured request.
pathstring
headersobject
Request headers as captured. `host`, `authorization`, `cookie`, `set-cookie`, and `x-forwarded-proto` are stripped before storage.
bodystring | null
Raw request body.
parsed_bodyobject
Parsed body when the payload was JSON, otherwise null.
query_paramsobject
source_ipstring | null
size_bytesinteger | null
received_atinteger | null
When the request was captured. Unix timestamp in seconds.
401No valid API key was provided.
errorobject
type"invalid_request_error" | "authentication_error" | "authorization_error" | "not_found_error" | "rate_limit_error" | "api_error"
codestring
Machine-readable error code.
messagestring
Human-readable error message.
paramstring | null
The offending parameter, when applicable.
403The caller is authenticated but lacks access to the resource.
errorobject
type"invalid_request_error" | "authentication_error" | "authorization_error" | "not_found_error" | "rate_limit_error" | "api_error"
codestring
Machine-readable error code.
messagestring
Human-readable error message.
paramstring | null
The offending parameter, when applicable.
404The resource does not exist or is not visible to the caller.
errorobject
type"invalid_request_error" | "authentication_error" | "authorization_error" | "not_found_error" | "rate_limit_error" | "api_error"
codestring
Machine-readable error code.
messagestring
Human-readable error message.
paramstring | null
The offending parameter, when applicable.

Example request

curl
curl https://agtls.dev/api/webhooks/{id}/events/{eventId}