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 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "execution_id": "<string>",
  "tool_name": "<string>",
  "started_at": "<string>",
  "turn_id": "<string>",
  "tool_use_id": "<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": {}
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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
Tool Input · object
tool_output
string | null
tool_output_size
integer | null
success
boolean
default:true
error_message
string | null
error_type
string | null
metadata
Metadata · object

Response

Successful Response