GET
/v1/convai/tools/{tool_id}/executions
ElevenLabs APIGet Tool Executions
- Base URL
- https://api.elevenlabs.io
- Auth
- xi-api-key: <ELEVENLABS_API_KEY>
- Last verified
- 2026-09-03 · upstream hash matched
Actions
Agents: curl -H "Accept: text/markdown" this URL
→ 203 tokens · Vary: Accept
→ 203 tokens · Vary: Accept
Critical gotchas
Authentication uses the non-standard xi-api-key header, not Authorization: Bearer. Sending a Bearer token returns HTTP 401.
Text-to-speech responses are raw binary audio, not JSON. Write the body to a file (--output speech.mp3) rather than parsing it.
cURL
curl -X GET 'https://api.elevenlabs.io/v1/convai/tools/tool-id/executions?cursor=example-cursor&page_size=30&is_error=true&agent_id=agent-id&branch_id=branch-id&start_time=10&end_time=10' \ -H "xi-api-key: $ELEVENLABS_API_KEY"Get a free ElevenLabs API key → sponsored
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| tool_id | path | string | Yes | ID of the requested tool. |
| cursor | query | string | No | Used for fetching next page. Cursor is returned in the response. |
| page_size | query | integer | No | How many documents to return at maximum. Can not exceed 100, defaults to 30. |
| is_error | query | boolean | No | Filter by error status. If not provided, returns all executions. |
| agent_id | query | string | No | Filter by agent ID. |
| branch_id | query | string | No | Filter by agent branch ID. |
| start_time | query | number | No | Filter executions from this Unix timestamp (inclusive). |
| end_time | query | number | No | Filter executions until this Unix timestamp (inclusive). |
Response 200 OK
{
"executions": [
{
"tool_id": "string",
"tool_request_id": "string",
"conversation_id": "string",
"agent_id": "string",
"branch_id": "string",
"timestamp": 0,
"latency_secs": 0,
"is_error": false,
"request_payload": "string",
"response_payload": "string",
"error_message": "string",
"error_type": "string",
"id": "string",
"tool_call_details": {
"type": "webhook",
"method": "string",
"url": "string",
"headers": {},
"path_params": {},
"query_params": {},
"body": "string"
}
}
],
"next_cursor": "string",
"has_more": true
}