List the calls an agent may make

​

Answers every REST API action of the agent. A credential header comes back masked: four bullets and its last four characters, or eight bullets when it is shorter than twelve characters. A blank one comes back blank. Plain headers come back as they were sent.

Needs the permission to view bots. Does not count against your brand's write limit.

Path Parameters

  • The agent, as assistantId names it in an ai_agent block, in lowercase.

Responses

  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for get/ai-agents/{agent_id}/rest_api_actions
curl https://api.landbot.io/v3/ai-agents/123e4567-e89b-12d3-a456-426614174000/rest_api_actions \
  --cookie 'sessionid=YOUR_SECRET_TOKEN'
{
  "data": {
    "actions": [
      {
        "name": "string",
        "description": "string",
        "parameters": {
          "properties": {}
        },
        "url": "https://api.example.com/orders/{order_id}",
        "method": "GET",
        "headers": {
          "additionalProperty": "string"
        },
        "credential_headers": {
          "additionalProperty": "string"
        },
        "timeout_seconds": 10
      }
    ]
  }
}