POST
/
runs
/
{run_id}
curl --request POST \
  --url http://localhost:8000/runs/{run_id} \
  --header 'Content-Type: application/json' \
  --data '{
  "run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "await_resume": {},
  "mode": "sync"
}'
{
  "agent_name": "chat",
  "session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "status": "created",
  "await_request": {},
  "output": [
    {
      "parts": [
        {
          "name": "<string>",
          "content_type": "text/plain",
          "content": "<string>",
          "content_encoding": "plain",
          "content_url": "<string>"
        }
      ],
      "created_at": "2023-11-07T05:31:56Z",
      "completed_at": "2023-11-07T05:31:56Z"
    }
  ],
  "error": {
    "code": "server_error",
    "message": "<string>"
  },
  "created_at": "2023-11-07T05:31:56Z",
  "finished_at": "2023-11-07T05:31:56Z"
}

Body

application/json
run_id
string
required

Identifier of a run

await_resume
object
required
mode
enum<string>
default:sync
required

Mode of the request

Available options:
sync,
async,
stream

Response

200
application/json
Run resumed
agent_name
string
required

A unique identifier for the agent following the RFC 1123 DNS-label naming convention.

Example:

"chat"

run_id
string
required

Identifier of a run

status
enum<string>
required

Status of the run

Available options:
created,
in-progress,
awaiting,
cancelling,
cancelled,
completed,
failed
output
object[]
required
created_at
string
required
session_id
string

Identifier of a session

await_request
object

Description of the awaited payload to resume the run, only available when status is awaiting

error
object
finished_at
string