Skip to main content
POST
/
api
/
v1
/
analytics
/
tool-calls
Create Tool Call
curl --request POST \
  --url https://control-plane.kubiya.ai/api/v1/analytics/tool-calls \
  --header 'Content-Type: application/json' \
  --data '{
  "execution_id": "<string>",
  "turn_id": "<string>",
  "tool_name": "<string>",
  "tool_use_id": "<string>",
  "started_at": "<string>",
  "completed_at": "<string>",
  "duration_ms": 123,
  "tool_input": {},
  "tool_output": "<string>",
  "tool_output_size": 123,
  "success": true,
  "error_message": "<string>",
  "error_type": "<string>",
  "metadata": {}
}'
"<any>"

Body

application/json

Schema for creating a tool call record

execution_id
string
required
tool_name
string
required
started_at
string
required
turn_id
string | null
tool_use_id
string | null
completed_at
string | null
duration_ms
integer | null
tool_input
object | null
tool_output
string | null
tool_output_size
integer | null
success
boolean
default:true
error_message
string | null
error_type
string | null
metadata
object

Response

Successful Response

The response is of type any.