Public A P I

Get Agent Run

GET
/v2/agents/{agent_id}/runs/{run_id}

Retrieve a run's current state. Poll this endpoint after creating a run: the run is finished once status is completed, failed, or cancelled.

Authorization

BearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

agent_id*Agent Id

Web Search Agent ID, format wsa_<uuid>.

Formatuuid
run_id*Run Id

Run ID, format task_run_<uuid>.

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/v2/agents/497f6eca-6276-4993-bfeb-53cbbbba6f08/runs/string"
{  "completed_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "effort": "low",  "error": {    "message": "string",    "ref_id": "string"  },  "id": "string",  "interaction_id": "string",  "is_active": true,  "prompt": "string",  "started_at": "2019-08-24T14:15:22Z",  "status": "queued",  "web_search_agent_id": "string"}