curl --location -g --request POST 'https://localhost/api/v1/threads//run?workspace_uuid={{workspace_uuid}}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"provider": "openai",
"model": "gpt-4.1-mini",
"agent_uuid": "{{agent_uuid}}"
}'{
"id": "chatcmpl-123abc",
"content": "Hello! How can I help you today?",
"metadata": {
"tool_calls": [
{
"id": "call_abc123",
"type": "function",
"function": {
"name": "search_web",
"arguments": "{\"query\": \"weather in Paris\"}"
}
}
]
}
}