Skip to main content
POST
/
v1
/
execute
Execute Tool
curl --request POST \
  --url https://api.example.com/v1/execute \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "arguments": {},
  "sessionId": "<string>"
}
'
{
  "result": {},
  "status": "<string>"
}

Request Body

name
string
required
The name of the tool to execute (e.g. search_products).
arguments
object
required
The arguments for the tool, matching its Zod schema.
sessionId
string
The current conversation session ID.

Response

result
object
The data returned by the backend.
status
string
The status of the execution (success or error).

Example

curl -X POST https://api.betterdata.io/v1/execute \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "search_products",
    "arguments": { "query": "blue running shoes" },
    "sessionId": "session_123"
  }'