Logo

Initiate a task run by sending a context message

POST
/tasks/{task}/runs
/tasks/{task}/runs

Request Body

application/jsonRequired

Payload to create a task run

context
Required
object

The array of content representing the task context to be sent.

Path Parameters

task
Required
integer

The task's unique identifier.

Header Parameters

x-llm-key
Required
string

The API key for the LLM provider (e.g., OpenAI).

curl -X POST "https://example.com/tasks/0/runs" \
  -H "x-llm-key: {{your_llm_provider_key}}" \
  -H "Content-Type: application/json" \
  -d '{
    "context": {}
  }'

Task run created successfully

{
  "run_id": 0
}