Skip to main content
GET
/
v2
/
agents
/
{agent_key}
/
tasks
/
{task_id}
/
actions
/
{action_id}
Retrieve an action executed by an agent task.
curl --request GET \
  --url https://api.orq.ai/v2/agents/{agent_key}/tasks/{task_id}/actions/{action_id} \
  --header 'Authorization: Bearer <token>'
{
  "_id": "<string>",
  "agent_tool_call_id": "<string>",
  "tool": {
    "id": "<string>",
    "display_name": "<string>",
    "requires_approval": false
  },
  "created": "<string>",
  "updated": "<string>",
  "started": "<string>",
  "finished": "<string>",
  "agent_id": "<string>",
  "action_type": "<string>",
  "agent_execution_id": "<string>",
  "workspace_id": "<string>",
  "state": {
    "review": null,
    "review_source": "<string>",
    "reviewed_by_id": "<string>",
    "executed": false,
    "error": "<string>",
    "input": {},
    "output": {}
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

agent_key
string
required

The unique key of the agent

task_id
string
required

The unique id of the task

action_id
string
required

The unique id of the action

Response

200 - application/json

The action object

_id
string
required

Internal id for the action

agent_tool_call_id
string
required

The tool call id what the agent chooses to use and generates

tool
object
required
created
string
required
updated
string
required
agent_id
string
required
action_type
string
required
agent_execution_id
string
required
workspace_id
string
required
state
object
required

An action is a tool that an agent chooses to use. If executed is false, together with the output being there, it can indicate that a tool was mocked

started
string
finished
string