Skip to main content
POST
/
api
/
v1
/
teams
/
{team_id}
/
execute
/
stream
Execute Team Stream
curl --request POST \
  --url https://control-plane.kubiya.ai/api/v1/teams/{team_id}/execute/stream \
  --header 'Authorization: <api-key>' \
  --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>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Path Parameters

team_id
string
required

Body

application/json
prompt
string
required

The prompt/task to execute

worker_queue_id
string
required

Worker queue ID (UUID) to route execution to - REQUIRED

system_prompt
string | null

Optional system prompt for team coordination

stream
boolean
default:false

Whether to stream the response

user_metadata
User Metadata · object

User attribution metadata (optional, auto-filled from token)

Response

Successful Response