Get an action

GET/v2/agents/{agentId}/actions/{actionId}

Fetch one action of an agent by its ID to read its type, description, enabled state and configuration.

Working draft. These docs are illustrative: names, endpoints and examples describe the intended behaviour and can change before launch.

Returns a single action of an agent with its full configuration. Call it to inspect a custom action before you change it, or to check whether an action is enabled.

Request

GET /v2/agents/{agentId}/actions/{actionId}

Path parameters:

Name Type Required Description
agentId string Yes The ID of the agent, starting with agt_.
actionId string Yes The ID of the action, starting with act_.

The call has no query parameters and no body. Find action IDs with List actions.

Example request

curl https://api.askocto.co/v2/agents/agt_8f3k2m/actions/act_4d7q1c \
  -H "Authorization: Bearer $OCTO_API_KEY"
const response = await fetch(
  "https://api.askocto.co/v2/agents/agt_8f3k2m/actions/act_4d7q1c",
  { headers: { Authorization: `Bearer ${process.env.OCTO_API_KEY}` } },
)

const action = await response.json()
console.log(action.name, action.enabled)

Example response

A successful call returns 200 OK.

{
  "id": "act_4d7q1c",
  "agentId": "agt_8f3k2m",
  "type": "custom_action",
  "name": "Look up order",
  "description": "Fetch the status of an order from the shop backend by order number.",
  "enabled": true,
  "config": {
    "method": "GET",
    "url": "https://shop.example.com/api/orders/{orderNumber}"
  },
  "createdAt": "2026-02-12T09:20:00Z",
  "updatedAt": "2026-03-05T11:02:00Z"
}

Response fields

Name Type Description
id string The action ID, starting with act_.
agentId string The agent the action belongs to.
type string The kind of action, for example custom_action or escalate_to_human. The full list is on List actions.
name string The name of the action.
description string Tells the agent when to use the action.
enabled boolean Whether the agent can use the action.
config object Settings that depend on the type. A custom action holds the HTTP method and URL it calls.

To change an action, use Update an action.

Errors

Status Code When
401 unauthorized The API key is missing, malformed or deleted.
404 not_found The agent or the action does not exist in your workspace.
429 rate_limited Too many requests. Wait for the number of seconds in the Retry-After header.

Something unclear or missing? Tell us and we will fix the page.