{ "item": [ { "id": "1d2e3f40-0001-4a00-9000-000000000001", "name": "Agents", "description": { "content": "", "type": "text/plain" }, "item": [ { "id": "1d2e3f40-0002-4a00-9000-000000000002", "name": "List agents", "request": { "name": "List agents", "description": { "content": "Returns all voice agents (pipelines) in the organization.", "type": "text/plain" }, "url": { "path": [ "v1", "agents" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [] }, "header": [ { "key": "Accept", "value": "application/json" } ], "method": "GET", "auth": null, "body": {} }, "response": [] }, { "id": "1d2e3f40-0003-4a00-9000-000000000003", "name": "Create an agent", "request": { "name": "Create an agent", "description": { "content": "Creates a new voice agent, optionally from a template.", "type": "text/plain" }, "url": { "path": [ "v1", "agents" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [] }, "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "method": "POST", "auth": null, "body": { "mode": "raw", "raw": "{\n \"template_id\": \"\",\n \"name\": \"\"\n}", "options": { "raw": { "language": "json" } } } }, "response": [] }, { "id": "1d2e3f40-0004-4a00-9000-000000000004", "name": "Get an agent", "request": { "name": "Get an agent", "description": { "content": "Retrieves a single agent by id.", "type": "text/plain" }, "url": { "path": [ "v1", "agents", ":agent_id" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [ { "key": "agent_id", "value": "" } ] }, "header": [ { "key": "Accept", "value": "application/json" } ], "method": "GET", "auth": null, "body": {} }, "response": [] }, { "id": "1d2e3f40-0005-4a00-9000-000000000005", "name": "Update an agent", "request": { "name": "Update an agent", "description": { "content": "Updates mutable agent fields such as name and webhook URL.", "type": "text/plain" }, "url": { "path": [ "v1", "agents", ":agent_id" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [ { "key": "agent_id", "value": "" } ] }, "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "method": "POST", "auth": null, "body": { "mode": "raw", "raw": "{\n \"name\": \"\",\n \"webhook_url\": \"\"\n}", "options": { "raw": { "language": "json" } } } }, "response": [] }, { "id": "1d2e3f40-0006-4a00-9000-000000000006", "name": "Authorize a browser client session", "request": { "name": "Authorize a browser client session", "description": { "content": "Returns a short-lived client_session_key the browser uses to open the realtime WebSocket, plus the conversation_id.", "type": "text/plain" }, "url": { "path": [ "v1", "agents", "web", "authorize_session" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [] }, "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "method": "POST", "auth": null, "body": { "mode": "raw", "raw": "{\n \"agent_id\": \"\",\n \"conversation_id\": \"\"\n}", "options": { "raw": { "language": "json" } } } }, "response": [] } ], "event": [] }, { "id": "1d2e3f40-0007-4a00-9000-000000000007", "name": "Sessions", "description": { "content": "", "type": "text/plain" }, "item": [ { "id": "1d2e3f40-0008-4a00-9000-000000000008", "name": "Get session detail", "request": { "name": "Get session detail", "description": { "content": "Returns metadata, transcript, duration, and recording status for a single session.", "type": "text/plain" }, "url": { "path": [ "v1", "agents", ":agent_id", "sessions", ":session_id" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [ { "key": "agent_id", "value": "" }, { "key": "session_id", "value": "" } ] }, "header": [ { "key": "Accept", "value": "application/json" } ], "method": "GET", "auth": null, "body": {} }, "response": [] }, { "id": "1d2e3f40-0009-4a00-9000-000000000009", "name": "Download session recording", "request": { "name": "Download session recording", "description": { "content": "Returns the WAV audio recording for the session, when available.", "type": "text/plain" }, "url": { "path": [ "v1", "agents", ":agent_id", "sessions", ":session_id", "recording" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [ { "key": "agent_id", "value": "" }, { "key": "session_id", "value": "" } ] }, "header": [ { "key": "Accept", "value": "audio/wav" } ], "method": "GET", "auth": null, "body": {} }, "response": [] } ], "event": [] }, { "id": "1d2e3f40-000a-4a00-9000-00000000000a", "name": "Calls", "description": { "content": "", "type": "text/plain" }, "item": [ { "id": "1d2e3f40-000b-4a00-9000-00000000000b", "name": "Initiate an outbound call", "request": { "name": "Initiate an outbound call", "description": { "content": "Places an outbound phone call from an assigned phone number to a destination number, connecting the callee to the voice agent.", "type": "text/plain" }, "url": { "path": [ "v1", "agents", ":agent_id", "calls", "initiate_outbound" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [ { "key": "agent_id", "value": "" } ] }, "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "method": "POST", "auth": null, "body": { "mode": "raw", "raw": "{\n \"from_phone_number\": \"\",\n \"to_phone_number\": \"\"\n}", "options": { "raw": { "language": "json" } } } }, "response": [] } ], "event": [] } ], "event": [], "variable": [ { "type": "string", "value": "https://api.layercode.com", "key": "baseUrl" } ], "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{bearerToken}}" } ] }, "info": { "_postman_id": "1d2e3f40-0000-4a00-9000-000000000000", "name": "Layercode REST API", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "description": { "content": "REST API for the Layercode voice-AI agent platform: manage agents (voice pipelines), authorize browser client sessions, retrieve session detail and recordings, and initiate outbound phone calls. Authenticated with an org-scoped API key as a Bearer token.\n\nContact Support:\n URL: https://docs.layercode.com", "type": "text/plain" } } }