Skip to main content
POST
/
threads
/
{thread_id}
/
commands
Post Thread Command
curl --request POST \
  --url https://api.example.com/threads/{thread_id}/commands \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": 123,
  "method": "<string>",
  "params": {}
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "input": "<unknown>",
      "ctx": {}
    }
  ]
}

Path Parameters

thread_id
string
required

Body

application/json

Body for POST /threads/{thread_id}/commands (JSON-RPC style).

id
integer
required

Client-assigned command id, echoed in the response.

method
string
required

Command method, e.g. run.start or input.respond.

params
Params · object

Method parameters.

Response

Protocol response envelope (success or error)