Agents
Get a turn
Returns the turn’s status, any pending input request, its outcome, and its token usage.
GET
Get a turn
Authorizations
Path Parameters
Response
The turn.
The turn's state:
queued: waiting behind the session's active turn.running: the agent is working.waiting: the agent needs input from a person, whichinput_requestdescribes.completed,failed, orcancelled: the turn has ended, and its status doesn't change again.
Available options:
queued, running, waiting, completed, failed, cancelled Why the turn failed, or null if it didn't fail. The code is one of the following:
agent_error: the agent stopped unexpectedly.app_deleted: the App was deleted.input_expired: no one answered the input request in time.interrupted: the turn was interrupted repeatedly without progress.turn_budget_exceeded: the turn ran out of time.user_deleted: the user the turn acts for deleted their account.