List actions

GET/v2/agents/{agentId}/actions

Return the actions configured for an agent, such as custom actions, buttons and escalations, with their type and whether each one is enabled.

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

Returns a page of the actions of one agent. Call it to see what the agent can do in connected systems, or to find the act_ ID you need to read, change or delete an action.

Actions are created in the dashboard under Actions in the agent. The API reads, updates and deletes them.

Request

GET /v2/agents/{agentId}/actions

Path parameters:

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

Query parameters:

Name Type Required Description
limit integer No Items per page, from 1 to 100. Defaults to 20.
cursor string No The nextCursor value from the previous page.
type string No Return only actions of this type, for example custom_action.
enabled boolean No true or false to return only enabled or disabled actions.

See Pagination for how cursors work.

Example request

curl "https://api.askocto.co/v2/agents/agt_8f3k2m/actions?enabled=true" \
  -H "Authorization: Bearer $OCTO_API_KEY"
const url = new URL("https://api.askocto.co/v2/agents/agt_8f3k2m/actions")
url.searchParams.set("enabled", "true")

const response = await fetch(url, {
  headers: { Authorization: `Bearer ${process.env.OCTO_API_KEY}` },
})

const { data } = await response.json()
for (const action of data) console.log(action.id, action.type, action.name)

Example response

A successful call returns 200 OK.

{
  "data": [
    {
      "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"
    },
    {
      "id": "act_9m2x6e",
      "agentId": "agt_8f3k2m",
      "type": "escalate_to_human",
      "name": "Hand over to the team",
      "description": "Send the conversation to the Helpdesk with a summary when the customer asks for a person.",
      "enabled": true,
      "config": { "includeSummary": true },
      "createdAt": "2026-02-12T09:41:00Z",
      "updatedAt": "2026-02-12T09:41:00Z"
    }
  ],
  "nextCursor": null
}

Response fields

Name Type Description
id string The action ID, starting with act_.
agentId string The agent the action belongs to.
type string One of collect_data, collect_leads, custom_action, custom_button, escalate_to_human, live_chat_handoff, suggested_messages, web_search, transfer_to_phone, book_meeting, stripe, shopify, salesforce, slack or whatsapp_catalog.
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.

Each type is explained in Actions overview.

Errors

Status Code When
400 invalid_request limit is outside 1 to 100, or type or enabled has an unknown value.
401 unauthorized The API key is missing, malformed or deleted.
404 not_found No agent has this ID 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.