{
  "info": {
    "name": "Ladoo API",
    "description": "Every public endpoint of the Ladoo API, version 2026-11-16. Set the apiKey variable to your key (Settings → Developers in Ladoo). Generated from https://api.tryladoo.com/openapi.json; docs: https://tryladoo.com/docs/developers.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{apiKey}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.tryladoo.com"
    },
    {
      "key": "apiKey",
      "value": ""
    }
  ],
  "item": [
    {
      "name": "Audit log",
      "item": [
        {
          "name": "Who changed what in this workspace (and, for an agency, its clients)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/audit-events",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "audit-events"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "",
                  "disabled": true,
                  "description": "An action (`agent.updated`) or a kind of action (`agent`)"
                },
                {
                  "key": "actor",
                  "value": "",
                  "disabled": true,
                  "description": "`user:<id>` or `api_key:<id>`"
                },
                {
                  "key": "workspace_id",
                  "value": "",
                  "disabled": true,
                  "description": "Only this client workspace"
                },
                {
                  "key": "limit",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "cursor",
                  "value": "",
                  "disabled": true,
                  "description": "`next_cursor` from the previous page"
                }
              ]
            },
            "description": "Newest first. Every change made through the API or the dashboard is here, with the person or API key that made it and their IP."
          }
        }
      ]
    },
    {
      "name": "Calls",
      "item": [
        {
          "name": "List calls, newest first",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/calls",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "calls"
              ],
              "query": [
                {
                  "key": "from",
                  "value": "",
                  "disabled": true,
                  "description": "Only calls that started at or after this time (inclusive)"
                },
                {
                  "key": "to",
                  "value": "",
                  "disabled": true,
                  "description": "Only calls that started before this time (exclusive)"
                },
                {
                  "key": "outcome",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "kind",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "channel",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "widget_id",
                  "value": "",
                  "disabled": true,
                  "description": "Only web chats that came through this chat widget"
                },
                {
                  "key": "urgency",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "status",
                  "value": "",
                  "disabled": true,
                  "description": "Only calls still in progress, or only finished ones"
                },
                {
                  "key": "phone_number_id",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "caller_phone",
                  "value": "",
                  "disabled": true,
                  "description": "Only calls from this phone number (`from_number`), in any format: +15555550123, (555) 555-0123 and 555.555.0123 all match. Bare 10-digit numbers are read as North American."
                },
                {
                  "key": "agent_id",
                  "value": "",
                  "disabled": true,
                  "description": "Only calls handled by this agent (any of its deployments)"
                },
                {
                  "key": "language",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "hung_up_early",
                  "value": "",
                  "disabled": true,
                  "description": "Only calls the caller hung up right after the greeting (under 20 seconds, still on the first step), or only the rest"
                },
                {
                  "key": "after_hours",
                  "value": "",
                  "disabled": true,
                  "description": "Only calls that started outside (or inside) the hours of the calendar their agent books into. Calls of agents without set hours match neither."
                },
                {
                  "key": "reason",
                  "value": "",
                  "disabled": true,
                  "description": "Only calls with this reason (`extracted.reason`, ignoring case)"
                },
                {
                  "key": "unfinished",
                  "value": "",
                  "disabled": true,
                  "description": "Only calls the caller hung up partway through a booking, a message, or either (`any`)"
                },
                {
                  "key": "first_call",
                  "value": "",
                  "disabled": true,
                  "description": "Only each person's first conversation with the business, or only calls from people who'd been in touch before. Calls not linked to a person match neither."
                },
                {
                  "key": "flagged",
                  "value": "",
                  "disabled": true,
                  "description": "Only calls the post-call review flagged a line in, or only the rest"
                },
                {
                  "key": "calendar_error",
                  "value": "",
                  "disabled": true,
                  "description": "Only calls where the booking calendar or CRM couldn't be reached, or only the rest"
                },
                {
                  "key": "weekday",
                  "value": "",
                  "disabled": true,
                  "description": "Only calls that started on this weekday (0 Sunday to 6 Saturday) in `time_zone`"
                },
                {
                  "key": "hour",
                  "value": "",
                  "disabled": true,
                  "description": "Only calls that started in this hour of the day (0 to 23) in `time_zone`"
                },
                {
                  "key": "time_zone",
                  "value": "",
                  "disabled": true,
                  "description": "IANA zone `weekday` and `hour` are read in"
                },
                {
                  "key": "repeat_caller",
                  "value": "",
                  "disabled": true,
                  "description": "Only calls from people with more than one call among those the other filters pick by date, kind, channel, agent and number (the Analytics page's callers who called more than once)"
                },
                {
                  "key": "workflow_version_id",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "step",
                  "value": "",
                  "disabled": true,
                  "description": "Only calls that entered this workflow step"
                },
                {
                  "key": "last_step",
                  "value": "",
                  "disabled": true,
                  "description": "Only calls that ended on this workflow step"
                },
                {
                  "key": "success",
                  "value": "",
                  "disabled": true,
                  "description": "Only calls judged this way against their agent's success criteria"
                },
                {
                  "key": "analysis_field",
                  "value": "",
                  "disabled": true,
                  "description": "With `analysis_value`, only calls whose analysis field has that value (`analysis`, compared as text, ignoring case: `true`, `2500`, `hot`). Alone, only calls where the field has a value."
                },
                {
                  "key": "analysis_value",
                  "value": "",
                  "disabled": true,
                  "description": "The value `analysis_field` must have"
                },
                {
                  "key": "limit",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "cursor",
                  "value": "",
                  "disabled": true,
                  "description": "`next_cursor` from the previous page"
                }
              ]
            }
          }
        },
        {
          "name": "Calls as CSV",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/calls/export",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "calls",
                "export"
              ],
              "query": [
                {
                  "key": "from",
                  "value": "",
                  "disabled": true,
                  "description": "Only calls that started at or after this time (inclusive)"
                },
                {
                  "key": "to",
                  "value": "",
                  "disabled": true,
                  "description": "Only calls that started before this time (exclusive)"
                },
                {
                  "key": "outcome",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "kind",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "channel",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "widget_id",
                  "value": "",
                  "disabled": true,
                  "description": "Only web chats that came through this chat widget"
                },
                {
                  "key": "urgency",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "status",
                  "value": "",
                  "disabled": true,
                  "description": "Only calls still in progress, or only finished ones"
                },
                {
                  "key": "phone_number_id",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "caller_phone",
                  "value": "",
                  "disabled": true,
                  "description": "Only calls from this phone number (`from_number`), in any format: +15555550123, (555) 555-0123 and 555.555.0123 all match. Bare 10-digit numbers are read as North American."
                },
                {
                  "key": "agent_id",
                  "value": "",
                  "disabled": true,
                  "description": "Only calls handled by this agent (any of its deployments)"
                },
                {
                  "key": "language",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "hung_up_early",
                  "value": "",
                  "disabled": true,
                  "description": "Only calls the caller hung up right after the greeting (under 20 seconds, still on the first step), or only the rest"
                },
                {
                  "key": "after_hours",
                  "value": "",
                  "disabled": true,
                  "description": "Only calls that started outside (or inside) the hours of the calendar their agent books into. Calls of agents without set hours match neither."
                },
                {
                  "key": "reason",
                  "value": "",
                  "disabled": true,
                  "description": "Only calls with this reason (`extracted.reason`, ignoring case)"
                },
                {
                  "key": "unfinished",
                  "value": "",
                  "disabled": true,
                  "description": "Only calls the caller hung up partway through a booking, a message, or either (`any`)"
                },
                {
                  "key": "first_call",
                  "value": "",
                  "disabled": true,
                  "description": "Only each person's first conversation with the business, or only calls from people who'd been in touch before. Calls not linked to a person match neither."
                },
                {
                  "key": "flagged",
                  "value": "",
                  "disabled": true,
                  "description": "Only calls the post-call review flagged a line in, or only the rest"
                },
                {
                  "key": "calendar_error",
                  "value": "",
                  "disabled": true,
                  "description": "Only calls where the booking calendar or CRM couldn't be reached, or only the rest"
                },
                {
                  "key": "weekday",
                  "value": "",
                  "disabled": true,
                  "description": "Only calls that started on this weekday (0 Sunday to 6 Saturday) in `time_zone`"
                },
                {
                  "key": "hour",
                  "value": "",
                  "disabled": true,
                  "description": "Only calls that started in this hour of the day (0 to 23) in `time_zone`"
                },
                {
                  "key": "time_zone",
                  "value": "",
                  "disabled": true,
                  "description": "IANA zone `weekday` and `hour` are read in"
                },
                {
                  "key": "repeat_caller",
                  "value": "",
                  "disabled": true,
                  "description": "Only calls from people with more than one call among those the other filters pick by date, kind, channel, agent and number (the Analytics page's callers who called more than once)"
                },
                {
                  "key": "workflow_version_id",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "step",
                  "value": "",
                  "disabled": true,
                  "description": "Only calls that entered this workflow step"
                },
                {
                  "key": "last_step",
                  "value": "",
                  "disabled": true,
                  "description": "Only calls that ended on this workflow step"
                },
                {
                  "key": "success",
                  "value": "",
                  "disabled": true,
                  "description": "Only calls judged this way against their agent's success criteria"
                },
                {
                  "key": "analysis_field",
                  "value": "",
                  "disabled": true,
                  "description": "With `analysis_value`, only calls whose analysis field has that value (`analysis`, compared as text, ignoring case: `true`, `2500`, `hot`). Alone, only calls where the field has a value."
                },
                {
                  "key": "analysis_value",
                  "value": "",
                  "disabled": true,
                  "description": "The value `analysis_field` must have"
                }
              ]
            },
            "description": "The calls the list's filters pick, newest first, up to 10,000: one row per call with its summary, outcome and the caller's details, then a column per analysis field (`analysis.<name>`)."
          }
        },
        {
          "name": "Get a call with its transcript",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/calls/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "calls",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Call analytics for a date range",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/analytics/calls",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "analytics",
                "calls"
              ],
              "query": [
                {
                  "key": "from",
                  "value": "",
                  "disabled": false,
                  "description": "Start (inclusive)"
                },
                {
                  "key": "to",
                  "value": "",
                  "disabled": false,
                  "description": "End (exclusive)"
                },
                {
                  "key": "time_zone",
                  "value": "",
                  "disabled": true,
                  "description": "IANA zone the days in `daily` are counted in"
                },
                {
                  "key": "agent_id",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "phone_number_id",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "clients",
                  "value": "",
                  "disabled": true
                }
              ]
            },
            "description": "Live phone calls only. With `clients=true` (an agency's owners and admins, who can see inside its clients), every client workspace together instead of this one, without call reasons; agent and number filters are per workspace then."
          }
        }
      ]
    },
    {
      "name": "Blocked callers",
      "item": [
        {
          "name": "List blocked callers, newest first",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/blocked-callers",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "blocked-callers"
              ]
            }
          }
        },
        {
          "name": "Block a caller",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/blocked-callers",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "blocked-callers"
              ]
            },
            "description": "Calls from this number are hung up before the agent answers, recorded with outcome `blocked`, and not billed. Applies to this workspace only.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"phone\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Whether calls with no caller ID are blocked",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/blocked-callers/settings",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "blocked-callers",
                "settings"
              ]
            }
          }
        },
        {
          "name": "Block or allow calls with no caller ID",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/blocked-callers/settings",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "blocked-callers",
                "settings"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"block_anonymous\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Unblock a caller",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/blocked-callers/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "blocked-callers",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        }
      ]
    },
    {
      "name": "Workspace",
      "item": [
        {
          "name": "Things that need attention",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/attention",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "attention"
              ]
            },
            "description": "Broken connections in this workspace and, for an agency, its client workspaces: red first. Each clears itself once the fix works."
          }
        },
        {
          "name": "The current workspace, its seats and the caller's access",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/workspace",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "workspace"
              ]
            }
          }
        },
        {
          "name": "Rename the workspace, change its slug or its settings",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/workspace",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "workspace"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Delete the workspace",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/workspace/delete",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "workspace",
                "delete"
              ]
            },
            "description": "Owners only, signed in (not with an API key), and `confirm` must be the workspace's name. The workspace, and an agency's client workspaces, close at once: no one can open them, their numbers are released, and the plan is set to cancel at the end of the period. Everything in them is permanently deleted after `purge_after`; until then support can still send an export.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"confirm\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "People",
      "item": [
        {
          "name": "List people, most recently in touch first",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/people",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "people"
              ],
              "query": [
                {
                  "key": "q",
                  "value": "",
                  "disabled": true,
                  "description": "Name, phone or email"
                },
                {
                  "key": "phone_number_id",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "widget_id",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "possible_match",
                  "value": "",
                  "disabled": true,
                  "description": "Only people flagged as a possible match"
                },
                {
                  "key": "limit",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "cursor",
                  "value": "",
                  "disabled": true,
                  "description": "`next_cursor` from the previous page"
                }
              ]
            }
          }
        },
        {
          "name": "Add a person",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/people",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "people"
              ]
            },
            "description": "Needs a phone number or an email. A person with a phone number is found by it like someone who called: a later call from that number joins their history, and the agent knows their name when the workspace recognizes returning callers. Only one person can have a number that way, so a number someone already has is refused (409 `phone_taken`, with their id). The name counts as the team's: later calls don't overwrite it. First and last contact start at the time the person was added.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "A person, their conversations and possible matches",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/people/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "people",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Delete a person and all their conversations",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/people/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "people",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Transcripts and summaries go too. Appointments they booked stay on the calendar without their name, number or reason. It can't be undone."
          }
        },
        {
          "name": "Edit a person's name, phone, email or notes",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/people/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "people",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "An edited name is kept: later conversations don't overwrite it.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Webhooks",
      "item": [
        {
          "name": "List webhook endpoints",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/webhook-endpoints",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "webhook-endpoints"
              ]
            }
          }
        },
        {
          "name": "Create a webhook endpoint",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/webhook-endpoints",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "webhook-endpoints"
              ]
            },
            "description": "A workspace can have up to 100 endpoints; one more is refused with `409 endpoint_limit`. Automation apps like Zapier create one per Zap and delete it when the Zap is turned off.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"url\": \"\",\n  \"events\": []\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Get a webhook endpoint",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/webhook-endpoints/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "webhook-endpoints",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Delete a webhook endpoint and its pending deliveries",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/webhook-endpoints/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "webhook-endpoints",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Update a webhook endpoint",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/webhook-endpoints/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "webhook-endpoints",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "List the event types an endpoint can subscribe to",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/webhook-event-types",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "webhook-event-types"
              ]
            }
          }
        },
        {
          "name": "List an endpoint's recent deliveries, newest first",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/webhook-endpoints/:id/deliveries",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "webhook-endpoints",
                ":id",
                "deliveries"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "",
                  "disabled": true
                }
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Send a test event with sample data",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/webhook-endpoints/:id/test",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "webhook-endpoints",
                ":id",
                "test"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Queues a signed delivery of sample data, sent like any other event (and even while the endpoint is paused). Up to 5 a minute per endpoint.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Send a delivered or failed delivery again",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/webhook-deliveries/:id/redeliver",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "webhook-deliveries",
                ":id",
                "redeliver"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Sends the same event (same id) again now, with a fresh set of retries."
          }
        },
        {
          "name": "Rotate the signing secret",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/webhook-endpoints/:id/rotate-secret",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "webhook-endpoints",
                ":id",
                "rotate-secret"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Returns a new secret, shown only once. For the next 24 hours deliveries are signed with both the new and the old secret (two `v1` values), so receivers can switch over. Rotating again within those 24 hours replaces the new secret and keeps the old one."
          }
        }
      ]
    },
    {
      "name": "Phone numbers",
      "item": [
        {
          "name": "List phone numbers",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/phone-numbers",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "phone-numbers"
              ]
            }
          }
        },
        {
          "name": "Buy a phone number",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/phone-numbers",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "phone-numbers"
              ]
            },
            "description": "Buys the number, routes it to Ladoo and (optionally) to an agent. Needs a paid plan; the number's monthly price is added to the plan's bill.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"e164\": \"\",\n  \"type\": \"local\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Search numbers you can buy",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/phone-numbers/available",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "phone-numbers",
                "available"
              ],
              "query": [
                {
                  "key": "type",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "area_code",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "locality",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "region",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "",
                  "disabled": true
                }
              ]
            }
          }
        },
        {
          "name": "Choose the agent that answers a number",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/phone-numbers/:id/agent",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "phone-numbers",
                ":id",
                "agent"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"agent_id\": \"00000000-0000-4000-8000-000000000000\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Release a phone number",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/phone-numbers/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "phone-numbers",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Stops calls to the number and gives it back. Billing for it stops from the next month."
          }
        }
      ]
    },
    {
      "name": "Billing",
      "item": [
        {
          "name": "Plan, usage and limits",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/billing",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "billing"
              ]
            }
          }
        },
        {
          "name": "Start or change a plan",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/billing/checkout",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "billing",
                "checkout"
              ]
            },
            "description": "Without a paid plan this returns a checkout URL. With one, it switches plans (prorated) and returns `url: null`.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"plan\": \"starter\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Cancel the plan at the end of the billing period",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/billing/cancel",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "billing",
                "cancel"
              ]
            }
          }
        },
        {
          "name": "Keep a plan that was set to cancel",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/billing/resume",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "billing",
                "resume"
              ]
            }
          }
        },
        {
          "name": "Link to manage the payment method and invoices",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/billing/portal",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "billing",
                "portal"
              ]
            }
          }
        }
      ]
    },
    {
      "name": "Agents",
      "item": [
        {
          "name": "List agents",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/agents",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents"
              ]
            }
          }
        },
        {
          "name": "Create an agent",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agents",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents"
              ]
            },
            "description": "Creates the agent with a published workflow, optionally started from a template. It can be tested in the browser right away; give it a phone number to take real calls.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Get an agent with its deployed workflow, versions and numbers",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Delete an agent",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Its numbers stop answering for it straight away (they stay in the workspace, free to give to another agent), and it's detached from knowledge bases and scripts. Past calls keep their transcripts and still show the agent's name. Can't be undone from the dashboard."
          }
        },
        {
          "name": "Rename an agent",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "The name is a label in the dashboard; callers hear the persona's name. Takes effect immediately and isn't part of the versioned config.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Save edits and publish a new immutable version to the agent's deployments",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/publish",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "publish"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Choose the team alerted about this agent's urgent calls",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/notifications",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "notifications"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Takes effect immediately; not part of the versioned agent config.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"team_id\": \"00000000-0000-4000-8000-000000000000\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Set the rules each of this agent's calls is judged against",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/success-criteria",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "success-criteria"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Takes effect from the next call; calls already judged keep the criteria they were judged on. Not part of the versioned agent config.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"criteria\": []\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Set the fields read from each of this agent's calls",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/analysis-fields",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "analysis-fields"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Takes effect from the next call; calls already analyzed keep what was read then. Not part of the versioned agent config.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"fields\": []\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Change some of the agent's business settings (variables)",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/variables",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "variables"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Sets these variables, removes the keys in `remove`, and keeps the rest. Like the settings Build with AI saves, they're facts about the business: the next call uses them, without publishing a new version. They aren't part of the agent's draft.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"variables\": {}\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Set or turn off the agent's pre-call webhook",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/pre-call-webhook",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "pre-call-webhook"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "When a call rings, Ladoo POSTs `{call_id, agent_id, kind, from, to, person}` to this URL and waits up to 1 second for `{variables, caller, note_for_agent, route}`. A slow, failing or unreadable reply leaves the call as usual. The first URL creates a signing secret, returned once; changing the URL keeps it. Needs `webhooks:write` as well, like a webhook endpoint, since it sends callers' details out.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"url\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Rotate the pre-call webhook's signing secret",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/pre-call-webhook/rotate-secret",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "pre-call-webhook",
                "rotate-secret"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Returns the new secret, shown only once. The old one stops signing at once."
          }
        },
        {
          "name": "List the agent's custom tools",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/tools",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "tools"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "HTTP actions the agent may call on any step. Header values are masked. Tools aren't part of the versioned config: rolling back a version doesn't change them."
          }
        },
        {
          "name": "Add a custom tool to the agent",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/tools",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "tools"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "The next call can use it. At most 20 per agent. It sends callers' details out, like a webhook endpoint, so it also needs `webhooks:write`. 409 `tool_name_taken` or `too_many_tools`.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"order_status\",\n  \"description\": \"\",\n  \"parameters\": {},\n  \"url\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Delete a custom tool",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/tools/:tool_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "tools",
                ":tool_id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                },
                {
                  "key": "tool_id",
                  "value": ""
                }
              ]
            },
            "description": "Steps that named it go on without it."
          }
        },
        {
          "name": "Change a custom tool",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/tools/:tool_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "tools",
                ":tool_id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                },
                {
                  "key": "tool_id",
                  "value": ""
                }
              ]
            },
            "description": "Changes only what's sent. A header value of `••••••••` keeps the saved one, unless the URL changed: then every header value must be sent again.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "List the agent's MCP servers",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/mcp-servers",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "mcp-servers"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Remote MCP servers whose picked tools the agent may call on any step. Header values are masked. They aren't part of the versioned config."
          }
        },
        {
          "name": "Connect an MCP server to the agent",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/mcp-servers",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "mcp-servers"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Reads the server's tools (Streamable HTTP) and saves the ones picked. It sends the model's arguments to the server, so it needs `webhooks:write`. 422 `mcp_unreachable` when the tool list can't be read; 409 `mcp_name_taken`, `tool_name_taken` or `too_many_servers`.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"crm\",\n  \"url\": \"https://mcp.example.com/mcp\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Disconnect an MCP server",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/mcp-servers/:server_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "mcp-servers",
                ":server_id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                },
                {
                  "key": "server_id",
                  "value": ""
                }
              ]
            },
            "description": "The agent stops using its tools from the next call."
          }
        },
        {
          "name": "Change an MCP server or the tools picked",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/mcp-servers/:server_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "mcp-servers",
                ":server_id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                },
                {
                  "key": "server_id",
                  "value": ""
                }
              ]
            },
            "description": "Changes only what's sent. `tools` replaces the picks (from the list as last read). A new URL reads the tool list again and needs every header value again.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Read the MCP server's tools again",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/mcp-servers/:server_id/refresh",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "mcp-servers",
                ":server_id",
                "refresh"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                },
                {
                  "key": "server_id",
                  "value": ""
                }
              ]
            },
            "description": "Calls use the schemas read when a tool was picked or last refreshed, so a change on the server reaches calls only after this. Picked tools the server dropped are unpicked. 409 `mcp_server_changed` when the server was changed while its tools were being read."
          }
        },
        {
          "name": "Edit the agent's prompt, greetings and details with AI",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/assist",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "assist"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Takes the conversation so far and the agent as it is in the editor, and returns the assistant's reply with the updated draft. Fields and settings can be added or changed, never removed. Nothing is saved: the editor applies it as unsaved changes. Costs one Build with AI message.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"messages\": [],\n  \"draft\": {\n    \"system_prompt\": \"\",\n    \"first_message\": \"\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Get the agent's draft: its unpublished changes",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/draft",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "draft"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Every section as the draft has it (the live value where it changes nothing), which sections changed, and their revisions. With no draft, everything is live and `changed_sections` is empty."
          }
        },
        {
          "name": "Discard the agent's draft",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/draft",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "draft"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Every section goes back to what's live, in the Agent tab and the editor."
          }
        },
        {
          "name": "Save changes to the agent's draft",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/draft",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "draft"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Saves the sections sent and leaves the rest. Creates the draft if there's none. A draft may have problems: they come back in `validation` and block publishing, not saving. Business settings (variables) aren't part of the draft: save them with PATCH /agents/{id}/variables.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Publish the agent's draft as one new version",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/draft/publish",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "draft",
                "publish"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Everything on the draft goes live as one immutable version with one changelog, and every active deployment moves onto it. 404 with no changes to publish; 422 `invalid_workflow`, `invalid_agent_settings` or `calendar_not_connected` when part of it can't go live. The publish check applies (`?publish_check=<run id>`, or skip it once with `?skip_publish_check=true&skip_reason=…`).",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "The agent's latest AI setup",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/build",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "build"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Set the agent up with AI",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/build",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "build"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Reads the agent's knowledge (waiting for sources still being read), writes its prompt, greeting and fields, then builds and publishes its workflow, in the background. Poll GET /agents/{id}/build. Costs up to two Build with AI messages.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"description\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Agent templates",
      "item": [
        {
          "name": "List agent templates",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/agent-templates",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agent-templates"
              ]
            },
            "description": "In an agency workspace, its templates. In a client workspace, its agency's templates, to start agents from."
          }
        },
        {
          "name": "Save one of the agency's agents as a template",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agent-templates",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agent-templates"
              ]
            },
            "description": "Saves the agent's prompt, greetings, voice, call settings, published workflow (with its tools and fields) and success criteria as version 1. Webhook header values, transfer numbers, knowledge bases, CRM fields and business settings' values are left out; each client sets its own. Only agents in the agency workspace itself can be saved.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"agent_id\": \"00000000-0000-4000-8000-000000000000\",\n  \"name\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Get a template, with its versions and latest content",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/agent-templates/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agent-templates",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Delete a template",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/agent-templates/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agent-templates",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Agents started from it keep working and keep their settings."
          }
        },
        {
          "name": "Rename a template or change its description",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agent-templates/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agent-templates",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Save a new version of a template",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agent-templates/:id/versions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agent-templates",
                ":id",
                "versions"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Saves the agent (by default the one the template was last saved from) as the next version. Agents started from earlier versions don't change until a push.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Get one version of a template",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/agent-templates/:id/versions/:v",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agent-templates",
                ":id",
                "versions",
                ":v"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                },
                {
                  "key": "v",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Compare two versions of a template",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/agent-templates/:id/versions/:a/diff/:b",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agent-templates",
                ":id",
                "versions",
                ":a",
                "diff",
                ":b"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                },
                {
                  "key": "a",
                  "value": ""
                },
                {
                  "key": "b",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Client agents started from a template",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/agent-templates/:id/agents",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agent-templates",
                ":id",
                "agents"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Start an agent from a template",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agent-templates/:id/agents",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agent-templates",
                ":id",
                "agents"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "In a client workspace, creates the agent there. From the agency, set `client_id` (and the key needs `clients:write`). The agent gets the template's settings and the client's business settings; its workflow is published only when nothing needs setting up, otherwise it waits as a draft and `needs_setup` lists what's missing.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Push a template version to client agents as drafts",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agent-templates/:id/push",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agent-templates",
                ":id",
                "push"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Opens a draft of the version (by default the latest) in each linked client agent, or the ones in `agent_ids`, and returns what it would change. Nothing is published: someone publishes each draft in its workspace. An agent with unpublished changes of its own is skipped; a draft from an earlier push is replaced.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Agent tests",
      "item": [
        {
          "name": "List an agent's tests, oldest first",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/tests",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "tests"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Add a test",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/tests",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "tests"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "A simulated caller (goal, persona, language, call time) or a replay of caller turns, with the rules a run must pass.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Suggest starter tests with Build with AI",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/tests/suggest",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "tests",
                "suggest"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Build with AI reads the agent's live workflow and writes a starter set of simulated callers that cover it. They replace the agent's earlier suggestions (origin `assist`) that the owner hasn't edited; the owner's own tests, edited suggestions and tests from calls stay. Uses one Build with AI message."
          }
        },
        {
          "name": "Delete a test",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/tests/:test_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "tests",
                ":test_id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                },
                {
                  "key": "test_id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Change a test",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/tests/:test_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "tests",
                ":test_id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                },
                {
                  "key": "test_id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Make this call a test",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/calls/:id/test",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "calls",
                ":id",
                "test"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Saves a finished call as a replay test on the agent that took it: the caller's turns in order, the call's local time and language, and its outcome as the expected result. Calling it again for the same call returns the existing test. Needs `calls:read` too: the test holds what the caller said."
          }
        },
        {
          "name": "Recent test runs, newest first",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/tests/runs",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "tests",
                "runs"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "",
                  "disabled": true
                }
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Run the agent's tests",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/tests/runs",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "tests",
                "runs"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Queues a simulated call per test against `live` (what callers get now) or `draft` (the workflow editor's saved draft). Each call is scored when it finishes. Uses the workspace's model allowance; a call it can't cover is skipped.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "A test run with each test's result",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/tests/runs/:run_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "tests",
                "runs",
                ":run_id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                },
                {
                  "key": "run_id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Stop a test run (calls already under way finish)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/tests/runs/:run_id/cancel",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "tests",
                "runs",
                ":run_id",
                "cancel"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                },
                {
                  "key": "run_id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Test what Save & publish would make live, against live",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/tests/publish-check",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "tests",
                "publish-check"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Runs the agent's tests on the workflow editor's draft (`draft`) or on the Agent tab's changes (`changes`, the Save & publish body) and compares each with live. Nothing is published. `run` is null when the check doesn't run (`skipped` says why); a skipped check never stops a publish.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"source\": \"draft\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "The agent's test settings",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/tests/settings",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "tests",
                "settings"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Change the agent's test settings",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/tests/settings",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "tests",
                "settings"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Changes what the body names and keeps the rest. Loosening the publish check (`block` to `warn` or `off`, or a lower `min_pass_rate`) needs an owner or admin (403 `publish_check_settings_forbidden`); anyone who can edit the agent may tighten it.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "List an agent's guardrails",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/guardrails",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "guardrails"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Set an agent's guardrails",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/guardrails",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "guardrails"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Replaces the list: guardrails sent with an `id` are kept (and updated), new ones are added, and any left out are removed. They apply from the next call on and to every test run. Saved right away; no publish needed.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"guardrails\": []\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Chat widgets",
      "item": [
        {
          "name": "List website chat widgets",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/chat-widgets",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "chat-widgets"
              ],
              "query": [
                {
                  "key": "agent_id",
                  "value": "",
                  "disabled": true
                }
              ]
            }
          }
        },
        {
          "name": "Create a website chat widget",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/chat-widgets",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "chat-widgets"
              ]
            },
            "description": "On the Pro and Agency plans (402 `chat_plan_required` otherwise).",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"\",\n  \"agent_id\": \"00000000-0000-4000-8000-000000000000\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Get a website chat widget",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/chat-widgets/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "chat-widgets",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Delete a website chat widget (embedded copies stop working)",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/chat-widgets/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "chat-widgets",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Update a website chat widget",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/chat-widgets/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "chat-widgets",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Fields left out keep their value. Turning a widget off always works; anything else needs the Pro or Agency plan.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Workflows",
      "item": [
        {
          "name": "Get the agent's workflow draft, with validation",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/workflow/draft",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "workflow",
                "draft"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Save the agent's workflow draft",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/workflow/draft",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "workflow",
                "draft"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Creates or replaces the draft. Drafts may be incomplete: problems come back in `validation.errors`, pinned to node ids, and block publishing but not saving.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"graph\": {}\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Validate a workflow graph without saving it",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/workflow/validate",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "workflow",
                "validate"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Publish the agent's draft as a new immutable version",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/workflow/draft/publish",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "workflow",
                "draft",
                "publish"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "The same as POST /agents/{id}/draft/publish: everything on the agent's draft goes live as one version, the Agent tab's changes included. Moves every active deployment of the agent onto it. Responds 422 (`invalid_workflow`, with `details.errors`) if the draft has problems.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "The deployed workflow graph, to start a draft from",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/workflow/published",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "workflow",
                "published"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "The live graph as it runs, with transfer targets and other workspace values kept. Use the export to share a workflow instead."
          }
        },
        {
          "name": "Download the workflow as a .lassi-workflow.json file",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/workflow/export",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "workflow",
                "export"
              ],
              "query": [
                {
                  "key": "from",
                  "value": "",
                  "disabled": true
                }
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Phone numbers, CRM field ids and knowledge base ids are removed and listed in `needs_setup`."
          }
        },
        {
          "name": "Import a .lassi-workflow.json file into the agent's draft",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/workflow/import",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "workflow",
                "import"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Replaces the draft. Fields the agent already has keep its own definition; new ones are added. Anything listed in `needs_setup` must be filled in before publishing.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"format\": \"lassi.workflow\",\n  \"format_version\": 1,\n  \"graph\": {}\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Build or edit the workflow with AI",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/workflow/assist",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "workflow",
                "assist"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Takes the conversation so far and the graph on the canvas, and returns the assistant's reply with an updated graph. The graph always passes validation (or is null when the reply only answers a question). Nothing is saved: the editor applies it to the draft.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"messages\": []\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Recent Build with AI requests",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/workflow/assist-runs",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "workflow",
                "assist-runs"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "The last day's runs on this agent, oldest first (at most 20)."
          }
        },
        {
          "name": "Start a Build with AI request in the background",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/workflow/assist-runs",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "workflow",
                "assist-runs"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Like POST /agents/{id}/workflow/assist, but returns at once and keeps working if the caller goes away. Poll GET /agents/{id}/workflow/assist-runs for the answer. One run per agent at a time.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"prompt\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Mark a run's answer as applied to the draft",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/workflow/assist-runs/:runId/applied",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "workflow",
                "assist-runs",
                ":runId",
                "applied"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                },
                {
                  "key": "runId",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Put back the agent settings a run saved",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/workflow/assist-runs/:runId/undo-settings",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "workflow",
                "assist-runs",
                ":runId",
                "undo-settings"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                },
                {
                  "key": "runId",
                  "value": ""
                }
              ]
            },
            "description": "Undo for the business settings a Build with AI answer saved (business name, business facts, hours callers hear, Spanish). Each goes back to what it held before, unless it was changed since: those are kept and listed in `kept`. Once only."
          }
        },
        {
          "name": "List the agent's published workflow versions",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/versions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "versions"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Newest first. Versions are immutable once published."
          }
        },
        {
          "name": "Get one published version, with what it runs",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/versions/:v",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "versions",
                ":v"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                },
                {
                  "key": "v",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Compare two published versions",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/versions/:a/diff/:b",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "versions",
                ":a",
                "diff",
                ":b"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                },
                {
                  "key": "a",
                  "value": ""
                },
                {
                  "key": "b",
                  "value": ""
                }
              ]
            },
            "description": "What changed from version `a` to version `b`: steps added, removed and changed (with each changed key, prompt text included), the flow, and the version's settings."
          }
        },
        {
          "name": "Roll back to a published version",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/versions/:v/restore",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "versions",
                ":v",
                "restore"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                },
                {
                  "key": "v",
                  "value": ""
                }
              ]
            },
            "description": "Publishes version `v`'s content as a new version, changelog \"Rolled back to v{v}\", and moves the agent's deployments onto it. Old versions are never changed. The same checks as a publish apply: the graph is validated against today's rules (422 `invalid_workflow`), its calendars must still be connected, and an agent whose publish check blocks refuses it (409 `publish_check_blocks_rollback`) unless an owner or admin skips the check once (`?skip_publish_check=true&skip_reason=…`). 409 `version_live` when `v` is already live. The agent's prompt, greetings and voice aren't part of a version and don't change."
          }
        },
        {
          "name": "Test a Custom Code step",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/workflow/code/test",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "workflow",
                "code",
                "test"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Runs code in the same sandbox calls use, with sample answers and the agent's business settings (sample `variables` win), and returns what it returned or what went wrong. Nothing is saved.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"code\": \"\",\n  \"outputs\": []\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Knowledge",
      "item": [
        {
          "name": "List knowledge bases",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/knowledge-bases",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "knowledge-bases"
              ]
            }
          }
        },
        {
          "name": "Create a knowledge base",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/knowledge-bases",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "knowledge-bases"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Get a knowledge base and its sources",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/knowledge-bases/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "knowledge-bases",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Delete a knowledge base",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/knowledge-bases/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "knowledge-bases",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Deletes its sources and their text and detaches it from agents. Workflow knowledge steps keep the id; calls ignore it."
          }
        },
        {
          "name": "Rename or describe a knowledge base",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/knowledge-bases/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "knowledge-bases",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Add a source: pasted text, Q&A pairs, a web page or a website",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/knowledge-bases/:id/sources",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "knowledge-bases",
                ":id",
                "sources"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"kind\": \"text\",\n  \"text\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Add a question and answer suggested from a call",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/knowledge-bases/:id/answers",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "knowledge-bases",
                ":id",
                "answers"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Appends the pair to the knowledge base's \"Fixes from calls\" Q&A source, creating it on first use. A question already there (ignoring case and spacing) gets the new answer. The source is re-indexed; the change reaches calls once it's ready.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"question\": \"\",\n  \"answer\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Upload a file (PDF, DOCX, TXT, MD, HTML or CSV, up to 10 MB)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/knowledge-bases/:id/files",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "knowledge-bases",
                ":id",
                "files"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "The text is extracted now and the file itself is not kept. The source is queued for indexing."
          }
        },
        {
          "name": "Get a source, its failures and its documents",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/knowledge-bases/:id/sources/:source_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "knowledge-bases",
                ":id",
                "sources",
                ":source_id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                },
                {
                  "key": "source_id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Delete a source and its text",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/knowledge-bases/:id/sources/:source_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "knowledge-bases",
                ":id",
                "sources",
                ":source_id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                },
                {
                  "key": "source_id",
                  "value": ""
                }
              ]
            },
            "description": "Works mid-indexing; the job notices and stops."
          }
        },
        {
          "name": "Change a source",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/knowledge-bases/:id/sources/:source_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "knowledge-bases",
                ":id",
                "sources",
                ":source_id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                },
                {
                  "key": "source_id",
                  "value": ""
                }
              ]
            },
            "description": "`text` for text sources, `pairs` for Q&A, `max_pages` / `include_paths` / `exclude_paths` for websites. A content change re-queues the source.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Index a source again",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/knowledge-bases/:id/sources/:source_id/refresh",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "knowledge-bases",
                ":id",
                "sources",
                ":source_id",
                "refresh"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                },
                {
                  "key": "source_id",
                  "value": ""
                }
              ]
            },
            "description": "Web pages and websites are fetched again; text, Q&A and files are re-chunked. 409 `source_busy` while it is queued or indexing; 429 `refresh_too_soon` within 60 s of a web source's last run."
          }
        },
        {
          "name": "Get a document's extracted text",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/knowledge-bases/:id/sources/:source_id/documents/:document_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "knowledge-bases",
                ":id",
                "sources",
                ":source_id",
                "documents",
                ":document_id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                },
                {
                  "key": "source_id",
                  "value": ""
                },
                {
                  "key": "document_id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Search a knowledge base (\"Test this KB\")",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/knowledge-bases/:id/search",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "knowledge-bases",
                ":id",
                "search"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"query\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Knowledge bases an agent answers from",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/knowledge-bases",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "knowledge-bases"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Choose the knowledge bases an agent answers from",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/knowledge-bases",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "knowledge-bases"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Replaces the set. Order is kept.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"knowledge_base_ids\": []\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Scripts",
      "item": [
        {
          "name": "List call scripts",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/scripts",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "scripts"
              ]
            }
          }
        },
        {
          "name": "Add a script from pasted text",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/scripts",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "scripts"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"\",\n  \"content\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Add a script from a file",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/scripts/files",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "scripts",
                "files"
              ]
            },
            "description": "The file is read into text and sections when it is uploaded; the file itself isn't kept."
          }
        },
        {
          "name": "Get a script with its sections",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/scripts/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "scripts",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Delete a script",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/scripts/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "scripts",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Agents that follow it stop doing so."
          }
        },
        {
          "name": "Rename a script or change its text or lines",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/scripts/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "scripts",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "The scripts an agent follows, in order",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/scripts",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "scripts"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Choose the scripts an agent follows",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/scripts",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "scripts"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"script_ids\": []\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Draft an agent's workflow from a script with AI",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/scripts/:id/generate-workflow",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "scripts",
                ":id",
                "generate-workflow"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Build with AI, given the script: returns the same result as `POST /agents/{id}/workflow/assist`, with lines marked say exactly kept word for word. Costs one Build with AI message. Nothing is saved: the editor applies it to the draft.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"agent_id\": \"00000000-0000-4000-8000-000000000000\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Members",
      "item": [
        {
          "name": "List team members",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/members",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "members"
              ]
            }
          }
        },
        {
          "name": "Add a member by email",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/members",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "members"
              ]
            },
            "description": "Creates the user if needed and adds them to the team. Owner, admin and editor roles consume an editor seat; viewers are free and unlimited. People normally join through an invitation (POST /v1/invitations) instead.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"email\": \"\",\n  \"role\": \"owner\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Remove a member",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/members/:user_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "members",
                ":user_id"
              ],
              "variable": [
                {
                  "key": "user_id",
                  "value": ""
                }
              ]
            },
            "description": "API keys the member created here (and, for an agency, in its client workspaces they reached through this membership) are revoked too."
          }
        },
        {
          "name": "Change a member's role",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/members/:user_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "members",
                ":user_id"
              ],
              "variable": [
                {
                  "key": "user_id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"role\": \"owner\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Invitations",
      "item": [
        {
          "name": "Pending invitations (open or expired, not yet accepted or withdrawn)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/invitations",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "invitations"
              ]
            }
          }
        },
        {
          "name": "Invite someone by email",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/invitations",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "invitations"
              ]
            },
            "description": "Emails a link that's valid for 7 days. An invitation for a seat role (owner, admin, editor) holds an editor seat until it's accepted, withdrawn or expires. A workspace can send 20 invitation emails a day, one person 5, at least 10 minutes apart (429 `rate_limited`; resends and withdrawn invitations count).",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"email\": \"\",\n  \"role\": \"owner\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Send a new link (the old one stops working) and restart the 7 days",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/invitations/:id/resend",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "invitations",
                ":id",
                "resend"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Withdraw an invitation",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/invitations/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "invitations",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        }
      ]
    },
    {
      "name": "Teams",
      "item": [
        {
          "name": "List teams in the workspace",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/teams",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "teams"
              ]
            }
          }
        },
        {
          "name": "Create a team",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/teams",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "teams"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Delete a team (agents that alerted it stop alerting anyone)",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/teams/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "teams",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Rename or recolor a team",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/teams/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "teams",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Add a workspace member to a team",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/teams/:id/members",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "teams",
                ":id",
                "members"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"user_id\": \"00000000-0000-4000-8000-000000000000\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Remove someone from a team",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/teams/:id/members/:user_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "teams",
                ":id",
                "members",
                ":user_id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                },
                {
                  "key": "user_id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Set who transferred calls ring, and how",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/teams/:id/on-call",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "teams",
                ":id",
                "on-call"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Replaces the team's on-call list. People are tried one at a time, in this order. With a weekly rotation, the first person here is on call now, and the list moves down one place at each handoff.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"people\": []\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Client workspaces",
      "item": [
        {
          "name": "An agency's client workspaces, archived ones included",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/clients",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "clients"
              ]
            }
          }
        },
        {
          "name": "Create a client workspace under this agency",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/clients",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "clients"
              ]
            },
            "description": "The agency's owners and admins can open it straight away as admins; invite the client's own people from inside it.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Each client's calls and minutes for a month",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/clients/usage",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "clients",
                "usage"
              ],
              "query": [
                {
                  "key": "month",
                  "value": "",
                  "disabled": true
                }
              ]
            },
            "description": "Without `month`, the agency's current billing period (the one caps count against). With `month` (YYYY-MM), that calendar month in UTC. Archived clients are included."
          }
        },
        {
          "name": "Rename, archive or restore a client workspace",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/clients/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "clients",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Archiving hides the workspace and closes it to everyone. Its phone numbers stop answering (callers hear it's unavailable) until it's restored or they're released. Restoring one counts against the plan's client workspace limit again (402 `client_workspace_limit` when it's full). `cap` replaces the client's monthly minute cap.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "White-label",
      "item": [
        {
          "name": "The agency's white-label settings",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/brand",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "brand"
              ]
            },
            "description": "Refreshes a sending domain's status from the mail provider until it verifies."
          }
        },
        {
          "name": "Change the brand's name, colour, support email, website or Powered by line",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/brand",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "brand"
              ]
            },
            "description": "Null clears a field. Clearing the name turns the white-label off.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Upload the square or wide logo (PNG or SVG, up to 256 KB)",
          "request": {
            "method": "PUT",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/brand/logos/:variant",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "brand",
                "logos",
                ":variant"
              ],
              "variable": [
                {
                  "key": "variant",
                  "value": ""
                }
              ]
            },
            "description": "SVGs are cleaned of scripts, links and anything else that isn't drawing."
          }
        },
        {
          "name": "Remove a logo",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/brand/logos/:variant",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "brand",
                "logos",
                ":variant"
              ],
              "variable": [
                {
                  "key": "variant",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Send clients' email from your own domain",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/brand/mail-domain",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "brand",
                "mail-domain"
              ]
            },
            "description": "Registers the domain with the mail provider and returns the DNS records to add. Replaces an earlier domain. Mail keeps going from Ladoo's address until it verifies.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"domain\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Stop sending from your domain",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/brand/mail-domain",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "brand",
                "mail-domain"
              ]
            }
          }
        },
        {
          "name": "Check the sending domain's DNS records now",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/brand/mail-domain/verify",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "brand",
                "mail-domain",
                "verify"
              ]
            }
          }
        }
      ]
    },
    {
      "name": "Client billing",
      "item": [
        {
          "name": "The agency's linked Stripe account",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/agency/stripe",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agency",
                "stripe"
              ]
            }
          }
        },
        {
          "name": "Unlink the agency's Stripe account",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/agency/stripe",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agency",
                "stripe"
              ]
            },
            "description": "Ladoo stops creating client subscriptions and sending usage. Subscriptions already on the agency's account stay there. The agency's own Ladoo plan isn't affected."
          }
        },
        {
          "name": "Start linking the agency's Stripe account",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agency/stripe/authorize",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agency",
                "stripe",
                "authorize"
              ]
            },
            "description": "Returns the Stripe URL to send the browser to. Stripe sends it back to the dashboard's /settings/clients/stripe-callback with `code` and `state`."
          }
        },
        {
          "name": "Finish linking the agency's Stripe account",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agency/stripe/callback",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agency",
                "stripe",
                "callback"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"code\": \"\",\n  \"state\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Bill a client through the agency's Stripe, or change its price",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/clients/:id/billing",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "clients",
                ":id",
                "billing"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "The first call creates the customer and subscription on the agency's Stripe account; later calls change the price from the next invoice.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"monthly_price_cents\": 0,\n  \"included_minutes\": 0,\n  \"overage_per_minute_centicents\": 0,\n  \"billing_email\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Stop billing a client",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/clients/:id/billing",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "clients",
                ":id",
                "billing"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Its subscription on the agency's Stripe ends at the end of the current period."
          }
        }
      ]
    },
    {
      "name": "API keys",
      "item": [
        {
          "name": "Active API keys (the secret part is never shown again)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/api-keys",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "api-keys"
              ]
            }
          }
        },
        {
          "name": "Create an API key",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/api-keys",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "api-keys"
              ]
            },
            "description": "The new key can do no more than the caller can do here. The full key is in this response only.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Revoke an API key; requests using it fail from now on",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/api-keys/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "api-keys",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        }
      ]
    },
    {
      "name": "Testing",
      "item": [
        {
          "name": "Give back a test session's minutes when the agent never joined",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/test-sessions/:room_name",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "test-sessions",
                ":room_name"
              ],
              "variable": [
                {
                  "key": "room_name",
                  "value": ""
                }
              ]
            },
            "description": "A session holds its minutes from when it's created. If the agent never picks up, this gives them back right away instead of when the token expires, and the room can't start a call afterwards. Once the agent has joined it answers 409 `test_session_started`: the minutes free up when that call ends."
          }
        },
        {
          "name": "Start a browser test session (voice or text) with an agent",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/test-sessions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "test-sessions"
              ]
            },
            "description": "Mints a short-lived LiveKit token for a fresh room with the agent dispatched. The session is recorded as a call with kind=test and counts against the plan's test minutes; it ends on its own when they run out. The agent doesn't need a phone number.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"agent_id\": \"00000000-0000-4000-8000-000000000000\",\n  \"mode\": \"voice\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Voices",
      "item": [
        {
          "name": "List TTS voices available to agents",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/voices",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "voices"
              ],
              "query": [
                {
                  "key": "search",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "cursor",
                  "value": "",
                  "disabled": true
                }
              ]
            },
            "description": "Voices in the ElevenLabs account, sorted by name, limited to those usable with the agent TTS model (professional clones must be trained for it). `search` matches name, description and labels. Upstream responses are cached for a few minutes."
          }
        },
        {
          "name": "Get one voice",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/voices/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "voices",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Hear a short phrase in a voice",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/voices/:id/speech",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "voices",
                ":id",
                "speech"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Synthesizes up to 200 characters with the agent TTS model, e.g. to check how a pronunciation sounds before publishing. Identical requests are cached for a few minutes. Each workspace (with an agency's clients) can play 50 a day on the Free plan and 500 on paid plans (429 `voice_preview_limit`).",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"text\": \"Thanks for calling Lah-doo.\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Integrations",
      "item": [
        {
          "name": "The workspace's LeadConnector connection",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/integrations/crm",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "integrations",
                "crm"
              ]
            }
          }
        },
        {
          "name": "Disconnect LeadConnector",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/integrations/crm",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "integrations",
                "crm"
              ]
            },
            "description": "Forgets the tokens and the imported contacts, so Ladoo stops reading and writing. Ladoo also tries to uninstall its app from the LeadConnector account (that one only); `ghl_app` says whether it did. Nothing else in your CRM is changed."
          }
        },
        {
          "name": "Change the LeadConnector settings",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/integrations/crm",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "integrations",
                "crm"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"settings\": {}\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Calendars and pipelines to choose from",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/integrations/crm/options",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "integrations",
                "crm",
                "options"
              ]
            }
          }
        },
        {
          "name": "Ladoo people who aren't in LeadConnector yet",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/integrations/crm/people-import",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "integrations",
                "crm",
                "people-import"
              ]
            },
            "description": "Who adding your Ladoo people to your CRM would send, and the latest import. Owners and admins only."
          }
        },
        {
          "name": "Add Ladoo people to LeadConnector",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/integrations/crm/people-import",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "integrations",
                "crm",
                "people-import"
              ]
            },
            "description": "Queues a background import of everyone the preview lists. New people get a contact; people your CRM already has (same phone or email) only get fields they have blank. Everyone gets the `ladoo-import` tag. With `include_notes`, each contact also gets one note with that person's conversation summaries. Team notes are never sent. Owners and admins only.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "The workspace's booking calendars",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/integrations/calendar",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "integrations",
                "calendar"
              ]
            }
          }
        },
        {
          "name": "Disconnect the booking calendar (one connection)",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/integrations/calendar",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "integrations",
                "calendar"
              ]
            },
            "description": "For a workspace with one calendar (none: nothing to do). With several, 409 `several_calendars`: use DELETE /integrations/calendars/{id}."
          }
        },
        {
          "name": "Change the booking settings (one connection)",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/integrations/calendar",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "integrations",
                "calendar"
              ]
            },
            "description": "For a workspace with one calendar. With several, 409 `several_calendars`.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"settings\": {}\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Start connecting Google Calendar or Outlook",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/integrations/calendar/:provider/authorize",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "integrations",
                "calendar",
                ":provider",
                "authorize"
              ],
              "variable": [
                {
                  "key": "provider",
                  "value": ""
                }
              ]
            },
            "description": "Returns the sign-in URL to send the browser to. It comes back to the dashboard's /settings/integrations/calendar/callback with `code` and `state` (the registered redirect address; the dashboard then opens Calendar → Settings).",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Finish connecting Google Calendar or Outlook",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/integrations/calendar/callback",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "integrations",
                "calendar",
                "callback"
              ]
            },
            "description": "Adds the account beside the workspace's other calendars, or reconnects it when it is already connected and needs it. 409 `calendar_already_connected`: that account is already connected and working.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"code\": \"\",\n  \"state\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Calendars to book into (one connection)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/integrations/calendar/options",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "integrations",
                "calendar",
                "options"
              ]
            },
            "description": "For a workspace with one calendar. With several, 409 `several_calendars`: use /integrations/calendars/{id}/options."
          }
        },
        {
          "name": "Calendars to book into, in one connection",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/integrations/calendars/:id/options",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "integrations",
                "calendars",
                ":id",
                "options"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Disconnect one calendar",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/integrations/calendars/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "integrations",
                "calendars",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Deletes its tokens (and revokes Google's) or the calendar link's address, at once. The workspace's other calendars are untouched. Events already booked stay in the calendar. Agents that chose it stop booking into it and keep booking into the rest of their choice; one left with none takes messages."
          }
        },
        {
          "name": "Change one connection's booking settings",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/integrations/calendars/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "integrations",
                "calendars",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"settings\": {}\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Connect a calendar link",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/integrations/calendar/ics",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "integrations",
                "calendar",
                "ics"
              ]
            },
            "description": "Books without signing in to Google or Microsoft. `url` is the calendar's private iCal address (https:// or webcal://); it is fetched to check it, then stored sealed, and read for busy times. Bookings are kept in Ladoo: subscribe to `feed` to see them. It is added beside the workspace's other calendars; `connection_id` replaces that calendar link's address instead, keeping its name, settings and subscribe address. 409 `calendar_already_connected`: that address is already connected.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"url\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Change the subscribe address (one calendar link)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/integrations/calendar/feed/reset",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "integrations",
                "calendar",
                "feed",
                "reset"
              ]
            },
            "description": "A calendar link's new `feed`. The old address stops working at once. With several calendar links, 409 `several_calendars`."
          }
        },
        {
          "name": "Change a calendar link's subscribe address",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/integrations/calendars/:id/feed/reset",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "integrations",
                "calendars",
                ":id",
                "feed",
                "reset"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "The old address stops working at once."
          }
        },
        {
          "name": "Calendars an agent can book into",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/integrations/booking-calendars",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "integrations",
                "booking-calendars"
              ]
            },
            "description": "Every connected calendar (your CRM, and Google Calendar, Outlook or a calendar link) with the calendars in it, for choosing an agent's calendars. A connection that can't be read right now is still listed, with `error`."
          }
        }
      ]
    },
    {
      "name": "Integration requests",
      "item": [
        {
          "name": "Ask Ladoo to build an integration",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/integration-requests",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "integration-requests"
              ]
            },
            "description": "Dashboard only (signed in). Saves the request and emails it to Ladoo support, with replies going to `contact_email`. At most 10 per workspace a day.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"integration\": \"google_calendar\",\n  \"contact_email\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Apps",
      "item": [
        {
          "name": "Whether this workspace has the Apps hub",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/apps/enabled",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "apps",
                "enabled"
              ]
            }
          }
        },
        {
          "name": "Search the apps a workspace can connect",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/apps",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "apps"
              ],
              "query": [
                {
                  "key": "search",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "category",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "cursor",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "",
                  "disabled": true
                }
              ]
            },
            "description": "Featured apps first, then one-click apps, then apps that need an API key."
          }
        },
        {
          "name": "The workspace's app connections",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/apps/connections",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "apps",
                "connections"
              ]
            }
          }
        },
        {
          "name": "One app connection, with its latest status",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/apps/connections/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "apps",
                "connections",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Disconnect an app",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/apps/connections/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "apps",
                "connections",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Revokes the sign-in and turns the app's actions off for every agent."
          }
        },
        {
          "name": "An app and the actions agents can use in it",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/apps/:slug",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "apps",
                ":slug"
              ],
              "variable": [
                {
                  "key": "slug",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Start connecting an app",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/apps/:slug/connect",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "apps",
                ":slug",
                "connect"
              ],
              "variable": [
                {
                  "key": "slug",
                  "value": ""
                }
              ]
            },
            "description": "Returns a sign-in link to open in a pop-up. It expires after about 10 minutes, so create it when the owner clicks. After sign-in the pop-up returns to `{dashboard}/apps/callback?connection_id=…`; poll the connection until it isn't `initiated`."
          }
        },
        {
          "name": "The app actions an agent may use",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/apps",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "apps"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Choose which of an app's actions an agent may use",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/agents/:id/apps/:slug/actions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "agents",
                ":id",
                "apps",
                ":slug",
                "actions"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                },
                {
                  "key": "slug",
                  "value": ""
                }
              ]
            },
            "description": "An empty list turns the app off for this agent.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"actions\": []\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Calendar",
      "item": [
        {
          "name": "Appointments Ladoo booked",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/calendar/bookings",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "calendar",
                "bookings"
              ],
              "query": [
                {
                  "key": "from",
                  "value": "",
                  "disabled": false,
                  "description": "Start of the range (inclusive)"
                },
                {
                  "key": "to",
                  "value": "",
                  "disabled": false,
                  "description": "End of the range (exclusive). At most 42 days after `from`."
                },
                {
                  "key": "include_cancelled",
                  "value": "",
                  "disabled": true,
                  "description": "Also list cancelled appointments"
                }
              ]
            },
            "description": "Appointments overlapping the range, oldest first: every appointment a call booked into Google Calendar, Outlook, your CRM or a calendar link (test calls left out). Cancelled ones are left out unless `include_cancelled`. Upcoming ones are checked against their calendars now and then, so one deleted there shows as `removed`."
          }
        },
        {
          "name": "Cancel an appointment",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/calendar/bookings/:id/cancel",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "calendar",
                "bookings",
                ":id",
                "cancel"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Removes the appointment from every calendar Ladoo wrote it to (only the event Ladoo created), and keeps it as cancelled. One calendar failing doesn't stop the others: `events` says what happened in each, and calling this again retries the ones that failed. Calling it on a finished cancel changes nothing. Your CRM may notify the contact, depending on its settings."
          }
        },
        {
          "name": "Appointments a call booked",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/calendar/calls/:call_id/bookings",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "calendar",
                "calls",
                ":call_id",
                "bookings"
              ],
              "variable": [
                {
                  "key": "call_id",
                  "value": ""
                }
              ]
            },
            "description": "Including cancelled ones, oldest first."
          }
        },
        {
          "name": "When the connected calendar is busy",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/calendar/busy",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "calendar",
                "busy"
              ],
              "query": [
                {
                  "key": "from",
                  "value": "",
                  "disabled": false,
                  "description": "Start of the range (inclusive)"
                },
                {
                  "key": "to",
                  "value": "",
                  "disabled": false,
                  "description": "End of the range (exclusive). At most 42 days after `from`."
                }
              ]
            },
            "description": "Busy times from the connected Google Calendar, Outlook or calendar link, without details. Never fails because of the calendar: `status` says whether it could be read. Cached for a minute. Refused (403 `staff_view_hidden`) when Ladoo staff view the workspace."
          }
        },
        {
          "name": "Booking confirmation settings",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/calendar/confirmations",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "calendar",
                "confirmations"
              ]
            }
          }
        },
        {
          "name": "Change booking confirmation settings",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/calendar/confirmations",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "calendar",
                "confirmations"
              ]
            },
            "description": "Templates may use the placeholders {caller_name}, {date}, {time}, {business}, {address} and {agent}; anything else in braces is refused. A null template goes back to the default.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Email yourself a test confirmation",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/calendar/confirmations/test",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "calendar",
                "confirmations",
                "test"
              ]
            },
            "description": "Sends the confirmation, with sample details, to the signed-in person's own email. `template` tries words that aren't saved yet. Not for API keys.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    }
  ]
}
