curl --silent --show-error --fail-with-body --request POST \
--url 'https://response.stateset.com/api/v1/functions/{id}/test' \
--header "Authorization: Bearer $RESPONSECX_API_KEY"
{
"object": "function.test_result",
"function_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"endpoint": "https://example.com/webhooks/stateset",
"method": "string",
"probe_method": "string",
"ok": true,
"verdict": "working",
"status": 1,
"hint": "string",
"note": "Two-person tent, green — replacement for damaged pole set.",
"duration_ms": 8,
"response_preview": "string"
}
Probe a tool's endpoint and report whether it works
A broken tool fails silently during a conversation. Non-safe methods are probed with OPTIONS so the probe cannot cause a side effect.
POST
/
api
/
v1
/
functions
/
{id}
/
test
curl --silent --show-error --fail-with-body --request POST \
--url 'https://response.stateset.com/api/v1/functions/{id}/test' \
--header "Authorization: Bearer $RESPONSECX_API_KEY"
{
"object": "function.test_result",
"function_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"endpoint": "https://example.com/webhooks/stateset",
"method": "string",
"probe_method": "string",
"ok": true,
"verdict": "working",
"status": 1,
"hint": "string",
"note": "Two-person tent, green — replacement for damaged pole set.",
"duration_ms": 8,
"response_preview": "string"
}
A broken tool fails silently during a conversation. Non-safe methods are probed with OPTIONS so the probe cannot cause a side effect.
Path parameters
Request body
No request body.Response
object
Allowed values:
'working', 'redirects', 'auth_failed', 'not_found', 'method_not_allowed', 'rate_limited', 'server_error', 'unexpected_status', 'timed_out', 'unreachable'.Present only when
probe_method differs from method: explains that reachability and auth were checked but the operation itself was not.The first 2000 characters of the response body. Absent when the endpoint timed out or was unreachable; null when the body was empty or unreadable. Maximum length:
2000.Status codes
| Code | Meaning |
|---|---|
200 | The probe result. Non-safe methods (anything but GET/HEAD/OPTIONS) are probed with OPTIONS so the probe never causes a side effect; redirects are reported, not followed. |
401 | Missing, invalid, or expired API key. |
403 | The key lacks a required scope. |
404 | Not found, or not in the organization that owns the key. |
429 | Rate limit exceeded. |
Access
| Required scope | agents:read |
| Rate limit | 10 requests per minute |
Using this contract
Read the source OpenAPI document for declared schemas and alternatives. This page also includes documented corrections from the spec overlays. Example IDs and values are illustrative; replace them with records from your workspace.curl --silent --show-error --fail-with-body --request POST \
--url 'https://response.stateset.com/api/v1/functions/{id}/test' \
--header "Authorization: Bearer $RESPONSECX_API_KEY"
{
"object": "function.test_result",
"function_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"endpoint": "https://example.com/webhooks/stateset",
"method": "string",
"probe_method": "string",
"ok": true,
"verdict": "working",
"status": 1,
"hint": "string",
"note": "Two-person tent, green — replacement for damaged pole set.",
"duration_ms": 8,
"response_preview": "string"
}
Last modified on September 21, 2026