Skip to main content
POST
Test Webhook Tool
This sends a real request to your endpoint and can have side effects, such as creating a record. Test against an endpoint where that is safe.
The tool’s stored method, URL, headers (including credentials), body template and request signing are applied to the arguments you send, and the endpoint’s response comes back in the result. {{name}} placeholders in the URL are filled in from arguments too, as they are during a call, with each value URL-encoded. A placeholder with no value becomes empty. The request body is optional. Leaving it out is the same as sending {}. A failure to reach your endpoint is not an HTTP error: the call returns 200 and error says what went wrong. The call returns 400 for a client tool, which has no server-side request, for a URL or host that isn’t allowed, and for a header that doesn’t render to a valid value. Each team can make 30 calls per minute to this endpoint. The 31st call within the same minute returns 429, and the count starts again in the next minute. For how webhook tools are built and tested in the console, see Webhook Tools.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

tool_id
string
required

Body

application/json
arguments
object

Values for the tool's arguments, as the agent would supply them during a call. Omit for none.

Response

Request fulfilled, document follows

Result of one real request to a webhook tool's endpoint. A failure to reach your endpoint is reported in error, not as an HTTP error.

latency_ms
integer
required

Time from sending the request to the response, in milliseconds.

status_code
integer | null

HTTP status your endpoint returned; null when it was never reached.

status_text
string
default:""

Reason phrase that came with the status, if any.

response_body
string
default:""

Response body as text, cut to a size limit (see response_truncated).

response_headers
Response Headers · object

Response headers from your endpoint.

response_truncated
boolean
default:false

True when response_body was cut because the response was larger than the limit.

error
string | null

Short reason when the request could not be completed; null when your endpoint answered.