Webhooks
List captured events for an endpoint
No auth requiredGET
/api/webhooks/{id}/eventsParameters
Path
idstringrequiredThe webhook endpoint ID (`wh_…`).Query
limitintegerNumber of results to return (1–100).afterstringCursor for pagination — the ID of the last item from the previous page.Responses
200A list of captured events.
object"list"dataWebhookEvent[]idstringUnique identifier for the webhook event, prefixed with `whe_`.Example: "whe_xxxxxxxxxxxxxxxxxxxxxxxx"object"webhook_event"endpoint_idstringID of the capturing endpoint (wh_…).organization_idstring | nullOwning organization ID, or null if the resource is public (created without an API key).methodstringHTTP method of the captured request.pathstringheadersobjectRequest headers as captured. `host`, `authorization`, `cookie`, `set-cookie`, and `x-forwarded-proto` are stripped before storage.bodystring | nullRaw request body.parsed_bodyobjectParsed body when the payload was JSON, otherwise null.query_paramsobjectsource_ipstring | nullsize_bytesinteger | nullreceived_atinteger | nullWhen the request was captured. Unix timestamp in seconds.has_morebooleannext_cursorstring | nullID to pass as ?after= for the next page, or null.total_countinteger401No valid API key was provided.
errorobjecttype"invalid_request_error" | "authentication_error" | "authorization_error" | "not_found_error" | "rate_limit_error" | "api_error"codestringMachine-readable error code.messagestringHuman-readable error message.paramstring | nullThe offending parameter, when applicable.403The caller is authenticated but lacks access to the resource.
errorobjecttype"invalid_request_error" | "authentication_error" | "authorization_error" | "not_found_error" | "rate_limit_error" | "api_error"codestringMachine-readable error code.messagestringHuman-readable error message.paramstring | nullThe offending parameter, when applicable.404The resource does not exist or is not visible to the caller.
errorobjecttype"invalid_request_error" | "authentication_error" | "authorization_error" | "not_found_error" | "rate_limit_error" | "api_error"codestringMachine-readable error code.messagestringHuman-readable error message.paramstring | nullThe offending parameter, when applicable.Example request
curl
curl https://agtls.dev/api/webhooks/{id}/events