@omnidim-ai/mcp-server 0.20.1 → 0.21.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.js CHANGED
@@ -5,10 +5,11 @@
5
5
  import { readApiKey } from "./credentials.js";
6
6
  import { isInteractive, printInteractiveHelp, requestIdNote, startupBanner, trimLargeResponse, USER_AGENT } from "./helpers.js";
7
7
  import { beginSession, emitSessionCrash, emitSessionEnd, endSession, recordToolError, recordToolResult } from "./telemetry.js";
8
- import { registerProcedures } from "./procedures.js";
8
+ import { READ_GUIDE_INSTRUCTION, addGuideTool, callGuideTool, isGuideTool, registerProcedures } from "./procedures.js";
9
9
  import { keepReadOnlyTools, readOnlyMode, toolAnnotations } from "./tool-annotations.js";
10
10
  import { addShowWorkflow, toolMeta } from "./workflow-canvas.js";
11
11
  import { addDocsTools, callDocsTool, isDocsTool } from "./docs-tools.js";
12
+ import { flatInputSchema, nestBodyArgs } from "./flat-args.js";
12
13
  import { notifyUpdates } from "./update_notifier.js";
13
14
  import { Server } from "@modelcontextprotocol/sdk/server/index.js";
14
15
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
@@ -20,7 +21,7 @@ import axios from 'axios';
20
21
  * Server configuration
21
22
  */
22
23
  export const SERVER_NAME = "OmniDimension";
23
- export const SERVER_VERSION = "0.20.1"; // x-release-please-version
24
+ export const SERVER_VERSION = "0.21.1"; // x-release-please-version
24
25
  // Base URL for the API. Pinned to production; not env-overridable.
25
26
  export const API_BASE_URL = "https://omnidim.io/api/v1";
