GET
/
agents
/
{agent_id}
{
  "agent_id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "session_id": "<string>",
  "status": "active",
  "closed_at": "2023-11-07T05:31:56Z",
  "saved": false,
  "task": "<string>",
  "url": "<string>",
  "success": true,
  "answer": "<string>",
  "steps": [
    {}
  ]
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

agent_id
string
required

Query Parameters

period
string | null

The montly period to get usage for, i.e May 2025

Response

200
application/json

Successful Response

This class is used to handle the legacy agent status response. The rationale is that we are likely to change the AgentStepResponse in the future and we want to be able to handle the legacy response. This is a temporary solution to avoid breaking changes.