{ "opencollection": "1.0.0", "info": { "name": "Layercode REST Agents API", "version": "1.0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Agents", "type": "folder" }, "items": [ { "info": { "name": "List agents", "type": "http" }, "http": { "method": "GET", "url": "https://api.layercode.com/v1/agents" }, "docs": "Returns all voice agents (pipelines) in the organization." }, { "info": { "name": "Create an agent", "type": "http" }, "http": { "method": "POST", "url": "https://api.layercode.com/v1/agents", "body": { "type": "json", "data": "{}" } }, "docs": "Creates a new voice agent, optionally from a template." }, { "info": { "name": "Get an agent", "type": "http" }, "http": { "method": "GET", "url": "https://api.layercode.com/v1/agents/:agent_id", "params": [ { "name": "agent_id", "value": "", "type": "path", "description": "The unique identifier of the agent." } ] }, "docs": "Get an agent" }, { "info": { "name": "Update an agent", "type": "http" }, "http": { "method": "POST", "url": "https://api.layercode.com/v1/agents/:agent_id", "params": [ { "name": "agent_id", "value": "", "type": "path", "description": "The unique identifier of the agent." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Updates mutable agent fields such as name and webhook URL." } ] } ], "bundled": true }