agenttools
Webhooks

Get a webhook endpoint

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

Parameters

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

Responses

200The webhook endpoint.
idstring
Unique identifier for the webhook endpoint, prefixed with `wh_`.Example: "wh_xxxxxxxxxxxxxxxxxxxxxxxx"
object"webhook_endpoint"
organization_idstring | null
Owning organization ID, or null if the resource is public (created without an API key).
namestring
descriptionstring | null
urlstring
Public capture URL (…/api/catch/{id}) that records requests.
max_eventsinteger
Maximum number of events retained. Defaults to 100.
event_countinteger
Number of captured events. Present on single-resource reads.
created_atinteger | null
When the endpoint was created. Unix timestamp in seconds.
updated_atinteger | null
When the endpoint was last updated. 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}