curl --request POST \
--url https://control-plane.kubiya.ai/api/v1/teams/{team_id}/execute/stream \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "<string>",
"worker_queue_id": "<string>",
"system_prompt": "<string>",
"stream": false,
"user_metadata": {}
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Execute a team task with streaming response.
The team leader coordinates and delegates the task to appropriate team members. Results are streamed back in real-time.
curl --request POST \
--url https://control-plane.kubiya.ai/api/v1/teams/{team_id}/execute/stream \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "<string>",
"worker_queue_id": "<string>",
"system_prompt": "<string>",
"stream": false,
"user_metadata": {}
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Enter your Kubiya API token (format: Bearer
The prompt/task to execute
Worker queue ID (UUID) to route execution to - REQUIRED
Optional system prompt for team coordination
Whether to stream the response
User attribution metadata (optional, auto-filled from token)
Successful Response
Was this page helpful?