Submit tool execution
curl --request POST \
--url https://api.agents.slng.ai/v1/agents/{agent_id}/calls/{call_id}/tool-executions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tool_name": "<string>",
"started_at": "2026-01-15T10:30:00Z",
"finished_at": "2026-01-15T10:30:00Z",
"duration_ms": 1,
"tool_id": "<string>",
"trigger_event": "<string>",
"source_tool_id": "<string>",
"http_status": 549,
"error_code": "<string>",
"error_type": "<string>",
"wait_for_response": true,
"show_results_to_llm": true,
"target_url": "<string>",
"arguments_preview": null,
"result_preview": null,
"error_message": "<string>",
"stack_trace": "<string>"
}
'{
"detail": "Authentication is required for this endpoint."
}Submit tool execution
Append a tool execution record to a call.
This endpoint is primarily used by SLNG-managed agent runtimes to report contextual and system tool activity back to the Agents API.
POST
/
v1
/
agents
/
{agent_id}
/
calls
/
{call_id}
/
tool-executions
Submit tool execution
curl --request POST \
--url https://api.agents.slng.ai/v1/agents/{agent_id}/calls/{call_id}/tool-executions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tool_name": "<string>",
"started_at": "2026-01-15T10:30:00Z",
"finished_at": "2026-01-15T10:30:00Z",
"duration_ms": 1,
"tool_id": "<string>",
"trigger_event": "<string>",
"source_tool_id": "<string>",
"http_status": 549,
"error_code": "<string>",
"error_type": "<string>",
"wait_for_response": true,
"show_results_to_llm": true,
"target_url": "<string>",
"arguments_preview": null,
"result_preview": null,
"error_message": "<string>",
"stack_trace": "<string>"
}
'{
"detail": "Authentication is required for this endpoint."
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Voice agent ID.
Example:
"550e8400-e29b-41d4-a716-446655440000"
Call ID.
Example:
"550e8400-e29b-41d4-a716-446655440000"
Body
application/json
Required string length:
1 - 255Available options:
webhook, template, human_transfer, built_in Available options:
system, contextual Example:
"2026-01-15T10:30:00Z"
Example:
"2026-01-15T10:30:00Z"
Required range:
x >= 0Available options:
succeeded, failed, timed_out, skipped, cancelled Maximum string length:
255Required string length:
1 - 64Maximum string length:
255Required range:
100 <= x <= 999Maximum string length:
128Maximum string length:
200Sanitized target URL without query string or fragment details.
Maximum string length:
1024Maximum string length:
5000Maximum string length:
20000Response
Tool execution recorded.
Was this page helpful?
⌘I