26
27
  /**
@@ -41,7 +42,9 @@ Conventions:
41
42
  - For details on one item, call get<Resource>(id) after listing.
42
43
  - Dispatching calls: run listPhoneNumbers first. If the account has numbers, pass the chosen one as from_number_id. If it has none, omit from_number_id and the platform's default number is used. Never guess a from_number_id.
43
44
  - Configure OMNIDIM_API_KEY in your MCP client config to authenticate.
44
- - API reference: https://docs.omnidim.io`;
45
+ - API reference: https://docs.omnidim.io
46
+
47
+ ${READ_GUIDE_INSTRUCTION}`;
45
48
  const server = new Server({ name: SERVER_NAME, version: SERVER_VERSION }, { capabilities: { tools: {}, prompts: {}, resources: {} }, instructions: SERVER_INSTRUCTIONS });
46
49
  // Prompts (procedures) and resources (reference) layered on top of the tools.
47
50
  registerProcedures(server);
@@ -51,18 +54,15 @@ registerProcedures(server);
51
54
  const toolDefinitionMap = new Map([
52
55
  ["createSession", {
53
56
  name: "createSession",
54
- description: `Create a voice Session: a short-lived, single-conversation
55
- reservation that lets a client hold a live voice chat with your
56
- agent. This is step 1 of 2. Creating the Session does not start any
57
- audio on its own; it returns a \`ws_url\` that a client then connects
58
- to over WebSocket to actually talk.
59
-
60
- Call this endpoint from your server with your API key, and return
61
- only the \`ws_url\` to your client. The API key must never reach the
62
- browser. The \`ws_url\` is the only thing the client needs, and it is
63
- safe to hand out because it is single-use and expires. For how to
64
- connect and talk, see "Connect the client and talk" below the
65
- request details.
57
+ description: `Create a short-lived voice session and get a \`ws_url\` for one conversation.
58
+
59
+ This is step 1 of 2. Creating the session starts no audio. The client then
60
+ connects to \`ws_url\` over WebSocket to talk.
61
+
62
+ Call this endpoint from your server with your API key. Return only \`ws_url\`
63
+ to your client, and never the API key. The \`ws_url\` is single-use and
64
+ expires, so it is safe to hand to your client. For how to connect and talk,
65
+ see "Connect the client and talk" below the request details.
66
66
 
67
67
  (Tags: Sessions)`,
68
68
  inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["agent_id", "type"], "properties": { "agent_id": { "type": "number", "description": "ID of the agent the session talks to." }, "type": { "type": "string", "default": "voice", "enum": ["voice"], "description": "The session type. Only `voice` is supported." }, "custom_variables": { "type": "object", "additionalProperties": true, "description": "Per-session variables that personalize the conversation.\nSet server-side, so visitors cannot tamper with them.\nTwo reserved keys are read as instructions for this session\nand never reach the agent: `__languages` and\n`__post_call_actions`.\n", "properties": { "__languages": { "oneOf": [{ "type": "array", "items": { "type": "string" } }, { "type": "string" }], "description": "Languages this session runs in, replacing the agent's\nconfigured list. The first entry is the language the\nvisitor is greeted in. Send an array, or a pipe-separated\nstring such as `Hindi|English`.\n" }, "__post_call_actions": { "allOf": [{ "type": "object", "additionalProperties": true, "description": "Post-call actions: email, webhook, Omni CRM, WhatsApp, workflow, Google Sheets, Slack, Salesforce, HubSpot or Zoho Bigin. On an agent, add them one at a time with addPostCallAction instead. Full shape: https://docs.omnidim.io/docs/per-call-post-call-actions" }], "description": "Post-call actions for this session only, in the same shape\nas `post_call_actions` on agent create. Email and webhook\nonly. They replace the agent's own post-call actions for\nthis session. Items that cannot be used are skipped and\nlisted in `post_call_actions_ignored`.\n" } } }, "metadata": { "type": "object", "additionalProperties": true, "description": "Key-value pairs stored on the session for your own\ntracking (e.g. CRM or lead IDs). Not shared with the\nagent; echoed back as `metadata` in the post-call\nwebhook so you can correlate results with your records.\n" } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
@@ -89,26 +89,22 @@ request details.
89
89
  }],
90
90
  ["createAgent", {
91
91
  name: "createAgent",
92
- description: `Create a new agent with the provided configuration. The full
93
- config supports transcriber, model, voice, web search, transfer,
94
- end-call conditions, post-call actions (email, webhook, Omni CRM,
95
- Cloud WhatsApp, or a workflow),
96
- ambient background track, initial ringing sound, and multilingual support.
97
-
98
- Leave out \`model\`, \`transcriber\` and \`voice\` unless you need a specific
99
- one: the agent then gets your organization's default language model,
100
- transcriber and voice, which always work. To choose one, pick from the
101
- LLM, STT and TTS providers lists, which show only the models your
102
- organization can use. Any other model is refused with a message naming
103
- the default to use instead.
104
-
105
- > **Voicemail detection is an access-gated feature** that we turn on per
106
- account. If it isn't enabled for yours yet,
107
- [request access](https://omnidim.io/contact-us?reason=product&lock=1)
108
- before configuring the \`voicemail\` object.
92
+ description: `Create an agent from a name and a context. Every other setting is optional.
93
+
94
+ Optional settings: transcriber, model, voice, web search, transfer,
95
+ end-call conditions, post-call actions (email, webhook, Omni CRM, Cloud
96
+ WhatsApp, or a workflow), ambient background track, initial ringing
97
+ sound and multilingual support.
98
+
99
+ Leave out \`model\`, \`transcriber\` and \`voice\` to get your organization's
100
+ defaults, which always work. To pick one, use the LLM, STT or TTS provider
101
+ list: it shows only the models your organization can use. Any other model is
102
+ refused, and the error names the default to use.
103
+
104
+ > **Voicemail detection is access-gated** and turned on per account. If it is off for yours, [request access](https://omnidim.io/contact-us?reason=product&lock=1) before you configure the \`voicemail\` object.
109
105
 
110
106
  (Tags: Agents)`,
111
- inputSchema: { "type": "object", "properties": { "Idempotency-Key": { "type": "string", "maxLength": 255, "description": "Your own unique key for this agent, for example a fresh UUID.\nSend the same key when you retry. If the first request already\ncreated the agent, you get that agent back instead of a second\none, so a request that timed out is safe to repeat. The same key\nwith a different request body is refused. Keys are kept for 24\nhours.\n" }, "requestBody": { "allOf": [{ "type": "object", "description": "Agent configuration.", "properties": { "name": { "type": "string", "description": "Name for the agent.", "example": "Customer Support Agent" }, "welcome_message": { "type": "string", "description": "Initial message the agent will say when answering a call.", "example": "Hello! How can I help you today?" }, "is_welcome_message_dynamic": { "type": "boolean", "description": "When true, the welcome message is treated as a directive the agent uses to generate a tailored greeting for each call, rather than being spoken word for word. When false, the welcome message is spoken exactly as written." }, "is_welcome_message_interruption": { "type": "boolean", "description": "Allow the caller to interrupt the welcome message. When false, the agent finishes speaking the welcome before listening." }, "is_interruption_allowed": { "type": "boolean", "description": "Global toggle for whether the caller can interrupt the agent mid-sentence at any point in the call." }, "dynamic_variables": { "type": "object", "description": "Key/value map used to substitute placeholders in the agent's\nprompt and welcome message at call time. Reference a variable\nin your prompt with `{{variable_name}}`. Useful for\npersonalising the same agent across many calls.\n", "additionalProperties": { "type": "string" }, "example": { "customer_name": "Jane Doe", "order_id": "ORD-12345" } }, "context_breakdown": { "type": "array", "description": "List of context breakdowns, each containing `title`, `body`, and optional `is_enabled`.", "items": { "type": "object", "required": ["title", "body"], "properties": { "title": { "type": "string", "description": "Title of the breakdown.", "example": "Purpose" }, "body": { "type": "string", "description": "Body of the breakdown, the detailed prompt content.", "example": "This agent helps customers with product inquiries and support issues." }, "is_enabled": { "type": "boolean", "default": true, "description": "Whether this section is included in the prompt." } } } }, "call_type": { "type": "string", "enum": ["Incoming", "Outgoing"], "description": "Call type of the assistant." }, "timezone": { "type": "string", "description": "IANA timezone for this agent, for example `Asia/Kolkata`. Sets the local date and time the agent works with during calls. If not set, the account timezone is used as fallback. Pass an empty string to clear it.", "example": "America/New_York" }, "transcriber": { "type": "object", "description": "Configuration for the speech-to-text transcriber.", "properties": { "provider": { "type": "string", "description": "The speech-to-text provider to use: a `name` from the STT providers list, which returns the ones your organization can use. Leave it out to use your organization's default transcriber.", "example": "deepgram_stream" }, "model": { "type": "string", "description": "Transcription model for the selected provider. For\n`deepgram_stream` this is `nova-3` or `nova-2`; other\nproviders take their own model identifiers.\n", "example": "nova-3" }, "language": { "type": "string", "description": "Language code for the transcriber. Format and supported\nvalues depend on the provider (e.g. `en-US` for Deepgram,\n`hi-IN` for Sarvam). Applies regardless of which\n`provider` is selected.\n", "example": "en-US" }, "silence_timeout_ms": { "type": "integer", "description": "Silence timeout in milliseconds.", "example": 400 }, "should_apply_noise_reduction": { "type": "boolean", "description": "Reduce background noise on the inbound audio stream before transcription." }, "interruption_min_words": { "type": "integer", "minimum": 1, "description": "Minimum number of words the caller must say before their speech is treated as an interruption.", "example": 2 }, "max_call_duration_in_sec": { "type": "integer", "minimum": 1, "description": "Hard upper bound on call length in seconds. The agent will end the call once this is reached.", "example": 600 }, "first_ideal_message": { "type": "string", "description": "First nudge spoken when the caller goes silent past the\nidle threshold. Set `is_first_ideal_message_dynamic` to\n`true` to have the LLM regenerate this each time.\n" }, "is_first_ideal_message_dynamic": { "type": "boolean", "description": "When true, `first_ideal_message` is treated as a prompt and the LLM generates a fresh nudge each call." }, "second_ideal_message": { "type": "string", "description": "Second nudge spoken if silence continues after the first." }, "is_second_ideal_message_dynamic": { "type": "boolean", "description": "When true, `second_ideal_message` is treated as a prompt and the LLM generates a fresh nudge each call." }, "numerals": { "type": "boolean", "description": "Convert numbers from words to digits." }, "punctuate": { "type": "boolean", "description": "Add punctuation to the transcript." }, "smart_format": { "type": "boolean", "description": "Apply smart formatting to the transcript." }, "diarize": { "type": "boolean", "description": "Identify different speakers in the transcript." } } }, "model": { "type": "object", "description": "Configuration for the language model.", "properties": { "model": { "type": "string", "description": "The language model to use: a `name` from the LLM providers list, which returns exactly the models your organization can use. Leave it out to use your organization's default model.", "example": "gpt-4.1-mini" }, "temperature": { "type": "number", "minimum": 0, "maximum": 1, "description": "Controls randomness in the model's output (0.0 to 1.0).", "example": 0.7 } } }, "voice": { "type": "object", "description": "Configuration for the text-to-speech voice. `provider` and `voice_id` identify the voice together, so send both to change it. `provider` on its own is not accepted, and a `voice_id` on its own leaves the voice as it was. The other fields here apply independently. Leave out `provider` and `voice_id` to use your organization's default voice.", "dependentRequired": { "provider": ["voice_id"] }, "properties": { "provider": { "type": "string", "description": "The voice provider to use: the `service` of a voice from the voices list, which returns only voices your organization can use. Send `voice_id` alongside it. We recommend OmniDimension voices (list them with `provider=featured`) and Cartesia voices. An agent created without `voice` gets the platform default, a Cartesia voice, which every account can use.", "example": "cartesia" }, "voice_id": { "type": "string", "description": "The provider's voice identifier, returned in the `name` field of the voices list (not the numeric `id`). Takes effect when `provider` is sent alongside it.", "example": "faf0731e-dfb9-4cfc-8119-259a79b27e12" }, "speech_speed": { "type": "number", "minimum": 0.5, "maximum": 2, "default": 1, "description": "Playback speed multiplier for the agent's voice. 1.0 is normal speed." } } }, "web_search": { "type": "object", "description": "Configuration for web search capabilities.", "properties": { "enabled": { "type": "boolean", "description": "Enable or disable web search functionality." }, "provider": { "type": "string", "enum": ["DuckDuckGo", "openAI"], "description": "The search provider to use.", "example": "DuckDuckGo" } } }, "post_call_actions": { "type": "object", "additionalProperties": true, "description": "Post-call actions: email, webhook, Omni CRM, WhatsApp, workflow, Google Sheets, Slack, Salesforce, HubSpot or Zoho Bigin. On an agent, add them one at a time with addPostCallAction instead. Full shape: https://docs.omnidim.io/docs/per-call-post-call-actions" }, "transfer": { "type": "object", "description": "Conditional call transfer to a human agent or another number.", "properties": { "enabled": { "type": "boolean" }, "transfer_options": { "type": "array", "description": "Where to transfer the call and under what condition. The first matching condition wins. In an agent update, sending this list replaces all saved options. Omit it to keep them unchanged, or send an empty array to clear them.", "items": { "type": "object", "required": ["number", "transfer_condition", "transfer_message"], "properties": { "number": { "type": "string", "description": "Primary phone number to transfer to. Include country code with leading `+`.", "example": "+15551234567" }, "type": { "type": "string", "enum": ["static", "dynamic"], "default": "static", "description": "`static` transfers to `number`. `dynamic` lets the agent\npick a number at runtime based on the conversation.\n" }, "backup_numbers": { "type": "array", "description": "Fallback numbers tried if the primary is unreachable.", "items": { "type": "string" } }, "transfer_condition": { "type": "string", "description": "Natural-language condition that triggers this transfer option.", "example": "Transfer if the customer asks to speak with a human." }, "transfer_message": { "type": "string", "description": "Message the agent says to the caller before executing the transfer.", "example": "Please hold while I connect you to one of our agents." } } } } } }, "end_call": { "type": "object", "description": "Hang up automatically when a condition is met.", "properties": { "enabled": { "type": "boolean" }, "condition": { "type": "string", "description": "Natural-language condition that triggers ending the call. Only evaluated when `enabled` is true.", "example": "End the call once the customer's issue is resolved." }, "message": { "type": "string", "description": "What the agent says before hanging up.", "example": "Thank you for contacting us. Have a great day!" }, "message_type": { "type": "string", "enum": ["static", "prompt"], "description": "`static` speaks `message` verbatim. `prompt` treats\n`message_prompt` as an LLM instruction and generates a\nfresh closing line each call (useful for matching the\ncaller's language and tone).\n" }, "message_prompt": { "type": "string", "description": "LLM prompt used to generate the closing line when `message_type` is `prompt`.", "example": "End the call politely in the same language the user is speaking." } } }, "background_track": { "type": "object", "description": "Ambient background noise that plays under the agent's voice.", "properties": { "enabled": { "type": "boolean", "description": "Whether to mix the ambient track under the agent's audio." }, "name": { "type": "string", "enum": ["call_center", "filler", "office", "office_1", "restaurant"], "description": "Ambient track to mix under the agent." }, "volume": { "type": "number", "minimum": 0, "maximum": 1, "default": 0.2, "description": "Volume level on a 0–1 scale. Default 0.2." }, "tts_volume_reduction": { "type": "number", "minimum": 0, "maximum": 1, "description": "Amount to drop the agent's TTS volume while the ambient track plays, on a 0–1 scale. Helps the voice cut through without raising the overall mix." } } }, "initial_ringing_sound_enabled": { "type": "boolean", "description": "Plays a ringing tone after the call is picked up, until the agent starts speaking." }, "voicemail": { "type": "object", "description": "Voicemail / answering-machine handling for outbound calls. Set this with the nested object shown here; the agent object returns these values as the flat fields `voicemail_enabled` and `voicemail_message`. Voicemail detection is an access-gated feature. If it isn't enabled for your account, [request access](https://omnidim.io/contact-us?reason=product&lock=1).", "properties": { "enabled": { "type": "boolean", "description": "Detect voicemail and leave your message instead of speaking to a machine." }, "message": { "type": "string", "description": "Message to leave when voicemail is detected." } } }, "languages": { "type": "array", "description": "Languages the agent should support. Pass each language as a display-name string exactly as it appears in the dashboard's language picker. Unrecognized names are skipped.", "items": { "type": "string" }, "example": ["English (India)", "Hindi"] } } }, { "type": "object", "required": ["name", "context_breakdown"] }], "description": "The JSON request body." } }, "required": ["requestBody"] },
107
+ inputSchema: { "type": "object", "properties": { "Idempotency-Key": { "type": "string", "maxLength": 255, "description": "Your own unique key for this agent, for example a fresh UUID.\nSend the same key when you retry. If the first request already\ncreated the agent, you get that agent back instead of a second\none, so a request that timed out is safe to repeat. The same key\nwith a different request body is refused. Keys are kept for 24\nhours.\n" }, "requestBody": { "allOf": [{ "type": "object", "description": "Agent configuration.", "properties": { "name": { "type": "string", "description": "Name for the agent.", "example": "Customer Support Agent" }, "welcome_message": { "type": "string", "description": "Initial message the agent will say when answering a call.", "example": "Hello! How can I help you today?" }, "is_welcome_message_dynamic": { "type": "boolean", "description": "When true, the welcome message is treated as a directive the agent uses to generate a tailored greeting for each call, rather than being spoken word for word. When false, the welcome message is spoken exactly as written." }, "is_welcome_message_interruption": { "type": "boolean", "description": "Allow the caller to interrupt the welcome message. When false, the agent finishes speaking the welcome before listening." }, "is_interruption_allowed": { "type": "boolean", "description": "Global toggle for whether the caller can interrupt the agent mid-sentence at any point in the call." }, "dynamic_variables": { "type": "object", "description": "Key/value map used to substitute placeholders in the agent's\nprompt and welcome message at call time. Reference a variable\nin your prompt with `{{variable_name}}`. Useful for\npersonalising the same agent across many calls.\n", "additionalProperties": { "type": "string" }, "example": { "customer_name": "Jane Doe", "order_id": "ORD-12345" } }, "context_breakdown": { "type": "array", "description": "The agent's prompt sections, each with `title`, `body` and optional `is_enabled`. Sending them replaces the whole list and rebuilds the prompt from the enabled sections in order: each `title` becomes a `# title` heading on its own line, with its `body` below it, the same layout the dashboard uses. A save without `context_breakdown` leaves the prompt unchanged.", "items": { "type": "object", "required": ["title", "body"], "properties": { "title": { "type": "string", "description": "Title of the breakdown.", "example": "Purpose" }, "body": { "type": "string", "description": "Body of the breakdown, the detailed prompt content.", "example": "This agent helps customers with product inquiries and support issues." }, "is_enabled": { "type": "boolean", "default": true, "description": "Whether this section is included in the prompt." } } } }, "call_type": { "type": "string", "enum": ["Incoming", "Outgoing"], "description": "`Incoming` for an agent that answers calls, `Outgoing` for one that places them, spelled exactly so. Any other value, `incoming` included, saves as `Outgoing` and the response lists it in `warnings`." }, "timezone": { "type": "string", "description": "IANA timezone for this agent, for example `Asia/Kolkata`. Sets the local date and time the agent works with during calls. If not set, the account timezone is used as fallback. Pass an empty string to clear it.", "example": "America/New_York" }, "transcriber": { "type": "object", "description": "Configuration for the speech-to-text transcriber.", "properties": { "provider": { "type": "string", "description": "The speech-to-text provider to use: a `name` from the STT providers list, which returns the ones your organization can use. Leave it out to use your organization's default transcriber.", "example": "deepgram_stream" }, "model": { "type": "string", "description": "Transcription model for the selected provider. For\n`deepgram_stream` this is `nova-3` or `nova-2`. Saved only\nfor `deepgram_stream`, `cartesia` and `sarvam`, and only\nwhen `provider` is in the same request.\n", "example": "nova-3" }, "language": { "type": ["string", "array"], "items": { "type": "string" }, "description": "Language code for the transcriber. Format and supported\nvalues depend on the provider (e.g. `en-US` for Deepgram,\n`hi-IN` for Sarvam). `soniox` takes a list of codes, such as\n`[\"en\", \"hi\"]`, and an empty list detects the language. Saved only when `provider` is in the\nsame request and is `deepgram_stream`, `cartesia`, `sarvam`,\n`azure` or `soniox`.\n", "example": "en-US" }, "silence_timeout_ms": { "type": "integer", "description": "Silence timeout in milliseconds.", "example": 400 }, "should_apply_noise_reduction": { "type": "boolean", "description": "Reduce background noise on the inbound audio stream before transcription." }, "interruption_min_words": { "type": "integer", "minimum": 1, "description": "Minimum number of words the caller must say before their speech is treated as an interruption.", "example": 2 }, "max_call_duration_in_sec": { "type": "integer", "minimum": 1, "description": "Hard upper bound on call length in seconds. The agent will end the call once this is reached.", "example": 600 }, "first_ideal_message": { "type": "string", "description": "First nudge spoken when the caller goes silent past the\nidle threshold. Set `is_first_ideal_message_dynamic` to\n`true` to have the LLM regenerate this each time.\n" }, "is_first_ideal_message_dynamic": { "type": "boolean", "description": "When true, `first_ideal_message` is treated as a prompt and the LLM generates a fresh nudge each call." }, "second_ideal_message": { "type": "string", "description": "Second nudge spoken if silence continues after the first." }, "is_second_ideal_message_dynamic": { "type": "boolean", "description": "When true, `second_ideal_message` is treated as a prompt and the LLM generates a fresh nudge each call." }, "numerals": { "type": "boolean", "description": "Convert numbers from words to digits." }, "punctuate": { "type": "boolean", "description": "Add punctuation to the transcript." }, "smart_format": { "type": "boolean", "description": "Apply smart formatting to the transcript." }, "diarize": { "type": "boolean", "description": "Identify different speakers in the transcript." } } }, "model": { "type": "object", "description": "Configuration for the language model.", "properties": { "model": { "type": "string", "description": "The language model to use: a `name` from the LLM providers list, which returns exactly the models your organization can use. Leave it out to use your organization's default model.", "example": "gpt-4.1-mini" }, "temperature": { "type": "number", "minimum": 0, "maximum": 1, "description": "Controls randomness in the model's output (0.0 to 1.0).", "example": 0.7 } } }, "voice": { "type": "object", "description": "Configuration for the text-to-speech voice. `provider` and `voice_id` identify the voice together, so send both to change it. `provider` on its own is not accepted, and a `voice_id` on its own leaves the voice as it was. The other fields here apply independently. Leave out `provider` and `voice_id` to use your organization's default voice.", "dependentRequired": { "provider": ["voice_id"] }, "properties": { "provider": { "type": "string", "description": "The voice provider to use: the `service` of a voice from the voices list, which returns only voices your organization can use. Send `voice_id` alongside it. We recommend OmniDimension voices (list them with `provider=featured`) and Cartesia voices. An agent created without `voice` gets the platform default, a Cartesia voice, which every account can use.", "example": "cartesia" }, "voice_id": { "type": "string", "description": "The provider's voice identifier, returned in the `name` field of the voices list (not the numeric `id`). Takes effect when `provider` is sent alongside it.", "example": "faf0731e-dfb9-4cfc-8119-259a79b27e12" }, "speech_speed": { "type": "number", "minimum": 0.5, "maximum": 2, "default": 1, "description": "Playback speed multiplier for the agent's voice. 1.0 is normal speed." } } }, "web_search": { "type": "object", "description": "Configuration for web search capabilities.", "properties": { "enabled": { "type": "boolean", "description": "Enable or disable web search functionality." }, "provider": { "type": "string", "enum": ["DuckDuckGo", "openAI"], "description": "The search provider to use.", "example": "DuckDuckGo" } } }, "post_call_actions": { "type": "object", "additionalProperties": true, "description": "Post-call actions: email, webhook, Omni CRM, WhatsApp, workflow, Google Sheets, Slack, Salesforce, HubSpot or Zoho Bigin. On an agent, add them one at a time with addPostCallAction instead. Full shape: https://docs.omnidim.io/docs/per-call-post-call-actions" }, "transfer": { "type": "object", "description": "Conditional call transfer to a human agent or another number.", "properties": { "enabled": { "type": "boolean" }, "transfer_options": { "type": "array", "description": "Where to transfer the call and under what condition. The first matching condition wins. In an agent update, sending this list replaces all saved options. Omit it to keep them unchanged, or send an empty array to clear them.", "items": { "type": "object", "required": ["number", "transfer_condition", "transfer_message"], "properties": { "number": { "type": "string", "description": "Primary phone number to transfer to. Include country code with leading `+`.", "example": "+15551234567" }, "type": { "type": "string", "enum": ["static", "dynamic"], "default": "static", "description": "`static` transfers to `number`. `dynamic` lets the agent\npick a number at runtime based on the conversation.\n" }, "backup_numbers": { "type": "array", "description": "Fallback numbers tried if the primary is unreachable.", "items": { "type": "string" } }, "transfer_condition": { "type": "string", "description": "Natural-language condition that triggers this transfer option.", "example": "Transfer if the customer asks to speak with a human." }, "transfer_message": { "type": "string", "description": "Message the agent says to the caller before executing the transfer.", "example": "Please hold while I connect you to one of our agents." } } } } } }, "end_call": { "type": "object", "description": "Hang up automatically when a condition is met.", "properties": { "enabled": { "type": "boolean", "description": "Turn ending the call on or off. Leave it out to keep the current setting. `false` also clears `condition` and `message`." }, "condition": { "type": "string", "description": "Natural-language condition that triggers ending the call. Only evaluated when `enabled` is true.", "example": "End the call once the customer's issue is resolved." }, "message": { "type": "string", "description": "What the agent says before hanging up.", "example": "Thank you for contacting us. Have a great day!" }, "message_type": { "type": "string", "enum": ["static", "prompt"], "description": "`static` speaks `message` verbatim. `prompt` treats\n`message_prompt` as an LLM instruction and generates a\nfresh closing line each call (useful for matching the\ncaller's language and tone).\n" }, "message_prompt": { "type": "string", "description": "LLM prompt used to generate the closing line when `message_type` is `prompt`.", "example": "End the call politely in the same language the user is speaking." } } }, "background_track": { "type": "object", "description": "Ambient background noise that plays under the agent's voice.", "properties": { "enabled": { "type": "boolean", "description": "Whether to mix the ambient track under the agent's audio." }, "name": { "type": "string", "enum": ["call_center", "filler", "office", "office_1", "restaurant"], "description": "Ambient track to mix under the agent." }, "volume": { "type": "number", "minimum": 0, "maximum": 1, "default": 0.2, "description": "Volume level on a 0–1 scale. Default 0.2." }, "tts_volume_reduction": { "type": "number", "minimum": 0, "maximum": 1, "description": "Amount to drop the agent's TTS volume while the ambient track plays, on a 0–1 scale. Helps the voice cut through without raising the overall mix." } } }, "initial_ringing_sound_enabled": { "type": "boolean", "description": "Plays a ringing tone after the call is picked up, until the agent starts speaking." }, "voicemail": { "type": "object", "description": "Voicemail / answering-machine handling for outbound calls. Set this with the nested object shown here; the agent object returns these values as the flat fields `voicemail_enabled` and `voicemail_message`. Voicemail detection is an access-gated feature. If it isn't enabled for your account, [request access](https://omnidim.io/contact-us?reason=product&lock=1).", "properties": { "enabled": { "type": "boolean", "description": "Detect voicemail and leave your message instead of speaking to a machine." }, "message": { "type": "string", "description": "Message to leave when voicemail is detected." } } }, "languages": { "type": "array", "description": "Languages the agent should support. Pass each language as a display-name string exactly as it appears in the dashboard's language picker. Unrecognized names are skipped, and the request is refused when none is recognized. The order is not kept.", "items": { "type": "string" }, "example": ["English (India)", "Hindi"] } } }, { "type": "object", "required": ["name", "context_breakdown"] }], "description": "The JSON request body." } }, "required": ["requestBody"] },
112
108
  method: "post",
113
109
  pathTemplate: "/agents/create",
114
110
  executionParameters: [{ "name": "Idempotency-Key", "in": "header" }],
@@ -119,7 +115,16 @@ before configuring the \`voicemail\` object.
119
115
  }],
120
116
  ["getAgent", {
121
117
  name: "getAgent",
122
- description: `Get details of a specific agent by ID. The response also includes a \`can_publish\` boolean showing whether [version history](/docs/api-reference/agents/listAgentVersions) is turned on for the agent's organization.
118
+ description: `Get one agent by ID.
119
+
120
+ The response includes \`can_publish\`: whether [version
121
+ history](/docs/api-reference/agents/listAgentVersions) is on for the agent's
122
+ organization.
123
+
124
+ The response uses stored field names, such as \`context_title\` and
125
+ \`voice_external_id\`. \`updateAgent\` takes the names in its own request
126
+ body instead, such as \`context_breakdown[].title\` and \`voice.voice_id\`.
127
+
123
128
  (Tags: Agents)`,
124
129
  inputSchema: { "type": "object", "properties": { "agent_id": { "type": "number", "description": "The ID of the agent." } }, "required": ["agent_id"] },
125
130
  method: "get",
@@ -132,13 +137,14 @@ before configuring the \`voicemail\` object.
132
137
  }],
133
138
  ["updateAgent", {
134
139
  name: "updateAgent",
135
- description: `Update an existing agent. Send only the fields you want to change.
140
+ description: `Update an agent. Send only the fields you want to change.
141
+
142
+ \`post_call_actions\` replaces the agent's email, webhook, Omni CRM, Cloud WhatsApp and workflow actions as one set, but only if you send at least one of those types. Google Sheets, Slack, Salesforce, HubSpot and Zoho Bigin actions are replaced only when you send their key. Other actions are kept. If a sent action gives a variable key a new prompt, kept actions with the same key take that prompt too. To change one action alone, use \`/agents/{agent_id}/post-call-actions\`.
136
143
 
137
- \`post_call_actions\` replaces the agent's email, webhook, Omni CRM, Cloud WhatsApp and workflow actions as one set, but only when you send at least one of those types. Google Sheets, Slack, Salesforce, HubSpot and Zoho Bigin actions are replaced only when their key is sent, and kept otherwise. If a sent action gives a variable key a new prompt, kept actions that use the same key take the new prompt too. To add, change or remove one action without touching the others, use \`/agents/{agent_id}/post-call-actions\`.
144
+ > **Voicemail detection is access-gated** and turned on per account. If it is off for yours, [request access](https://omnidim.io/contact-us?reason=product&lock=1) before you configure the \`voicemail\` object.
138
145
 
139
- > **Voicemail detection is an access-gated feature** that we turn on per account. If it isn't enabled for yours yet, [request access](https://omnidim.io/contact-us?reason=product&lock=1) before configuring the \`voicemail\` object below.
140
146
  (Tags: Agents)`,
141
- inputSchema: { "type": "object", "properties": { "agent_id": { "type": "number", "description": "The ID of the agent." }, "requestBody": { "type": "object", "description": "Agent configuration.", "properties": { "name": { "type": "string", "description": "Name for the agent." }, "welcome_message": { "type": "string", "description": "Initial message the agent will say when answering a call." }, "is_welcome_message_dynamic": { "type": "boolean", "description": "When true, the welcome message is treated as a directive the agent uses to generate a tailored greeting for each call, rather than being spoken word for word. When false, the welcome message is spoken exactly as written." }, "is_welcome_message_interruption": { "type": "boolean", "description": "Allow the caller to interrupt the welcome message. When false, the agent finishes speaking the welcome before listening." }, "is_interruption_allowed": { "type": "boolean", "description": "Global toggle for whether the caller can interrupt the agent mid-sentence at any point in the call." }, "dynamic_variables": { "type": "object", "description": "Key/value map used to substitute placeholders in the agent's\nprompt and welcome message at call time. Reference a variable\nin your prompt with `{{variable_name}}`. Useful for\npersonalising the same agent across many calls.\n", "additionalProperties": { "type": "string" } }, "context_breakdown": { "type": "array", "description": "List of context breakdowns, each containing `title`, `body`, and optional `is_enabled`.", "items": { "type": "object", "required": ["title", "body"], "properties": { "title": { "type": "string", "description": "Title of the breakdown." }, "body": { "type": "string", "description": "Body of the breakdown, the detailed prompt content." }, "is_enabled": { "type": "boolean", "default": true, "description": "Whether this section is included in the prompt." } } } }, "call_type": { "type": "string", "enum": ["Incoming", "Outgoing"], "description": "Call type of the assistant." }, "timezone": { "type": "string", "description": "IANA timezone for this agent, for example `Asia/Kolkata`. Sets the local date and time the agent works with during calls. If not set, the account timezone is used as fallback. Pass an empty string to clear it." }, "transcriber": { "type": "object", "description": "Configuration for the speech-to-text transcriber.", "properties": { "provider": { "type": "string", "description": "The speech-to-text provider to use: a `name` from the STT providers list, which returns the ones your organization can use. Leave it out to use your organization's default transcriber." }, "model": { "type": "string", "description": "Transcription model for the selected provider. For\n`deepgram_stream` this is `nova-3` or `nova-2`; other\nproviders take their own model identifiers.\n" }, "language": { "type": "string", "description": "Language code for the transcriber. Format and supported\nvalues depend on the provider (e.g. `en-US` for Deepgram,\n`hi-IN` for Sarvam). Applies regardless of which\n`provider` is selected.\n" }, "silence_timeout_ms": { "type": "number", "description": "Silence timeout in milliseconds." }, "should_apply_noise_reduction": { "type": "boolean", "description": "Reduce background noise on the inbound audio stream before transcription." }, "interruption_min_words": { "type": "number", "minimum": 1, "description": "Minimum number of words the caller must say before their speech is treated as an interruption." }, "max_call_duration_in_sec": { "type": "number", "minimum": 1, "description": "Hard upper bound on call length in seconds. The agent will end the call once this is reached." }, "first_ideal_message": { "type": "string", "description": "First nudge spoken when the caller goes silent past the\nidle threshold. Set `is_first_ideal_message_dynamic` to\n`true` to have the LLM regenerate this each time.\n" }, "is_first_ideal_message_dynamic": { "type": "boolean", "description": "When true, `first_ideal_message` is treated as a prompt and the LLM generates a fresh nudge each call." }, "second_ideal_message": { "type": "string", "description": "Second nudge spoken if silence continues after the first." }, "is_second_ideal_message_dynamic": { "type": "boolean", "description": "When true, `second_ideal_message` is treated as a prompt and the LLM generates a fresh nudge each call." }, "numerals": { "type": "boolean", "description": "Convert numbers from words to digits." }, "punctuate": { "type": "boolean", "description": "Add punctuation to the transcript." }, "smart_format": { "type": "boolean", "description": "Apply smart formatting to the transcript." }, "diarize": { "type": "boolean", "description": "Identify different speakers in the transcript." } } }, "model": { "type": "object", "description": "Configuration for the language model.", "properties": { "model": { "type": "string", "description": "The language model to use: a `name` from the LLM providers list, which returns exactly the models your organization can use. Leave it out to use your organization's default model." }, "temperature": { "type": "number", "minimum": 0, "maximum": 1, "description": "Controls randomness in the model's output (0.0 to 1.0)." } } }, "voice": { "type": "object", "description": "Configuration for the text-to-speech voice. `provider` and `voice_id` identify the voice together, so send both to change it. `provider` on its own is not accepted, and a `voice_id` on its own leaves the voice as it was. The other fields here apply independently. Leave out `provider` and `voice_id` to use your organization's default voice.", "dependentRequired": { "provider": ["voice_id"] }, "properties": { "provider": { "type": "string", "description": "The voice provider to use: the `service` of a voice from the voices list, which returns only voices your organization can use. Send `voice_id` alongside it. We recommend OmniDimension voices (list them with `provider=featured`) and Cartesia voices. An agent created without `voice` gets the platform default, a Cartesia voice, which every account can use." }, "voice_id": { "type": "string", "description": "The provider's voice identifier, returned in the `name` field of the voices list (not the numeric `id`). Takes effect when `provider` is sent alongside it." }, "speech_speed": { "type": "number", "minimum": 0.5, "maximum": 2, "default": 1, "description": "Playback speed multiplier for the agent's voice. 1.0 is normal speed." } } }, "web_search": { "type": "object", "description": "Configuration for web search capabilities.", "properties": { "enabled": { "type": "boolean", "description": "Enable or disable web search functionality." }, "provider": { "type": "string", "enum": ["DuckDuckGo", "openAI"], "description": "The search provider to use." } } }, "post_call_actions": { "type": "object", "additionalProperties": true, "description": "Post-call actions: email, webhook, Omni CRM, WhatsApp, workflow, Google Sheets, Slack, Salesforce, HubSpot or Zoho Bigin. On an agent, add them one at a time with addPostCallAction instead. Full shape: https://docs.omnidim.io/docs/per-call-post-call-actions" }, "transfer": { "type": "object", "description": "Conditional call transfer to a human agent or another number.", "properties": { "enabled": { "type": "boolean" }, "transfer_options": { "type": "array", "description": "Where to transfer the call and under what condition. The first matching condition wins. In an agent update, sending this list replaces all saved options. Omit it to keep them unchanged, or send an empty array to clear them.", "items": { "type": "object", "required": ["number", "transfer_condition", "transfer_message"], "properties": { "number": { "type": "string", "description": "Primary phone number to transfer to. Include country code with leading `+`." }, "type": { "type": "string", "enum": ["static", "dynamic"], "default": "static", "description": "`static` transfers to `number`. `dynamic` lets the agent\npick a number at runtime based on the conversation.\n" }, "backup_numbers": { "type": "array", "description": "Fallback numbers tried if the primary is unreachable.", "items": { "type": "string" } }, "transfer_condition": { "type": "string", "description": "Natural-language condition that triggers this transfer option." }, "transfer_message": { "type": "string", "description": "Message the agent says to the caller before executing the transfer." } } } } } }, "end_call": { "type": "object", "description": "Hang up automatically when a condition is met.", "properties": { "enabled": { "type": "boolean" }, "condition": { "type": "string", "description": "Natural-language condition that triggers ending the call. Only evaluated when `enabled` is true." }, "message": { "type": "string", "description": "What the agent says before hanging up." }, "message_type": { "type": "string", "enum": ["static", "prompt"], "description": "`static` speaks `message` verbatim. `prompt` treats\n`message_prompt` as an LLM instruction and generates a\nfresh closing line each call (useful for matching the\ncaller's language and tone).\n" }, "message_prompt": { "type": "string", "description": "LLM prompt used to generate the closing line when `message_type` is `prompt`." } } }, "background_track": { "type": "object", "description": "Ambient background noise that plays under the agent's voice.", "properties": { "enabled": { "type": "boolean", "description": "Whether to mix the ambient track under the agent's audio." }, "name": { "type": "string", "enum": ["call_center", "filler", "office", "office_1", "restaurant"], "description": "Ambient track to mix under the agent." }, "volume": { "type": "number", "minimum": 0, "maximum": 1, "default": 0.2, "description": "Volume level on a 0–1 scale. Default 0.2." }, "tts_volume_reduction": { "type": "number", "minimum": 0, "maximum": 1, "description": "Amount to drop the agent's TTS volume while the ambient track plays, on a 0–1 scale. Helps the voice cut through without raising the overall mix." } } }, "initial_ringing_sound_enabled": { "type": "boolean", "description": "Plays a ringing tone after the call is picked up, until the agent starts speaking." }, "voicemail": { "type": "object", "description": "Voicemail / answering-machine handling for outbound calls. Set this with the nested object shown here; the agent object returns these values as the flat fields `voicemail_enabled` and `voicemail_message`. Voicemail detection is an access-gated feature. If it isn't enabled for your account, [request access](https://omnidim.io/contact-us?reason=product&lock=1).", "properties": { "enabled": { "type": "boolean", "description": "Detect voicemail and leave your message instead of speaking to a machine." }, "message": { "type": "string", "description": "Message to leave when voicemail is detected." } } }, "languages": { "type": "array", "description": "Languages the agent should support. Pass each language as a display-name string exactly as it appears in the dashboard's language picker. Unrecognized names are skipped.", "items": { "type": "string" } } } } }, "required": ["agent_id", "requestBody"] },
147
+ inputSchema: { "type": "object", "properties": { "agent_id": { "type": "number", "description": "The ID of the agent." }, "requestBody": { "type": "object", "description": "Agent configuration.", "properties": { "name": { "type": "string", "description": "Name for the agent." }, "welcome_message": { "type": "string", "description": "Initial message the agent will say when answering a call." }, "is_welcome_message_dynamic": { "type": "boolean", "description": "When true, the welcome message is treated as a directive the agent uses to generate a tailored greeting for each call, rather than being spoken word for word. When false, the welcome message is spoken exactly as written." }, "is_welcome_message_interruption": { "type": "boolean", "description": "Allow the caller to interrupt the welcome message. When false, the agent finishes speaking the welcome before listening." }, "is_interruption_allowed": { "type": "boolean", "description": "Global toggle for whether the caller can interrupt the agent mid-sentence at any point in the call." }, "dynamic_variables": { "type": "object", "description": "Key/value map used to substitute placeholders in the agent's\nprompt and welcome message at call time. Reference a variable\nin your prompt with `{{variable_name}}`. Useful for\npersonalising the same agent across many calls.\n", "additionalProperties": { "type": "string" } }, "context_breakdown": { "type": "array", "description": "The agent's prompt sections, each with `title`, `body` and optional `is_enabled`. Sending them replaces the whole list and rebuilds the prompt from the enabled sections in order: each `title` becomes a `# title` heading on its own line, with its `body` below it, the same layout the dashboard uses. A save without `context_breakdown` leaves the prompt unchanged.", "items": { "type": "object", "required": ["title", "body"], "properties": { "title": { "type": "string", "description": "Title of the breakdown." }, "body": { "type": "string", "description": "Body of the breakdown, the detailed prompt content." }, "is_enabled": { "type": "boolean", "default": true, "description": "Whether this section is included in the prompt." } } } }, "call_type": { "type": "string", "enum": ["Incoming", "Outgoing"], "description": "`Incoming` for an agent that answers calls, `Outgoing` for one that places them, spelled exactly so. Any other value, `incoming` included, saves as `Outgoing` and the response lists it in `warnings`." }, "timezone": { "type": "string", "description": "IANA timezone for this agent, for example `Asia/Kolkata`. Sets the local date and time the agent works with during calls. If not set, the account timezone is used as fallback. Pass an empty string to clear it." }, "transcriber": { "type": "object", "description": "Configuration for the speech-to-text transcriber.", "properties": { "provider": { "type": "string", "description": "The speech-to-text provider to use: a `name` from the STT providers list, which returns the ones your organization can use. Leave it out to use your organization's default transcriber." }, "model": { "type": "string", "description": "Transcription model for the selected provider. For\n`deepgram_stream` this is `nova-3` or `nova-2`. Saved only\nfor `deepgram_stream`, `cartesia` and `sarvam`, and only\nwhen `provider` is in the same request.\n" }, "language": { "type": ["string", "array"], "items": { "type": "string" }, "description": "Language code for the transcriber. Format and supported\nvalues depend on the provider (e.g. `en-US` for Deepgram,\n`hi-IN` for Sarvam). `soniox` takes a list of codes, such as\n`[\"en\", \"hi\"]`, and an empty list detects the language. Saved only when `provider` is in the\nsame request and is `deepgram_stream`, `cartesia`, `sarvam`,\n`azure` or `soniox`.\n" }, "silence_timeout_ms": { "type": "number", "description": "Silence timeout in milliseconds." }, "should_apply_noise_reduction": { "type": "boolean", "description": "Reduce background noise on the inbound audio stream before transcription." }, "interruption_min_words": { "type": "number", "minimum": 1, "description": "Minimum number of words the caller must say before their speech is treated as an interruption." }, "max_call_duration_in_sec": { "type": "number", "minimum": 1, "description": "Hard upper bound on call length in seconds. The agent will end the call once this is reached." }, "first_ideal_message": { "type": "string", "description": "First nudge spoken when the caller goes silent past the\nidle threshold. Set `is_first_ideal_message_dynamic` to\n`true` to have the LLM regenerate this each time.\n" }, "is_first_ideal_message_dynamic": { "type": "boolean", "description": "When true, `first_ideal_message` is treated as a prompt and the LLM generates a fresh nudge each call." }, "second_ideal_message": { "type": "string", "description": "Second nudge spoken if silence continues after the first." }, "is_second_ideal_message_dynamic": { "type": "boolean", "description": "When true, `second_ideal_message` is treated as a prompt and the LLM generates a fresh nudge each call." }, "numerals": { "type": "boolean", "description": "Convert numbers from words to digits." }, "punctuate": { "type": "boolean", "description": "Add punctuation to the transcript." }, "smart_format": { "type": "boolean", "description": "Apply smart formatting to the transcript." }, "diarize": { "type": "boolean", "description": "Identify different speakers in the transcript." } } }, "model": { "type": "object", "description": "Configuration for the language model.", "properties": { "model": { "type": "string", "description": "The language model to use: a `name` from the LLM providers list, which returns exactly the models your organization can use. Leave it out to use your organization's default model." }, "temperature": { "type": "number", "minimum": 0, "maximum": 1, "description": "Controls randomness in the model's output (0.0 to 1.0)." } } }, "voice": { "type": "object", "description": "Configuration for the text-to-speech voice. `provider` and `voice_id` identify the voice together, so send both to change it. `provider` on its own is not accepted, and a `voice_id` on its own leaves the voice as it was. The other fields here apply independently. Leave out `provider` and `voice_id` to use your organization's default voice.", "dependentRequired": { "provider": ["voice_id"] }, "properties": { "provider": { "type": "string", "description": "The voice provider to use: the `service` of a voice from the voices list, which returns only voices your organization can use. Send `voice_id` alongside it. We recommend OmniDimension voices (list them with `provider=featured`) and Cartesia voices. An agent created without `voice` gets the platform default, a Cartesia voice, which every account can use." }, "voice_id": { "type": "string", "description": "The provider's voice identifier, returned in the `name` field of the voices list (not the numeric `id`). Takes effect when `provider` is sent alongside it." }, "speech_speed": { "type": "number", "minimum": 0.5, "maximum": 2, "default": 1, "description": "Playback speed multiplier for the agent's voice. 1.0 is normal speed." } } }, "web_search": { "type": "object", "description": "Configuration for web search capabilities.", "properties": { "enabled": { "type": "boolean", "description": "Enable or disable web search functionality." }, "provider": { "type": "string", "enum": ["DuckDuckGo", "openAI"], "description": "The search provider to use." } } }, "post_call_actions": { "type": "object", "additionalProperties": true, "description": "Post-call actions: email, webhook, Omni CRM, WhatsApp, workflow, Google Sheets, Slack, Salesforce, HubSpot or Zoho Bigin. On an agent, add them one at a time with addPostCallAction instead. Full shape: https://docs.omnidim.io/docs/per-call-post-call-actions" }, "transfer": { "type": "object", "description": "Conditional call transfer to a human agent or another number.", "properties": { "enabled": { "type": "boolean" }, "transfer_options": { "type": "array", "description": "Where to transfer the call and under what condition. The first matching condition wins. In an agent update, sending this list replaces all saved options. Omit it to keep them unchanged, or send an empty array to clear them.", "items": { "type": "object", "required": ["number", "transfer_condition", "transfer_message"], "properties": { "number": { "type": "string", "description": "Primary phone number to transfer to. Include country code with leading `+`." }, "type": { "type": "string", "enum": ["static", "dynamic"], "default": "static", "description": "`static` transfers to `number`. `dynamic` lets the agent\npick a number at runtime based on the conversation.\n" }, "backup_numbers": { "type": "array", "description": "Fallback numbers tried if the primary is unreachable.", "items": { "type": "string" } }, "transfer_condition": { "type": "string", "description": "Natural-language condition that triggers this transfer option." }, "transfer_message": { "type": "string", "description": "Message the agent says to the caller before executing the transfer." } } } } } }, "end_call": { "type": "object", "description": "Hang up automatically when a condition is met.", "properties": { "enabled": { "type": "boolean", "description": "Turn ending the call on or off. Leave it out to keep the current setting. `false` also clears `condition` and `message`." }, "condition": { "type": "string", "description": "Natural-language condition that triggers ending the call. Only evaluated when `enabled` is true." }, "message": { "type": "string", "description": "What the agent says before hanging up." }, "message_type": { "type": "string", "enum": ["static", "prompt"], "description": "`static` speaks `message` verbatim. `prompt` treats\n`message_prompt` as an LLM instruction and generates a\nfresh closing line each call (useful for matching the\ncaller's language and tone).\n" }, "message_prompt": { "type": "string", "description": "LLM prompt used to generate the closing line when `message_type` is `prompt`." } } }, "background_track": { "type": "object", "description": "Ambient background noise that plays under the agent's voice.", "properties": { "enabled": { "type": "boolean", "description": "Whether to mix the ambient track under the agent's audio." }, "name": { "type": "string", "enum": ["call_center", "filler", "office", "office_1", "restaurant"], "description": "Ambient track to mix under the agent." }, "volume": { "type": "number", "minimum": 0, "maximum": 1, "default": 0.2, "description": "Volume level on a 0–1 scale. Default 0.2." }, "tts_volume_reduction": { "type": "number", "minimum": 0, "maximum": 1, "description": "Amount to drop the agent's TTS volume while the ambient track plays, on a 0–1 scale. Helps the voice cut through without raising the overall mix." } } }, "initial_ringing_sound_enabled": { "type": "boolean", "description": "Plays a ringing tone after the call is picked up, until the agent starts speaking." }, "voicemail": { "type": "object", "description": "Voicemail / answering-machine handling for outbound calls. Set this with the nested object shown here; the agent object returns these values as the flat fields `voicemail_enabled` and `voicemail_message`. Voicemail detection is an access-gated feature. If it isn't enabled for your account, [request access](https://omnidim.io/contact-us?reason=product&lock=1).", "properties": { "enabled": { "type": "boolean", "description": "Detect voicemail and leave your message instead of speaking to a machine." }, "message": { "type": "string", "description": "Message to leave when voicemail is detected." } } }, "languages": { "type": "array", "description": "Languages the agent should support. Pass each language as a display-name string exactly as it appears in the dashboard's language picker. Unrecognized names are skipped, and the request is refused when none is recognized. The order is not kept.", "items": { "type": "string" } } } } }, "required": ["agent_id", "requestBody"] },
142
148
  method: "put",
143
149
  pathTemplate: "/agents/{agent_id}",
144
150
  executionParameters: [{ "name": "agent_id", "in": "path" }],
@@ -175,7 +181,12 @@ before configuring the \`voicemail\` object.
175
181
  }],
176
182
  ["addPostCallAction", {
177
183
  name: "addPostCallAction",
178
- description: `Add one post-call action to the agent. The agent's other actions are not changed. Send an \`Idempotency-Key\` header to make a retry safe: the same key and body return the action the first request added.
184
+ description: `Add one post-call action to an agent.
185
+
186
+ The agent's other actions stay as they are. Send an \`Idempotency-Key\` header
187
+ to retry safely: the same key and body return the action the first request
188
+ added.
189
+
179
190
  (Tags: Agents)`,
180
191
  inputSchema: { "type": "object", "properties": { "agent_id": { "type": "number", "description": "The ID of the agent." }, "Idempotency-Key": { "type": "string", "description": "Any unique string. A retry with the same key and body adds nothing new." }, "requestBody": { "allOf": [{ "type": "object", "description": "One post-call action. `type` picks the channel; send the fields of\nthat channel plus any of the shared ones. `type` is required when\nadding an action; an update sends only the fields it changes.\n", "properties": { "type": { "type": "string", "enum": ["email", "webhook", "omni_crm", "cloud_whatsapp", "workflow", "google_sheets", "slack", "salesforce", "hubspot", "zoho_bigin"], "description": "The channel. It cannot change after the action is created:\ndelete it and add a new one. `google_sheets`, `slack`,\n`salesforce`, `hubspot` and `zoho_bigin` deliver through an\naccount connected in the dashboard: pass its id as\n`integration_id` (see List integrations).\n" }, "integration_id": { "type": "integer", "description": "`google_sheets`, `slack`, `salesforce`, `hubspot`, `zoho_bigin`\nonly, required: the id of your integration of that type.\n" }, "spreadsheet_id": { "type": "string", "description": "`google_sheets` only, required: the id in the sheet's URL, the\npart after `/d/`.\n", "example": "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms" }, "spreadsheet_name": { "type": "string", "description": "`google_sheets` only: the sheet's name, for display." }, "worksheet_name": { "type": "string", "description": "`google_sheets` only: the tab to append to. Defaults to `Sheet1`.", "example": "Calls" }, "channel_id": { "type": "string", "description": "`slack` only: the channel id. Send this or `channel_name`.", "example": "C08RTQ1NY81" }, "channel_name": { "type": "string", "description": "`slack` only: the channel name. Send this or `channel_id`.", "example": "sales" }, "object_name": { "type": "string", "description": "`salesforce`: `Lead` (default), `Contact`, `Account`,\n`Opportunity`, `Case`, `Task` or `Product`. `hubspot`, required:\n`contact`, `company`, `deal` or `ticket`. Both send a fixed set of\nfields for the chosen object, so they take no `extracted_variables`.\n" }, "create_call_log": { "type": "boolean", "description": "`zoho_bigin` only: log the call in Zoho Bigin. Defaults to true." }, "update_contact": { "type": "boolean", "description": "`zoho_bigin` only: update a matching contact with what the call captured. Defaults to true." }, "create_contact": { "type": "boolean", "description": "`zoho_bigin` only: create a contact when no contact matches. Defaults to true." }, "action": { "type": "string", "enum": ["create", "upsert"], "description": "`salesforce` only: `upsert` finds the record by the caller's number\nand updates it or creates it. `create` creates a new record every\ncall. Defaults to `create`.\n" }, "match_field": { "type": "string", "description": "`salesforce` only, with `upsert`: the phone field the caller's number is looked up in. Defaults to `Phone`.", "example": "Phone" }, "log_call": { "type": "boolean", "description": "`salesforce` only: log the call on the record, with the summary and recording link. Defaults to false." }, "add_note": { "type": "boolean", "description": "`salesforce` only: add the call summary as a note on the record. Defaults to false." }, "recipients": { "type": "array", "description": "`email` only, required: the addresses to notify.", "items": { "type": "string", "format": "email" }, "example": ["support@acme-corp.io"] }, "url": { "type": "string", "format": "uri", "description": "`webhook` only, required: the endpoint that receives a POST with the call payload.", "example": "https://crm.acme-corp.io/omnidim-callback" }, "phone_number_id": { "type": "integer", "description": "`cloud_whatsapp` only, required: your Cloud WhatsApp number the message is sent from. Also send `template_id` or `templates`, or nothing is sent." }, "template_id": { "type": "integer", "description": "`cloud_whatsapp` only: an approved template on that number." }, "template_variables": { "type": "array", "description": "`cloud_whatsapp` only: which extracted variable fills each template placeholder.", "items": { "type": "object", "properties": { "index": { "type": "string", "description": "The placeholder number, as a string.", "example": "1" }, "extracted_var": { "type": "string", "description": "The key of the extracted variable whose value fills this placeholder.", "example": "customer_name" } } } }, "templates": { "type": "array", "description": "`cloud_whatsapp` only: one or more templates to send.", "items": { "type": "object", "description": "One Cloud WhatsApp template to send after the call.", "properties": { "template_id": { "type": "integer", "description": "An approved template on the chosen number." }, "usage_description": { "type": "string", "description": "When this template should be sent. After the call, the model reads\nthese descriptions to choose which templates fit the conversation.\n", "example": "Send when the caller books an appointment." }, "always_send": { "type": "boolean", "description": "Send this template after every call, whichever templates the model chooses." }, "variable_mappings": { "type": "array", "description": "How to fill each template placeholder.", "items": { "type": "object", "properties": { "index": { "type": "string", "description": "The placeholder number, as a string.", "example": "1" }, "extracted_var": { "type": "string", "description": "The extracted variable whose value fills this placeholder." }, "static_value": { "type": "string", "description": "A fixed value for this placeholder. When set, it is used\ninstead of the extracted variable.\n" }, "mode": { "type": "string", "enum": ["variable", "static"], "description": "Which input the dashboard shows for this placeholder. It\ndoes not change the value sent: a `static_value` is used\nfirst, then the extracted variable, then `fallback_value`.\n" }, "fallback_value": { "type": "string", "description": "The value to use when the variable is not extracted." } } } } } } }, "workflow_id": { "type": "integer", "description": "`workflow` only, required: the workflow to run. It must have a published version, or the action is skipped." }, "include": { "type": "array", "description": "Which sections to include.", "items": { "type": "string", "enum": ["summary", "extracted_variables", "fullConversation", "sentiment"] } }, "extracted_variables": { "type": "array", "description": "Variables the model should pull out of the conversation. A key\nalready used by another action on this agent must have the same\nprompt, or the request is refused with `400`. Other actions are\nnever changed to match.\n", "items": { "type": "object", "required": ["key", "prompt"], "properties": { "key": { "type": "string", "description": "Unique identifier for the variable in the post-call payload.", "example": "customer_issue" }, "prompt": { "type": "string", "description": "Instruction for the model on what to pull out of the conversation.", "example": "Identify the main issue the customer is experiencing." } } } }, "trigger_call_statuses": { "type": "array", "description": "Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n", "items": { "type": "string", "enum": ["completed", "voicemail_detected", "failed", "no-answer", "busy", "canceled"] } } } }, { "required": ["type"] }], "description": "The JSON request body." } }, "required": ["agent_id", "requestBody"] },
181
192
  method: "post",
@@ -214,7 +225,15 @@ before configuring the \`voicemail\` object.
214
225
  }],
215
226
  ["listIntegrations", {
216
227
  name: "listIntegrations",
217
- description: `List the integrations connected to your workspace, with each one's \`id\` and \`integration_type\`. Stored credentials (tokens, secrets, passwords, API keys, and the values of a custom API's headers and parameters) are never returned: they read \`********\`. When you create an integration, send the real values: \`********\` is refused. Accounts that sign in with OAuth (Google Sheets, Slack, HubSpot, Salesforce, Zoho Bigin) are connected in the dashboard.
228
+ description: `List your workspace integrations, with each one's \`id\` and
229
+ \`integration_type\`.
230
+
231
+ Stored credentials (tokens, secrets, passwords, API keys, and the values of
232
+ a custom API's headers and parameters) are never returned. They read
233
+ \`********\`. When you create an integration, send the real values: \`********\`
234
+ is refused. Accounts that sign in with OAuth (Google Sheets, Slack, HubSpot,
235
+ Salesforce, Zoho Bigin) are connected in the dashboard.
236
+
218
237
  (Tags: Integrations)`,
219
238
  inputSchema: { "type": "object", "properties": {} },
220
239
  method: "get",
@@ -227,7 +246,13 @@ before configuring the \`voicemail\` object.
227
246
  }],
228
247
  ["createCustomApiIntegration", {
229
248
  name: "createCustomApiIntegration",
230
- description: `Save a call to your own HTTP endpoint as an integration. Attach it to an agent with \`attachAgentIntegration\`, and the agent calls the endpoint during a call when the conversation needs it, then uses the response in its reply. Parameters marked \`isLLMGenerated\` are filled in by the agent from the conversation.
249
+ description: `Save a call to your own HTTP endpoint as an integration.
250
+
251
+ Attach it to an agent with \`attachAgentIntegration\`. The agent calls the
252
+ endpoint during a call when the conversation needs it, then uses the
253
+ response in its reply. The agent fills parameters marked \`isLLMGenerated\`
254
+ from the conversation.
255
+
231
256
  (Tags: Integrations)`,
232
257
  inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["name", "url", "method"], "properties": { "name": { "type": "string", "description": "A name for the integration." }, "description": { "type": "string", "description": "What the endpoint does. The agent reads this to decide\nwhen to call it, so say what it returns and when it is useful.\n" }, "url": { "type": "string", "format": "uri" }, "method": { "type": "string", "enum": ["GET", "POST", "PUT", "PATCH", "DELETE"] }, "headers": { "type": "array", "description": "Fixed headers sent on every request.", "items": { "type": "object", "required": ["key", "value"], "properties": { "key": { "type": "string" }, "value": { "type": "string" } } } }, "query_params": { "type": "array", "description": "Query string parameters.", "items": { "type": "object", "description": "One query or body parameter of a custom API. With `isLLMGenerated`\ntrue the agent fills the value from the conversation, guided by\n`description`. With it false, the text in `description` is sent as a\nfixed value.\n", "required": ["key"], "properties": { "key": { "type": "string", "description": "The parameter name your endpoint expects." }, "description": { "type": "string", "description": "What the agent should put here, or the fixed value when `isLLMGenerated` is false." }, "type": { "type": "string", "enum": ["string", "number", "boolean", "object", "array"], "default": "string" }, "required": { "type": "boolean", "description": "Whether the agent must supply this parameter." }, "isLLMGenerated": { "type": "boolean", "default": true, "description": "Let the agent fill this value from the conversation." }, "children": { "type": "array", "description": "Nested fields of an `object` or `array` body parameter. Query parameters have no children.", "items": { "type": "object" } } } } }, "body_params": { "type": "array", "description": "Request body fields, sent as JSON. A GET request sends no\nbody. Every request with a body also carries the call's\n`from_number`, `to_number` and `call_sid`.\n", "items": { "type": "object", "description": "One query or body parameter of a custom API. With `isLLMGenerated`\ntrue the agent fills the value from the conversation, guided by\n`description`. With it false, the text in `description` is sent as a\nfixed value.\n", "required": ["key"], "properties": { "key": { "type": "string", "description": "The parameter name your endpoint expects." }, "description": { "type": "string", "description": "What the agent should put here, or the fixed value when `isLLMGenerated` is false." }, "type": { "type": "string", "enum": ["string", "number", "boolean", "object", "array"], "default": "string" }, "required": { "type": "boolean", "description": "Whether the agent must supply this parameter." }, "isLLMGenerated": { "type": "boolean", "default": true, "description": "Let the agent fill this value from the conversation." }, "children": { "type": "array", "description": "Nested fields of an `object` or `array` body parameter. Query parameters have no children.", "items": { "type": "object" } } } } }, "request_timeout": { "type": "number", "default": 10, "description": "Seconds to wait for your endpoint before the agent moves on." } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
233
258
  method: "post",
@@ -253,7 +278,11 @@ before configuring the \`voicemail\` object.
253
278
  }],
254
279
  ["attachAgentIntegration", {
255
280
  name: "attachAgentIntegration",
256
- description: `Attach one of your integrations to the agent. The agent can use it on its next call. Integrations already attached stay as they are.
281
+ description: `Attach an integration to an agent.
282
+
283
+ The agent can use it on its next call. Integrations already attached stay as
284
+ they are.
285
+
257
286
  (Tags: Integrations)`,
258
287
  inputSchema: { "type": "object", "properties": { "agent_id": { "type": "number", "description": "The ID of the agent." }, "requestBody": { "type": "object", "required": ["integration_id"], "properties": { "integration_id": { "type": "number", "description": "The integration's id, from `listIntegrations` or a create response." } }, "description": "The JSON request body." } }, "required": ["agent_id", "requestBody"] },
259
288
  method: "post",
@@ -279,7 +308,7 @@ before configuring the \`voicemail\` object.
279
308
  }],
280
309
  ["listAgentVersions", {
281
310
  name: "listAgentVersions",
282
- description: `List an agent's saved versions, newest first. Includes manual (named) versions, automatic versions, and system backups taken before a restore.
311
+ description: `List an agent's saved versions, newest first. Includes manual (named) versions and system backups taken before a restore. Nothing is saved automatically.
283
312
  (Tags: Agents)`,
284
313
  inputSchema: { "type": "object", "properties": { "agent_id": { "type": "number", "description": "The ID of the agent." }, "pageno": { "type": "integer", "minimum": 1, "default": 1, "description": "Page number for pagination." }, "pagesize": { "type": "integer", "minimum": 1, "default": 30, "maximum": 150, "description": "Number of items per page (max 150)." }, "search": { "type": "string", "description": "Filter versions whose name matches this substring (case-insensitive)." }, "kind": { "type": "string", "enum": ["manual", "system"], "description": "Filter versions by kind." } }, "required": ["agent_id"] },
285
314
  method: "get",
@@ -331,7 +360,13 @@ before configuring the \`voicemail\` object.
331
360
  }],
332
361
  ["diffAgentVersion", {
333
362
  name: "diffAgentVersion",
334
- description: `Get a record-level diff for this version. By default it shows what changed in this version compared with the version before it. Use \`against=current\` to compare with the agent's live config (what restoring this version would change), or \`against=<number>\` to compare with another version.
363
+ description: `Get a record-level diff for one agent version.
364
+
365
+ By default it compares this version with the one before it. Use
366
+ \`against=current\` to compare with the live config, which shows what
367
+ restoring this version would change. Use \`against=<number>\` to compare with
368
+ another version.
369
+
335
370
  (Tags: Agents)`,
336
371
  inputSchema: { "type": "object", "properties": { "agent_id": { "type": "number", "description": "The ID of the agent." }, "version_number": { "type": "number", "description": "The version number, as returned in `version_number` from the list or save endpoints." }, "against": { "type": "string", "description": "What to compare against. Omit or `previous` for the version before this one (the default). `current` for the agent's live config. A version number to compare with that version." } }, "required": ["agent_id", "version_number"] },
337
372
  method: "get",
@@ -344,7 +379,13 @@ before configuring the \`voicemail\` object.
344
379
  }],
345
380
  ["restoreAgentVersion", {
346
381
  name: "restoreAgentVersion",
347
- description: `Restore a version onto the live agent. Your current setup is saved first as a backup version, so restoring is undoable. Configuration is brought back; any knowledge files or integrations that were deleted since this version was saved can't be re-linked, and are reported in \`skipped\`.
382
+ description: `Restore a version onto the live agent.
383
+
384
+ Your current setup is saved first as a backup version, so restoring is
385
+ undoable. Configuration comes back. Knowledge files or integrations deleted
386
+ since this version was saved can't be re-linked. They are reported in
387
+ \`skipped\`.
388
+
348
389
  (Tags: Agents)`,
349
390
  inputSchema: { "type": "object", "properties": { "agent_id": { "type": "number", "description": "The ID of the agent." }, "version_number": { "type": "number", "description": "The version number, as returned in `version_number` from the list or save endpoints." }, "requestBody": { "type": "object", "properties": {}, "description": "The JSON request body." } }, "required": ["agent_id", "version_number"] },
350
391
  method: "post",
@@ -357,8 +398,9 @@ before configuring the \`voicemail\` object.
357
398
  }],
358
399
  ["dispatchCall", {
359
400
  name: "dispatchCall",
360
- description: `Initiate a call to a phone number using a specified agent. The
361
- phone number must include a country code with a leading plus.
401
+ description: `Start a call to a phone number with an agent.
402
+
403
+ The phone number must include a country code with a leading plus.
362
404
 
363
405
  (Tags: Calls)`,
364
406
  inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["agent_id", "to_number"], "properties": { "agent_id": { "type": "number", "description": "The ID of the agent that will handle the call." }, "to_number": { "type": "string", "description": "The phone number to call. Must include country code (e.g., +15551234567)." }, "from_number_id": { "type": "number", "description": "Id of a phone number on your account to place the call from (see the phone number list endpoint). Omit to use the platform's default number." }, "call_context": { "type": "object", "description": "Optional context information as key-value pairs to be passed to the agent during the call. Can contain any custom fields relevant to your use case.", "additionalProperties": true }, "metadata": { "type": "object", "additionalProperties": true, "description": "Key-value pairs stored on the call for your own tracking\n(e.g. CRM or lead IDs). Not shared with the agent; echoed\nback as `metadata` in the post-call webhook so you can\ncorrelate results with your records.\n" }, "__languages": { "oneOf": [{ "type": "array", "items": { "type": "string" } }, { "type": "string" }], "description": "Languages this call runs in, replacing the agent's configured\nlist for this call only. The first entry is the language the\ncall opens in. Send an array, or a pipe-separated string such\nas `Hindi|English`. Names the platform does not recognize are\nskipped and listed in `languages_ignored`.\n" }, "__post_call_actions": { "allOf": [{ "type": "object", "additionalProperties": true, "description": "Post-call actions: email, webhook, Omni CRM, WhatsApp, workflow, Google Sheets, Slack, Salesforce, HubSpot or Zoho Bigin. On an agent, add them one at a time with addPostCallAction instead. Full shape: https://docs.omnidim.io/docs/per-call-post-call-actions" }], "description": "Post-call actions for this call only, in the same shape as\n`post_call_actions` on agent create. Email and webhook only.\nThey replace the agent's own post-call actions for this call;\nthe agent is not changed. Items that cannot be used are\nskipped and listed in `post_call_actions_ignored`, and the\ncall still goes out. Can also be sent inside `call_context`.\n" } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
@@ -411,15 +453,15 @@ phone number must include a country code with a leading plus.
411
453
  }],
412
454
  ["createBulkCall", {
413
455
  name: "createBulkCall",
414
- description: `Create a new bulk-call campaign. Only name, phone_number_id and a
415
- contact_list are needed to dial a list now; every other field adds
416
- one behavior on top (drafts, rotation, filtering, scheduling,
417
- retries, dynamic feeding).
456
+ description: `Create a bulk-call campaign.
418
457
 
419
- The guide below the field reference walks the whole journey: the
420
- first campaign and its response, each behavior with a working
421
- request, every refusal message with its fix, and the endpoints that
422
- operate a campaign once it runs.
458
+ Only \`name\`, \`phone_number_id\` and a \`contact_list\` are needed to dial a
459
+ list now. Every other field adds one behavior: drafts, rotation, filtering,
460
+ scheduling, retries or dynamic feeding.
461
+
462
+ The guide below the field reference shows each behavior with a working
463
+ request, every refusal message with its fix, and the endpoints that operate
464
+ a running campaign.
423
465
 
424
466
  (Tags: Bulk calls)`,
425
467
  inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["name", "phone_number_id"], "properties": { "name": { "type": "string", "description": "Name of the bulk call campaign." }, "phone_number_id": { "type": "string", "description": "The number this campaign calls from. With a `rotation`, the\nrotation numbers dial instead and this one is the standby.\n" }, "bot_id": { "type": "number", "description": "Agent to run the campaign. Defaults to the agent attached\nto `phone_number_id`; required when the number has none.\n" }, "save_as_draft": { "type": "boolean", "default": false, "description": "Store the campaign without dialing; start it later with the\nstart endpoint. See Drafts in the guide below.\n" }, "call_conditions": { "type": "array", "description": "Dial only the contacts that match every condition; the rest\nare kept as `Skipped`. See Filtering in the guide below.\n", "items": { "type": "object", "required": ["column", "operator", "value"], "properties": { "column": { "type": "string", "description": "Key on the contact row to test." }, "operator": { "type": "string", "default": "equals", "enum": ["equals", "not_equals", "contains", "greater_than", "less_than"], "description": "`contains` is case-insensitive. `greater_than` and\n`less_than` compare numerically, and a row whose value\nis not a number fails the condition rather than\nerroring.\n" }, "value": { "type": "string" } } } }, "rotation": { "type": "object", "description": "Rotate the campaign across several of your numbers, so no\nsingle number burns out. See Rotation in the guide below.\n", "required": ["numbers"], "properties": { "numbers": { "type": "array", "minItems": 1, "description": "The numbers to rotate across; each must be yours and\nlisted once.\n", "items": { "type": "object", "required": ["phone_number_id"], "properties": { "phone_number_id": { "type": "number", "description": "One of your numbers, from List phone numbers." }, "sequence": { "type": "number", "default": 10, "description": "Rotation order. Lowest dials first." } } } }, "strategy": { "type": "string", "default": "fixed_count", "enum": ["fixed_count", "cpr_threshold", "both", "none"], "description": "When to move to the next number: every\n`calls_per_number` calls, on low health score, both, or\nnever.\n" }, "calls_per_number": { "type": "number", "default": 50, "description": "Calls before moving on. Used by `fixed_count` and `both`." }, "health_threshold": { "type": "number", "default": 30, "description": "Health score below which a number is rotated away from.\nUsed by `cpr_threshold` and `both`.\n" }, "fallback": { "type": "string", "default": "pause", "enum": ["pause", "continue_best"], "description": "When every number is unhealthy: `pause` the campaign,\nor `continue_best` with the healthiest one.\n" }, "call_back_from_different_number": { "type": "boolean", "default": false, "description": "When on, a repeat call to the same person goes out from\na different number than the one that called them last.\nNeeds two or more numbers in the pool.\n" } } }, "skip_known_invalid_numbers": { "type": "boolean", "default": false, "description": "When on, a contact is not dialed if the carrier said its\nnumber does not exist, in any campaign of your organization\nin the last 14 days. That contact shows as a failed call\nwith the reason `Invalid number` and is never retried.\n" }, "is_dynamic": { "type": "boolean", "default": false, "description": "A dynamic campaign stays alive accepting contacts via the\nadd-contact webhooks, and `contact_list` becomes optional.\n" }, "contact_list": { "type": "array", "description": "Who to call. Each row needs `phone_number`; any other key\nreaches the agent as context for that one call.\n", "items": { "type": "object", "required": ["phone_number"], "properties": { "phone_number": { "type": "string", "description": "Phone number in international format (e.g., +15551234567)." } }, "additionalProperties": true } }, "is_scheduled": { "type": "boolean", "default": false, "description": "Whether the campaign should be scheduled for future execution." }, "scheduled_datetime": { "type": "string", "description": "Scheduled execution time in format `YYYY-MM-DD HH:MM:SS` (required if `is_scheduled` is true)." }, "timezone": { "type": "string", "default": "UTC", "description": "Timezone for scheduled execution." }, "concurrent_call_limit": { "type": "number", "default": 1, "minimum": 1, "description": "Maximum number of concurrent calls allowed." }, "enabled_reschedule_call": { "type": "boolean", "default": false, "description": "Enable automatic call rescheduling. When enabled the system can reschedule unreachable calls." }, "retry_config": { "type": "object", "description": "Auto-retry configuration object containing retry settings.", "properties": { "auto_retry": { "type": "boolean", "default": false }, "auto_retry_schedule": { "type": "string", "enum": ["immediately", "next_day", "scheduled_time"], "description": "When to retry failed calls." }, "retry_schedule_days": { "type": "number", "default": 0, "minimum": 0, "description": "Days to wait before a scheduled retry." }, "retry_schedule_hours": { "type": "number", "default": 0, "minimum": 0, "description": "Hours to wait before a scheduled retry." }, "retry_limit": { "type": "number", "default": 1, "minimum": 1, "maximum": 10, "description": "Retry attempts, 1 to 10. To disable retries omit it and\nleave `auto_retry` false; never send `0`. Ignored when\n`retry_steps` is set.\n" }, "retry_steps": { "type": "array", "minItems": 1, "maxItems": 10, "description": "A different delay for each retry, in order: retry 1\nwaits for the first step, retry 2 for the second, and\nso on. When set, it replaces `auto_retry_schedule`,\n`retry_schedule_days`, `retry_schedule_hours` and\n`retry_limit`: a contact gets one retry per step. Each\ndelay is at most 30 days. A retry that falls outside\nthe campaign's daily calling hours waits until they\nopen again.\n\nA `days` step can also name a time of day with `at`:\n`{\"delay\": 1, \"unit\": \"days\", \"at\": \"10:00\"}` is 10:00\nthe next day, and `{\"delay\": 0, \"unit\": \"days\", \"at\":\n\"16:00\"}` the same day at 16:00. The date and time are\nread in the calling window's timezone,\n`daily_stop_timezone`; a campaign without a window\n(`enable_daily_hard_stop` off) uses its `timezone`.\nEach retry counts from the try before it; a time that\nhas already passed moves to the next day.\n", "items": { "type": "object", "required": ["delay", "unit"], "properties": { "delay": { "type": "number", "minimum": 0, "description": "How long to wait, in `unit`. `0` retries right away." }, "unit": { "type": "string", "enum": ["minutes", "hours", "days"] }, "at": { "type": "string", "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$", "description": "Time of day, `HH:MM` (24-hour) in\n`daily_stop_timezone`, or in `timezone` when\n`enable_daily_hard_stop` is off. Only on a\n`days` step; `delay: 0` means the same day.\n" } } } }, "retry_unanswered": { "type": "string", "enum": ["off", "no_reply", "no_reply_or_short", "model"], "default": "off", "description": "Also retry calls that connected but got no conversation.\n`no_reply`: the contact never spoke. `no_reply_or_short`:\nthe contact never spoke, or the call lasted at most\n`retry_unanswered_max_seconds`. `model`: the contact\nnever spoke, or post-call analysis read the transcript\nand found no real conversation. Retries follow the same\nschedule or steps as failed calls.\n" }, "retry_unanswered_max_seconds": { "type": "number", "default": 10, "minimum": 1, "maximum": 120, "description": "Under `no_reply_or_short`, a call this long or shorter\n(in seconds) counts as unanswered.\n" } } } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
@@ -433,13 +475,12 @@ operate a campaign once it runs.
433
475
  }],
434
476
  ["addBulkCallContact", {
435
477
  name: "addBulkCallContact",
436
- description: `Push a single contact into a dynamic bulk-call campaign in real
437
- time. Dynamic campaigns are created from the dashboard (Bulk Call
438
- > Create New Campaign > Dynamic Campaign) and stay alive waiting
439
- for contacts, so this webhook is how you feed them from a CRM,
440
- form, or automation platform. The contact is queued immediately,
441
- and the campaign starts calling it as soon as it is within
442
- operating hours.
478
+ description: `Push one contact into a dynamic bulk-call campaign.
479
+
480
+ Dynamic campaigns are created from the dashboard (Bulk Call > Create New
481
+ Campaign > Dynamic Campaign) and wait for contacts. Use this webhook to feed
482
+ them from a CRM, form or automation platform. The contact is queued at once.
483
+ The campaign calls it as soon as it is within operating hours.
443
484
 
444
485
  (Tags: Bulk calls)`,
445
486
  inputSchema: { "type": "object", "properties": { "campaign_id": { "type": "number", "description": "ID of the dynamic campaign to add the contact to." }, "requestBody": { "type": "object", "required": ["to_number"], "properties": { "to_number": { "type": "string", "description": "Contact phone number in international format (e.g., +15551234567)." }, "custom_variables": { "type": "object", "description": "Key-value pairs passed to the agent as context for this\ncall, so the agent can reference them during the\nconversation (e.g. the contact's name or reason for the\ncall). Match these keys to the variables used in your\nagent's welcome message or prompt.\n", "additionalProperties": true }, "metadata": { "type": "object", "description": "Key-value pairs stored on the contact for your own\ntracking (e.g. CRM or lead IDs). Not shared with the\nagent.\n", "additionalProperties": true }, "previous_from_number": { "type": "string", "description": "The number that called this person last. With\n`call_back_from_different_number` on, the call goes out\nfrom another number in the pool.\n" } }, "description": "The JSON request body." } }, "required": ["campaign_id", "requestBody"] },
@@ -492,13 +533,17 @@ operating hours.
492
533
  }],
493
534
  ["listBulkCallLines", {
494
535
  name: "listBulkCallLines",
495
- description: `Per-contact results for a campaign: what happened on each call, the
496
- variables you sent with that contact, and a pointer to the recording.
536
+ description: `List per-contact results for a campaign.
537
+
538
+ Each row has what happened on the call, the variables you sent, and
539
+ \`call.recording_id\`.
497
540
 
498
541
  ## Paging
499
542
 
500
- There is one rule. Call it with no \`cursor\`, then keep passing back the
501
- \`next_cursor\` you were handed until it comes back \`null\`.
543
+ Call with no \`cursor\`. Then pass back the \`next_cursor\` you were given until
544
+ it is \`null\`. Rows come oldest first. \`pagesize\` defaults to 30 and goes up
545
+ to 150. Cursors are opaque, so never build one. No contact is skipped or
546
+ returned twice, even while the campaign dials.
502
547
 
503
548
  \`\`\`
504
549
  cursor = None
@@ -509,17 +554,10 @@ while True:
509
554
  if not cursor: break
510
555
  \`\`\`
511
556
 
512
- Each call returns a page of rows, oldest first: \`pagesize\` goes up to
513
- 150 and defaults to 30. Cursors are opaque, so pass back the string you
514
- were given and never build one. No contact is skipped or returned
515
- twice, even while the campaign is still dialing.
516
-
517
557
  ## Transcripts are not in the row
518
558
 
519
- Each row carries \`call.recording_id\`, not the conversation. Transcripts
520
- reach 212 KB, so carrying them here would make one page tens of
521
- megabytes. Fetch the one you want from
522
- \`GET /calls/logs/{recording_id}\`.
559
+ Transcripts reach 212 KB, so rows carry only \`call.recording_id\`. Fetch the
560
+ transcript from \`GET /calls/logs/{recording_id}\`.
523
561
 
524
562
  (Tags: Bulk calls)`,
525
563
  inputSchema: { "type": "object", "properties": { "bulk_call_id": { "type": "number", "description": "Id of the bulk call campaign." }, "cursor": { "type": "string", "description": "The `next_cursor` from your previous response. Omit it on the first\nrequest. Opaque: pass it back unchanged.\n" }, "pagesize": { "type": "integer", "minimum": 1, "default": 30, "maximum": 150, "description": "Rows per page. Above 150 the request is refused." }, "call_status": { "type": "string", "enum": ["Pending", "In Progress", "completed", "voicemail_detected", "no-answer", "busy", "Failed", "Skipped", "retry_scheduled", "cancelled"], "description": "Return only contacts in this state." }, "interaction_status": { "type": "string", "description": "Return only contacts with this interaction outcome." }, "search": { "type": "string", "description": "An exact phone number, matched against the contact's number and the\nnumber that called it. Not a substring search.\n" }, "include_total": { "type": "boolean", "default": false, "description": "Add `total_records` to the response. It costs a count over the whole\nfiltered campaign, so it is off unless you ask. Ask for it once to\nfill a header, not on every page of a walk.\n" } }, "required": ["bulk_call_id"] },
@@ -551,13 +589,14 @@ the number's lifetime total across every cycle.
551
589
  }],
552
590
  ["addBulkCallNumber", {
553
591
  name: "addBulkCallNumber",
554
- description: `Add one of your numbers to the campaign's rotation pool. Works while the
555
- campaign is running, which is how you bring in a fresh number when the
556
- pool is running out of healthy ones.
592
+ description: `Add one of your numbers to the campaign's rotation pool.
593
+
594
+ It works while the campaign runs, so use it to bring in a fresh number when
595
+ healthy ones run low.
557
596
 
558
- The number must belong to you and must not already be in the pool. A
559
- number with no agent attached gets this campaign's agent attached
560
- automatically; a number attached to a **different** agent is refused.
597
+ The number must be yours and not already in the pool. A number with no agent
598
+ gets this campaign's agent attached. A number attached to a **different**
599
+ agent is refused.
561
600
 
562
601
  (Tags: Bulk calls)`,
563
602
  inputSchema: { "type": "object", "properties": { "bulk_call_id": { "type": "number", "description": "Id of the bulk call campaign." }, "requestBody": { "type": "object", "required": ["phone_number_id"], "properties": { "phone_number_id": { "type": "number", "description": "One of your numbers, from List phone numbers." } }, "description": "The JSON request body." } }, "required": ["bulk_call_id", "requestBody"] },
@@ -573,16 +612,13 @@ automatically; a number attached to a **different** agent is refused.
573
612
  name: "setBulkCallNumberActive",
574
613
  description: `Stop or resume dialing from one number in the pool.
575
614
 
576
- Pausing is what you want when a number starts going bad mid-campaign:
577
- dialing moves to the next number in sequence and the paused number keeps
578
- its history and counters. The last active number of a running campaign
579
- cannot be paused, since the campaign would have nothing to dial from.
615
+ Pause a number that goes bad mid-campaign. Dialing moves to the next number,
616
+ and the paused number keeps its history and counters. You cannot pause the
617
+ last active number of a running campaign.
580
618
 
581
- Send the state you want rather than a toggle, so retrying the same
582
- request is harmless.
619
+ Send the state you want, not a toggle, so a retry is harmless.
583
620
 
584
- \`assignment_id\` is the number's id **within this campaign's pool**, from
585
- List rotation pool. It is not the \`phone_number_id\`.
621
+ \`assignment_id\` is the number's id **within this campaign's pool**, from List rotation pool. It is not the \`phone_number_id\`.
586
622
 
587
623
  (Tags: Bulk calls)`,
588
624
  inputSchema: { "type": "object", "properties": { "bulk_call_id": { "type": "number", "description": "Id of the bulk call campaign." }, "assignment_id": { "type": "number", "description": "The `assignment_id` from List rotation pool." }, "requestBody": { "type": "object", "required": ["is_active"], "properties": { "is_active": { "type": "boolean", "description": "`false` pauses the number, `true` resumes it." } }, "description": "The JSON request body." } }, "required": ["bulk_call_id", "assignment_id", "requestBody"] },
@@ -599,18 +635,14 @@ List rotation pool. It is not the \`phone_number_id\`.
599
635
  description: `Add up to 1000 contacts to a campaign in one request.
600
636
 
601
637
  This is the batch form of Add contact to dynamic campaign. Prefer it
602
- whenever you have more than a handful: one request of 500 contacts is
603
- far cheaper than 500 requests, on your side and ours.
638
+ whenever you have more than a handful of contacts.
604
639
 
605
- Repeated numbers are kept, not merged. If the same number appears twice
606
- with different variables, it is called twice, because two rows for one
607
- number usually means two real reasons to call.
640
+ Repeated numbers are kept, not merged. The same number with different
641
+ variables is called twice.
608
642
 
609
- Rows that fail validation are reported in \`rejected\` and the rest are
610
- still added, so a single bad number does not lose the batch. A row that
611
- is missing a column the campaign's \`call_conditions\` need is reported in
612
- \`rejected\`; the condition values themselves are not evaluated on this
613
- route.
643
+ Rows that fail validation are reported in \`rejected\`, and the rest are still
644
+ added. A row missing a column that the campaign's \`call_conditions\` need is
645
+ also rejected. The condition values are not evaluated on this route.
614
646
 
615
647
  (Tags: Bulk calls)`,
616
648
  inputSchema: { "type": "object", "properties": { "campaign_id": { "type": "number", "description": "Id of the bulk call campaign." }, "requestBody": { "type": "object", "required": ["contacts"], "properties": { "contacts": { "type": "array", "maxItems": 1000, "description": "Each row needs `to_number`. Note this differs from the\n`contact_list` on Create bulk call, which uses\n`phone_number` and takes loose keys: here the variables go\nin an explicit `custom_variables` object.\n", "items": { "type": "object", "required": ["to_number"], "properties": { "to_number": { "type": "string", "description": "Number to call, in international format." }, "custom_variables": { "type": "object", "description": "Passed to the agent as context for this call, so it\ncan use them in the conversation.\n", "additionalProperties": true }, "metadata": { "type": "object", "description": "Stored with the contact and returned on its row in\nBulk call results. Not shown to the agent.\n", "additionalProperties": true }, "previous_from_number": { "type": "string", "description": "The number that called this person last. With\n`call_back_from_different_number` on, the call goes\nout from another number in the pool.\n" } } } } }, "description": "The JSON request body." } }, "required": ["campaign_id", "requestBody"] },
@@ -643,11 +675,11 @@ scheduled, or finished cannot be started.
643
675
  }],
644
676
  ["setBulkCallConcurrency", {
645
677
  name: "setBulkCallConcurrency",
646
- description: `Change how many calls the campaign places at once, including while it is
647
- running. Raise it to finish sooner, lower it if your team cannot keep up
648
- with transfers or your numbers are being answered less.
678
+ description: `Change how many calls the campaign places at once, even while it runs.
649
679
 
650
- The ceiling is your account's concurrency limit.
680
+ Raise it to finish sooner. Lower it if your team cannot keep up with
681
+ transfers or fewer calls are answered. The ceiling is your account's
682
+ concurrency limit.
651
683
 
652
684
  (Tags: Bulk calls)`,
653
685
  inputSchema: { "type": "object", "properties": { "bulk_call_id": { "type": "number", "description": "Id of the bulk call campaign." }, "requestBody": { "type": "object", "required": ["concurrent_call_limit"], "properties": { "concurrent_call_limit": { "type": "number", "minimum": 1, "description": "Calls to place at once." } }, "description": "The JSON request body." } }, "required": ["bulk_call_id", "requestBody"] },
@@ -661,14 +693,14 @@ The ceiling is your account's concurrency limit.
661
693
  }],
662
694
  ["setBulkCallRotation", {
663
695
  name: "setBulkCallRotation",
664
- description: `Change how a campaign uses its number pool. Send only the fields you
665
- want to change. At least one field is required.
696
+ description: `Change how a campaign uses its number pool.
666
697
 
667
- This works while the campaign status is \`draft\`, \`scheduled\`,
668
- \`in_progress\`, \`waiting\`, \`paused\`, \`auto_paused\` or \`retry_scheduled\`.
669
- Any other status is refused with \`Cannot edit rotation for status:
670
- <status>\`. To change which numbers are in the pool, use the numbers
671
- endpoints.
698
+ Send only the fields you want to change. At least one field is required.
699
+
700
+ It works while the status is \`draft\`, \`scheduled\`, \`in_progress\`, \`waiting\`,
701
+ \`paused\`, \`auto_paused\` or \`retry_scheduled\`. Any other status is refused
702
+ with \`Cannot edit rotation for status: <status>\`. To change which numbers
703
+ are in the pool, use the numbers endpoints.
672
704
 
673
705
  (Tags: Bulk calls)`,
674
706
  inputSchema: { "type": "object", "properties": { "bulk_call_id": { "type": "number", "description": "Id of the bulk call campaign." }, "requestBody": { "type": "object", "properties": { "strategy": { "type": "string", "enum": ["fixed_count", "cpr_threshold", "both", "none"], "description": "When to move to the next number: every `calls_per_number`\ncalls, on low health score, both, or never.\n" }, "calls_per_number": { "type": "number", "description": "Calls before moving on. Used by `fixed_count` and `both`." }, "health_threshold": { "type": "number", "description": "Health score below which a number is rotated away from.\nUsed by `cpr_threshold` and `both`.\n" }, "fallback": { "type": "string", "enum": ["pause", "continue_best"], "description": "When every number is unhealthy: `pause` the campaign, or\n`continue_best` with the healthiest one.\n" }, "call_back_from_different_number": { "type": "boolean", "description": "When on, a repeat call to the same person goes out from a\ndifferent number than the one that called them last. Needs\ntwo or more numbers in the pool. Must be `true` or `false`.\n" }, "skip_known_invalid_numbers": { "type": "boolean", "description": "When on, a contact is not dialed if the carrier said its\nnumber does not exist, in any campaign of your organization\nin the last 14 days. Must be `true` or `false`.\n" } }, "description": "The JSON request body." } }, "required": ["bulk_call_id", "requestBody"] },
@@ -682,29 +714,22 @@ endpoints.
682
714
  }],
683
715
  ["retryBulkCall", {
684
716
  name: "retryBulkCall",
685
- description: `Re-queue contacts that did not connect, without creating a new campaign.
717
+ description: `Re-queue contacts that did not connect, without a new campaign.
686
718
 
687
- Use it after a campaign finishes with more no-answers than you expected,
688
- or when the reason was on your side (a bad window, a number that was
689
- having a bad day). Retried contacts keep their original variables.
719
+ Use it after a campaign finishes with more no-answers than expected, or when
720
+ the cause was on your side. Retried contacts keep their original variables.
690
721
 
691
722
  The retry is refused in these cases:
692
723
 
693
- - The campaign status is not \`completed\`. The error is
694
- \`Cannot retry calls. Current status: <status>\`.
695
- - Auto retry is on and some contacts are still \`Pending\` or
696
- \`In Progress\`. The error is \`Cannot retry while calls are still in
697
- progress and auto retry is enabled\`.
698
- - A value in \`failure_reasons\` is not one of the allowed statuses. The
699
- error is \`Invalid failure reason(s)\` and lists the allowed values.
700
- - No contact matches. The error is \`No failed calls found to retry
701
- matching criteria\`.
702
-
703
- Each contact is retried from its latest call only. When the campaign has
724
+ - The status is not \`completed\`. The error is \`Cannot retry calls. Current status: <status>\`.
725
+ - Auto retry is on and some contacts are still \`Pending\` or \`In Progress\`. The error is \`Cannot retry while calls are still in progress and auto retry is enabled\`.
726
+ - A value in \`failure_reasons\` is not an allowed status. The error is \`Invalid failure reason(s)\` and lists the allowed values.
727
+ - No contact matches. The error is \`No failed calls found to retry matching criteria\`.
728
+
729
+ Each contact is retried from its latest call only. With
704
730
  \`skip_known_invalid_numbers\` on, contacts whose last call ended with the
705
- carrier saying the number does not exist are not retried. This endpoint
706
- retries calls that did not connect. It does not retry connected calls
707
- with no conversation.
731
+ carrier saying the number does not exist are skipped. Connected calls with
732
+ no conversation are not retried.
708
733
 
709
734
  (Tags: Bulk calls)`,
710
735
  inputSchema: { "type": "object", "properties": { "bulk_call_id": { "type": "number", "description": "Id of the bulk call campaign." }, "requestBody": { "type": "object", "properties": { "retry_strategy": { "type": "string", "default": "all", "description": "Which contacts to re-queue. `all` takes everything that did\nnot connect. `specific` re-queues only the statuses listed\nin `failure_reasons`.\n" }, "failure_reasons": { "type": "array", "description": "Statuses to re-queue. Read only when `retry_strategy` is\n`specific`; for example `no-answer` and `busy`. Ignored when\n`retry_strategy` is `all`.\n", "items": { "type": "string", "enum": ["failed", "Failed", "no-answer", "No Answer", "busy", "Busy", "cancelled", "canceled", "voicemail_detected"] } } }, "description": "The JSON request body." } }, "required": ["bulk_call_id"] },
@@ -718,9 +743,9 @@ with no conversation.
718
743
  }],
719
744
  ["setBulkCallDailyTimeControl", {
720
745
  name: "setBulkCallDailyTimeControl",
721
- description: `Restrict a campaign to a daily calling window, in the campaign's
722
- timezone. Outside the window the campaign holds rather than finishing,
723
- and resumes the next day.
746
+ description: `Limit a campaign to a daily calling window in its timezone.
747
+
748
+ Outside the window the campaign holds, then resumes the next day.
724
749
 
725
750
  (Tags: Bulk calls)`,
726
751
  inputSchema: { "type": "object", "properties": { "bulk_call_id": { "type": "number", "description": "Id of the bulk call campaign." }, "requestBody": { "type": "object", "required": ["enable_daily_hard_stop", "enable_daily_auto_start"], "properties": { "enable_daily_hard_stop": { "type": "boolean", "description": "Stop dialing at `daily_stop_time` each day." }, "daily_stop_time": { "type": "number", "description": "Hour of day to stop, 0 to 23. Fractions are allowed, so\n`17.5` is 17:30. Required when the hard stop is on.\n" }, "daily_stop_timezone": { "type": "string", "description": "Timezone for the stop time." }, "enable_daily_auto_start": { "type": "boolean", "description": "Resume dialing at `daily_start_time` each day." }, "daily_start_time": { "type": "number", "description": "Hour of day to resume, 0 to 23. Required when auto start\nis on.\n" }, "daily_start_timezone": { "type": "string", "description": "Timezone for the start time." } }, "description": "The JSON request body." } }, "required": ["bulk_call_id", "requestBody"] },
@@ -840,15 +865,15 @@ from the OmniDimension number shop or imported your own.
840
865
  }],
841
866
  ["searchPhoneNumbers", {
842
867
  name: "searchPhoneNumbers",
843
- description: `Search the OmniDimension number shop for phone numbers available to buy
844
- in a region. Price and validity are flat per region, so every result
845
- shows the same \`monthly_rental_usd\` and \`validity_days\`, and that is the
846
- exact amount a purchase will charge.
868
+ description: `Search the OmniDimension number shop for numbers you can buy in a region.
869
+
870
+ Price and validity are flat per region. Every result shows the same
871
+ \`monthly_rental_usd\` and \`validity_days\`, and a purchase charges exactly
872
+ that.
847
873
 
848
- A region can have more than one carrier, each stocking different
849
- number series. Pass the \`carrier\` you want; the response names the
850
- carrier its results came from, and that is the carrier a purchase has
851
- to pass.
874
+ A region can have several carriers, each with different number series. Pass
875
+ the \`carrier\` you want. The response names the carrier its results came
876
+ from, and a purchase must pass that carrier.
852
877
 
853
878
  (Tags: Phone numbers)`,
854
879
  inputSchema: { "type": "object", "properties": { "region": { "type": "string", "enum": ["IN", "US"], "description": "Region to search in. `IN` and `US` both serve numbers. Which\nregions answer is configuration, so a region with no carrier\nenabled returns `404 not_available` rather than an empty list.\n" }, "carrier": { "type": "string", "description": "Which carrier's stock to search: carriers in a region do not sell\nthe same numbers. Required where a region has more than one\ncarrier; omitting it there returns `409 carrier_required` naming\nthe region's carriers and what each one stocks.\n" }, "pattern": { "type": "string", "description": "Digits or prefix to match within the number." }, "page": { "type": "number", "minimum": 1, "default": 1, "description": "Page of results to return." }, "limit": { "type": "number", "minimum": 1, "maximum": 150, "default": 20, "description": "Results per page." } }, "required": ["region"] },
@@ -862,8 +887,9 @@ to pass.
862
887
  }],
863
888
  ["purchasePhoneNumber", {
864
889
  name: "purchasePhoneNumber",
865
- description: `Buy a phone number from the OmniDimension number shop. The monthly
866
- rental comes out of your wallet and the number is added to your
890
+ description: `Buy a phone number from the OmniDimension number shop.
891
+
892
+ The monthly rental comes out of your wallet. The number is added to your
867
893
  account, ready to attach to an agent.
868
894
 
869
895
  (Tags: Phone numbers)`,
@@ -878,9 +904,10 @@ account, ready to attach to an agent.
878
904
  }],
879
905
  ["releasePhoneNumber", {
880
906
  name: "releasePhoneNumber",
881
- description: `Give up a phone number and stop its rental, so it is not charged at the
882
- next renewal. Only a number currently allocated to the account can be
883
- released.
907
+ description: `Release a phone number and stop its rental.
908
+
909
+ It is not charged at the next renewal. Only a number currently allocated to
910
+ the account can be released.
884
911
 
885
912
  (Tags: Phone numbers)`,
886
913
  inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["phone_number"], "properties": { "phone_number": { "type": "string", "description": "The number to release." } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
@@ -894,11 +921,12 @@ released.
894
921
  }],
895
922
  ["setPhoneNumberAutoRenew", {
896
923
  name: "setPhoneNumberAutoRenew",
897
- description: `Turn auto-renew off or back on for a number bought from the number shop.
898
- With auto-renew off, the number is not charged again: it keeps working
899
- until the end of the period already paid for and is then released. Turn
900
- it back on before that date and it renews as normal. Sending the value
901
- the number already has changes nothing and still succeeds.
924
+ description: `Turn auto-renew on or off for a number bought from the number shop.
925
+
926
+ With auto-renew off, the number is not charged again. It works until the end
927
+ of the period already paid for, then it is released. Turn auto-renew on
928
+ before that date and the number renews as normal. Sending the value the
929
+ number already has changes nothing and still succeeds.
902
930
 
903
931
  (Tags: Phone numbers)`,
904
932
  inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["phone_number", "auto_renew"], "properties": { "phone_number": { "type": "string", "description": "The number to switch." }, "auto_renew": { "type": "boolean", "description": "`false` stops renewal, `true` turns it back on. Must be a JSON boolean: a string such as `\"false\"`, a number, or a missing value is refused." } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
@@ -990,15 +1018,15 @@ the number already has changes nothing and still succeeds.
990
1018
  }],
991
1019
  ["listVoices", {
992
1020
  name: "listVoices",
993
- description: `Retrieve the voices your organization can use, with filtering and
994
- pagination. Use \`provider=featured\` for OmniDimension voices, the
995
- recommended starting point, in the order the dashboard shows them.
996
- Cartesia voices are the next choice.
1021
+ description: `List the voices your organization can use, with filters and pagination.
997
1022
 
998
- Each voice keeps its own \`service\`: save that as the agent's voice
999
- provider. A provider your organization cannot use returns a 400.
1000
- Cartesia and ElevenLabs support filtering by name, language, accent,
1001
- and gender. Other providers support pagination only.
1023
+ Use \`provider=featured\` for OmniDimension voices in the order the dashboard
1024
+ shows them. They are the recommended start. Cartesia voices are next.
1025
+
1026
+ Each voice keeps its own \`service\`: save it as the agent's voice provider. A
1027
+ provider your organization cannot use returns a 400. Cartesia and ElevenLabs
1028
+ support filtering by name, language, accent and gender. Other providers
1029
+ support pagination only.
1002
1030
 
1003
1031
  (Tags: Providers)`,
1004
1032
  inputSchema: { "type": "object", "properties": { "provider": { "type": "string", "description": "Provider to list voices from. Omit to list every voice your organization can use.\n`featured` lists OmniDimension voices and is the recommended choice, followed by\n`cartesia`. A provider your organization cannot use returns a 400.\n" }, "search": { "type": "string", "description": "Substring match against voice name or description. Cartesia and ElevenLabs." }, "language": { "type": "string", "description": "ISO language code (e.g. `en`, `hi`, `es`). Cartesia and ElevenLabs." }, "accent": { "type": "string", "description": "Accent label (e.g. `american`, `british`). Cartesia and ElevenLabs." }, "gender": { "type": "string", "enum": ["male", "female"], "description": "Filter voices by gender. Cartesia and ElevenLabs." }, "page": { "type": "integer", "minimum": 1, "default": 1, "description": "1-indexed page number." }, "page_size": { "type": "integer", "minimum": 1, "default": 30, "maximum": 100, "description": "Voices per page. Capped at 100." } } },
@@ -1064,26 +1092,26 @@ and gender. Other providers support pagination only.
1064
1092
  }],
1065
1093
  ["getAccountBalance", {
1066
1094
  name: "getAccountBalance",
1067
- description: `Read your organization's wallet: the remaining balance, the minutes
1068
- it buys at your rates, your plan, your concurrency headroom, and
1069
- whether auto-recharge will refill it.
1095
+ description: `Read your organization's wallet balance, plan and auto-recharge state.
1096
+
1097
+ The response also has the minutes the balance buys at your rates and your
1098
+ concurrency headroom.
1070
1099
 
1071
- Use it before a campaign, or on a schedule, so you find out you are
1072
- low on credit from this endpoint rather than from a call failing
1073
- with \`402 payment_required\`.
1100
+ Call it before a campaign, or on a schedule, so you learn about low credit
1101
+ here and not from a call failing with \`402 payment_required\`.
1074
1102
 
1075
- The response always describes the organization the API key belongs
1076
- to. There is no parameter for reading another account; resellers
1077
- read a client's figures through the Reseller endpoints.
1103
+ The response always describes the organization the API key belongs to. There
1104
+ is no parameter for another account. Resellers read a client's figures
1105
+ through the Reseller endpoints.
1078
1106
 
1079
- A balance at or below zero does not always mean calls will stop. An
1080
- organization on usage-based billing (\`plan.is_usage_based\`) keeps
1081
- placing calls and is metered to its payment method instead, so check
1082
- that flag before treating a zero balance as a stop condition.
1107
+ A balance at or below zero does not always stop calls. An organization on
1108
+ usage-based billing (\`plan.is_usage_based\`) keeps placing calls and is
1109
+ metered to its payment method. Check that flag before treating zero as a
1110
+ stop condition.
1083
1111
 
1084
- The API key's user needs Billing access in your organization. If
1085
- you get a \`403\`, an administrator can grant it when Billing is
1086
- enabled for your organization; when it is not, contact support.
1112
+ The API key's user needs Billing access in your organization. If you get a
1113
+ \`403\`, an administrator can grant it when Billing is enabled for your
1114
+ organization. When it is not, contact support.
1087
1115
 
1088
1116
  (Tags: Account)`,
1089
1117
  inputSchema: { "type": "object", "properties": {} },
@@ -1097,12 +1125,13 @@ enabled for your organization; when it is not, contact support.
1097
1125
  }],
1098
1126
  ["listClonedVoices", {
1099
1127
  name: "listClonedVoices",
1100
- description: `Your cloned voices, oldest first, one cursor page at a time. Call it with
1101
- no \`cursor\`, then pass back the \`next_cursor\` you were handed until it is
1128
+ description: `List your cloned voices, oldest first, one cursor page at a time.
1129
+
1130
+ Call it with no \`cursor\`. Then pass back each \`next_cursor\` until it is
1102
1131
  \`null\`.
1103
1132
 
1104
- Once a voice is \`ready\`, its \`voice_id\` is the provider voice id to put
1105
- in an agent's \`voice.voice_id\` with \`voice.provider: cartesia\`.
1133
+ When a voice is \`ready\`, put its \`voice_id\` in an agent's \`voice.voice_id\`
1134
+ with \`voice.provider: cartesia\`.
1106
1135
 
1107
1136
  (Tags: Voice cloning)`,
1108
1137
  inputSchema: { "type": "object", "properties": { "limit": { "type": "number", "default": 20, "maximum": 100, "description": "Rows per page. Above 100 the request is refused." }, "cursor": { "type": "string", "description": "The `next_cursor` from your previous response. Omit it on the first\nrequest. Opaque: pass it back unchanged.\n" } } },
@@ -1157,9 +1186,11 @@ still \`processing\` cannot be deleted.
1157
1186
  }],
1158
1187
  ["getClonedVoiceSample", {
1159
1188
  name: "getClonedVoiceSample",
1160
- description: `Stream the generated mp3 sample of a cloned voice. Only the owner can
1161
- fetch it. \`404\` (\`sample_not_ready\`) when no sample exists yet. The
1162
- request needs your API key in the \`Authorization\` header.
1189
+ description: `Stream the generated mp3 sample of a cloned voice.
1190
+
1191
+ Only the owner can fetch it. Send your API key in the \`Authorization\`
1192
+ header. If no sample exists yet, the call returns \`404\`
1193
+ (\`sample_not_ready\`).
1163
1194
 
1164
1195
  (Tags: Voice cloning)`,
1165
1196
  inputSchema: { "type": "object", "properties": { "voice_id": { "type": "number", "description": "Id of the cloned voice." } }, "required": ["voice_id"] },
@@ -1186,7 +1217,11 @@ request needs your API key in the \`Authorization\` header.
1186
1217
  }],
1187
1218
  ["listWorkflowNodeTypes", {
1188
1219
  name: "listWorkflowNodeTypes",
1189
- description: `Search the node types a workflow can use, such as \`whatsapp\`, \`voice_ai\` or \`conditional\`. Call it first when you do not know which node to add. Then call \`getWorkflowNodeType\` for the settings of one type.
1220
+ description: `Search the node types a workflow can use.
1221
+
1222
+ Examples are \`whatsapp\`, \`voice_ai\` and \`conditional\`. Call it first when
1223
+ you do not know which node to add. Then call \`getWorkflowNodeType\` for one
1224
+ type's settings.
1190
1225
 
1191
1226
  (Tags: Workflows)`,
1192
1227
  inputSchema: { "type": "object", "properties": { "q": { "type": "string", "description": "Words to match against the type, label and description, such as `whatsapp`." }, "category": { "type": "string", "enum": ["triggers", "messaging", "calls", "flow", "ai", "crm", "integrations"], "description": "Only types in this category." } } },
@@ -1200,7 +1235,11 @@ request needs your API key in the \`Authorization\` header.
1200
1235
  }],
1201
1236
  ["getWorkflowNodeType", {
1202
1237
  name: "getWorkflowNodeType",
1203
- description: `The settings one node type reads, with their types, required flags and outputs. Call it before you add or edit a node, because its \`fields\` are the keys of the node's \`config\`. Use \`detail=full\` only when you need help text and examples.
1238
+ description: `Get the settings one node type reads.
1239
+
1240
+ Call it before you add or edit a node. Its \`fields\` are the keys of the
1241
+ node's \`config\`. Use \`detail=full\` only when you need help text and
1242
+ examples.
1204
1243
 
1205
1244
  (Tags: Workflows)`,
1206
1245
  inputSchema: { "type": "object", "properties": { "node_type": { "type": "string", "description": "A node type from `listWorkflowNodeTypes`, such as `whatsapp`." }, "detail": { "type": "string", "enum": ["minimal", "full"], "default": "minimal", "description": "`full` adds descriptions, examples and `output_example`." } }, "required": ["node_type"] },
@@ -1214,7 +1253,11 @@ request needs your API key in the \`Authorization\` header.
1214
1253
  }],
1215
1254
  ["listWorkflowFieldOptions", {
1216
1255
  name: "listWorkflowFieldOptions",
1217
- description: `The choices for one \`ref\` field of a node type, such as the phone numbers, agents or integrations in your account. Call it for every \`ref\` field and never guess an id. If it returns \`400 no_options\`, the field is not chosen from a list, so ask the user for the value.
1256
+ description: `List the choices for one \`ref\` field of a node type.
1257
+
1258
+ Examples are the phone numbers, agents or integrations in your account. Call
1259
+ it for every \`ref\` field and never guess an id. If it returns \`400
1260
+ no_options\`, the field is not a list choice, so ask the user for the value.
1218
1261
 
1219
1262
  (Tags: Workflows)`,
1220
1263
  inputSchema: { "type": "object", "properties": { "node_type": { "type": "string", "description": "A node type from `listWorkflowNodeTypes`, such as `whatsapp`." }, "field": { "type": "string", "description": "A field name from `getWorkflowNodeType`." }, "depends": { "type": "number", "description": "The value of the field this one depends on (`depends_on` in the node type), such as the chosen phone number id." } }, "required": ["node_type", "field"] },
@@ -1228,7 +1271,9 @@ request needs your API key in the \`Authorization\` header.
1228
1271
  }],
1229
1272
  ["listWorkflows", {
1230
1273
  name: "listWorkflows",
1231
- description: `Your workflows, oldest first, one cursor page at a time. Use it to find a workflow id. Pass back \`next_cursor\` until it is \`null\`.
1274
+ description: `List your workflows, oldest first, one cursor page at a time.
1275
+
1276
+ Use it to find a workflow id. Pass back \`next_cursor\` until it is \`null\`.
1232
1277
 
1233
1278
  (Tags: Workflows)`,
1234
1279
  inputSchema: { "type": "object", "properties": { "limit": { "type": "number", "default": 20, "minimum": 1, "maximum": 100, "description": "Rows per page." }, "cursor": { "type": "string", "description": "The `next_cursor` from the previous page. Omit it on the first request. Pass it back unchanged." } } },
@@ -1242,7 +1287,11 @@ request needs your API key in the \`Authorization\` header.
1242
1287
  }],
1243
1288
  ["createWorkflow", {
1244
1289
  name: "createWorkflow",
1245
- description: `Create a workflow with a draft. Without \`graph\`, the draft holds one \`trigger\` node, ready for \`editWorkflow\` ops. Pass \`graph\` only to start from a complete graph. The response carries the \`revision\` you need to edit.
1290
+ description: `Create a workflow with a draft.
1291
+
1292
+ Without \`graph\`, the draft holds one \`trigger\` node, ready for
1293
+ \`editWorkflow\` ops. Pass \`graph\` only to start from a complete graph. The
1294
+ response carries the \`revision\` you need to edit.
1246
1295
 
1247
1296
  (Tags: Workflows)`,
1248
1297
  inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["name"], "properties": { "name": { "type": "string", "description": "A non-empty name." }, "graph": { "type": "object", "description": "A complete graph to start a workflow from, in the same shape `getWorkflow`\nreturns under `draft`. A workflow you read can be sent back as a new one.\nIt is built with the same checks as `editWorkflow` ops. Most callers skip it\nand build with `editWorkflow` instead.\n", "required": ["nodes", "edges"], "properties": { "nodes": { "type": "array", "items": { "type": "object", "required": ["id", "type"], "properties": { "id": { "type": "string", "description": "Lowercase letters, digits and underscores, starting with a letter. Later nodes read this node's output as `{{ context.<id>.<field> }}`." }, "type": { "type": "string", "description": "A node type from `listWorkflowNodeTypes`." }, "label": { "type": "string" }, "position": { "type": "object", "properties": { "x": { "type": "number" }, "y": { "type": "number" } } }, "config": { "type": "object", "additionalProperties": true, "description": "The node's settings. The fields come from `getWorkflowNodeType`." } } } }, "edges": { "type": "array", "items": { "type": "object", "required": ["from", "to"], "properties": { "from": { "type": "string", "description": "Id of the node the edge starts at." }, "to": { "type": "string", "description": "Id of the node the edge ends at." }, "handle": { "type": "string", "description": "The output of the `from` node. Omit it, or send `default`, for a plain node's only output." } } } } } } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
@@ -1256,7 +1305,11 @@ request needs your API key in the \`Authorization\` header.
1256
1305
  }],
1257
1306
  ["getWorkflow", {
1258
1307
  name: "getWorkflow",
1259
- description: `One workflow with its draft, status and \`revision\`. Call it before every edit to get the current \`revision\`. Use \`view=structure\` to see nodes and edges without config on a large workflow. Secrets read back as \`********\`.
1308
+ description: `Get one workflow with its draft, status and \`revision\`.
1309
+
1310
+ Call it before every edit to get the current \`revision\`. Use
1311
+ \`view=structure\` to see nodes and edges without config on a large workflow.
1312
+ Secrets read back as \`********\`.
1260
1313
 
1261
1314
  (Tags: Workflows)`,
1262
1315
  inputSchema: { "type": "object", "properties": { "workflow_id": { "type": "number", "description": "Id of the workflow." }, "view": { "type": "string", "enum": ["structure", "full"], "default": "full", "description": "`structure` leaves node `config` out." } }, "required": ["workflow_id"] },
@@ -1270,7 +1323,10 @@ request needs your API key in the \`Authorization\` header.
1270
1323
  }],
1271
1324
  ["deleteWorkflow", {
1272
1325
  name: "deleteWorkflow",
1273
- description: `Delete a workflow. Its published version stops running. This cannot be undone, so confirm with the user first. To stop it without deleting, use \`deactivateWorkflow\`.
1326
+ description: `Delete a workflow and stop its published version.
1327
+
1328
+ This cannot be undone, so confirm with the user first. To stop it without
1329
+ deleting, use \`deactivateWorkflow\`.
1274
1330
 
1275
1331
  (Tags: Workflows)`,
1276
1332
  inputSchema: { "type": "object", "properties": { "workflow_id": { "type": "number", "description": "Id of the workflow." } }, "required": ["workflow_id"] },
@@ -1284,7 +1340,14 @@ request needs your API key in the \`Authorization\` header.
1284
1340
  }],
1285
1341
  ["editWorkflow", {
1286
1342
  name: "editWorkflow",
1287
- description: `Change the draft with a list of \`ops\`: add, update, move or delete nodes, and connect or disconnect them. The ops apply all together or not at all. You must send the \`revision\` from your last read. If you get \`409 revision_conflict\`, read the workflow again and retry. Secrets read back as \`********\`. Send them back unchanged to keep the stored value. This edits the draft only. Use \`publishWorkflow\` to make it live.
1343
+ description: `Change the draft with a list of \`ops\`.
1344
+
1345
+ Ops add, update, move or delete nodes, and connect or disconnect them. They
1346
+ apply all together or not at all. Send the \`revision\` from your last read.
1347
+ On \`409 revision_conflict\`, read the workflow again and retry.
1348
+
1349
+ Secrets read back as \`********\`. Send them back unchanged to keep the stored
1350
+ value. This edits the draft only. Use \`publishWorkflow\` to make it live.
1288
1351
 
1289
1352
  (Tags: Workflows)`,
1290
1353
  inputSchema: { "type": "object", "properties": { "workflow_id": { "type": "number", "description": "Id of the workflow." }, "requestBody": { "type": "object", "required": ["revision", "ops"], "properties": { "revision": { "type": "string", "description": "The `draft.revision` from your last `getWorkflow` or edit." }, "ops": { "type": "array", "items": { "type": "object", "description": "One edit to the draft. Set `op` and the fields that op uses.\n\n| `op` | Fields | Effect |\n|---|---|---|\n| `add_node` | `id`, `type`, `label?`, `config?`, `after?`, `handle?`, `position?` | Adds a node. With `after`, it also connects it to that node (on output `handle`). |\n| `update_node` | `id`, `config?`, `label?` | Merges `config` keys into the node. A `null` value removes a key. |\n| `move_node` | `id`, `position` | Moves a node on the canvas. |\n| `delete_node` | `id` | Deletes a node and its edges. |\n| `connect` | `from`, `to`, `handle?` | Adds an edge. |\n| `disconnect` | `from`, `to`, `handle?` | Removes an edge. |\n", "required": ["op"], "properties": { "op": { "type": "string", "enum": ["add_node", "update_node", "move_node", "delete_node", "connect", "disconnect"] }, "id": { "type": "string", "description": "Node id. For `add_node`, lowercase letters, digits and underscores, starting with a letter. It must be new." }, "type": { "type": "string", "description": "`add_node`: a node type from `listWorkflowNodeTypes`." }, "label": { "type": "string", "description": "`add_node`, `update_node`: the name shown on the canvas." }, "config": { "type": "object", "additionalProperties": true, "description": "`add_node`, `update_node`: the node's settings. The fields come from\n`getWorkflowNodeType`. Send a secret back as `********` to keep the\nstored value.\n" }, "after": { "type": "string", "description": "`add_node`: id of the node to connect the new node to." }, "handle": { "type": "string", "description": "`add_node`, `connect`, `disconnect`: the output of the source node. Omit for the default output." }, "position": { "type": "object", "description": "`add_node`, `move_node`: canvas position. `add_node` places the node for you if you omit it.", "properties": { "x": { "type": "number" }, "y": { "type": "number" } } }, "from": { "type": "string", "description": "`connect`, `disconnect`: id of the node the edge starts at." }, "to": { "type": "string", "description": "`connect`, `disconnect`: id of the node the edge ends at." } } } }, "name": { "type": "string", "description": "Rename the workflow." } }, "description": "The JSON request body." } }, "required": ["workflow_id", "requestBody"] },
@@ -1298,7 +1361,10 @@ request needs your API key in the \`Authorization\` header.
1298
1361
  }],
1299
1362
  ["validateWorkflow", {
1300
1363
  name: "validateWorkflow",
1301
- description: `Check the draft and list what blocks publish. It changes nothing. Call it after your edits and fix every error before \`publishWorkflow\`.
1364
+ description: `Check the draft and list what blocks publish.
1365
+
1366
+ It changes nothing. Call it after your edits and fix every error before
1367
+ \`publishWorkflow\`.
1302
1368
 
1303
1369
  (Tags: Workflows)`,
1304
1370
  inputSchema: { "type": "object", "properties": { "workflow_id": { "type": "number", "description": "Id of the workflow." } }, "required": ["workflow_id"] },
@@ -1312,7 +1378,11 @@ request needs your API key in the \`Authorization\` header.
1312
1378
  }],
1313
1379
  ["publishWorkflow", {
1314
1380
  name: "publishWorkflow",
1315
- description: `Make the draft the live version. Real events then run it, unless the workflow is paused. Run \`validateWorkflow\` first: publish is refused while the draft has errors. Ask the user before you publish.
1381
+ description: `Make the draft the live version.
1382
+
1383
+ Real events then run it, unless the workflow is paused. Publish is refused
1384
+ while the draft has errors, so run \`validateWorkflow\` first. Ask the user
1385
+ before you publish.
1316
1386
 
1317
1387
  (Tags: Workflows)`,
1318
1388
  inputSchema: { "type": "object", "properties": { "workflow_id": { "type": "number", "description": "Id of the workflow." } }, "required": ["workflow_id"] },
@@ -1340,7 +1410,10 @@ request needs your API key in the \`Authorization\` header.
1340
1410
  }],
1341
1411
  ["deactivateWorkflow", {
1342
1412
  name: "deactivateWorkflow",
1343
- description: `Turn the published workflow off, so real events stop running it. The workflow and its draft stay. Use \`activateWorkflow\` to turn it back on.
1413
+ description: `Turn the published workflow off.
1414
+
1415
+ Real events stop running it. The workflow and its draft stay. Use
1416
+ \`activateWorkflow\` to turn it back on.
1344
1417
 
1345
1418
  (Tags: Workflows)`,
1346
1419
  inputSchema: { "type": "object", "properties": { "workflow_id": { "type": "number", "description": "Id of the workflow." } }, "required": ["workflow_id"] },
@@ -1354,9 +1427,14 @@ request needs your API key in the \`Authorization\` header.
1354
1427
  }],
1355
1428
  ["testWorkflow", {
1356
1429
  name: "testWorkflow",
1357
- description: `Runs the draft once with payload as the trigger data. Every node runs for real: WhatsApp messages, SMS, emails and calls go out and CRM records change. Ask the user before calling it, and use their own phone number or email in the payload.
1430
+ description: `Run the draft once with \`payload\` as the trigger data.
1431
+
1432
+ Every node runs for real: WhatsApp messages, SMS, emails and calls go out,
1433
+ and CRM records change. Ask the user first, and use their own phone number
1434
+ or email in the payload.
1358
1435
 
1359
- It returns an \`execution_id\` at once. Poll \`getWorkflowExecution\` for the result.
1436
+ It returns an \`execution_id\` at once. Poll \`getWorkflowExecution\` for the
1437
+ result.
1360
1438
 
1361
1439
  (Tags: Workflows)`,
1362
1440
  inputSchema: { "type": "object", "properties": { "workflow_id": { "type": "number", "description": "Id of the workflow." }, "requestBody": { "type": "object", "properties": { "payload": { "type": "object", "additionalProperties": true, "description": "The trigger data. Nodes read it as `{{ context.<trigger id>.<field> }}`. See `output_example` of the trigger node type for its shape." } }, "description": "The JSON request body." } }, "required": ["workflow_id"] },
@@ -1370,7 +1448,10 @@ It returns an \`execution_id\` at once. Poll \`getWorkflowExecution\` for the re
1370
1448
  }],
1371
1449
  ["getWorkflowExecution", {
1372
1450
  name: "getWorkflowExecution",
1373
- description: `One run of a workflow, with the result of each step. Use it to read the outcome of \`testWorkflow\`. A run is finished when \`state\` is \`completed\`, \`failed\` or \`cancelled\`.
1451
+ description: `Get one workflow run with the result of each step.
1452
+
1453
+ Use it to read the outcome of \`testWorkflow\`. The run is finished when
1454
+ \`state\` is \`completed\`, \`failed\` or \`cancelled\`.
1374
1455
 
1375
1456
  (Tags: Workflows)`,
1376
1457
  inputSchema: { "type": "object", "properties": { "workflow_id": { "type": "number", "description": "Id of the workflow." }, "execution_id": { "type": "number", "description": "The `execution_id` from `testWorkflow`." } }, "required": ["workflow_id", "execution_id"] },
@@ -1384,10 +1465,11 @@ It returns an \`execution_id\` at once. Poll \`getWorkflowExecution\` for the re
1384
1465
  }],
1385
1466
  ["listWhatsappNumbers", {
1386
1467
  name: "listWhatsappNumbers",
1387
- description: `The WhatsApp numbers your API key can see, oldest first. Use it to find
1388
- a number id, then pass that id to the other routes. Each number carries
1389
- \`capabilities\`, which says what it can send. Archived numbers are left
1390
- out.
1468
+ description: `List the WhatsApp numbers your API key can see.
1469
+
1470
+ Numbers come oldest first, and archived ones are left out. Use it to find a
1471
+ number id for the other routes. Each number carries \`capabilities\`, which
1472
+ says what it can send.
1391
1473
 
1392
1474
  (Tags: WhatsApp)`,
1393
1475
  inputSchema: { "type": "object", "properties": { "limit": { "type": "number", "default": 20, "minimum": 1, "maximum": 100, "description": "Rows per page." }, "cursor": { "type": "string", "description": "The `next_cursor` from the previous page. Omit it on the first request and pass it back unchanged." } } },
@@ -1401,19 +1483,21 @@ out.
1401
1483
  }],
1402
1484
  ["importWhatsappNumbers", {
1403
1485
  name: "importWhatsappNumbers",
1404
- description: `Connects numbers from your own WhatsApp Business Account with your Meta
1405
- access token. List them first with
1406
- [Preview numbers](/docs/api-reference/whatsapp/previewWhatsappNumbers),
1407
- then pass the ids you want.
1486
+ description: `Connect numbers from your WhatsApp Business Account with your Meta access
1487
+ token.
1408
1488
 
1409
- The token must never expire and must carry both WhatsApp permissions
1410
- (\`whatsapp_business_management\` and \`whatsapp_business_messaging\`). A
1411
- system user token does. Add \`app_secret\` to receive replies. Without
1412
- it the number can send but not receive.
1489
+ List the numbers first with [Preview
1490
+ numbers](/docs/api-reference/whatsapp/previewWhatsappNumbers), then pass the
1491
+ ids you want.
1413
1492
 
1414
- Connecting a number again updates it: send a new \`access_token\` or
1415
- \`app_secret\` the same way to change either. One number failing does
1416
- not stop the others. It is listed in \`failed\` with the reason.
1493
+ The token must never expire and must carry both
1494
+ \`whatsapp_business_management\` and \`whatsapp_business_messaging\`. A system
1495
+ user token does. Add \`app_secret\` to receive replies. Without it the number
1496
+ can send but not receive.
1497
+
1498
+ Connecting a number again updates it. Send a new \`access_token\` or
1499
+ \`app_secret\` to change either. One number failing does not stop the others.
1500
+ It is listed in \`failed\` with the reason.
1417
1501
 
1418
1502
  (Tags: WhatsApp)`,
1419
1503
  inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["waba_id", "access_token", "phone_number_ids"], "properties": { "waba_id": { "type": "string", "description": "Your WhatsApp Business Account id, from WhatsApp Manager." }, "access_token": { "type": "string", "description": "A Meta access token that never expires, with both WhatsApp permissions. Stored, never returned." }, "phone_number_ids": { "type": "array", "minItems": 1, "items": { "type": "string" }, "description": "Meta's ids for the numbers to connect, as Preview numbers lists them." }, "app_secret": { "type": "string", "description": "Your Meta app's secret. Turns on replies. Stored, never returned." } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
@@ -1427,12 +1511,14 @@ not stop the others. It is listed in \`failed\` with the reason.
1427
1511
  }],
1428
1512
  ["previewWhatsappNumbers", {
1429
1513
  name: "previewWhatsappNumbers",
1430
- description: `Lists the numbers on your WhatsApp Business Account with their health,
1431
- and connects nothing. The access token is checked first, against the
1432
- same rules as connecting, so a preview that passes can connect.
1514
+ description: `List the numbers on your WhatsApp Business Account with their health.
1515
+ Connects nothing.
1516
+
1517
+ The access token is checked first, against the same rules as connecting, so
1518
+ a preview that passes can connect.
1433
1519
 
1434
- Connect a number with \`needs_migration\` or \`needs_registration\` only
1435
- after fixing it in WhatsApp Manager, or its sends fail.
1520
+ Fix a number with \`needs_migration\` or \`needs_registration\` in WhatsApp
1521
+ Manager before you connect it, or its sends fail.
1436
1522
 
1437
1523
  (Tags: WhatsApp)`,
1438
1524
  inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["waba_id", "access_token"], "properties": { "waba_id": { "type": "string", "description": "Your WhatsApp Business Account id, from WhatsApp Manager." }, "access_token": { "type": "string", "description": "A Meta access token that never expires, with both WhatsApp permissions." } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
@@ -1446,8 +1532,10 @@ after fixing it in WhatsApp Manager, or its sends fail.
1446
1532
  }],
1447
1533
  ["getWhatsappNumber", {
1448
1534
  name: "getWhatsappNumber",
1449
- description: `One number, with its status, quality and messaging limit, and what it
1450
- can send. A number in another workspace answers \`404\`.
1535
+ description: `Get one number with its status, quality, messaging limit and what it can
1536
+ send.
1537
+
1538
+ A number in another workspace answers \`404\`.
1451
1539
 
1452
1540
  (Tags: WhatsApp)`,
1453
1541
  inputSchema: { "type": "object", "properties": { "number_id": { "type": "number", "description": "Id of a WhatsApp number in your workspace, from\n[listWhatsappNumbers](/docs/api-reference/whatsapp/listWhatsappNumbers).\nA number in another workspace answers `404`.\n" } }, "required": ["number_id"] },
@@ -1461,10 +1549,10 @@ can send. A number in another workspace answers \`404\`.
1461
1549
  }],
1462
1550
  ["listWhatsappTemplates", {
1463
1551
  name: "listWhatsappTemplates",
1464
- description: `The number's message templates, as last synced, oldest first. Pass
1465
- \`status=approved\` to see exactly the templates a send accepts. Sync the
1466
- list with \`syncWhatsappTemplates\` first if a template you expect is
1467
- missing.
1552
+ description: `List the number's message templates, as last synced, oldest first.
1553
+
1554
+ Pass \`status=approved\` to see exactly the templates a send accepts. If a
1555
+ template you expect is missing, run \`syncWhatsappTemplates\` first.
1468
1556
 
1469
1557
  (Tags: WhatsApp)`,
1470
1558
  inputSchema: { "type": "object", "properties": { "number_id": { "type": "number", "description": "Id of a WhatsApp number in your workspace, from\n[listWhatsappNumbers](/docs/api-reference/whatsapp/listWhatsappNumbers).\nA number in another workspace answers `404`.\n" }, "status": { "type": "string", "description": "Show only templates with this review status, such as `approved`,\n`pending` or `rejected`. Lower-case; omit it for all.\n" }, "limit": { "type": "number", "default": 20, "minimum": 1, "maximum": 100, "description": "Rows per page." }, "cursor": { "type": "string", "description": "The `next_cursor` from the previous page." } }, "required": ["number_id"] },
@@ -1478,10 +1566,11 @@ missing.
1478
1566
  }],
1479
1567
  ["syncWhatsappTemplates", {
1480
1568
  name: "syncWhatsappTemplates",
1481
- description: `Pull the number's templates and their review statuses from WhatsApp into
1482
- your list. Run it after you create or edit a template in Meta. It runs
1483
- at most once a minute per number: a second call inside that minute
1484
- answers \`429\`.
1569
+ description: `Pull the number's templates and review statuses from WhatsApp into your
1570
+ list.
1571
+
1572
+ Run it after you create or edit a template in Meta. It runs at most once a
1573
+ minute per number. A second call inside that minute answers \`429\`.
1485
1574
 
1486
1575
  (Tags: WhatsApp)`,
1487
1576
  inputSchema: { "type": "object", "properties": { "number_id": { "type": "number", "description": "Id of a WhatsApp number in your workspace, from\n[listWhatsappNumbers](/docs/api-reference/whatsapp/listWhatsappNumbers).\nA number in another workspace answers `404`.\n" } }, "required": ["number_id"] },
@@ -1495,10 +1584,11 @@ answers \`429\`.
1495
1584
  }],
1496
1585
  ["getWhatsappCalling", {
1497
1586
  name: "getWhatsappCalling",
1498
- description: `Whether calling is on for this number and whether it can be turned on,
1499
- with the list of checks. A failing check does not fail the request: the
1500
- response stays \`200\` and names the check that blocks. Meta Cloud numbers
1501
- only. Calling must be included in your plan.
1587
+ description: `Get whether calling is on for this number and whether it can be turned on.
1588
+
1589
+ The response lists the checks. A failing check does not fail the request: it
1590
+ stays \`200\` and names the check that blocks. Meta Cloud numbers only. Your
1591
+ plan must include calling.
1502
1592
 
1503
1593
  (Tags: WhatsApp)`,
1504
1594
  inputSchema: { "type": "object", "properties": { "number_id": { "type": "number", "description": "Id of a WhatsApp number in your workspace, from\n[listWhatsappNumbers](/docs/api-reference/whatsapp/listWhatsappNumbers).\nA number in another workspace answers `404`.\n" } }, "required": ["number_id"] },
@@ -1512,10 +1602,11 @@ only. Calling must be included in your plan.
1512
1602
  }],
1513
1603
  ["setWhatsappCalling", {
1514
1604
  name: "setWhatsappCalling",
1515
- description: `Turn calling on or off for a Meta Cloud number. A customer calls this
1516
- number; it does not place calls. Turning it on requires every blocking
1517
- check to pass, or the request answers \`409\`. Turning it off is always
1518
- allowed.
1605
+ description: `Turn calling on or off for a Meta Cloud number.
1606
+
1607
+ A customer calls this number. It does not place calls. Turning calling on
1608
+ needs every blocking check to pass, or the request answers \`409\`. Turning it
1609
+ off is always allowed.
1519
1610
 
1520
1611
  (Tags: WhatsApp)`,
1521
1612
  inputSchema: { "type": "object", "properties": { "number_id": { "type": "number", "description": "Id of a WhatsApp number in your workspace, from\n[listWhatsappNumbers](/docs/api-reference/whatsapp/listWhatsappNumbers).\nA number in another workspace answers `404`.\n" }, "requestBody": { "type": "object", "required": ["enabled"], "properties": { "enabled": { "type": "boolean", "description": "`true` to turn calling on, `false` to turn it off." } }, "description": "The JSON request body." } }, "required": ["number_id", "requestBody"] },
@@ -1529,10 +1620,10 @@ allowed.
1529
1620
  }],
1530
1621
  ["listWhatsappConversations", {
1531
1622
  name: "listWhatsappConversations",
1532
- description: `A number's inbox, newest activity first. Poll it with \`updated_since\`
1533
- for changes since your last call, or page it with \`cursor\`. There are no
1534
- event webhooks, so polling is how an integration learns about new
1535
- messages.
1623
+ description: `List a number's inbox, newest activity first.
1624
+
1625
+ There are no event webhooks, so poll with \`updated_since\` to learn about new
1626
+ messages. Page with \`cursor\`.
1536
1627
 
1537
1628
  (Tags: WhatsApp)`,
1538
1629
  inputSchema: { "type": "object", "properties": { "number_id": { "type": "number", "description": "Id of a WhatsApp number in your workspace, from\n[listWhatsappNumbers](/docs/api-reference/whatsapp/listWhatsappNumbers).\nA number in another workspace answers `404`.\n" }, "filter": { "type": "string", "enum": ["all", "unread", "needs_person", "agent", "failed", "window_closed", "campaign_replies"], "default": "all", "description": "`needs_person` is a person-owned or paused conversation. `window_closed` is one you can only reach with a template." }, "q": { "type": "string", "maxLength": 200, "description": "Search the customer's name, phone number and message text." }, "updated_since": { "type": "string", "description": "An ISO 8601 date and time, such as `2026-10-01T09:00:00+00:00`. Returns\nconversations with a change at or after it. No offset means UTC.\n" }, "limit": { "type": "number", "default": 20, "minimum": 1, "maximum": 100, "description": "Rows per page." }, "cursor": { "type": "string", "description": "The `next_cursor` from the previous page." } }, "required": ["number_id"] },
@@ -1546,8 +1637,9 @@ messages.
1546
1637
  }],
1547
1638
  ["getWhatsappConversation", {
1548
1639
  name: "getWhatsappConversation",
1549
- description: `One conversation: who owns it, the 24-hour window, whether the customer
1550
- opted out, and the unread count. Poll it while a person is answering.
1640
+ description: `Get one conversation: owner, 24-hour window, opt-out state and unread count.
1641
+
1642
+ Poll it while a person is answering.
1551
1643
 
1552
1644
  (Tags: WhatsApp)`,
1553
1645
  inputSchema: { "type": "object", "properties": { "conversation_id": { "type": "string", "description": "A conversation id: the number id, a dash, then the customer's phone\ndigits, such as `412-919876543210`. From\n[listWhatsappConversations](/docs/api-reference/whatsapp/listWhatsappConversations).\n" } }, "required": ["conversation_id"] },
@@ -1562,7 +1654,9 @@ opted out, and the unread count. Poll it while a person is answering.
1562
1654
  ["takeOverWhatsappConversation", {
1563
1655
  name: "takeOverWhatsappConversation",
1564
1656
  description: `Take the conversation from the agent, so it stops replying and your team
1565
- answers. Repeating it changes nothing. Hand it back with
1657
+ answers.
1658
+
1659
+ Repeating it changes nothing. Hand it back with
1566
1660
  \`handBackWhatsappConversation\` when the person is done.
1567
1661
 
1568
1662
  (Tags: WhatsApp)`,
@@ -1577,8 +1671,9 @@ answers. Repeating it changes nothing. Hand it back with
1577
1671
  }],
1578
1672
  ["handBackWhatsappConversation", {
1579
1673
  name: "handBackWhatsappConversation",
1580
- description: `Give the conversation back to the agent, and clear a pause. The agent
1581
- answers the customer's next message. Repeating it changes nothing.
1674
+ description: `Give the conversation back to the agent and clear any pause.
1675
+
1676
+ The agent answers the customer's next message. Repeating it changes nothing.
1582
1677
 
1583
1678
  (Tags: WhatsApp)`,
1584
1679
  inputSchema: { "type": "object", "properties": { "conversation_id": { "type": "string", "description": "A conversation id: the number id, a dash, then the customer's phone\ndigits, such as `412-919876543210`. From\n[listWhatsappConversations](/docs/api-reference/whatsapp/listWhatsappConversations).\n" } }, "required": ["conversation_id"] },
@@ -1592,9 +1687,10 @@ answers the customer's next message. Repeating it changes nothing.
1592
1687
  }],
1593
1688
  ["listWhatsappMessages", {
1594
1689
  name: "listWhatsappMessages",
1595
- description: `One conversation's messages, newest first. Poll forward with \`after\`
1596
- (the id of the newest message you already have) to get only new ones.
1597
- Page backward through history with \`cursor\`. Do not pass both.
1690
+ description: `List one conversation's messages, newest first.
1691
+
1692
+ Poll forward with \`after\`, the id of the newest message you have, to get
1693
+ only new ones. Page back through history with \`cursor\`. Do not pass both.
1598
1694
 
1599
1695
  (Tags: WhatsApp)`,
1600
1696
  inputSchema: { "type": "object", "properties": { "conversation_id": { "type": "string", "description": "The conversation to read." }, "after": { "type": "number", "description": "Return messages newer than this message id. `next_cursor` is null in this mode." }, "limit": { "type": "number", "default": 20, "minimum": 1, "maximum": 100, "description": "Rows per page." }, "cursor": { "type": "string", "description": "The `next_cursor` from the previous page. Do not combine it with `after`." } }, "required": ["conversation_id"] },
@@ -1608,18 +1704,19 @@ Page backward through history with \`cursor\`. Do not pass both.
1608
1704
  }],
1609
1705
  ["sendWhatsappMessage", {
1610
1706
  name: "sendWhatsappMessage",
1611
- description: `Send one message through \`phone_number_id\` to a customer, in a text,
1612
- a template, an image or a document. Set \`type\` and the matching field.
1707
+ description: `Send a text, template, image or document message to a customer.
1708
+
1709
+ It goes out from \`phone_number_id\`. Set \`type\` and the field that matches
1710
+ it.
1613
1711
 
1614
- Outside the 24-hour window, only a template goes through. A text, image
1615
- or document send is refused with \`409 window_closed\`. A template send
1616
- works any time and can start a new conversation.
1712
+ Outside the 24-hour window, only a template goes through. Text, image and
1713
+ document sends are refused with \`409 window_closed\`. A template send works
1714
+ any time and can start a new conversation.
1617
1715
 
1618
- The send does not take the conversation over, so the agent keeps
1619
- answering. Set \`take_over: true\` to stop the agent and answer yourself.
1716
+ A send does not take the conversation over, so the agent keeps answering.
1717
+ Set \`take_over: true\` to stop the agent and answer yourself.
1620
1718
 
1621
- \`Idempotency-Key\` is required. The same key with the same body replays
1622
- the first answer instead of sending again.
1719
+ \`Idempotency-Key\` is required. The same key with the same body replays the first answer instead of sending again.
1623
1720
 
1624
1721
  (Tags: WhatsApp)`,
1625
1722
  inputSchema: { "type": "object", "properties": { "Idempotency-Key": { "type": "string", "maxLength": 255, "description": "A unique string you choose, up to 255 characters. Required on this\nroute. The same key with the same body replays the first answer for\n24 hours instead of acting twice. A different body with the same key\nanswers `409`.\n" }, "requestBody": { "type": "object", "required": ["phone_number_id", "to", "type"], "properties": { "phone_number_id": { "type": "number", "description": "The number to send from." }, "to": { "type": "string", "description": "The customer's number in international format, such as `+15551234567`." }, "type": { "type": "string", "enum": ["text", "template", "image", "document"] }, "text": { "type": "string", "maxLength": 4096, "description": "Required when `type` is `text`." }, "template": { "type": "object", "description": "Required when `type` is `template`.", "required": ["id"], "properties": { "id": { "type": "number", "description": "An approved template on this number, from `listWhatsappTemplates`." }, "params": { "type": "object", "description": "One value per field in the template's `fields`. Keys are\nthose field keys. String, number or null values.\n", "additionalProperties": true } } }, "media": { "type": "object", "description": "Required when `type` is `image` or `document`.", "required": ["media_id"], "properties": { "media_id": { "type": "string", "description": "The `media_id` from `uploadWhatsappMedia`, uploaded within the last 24 hours." }, "caption": { "type": "string", "maxLength": 1024 } } }, "reply_to": { "type": "number", "description": "A message id in the same conversation to quote. Not allowed with a template." }, "take_over": { "type": "boolean", "default": false, "description": "Stop the agent answering this conversation and let a person run it." } }, "description": "The JSON request body." } }, "required": ["Idempotency-Key", "requestBody"] },
@@ -1633,9 +1730,11 @@ the first answer instead of sending again.
1633
1730
  }],
1634
1731
  ["getWhatsappMessage", {
1635
1732
  name: "getWhatsappMessage",
1636
- description: `One message with its \`timeline\`: the delivery and read steps, oldest
1637
- first. Poll it after a send to learn whether the message was delivered
1638
- and read. Also shows what the send cost once it is charged.
1733
+ description: `Get one message with its \`timeline\` of delivery and read steps, oldest
1734
+ first.
1735
+
1736
+ Poll it after a send to learn whether the message was delivered and read. It
1737
+ also shows what the send cost once charged.
1639
1738
 
1640
1739
  (Tags: WhatsApp)`,
1641
1740
  inputSchema: { "type": "object", "properties": { "message_id": { "type": "number", "description": "Id of a message, from `listWhatsappMessages` or a send response." } }, "required": ["message_id"] },
@@ -1664,10 +1763,10 @@ lists active opt-outs only.
1664
1763
  }],
1665
1764
  ["addWhatsappOptOut", {
1666
1765
  name: "addWhatsappOptOut",
1667
- description: `Stop every message you start to this customer from this number, until
1668
- the block is lifted. The response is \`201\` when the block is new and
1669
- \`200\` when the customer was already blocked, in which case the entry is
1670
- returned unchanged.
1766
+ description: `Block a customer from receiving messages you start from this number.
1767
+
1768
+ The block lasts until you lift it. The response is \`201\` for a new block. It
1769
+ is \`200\` with the entry unchanged if the customer was already blocked.
1671
1770
 
1672
1771
  (Tags: WhatsApp)`,
1673
1772
  inputSchema: { "type": "object", "properties": { "number_id": { "type": "number", "description": "Id of a WhatsApp number in your workspace, from\n[listWhatsappNumbers](/docs/api-reference/whatsapp/listWhatsappNumbers).\nA number in another workspace answers `404`.\n" }, "requestBody": { "type": "object", "required": ["customer"], "properties": { "customer": { "type": "string", "description": "The customer's number in international format, such as `+15551234567`." }, "note": { "type": "string", "maxLength": 500, "description": "A note for your team." } }, "description": "The JSON request body." } }, "required": ["number_id", "requestBody"] },
@@ -1681,10 +1780,11 @@ returned unchanged.
1681
1780
  }],
1682
1781
  ["liftWhatsappOptOut", {
1683
1782
  name: "liftWhatsappOptOut",
1684
- description: `Lift a block you added, or a marketing block made in WhatsApp. The entry
1685
- stays in the list with \`active: false\`. A customer's own STOP cannot be
1686
- lifted over the API: only the customer lifting it in WhatsApp, or
1687
- messaging you again, brings them back.
1783
+ description: `Lift a block you added, or a marketing block made in WhatsApp.
1784
+
1785
+ The entry stays in the list with \`active: false\`. You cannot lift a
1786
+ customer's own STOP over the API. The customer must lift it in WhatsApp or
1787
+ message you again.
1688
1788
 
1689
1789
  (Tags: WhatsApp)`,
1690
1790
  inputSchema: { "type": "object", "properties": { "number_id": { "type": "number", "description": "Id of a WhatsApp number in your workspace, from\n[listWhatsappNumbers](/docs/api-reference/whatsapp/listWhatsappNumbers).\nA number in another workspace answers `404`.\n" }, "opt_out_id": { "type": "number", "description": "Id of an active opt-out entry, from `listWhatsappOptOuts`." } }, "required": ["number_id", "opt_out_id"] },
@@ -1712,9 +1812,10 @@ messaging you again, brings them back.
1712
1812
  }],
1713
1813
  ["createWhatsappCampaign", {
1714
1814
  name: "createWhatsappCampaign",
1715
- description: `Create a campaign as a draft. It sends nothing until you launch it. Add
1716
- contacts and launch it in the next calls. Only an approved template can
1717
- be used, so every campaign starts with one. Scheduling is not offered.
1815
+ description: `Create a draft campaign from an approved template. It sends nothing until
1816
+ you launch it.
1817
+
1818
+ Add contacts and launch it with the next calls. Scheduling is not offered.
1718
1819
 
1719
1820
  (Tags: WhatsApp)`,
1720
1821
  inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["name", "phone_number_id", "template_id"], "properties": { "name": { "type": "string", "maxLength": 255 }, "phone_number_id": { "type": "number" }, "template_id": { "type": "number", "description": "An approved template on that number." }, "campaign_mode": { "type": "string", "enum": ["broadcast", "broadcast_reply"], "default": "broadcast", "description": "`broadcast_reply` lets the agent answer replies. It needs an agent." }, "agent_id": { "type": "number", "description": "The agent that answers replies." }, "data_source": { "type": "string", "enum": ["csv", "webhook"], "default": "csv" }, "is_dynamic": { "type": "boolean", "default": false }, "variable_mapping": { "type": "object", "description": "Template field to contact field or static text.", "additionalProperties": true } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
@@ -1728,9 +1829,11 @@ be used, so every campaign starts with one. Scheduling is not offered.
1728
1829
  }],
1729
1830
  ["getWhatsappCampaign", {
1730
1831
  name: "getWhatsappCampaign",
1731
- description: `One campaign with its counts and analytics: per-source figures and the
1732
- failed contacts grouped by reason. \`delivery_rate\` and \`read_rate\` are
1733
- null on a number that does not report receipts.
1832
+ description: `Get one campaign with its counts and analytics.
1833
+
1834
+ Analytics include per-source figures and failed contacts grouped by reason.
1835
+ \`delivery_rate\` and \`read_rate\` are null on a number that does not report
1836
+ receipts.
1734
1837
 
1735
1838
  (Tags: WhatsApp)`,
1736
1839
  inputSchema: { "type": "object", "properties": { "campaign_id": { "type": "number", "description": "Id of a WhatsApp campaign, from `listWhatsappCampaigns`." } }, "required": ["campaign_id"] },
@@ -1744,8 +1847,10 @@ null on a number that does not report receipts.
1744
1847
  }],
1745
1848
  ["listWhatsappCampaignContacts", {
1746
1849
  name: "listWhatsappCampaignContacts",
1747
- description: `Per-contact status for a campaign, oldest first. A contact that read the
1748
- message and then replied STOP counts as read and opted out.
1850
+ description: `List per-contact status for a campaign, oldest first.
1851
+
1852
+ A contact that read the message and then replied STOP counts as read and
1853
+ opted out.
1749
1854
 
1750
1855
  (Tags: WhatsApp)`,
1751
1856
  inputSchema: { "type": "object", "properties": { "campaign_id": { "type": "number", "description": "Id of a WhatsApp campaign, from `listWhatsappCampaigns`." }, "status": { "type": "string", "enum": ["pending", "sent", "delivered", "read", "replied", "failed", "skipped", "opted_out"], "description": "Show only contacts in this state." }, "limit": { "type": "number", "default": 20, "minimum": 1, "maximum": 100, "description": "Rows per page." }, "cursor": { "type": "string", "description": "The `next_cursor` from the previous page." } }, "required": ["campaign_id"] },
@@ -1759,11 +1864,13 @@ message and then replied STOP counts as read and opted out.
1759
1864
  }],
1760
1865
  ["addWhatsappCampaignContacts", {
1761
1866
  name: "addWhatsappCampaignContacts",
1762
- description: `Add one contact, or up to 500 at once. On a draft they are stored for
1763
- launch. On a running campaign they are sent now. A contact already in
1764
- the campaign is skipped, so a retry is safe. Each contact needs a
1765
- \`phone_number\`; every other key is kept and can fill a template
1766
- parameter through \`variable_mapping\`.
1867
+ description: `Add one contact, or up to 500 at once, to a campaign.
1868
+
1869
+ On a draft they are stored for launch. On a running campaign they are sent
1870
+ now. A contact already in the campaign is skipped, so a retry is safe.
1871
+
1872
+ Each contact needs a \`phone_number\`. Every other key is kept and can fill a
1873
+ template parameter through \`variable_mapping\`.
1767
1874
 
1768
1875
  (Tags: WhatsApp)`,
1769
1876
  inputSchema: { "type": "object", "properties": { "campaign_id": { "type": "number", "description": "Id of a WhatsApp campaign, from `listWhatsappCampaigns`." }, "requestBody": { "description": "One contact object, or an array of 1 to 500.", "oneOf": [{ "type": "object", "description": "One contact. `phone_number` is required. Any other key is kept on the\ncontact and can fill a template parameter through `variable_mapping`.\n", "required": ["phone_number"], "properties": { "phone_number": { "type": "string", "description": "The customer's number in international format, such as `+15551234567`." }, "contact_name": { "type": "string", "description": "A name for your team. `name` works too." } }, "additionalProperties": true }, { "type": "array", "maxItems": 500, "items": { "type": "object", "description": "One contact. `phone_number` is required. Any other key is kept on the\ncontact and can fill a template parameter through `variable_mapping`.\n", "required": ["phone_number"], "properties": { "phone_number": { "type": "string", "description": "The customer's number in international format, such as `+15551234567`." }, "contact_name": { "type": "string", "description": "A name for your team. `name` works too." } }, "additionalProperties": true } }] } }, "required": ["campaign_id", "requestBody"] },
@@ -1777,10 +1884,11 @@ parameter through \`variable_mapping\`.
1777
1884
  }],
1778
1885
  ["launchWhatsappCampaign", {
1779
1886
  name: "launchWhatsappCampaign",
1780
- description: `Start a draft campaign: every pending contact is queued once. Needs at
1781
- least one contact, unless the campaign's \`data_source\` is \`webhook\`. The
1782
- plan's monthly broadcast allowance and the wallet balance are checked
1783
- here. \`Idempotency-Key\` is required, so a retry does not start it twice.
1887
+ description: `Start a draft campaign and queue every pending contact once.
1888
+
1889
+ It needs at least one contact, unless \`data_source\` is \`webhook\`. Launch
1890
+ checks the plan's monthly broadcast allowance and the wallet balance.
1891
+ \`Idempotency-Key\` is required, so a retry does not start it twice.
1784
1892
 
1785
1893
  (Tags: WhatsApp)`,
1786
1894
  inputSchema: { "type": "object", "properties": { "campaign_id": { "type": "number", "description": "Id of a WhatsApp campaign, from `listWhatsappCampaigns`." }, "Idempotency-Key": { "type": "string", "maxLength": 255, "description": "A unique string you choose, up to 255 characters. Required on this\nroute. The same key with the same body replays the first answer for\n24 hours instead of acting twice. A different body with the same key\nanswers `409`.\n" } }, "required": ["campaign_id", "Idempotency-Key"] },
@@ -1794,8 +1902,10 @@ here. \`Idempotency-Key\` is required, so a retry does not start it twice.
1794
1902
  }],
1795
1903
  ["pauseWhatsappCampaign", {
1796
1904
  name: "pauseWhatsappCampaign",
1797
- description: `Stop sending until you resume. Only a running campaign can be paused. A
1798
- pause you make by hand is never resumed automatically.
1905
+ description: `Stop sending until you resume.
1906
+
1907
+ Only a running campaign can be paused. A pause you make by hand is never
1908
+ resumed automatically.
1799
1909
 
1800
1910
  (Tags: WhatsApp)`,
1801
1911
  inputSchema: { "type": "object", "properties": { "campaign_id": { "type": "number", "description": "Id of a WhatsApp campaign, from `listWhatsappCampaigns`." } }, "required": ["campaign_id"] },
@@ -1809,9 +1919,10 @@ pause you make by hand is never resumed automatically.
1809
1919
  }],
1810
1920
  ["resumeWhatsappCampaign", {
1811
1921
  name: "resumeWhatsappCampaign",
1812
- description: `Resume a paused campaign. Contacts still pending are sent; a contact
1813
- already sent is never sent again. The wallet and allowance are checked
1814
- again, so a resume can answer \`402\`.
1922
+ description: `Resume a paused campaign.
1923
+
1924
+ Pending contacts are sent. A contact already sent is never sent again.
1925
+ Resume checks the wallet and allowance again, so it can answer \`402\`.
1815
1926
 
1816
1927
  (Tags: WhatsApp)`,
1817
1928
  inputSchema: { "type": "object", "properties": { "campaign_id": { "type": "number", "description": "Id of a WhatsApp campaign, from `listWhatsappCampaigns`." } }, "required": ["campaign_id"] },
@@ -1841,6 +1952,7 @@ or already-canceled campaign cannot be canceled.
1841
1952
  ]);
1842
1953
  addShowWorkflow(toolDefinitionMap);
1843
1954
  addDocsTools(toolDefinitionMap);
1955
+ addGuideTool(toolDefinitionMap);
1844
1956
  if (readOnlyMode())
1845
1957
  keepReadOnlyTools(toolDefinitionMap);
1846
1958
  /**
@@ -1857,7 +1969,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
1857
1969
  const toolsForClient = Array.from(toolDefinitionMap.values()).map(def => ({
1858
1970
  name: def.name,
1859
1971
  description: def.description,
1860
- inputSchema: def.inputSchema,
1972
+ inputSchema: flatInputSchema(def),
1861
1973
  annotations: toolAnnotations(def),
1862
1974
  _meta: toolMeta(def.name)
1863
1975
  }));
@@ -1872,7 +1984,9 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
1872
1984
  }
1873
1985
  if (isDocsTool(toolName))
1874
1986
  return await callDocsTool(toolName, toolArgs ?? {});
1875
- return await executeApiTool(toolName, toolDefinition, toolArgs ?? {}, securitySchemes);
1987
+ if (isGuideTool(toolName))
1988
+ return callGuideTool(toolArgs ?? {});
1989
+ return await executeApiTool(toolName, toolDefinition, nestBodyArgs(toolDefinition, toolArgs ?? {}), securitySchemes);
1876
1990
  });
1877
1991
  /**
1878
1992
  * Acquires an OAuth2 token using client credentials flow