@omnidim-ai/mcp-server 0.8.0 → 0.9.0
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 +343 -97
- package/build/index.js.map +1 -1
- package/build/procedures.js +115 -0
- package/build/procedures.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +348 -102
- package/src/procedures.ts +116 -0
package/build/index.js
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { readApiKey } from "./credentials.js";
|
|
6
6
|
import { isInteractive, printInteractiveHelp, startupBanner, trimLargeResponse } from "./helpers.js";
|
|
7
|
+
import { beginSession, emitSessionCrash, emitSessionEnd, endSession, recordToolError, recordToolResult } from "./telemetry.js";
|
|
7
8
|
import { registerProcedures } from "./procedures.js";
|
|
8
9
|
import { toolAnnotations } from "./tool-annotations.js";
|
|
9
10
|
import { notifyUpdates } from "./update_notifier.js";
|
|
10
|
-
import { beginSession, emitSessionCrash, emitSessionEnd, endSession, recordToolError, recordToolResult } from "./telemetry.js";
|
|
11
11
|
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
12
12
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
13
13
|
import { CallToolRequestSchema, ListToolsRequestSchema } from "@modelcontextprotocol/sdk/types.js";
|
|
@@ -48,15 +48,43 @@ registerProcedures(server);
|
|
|
48
48
|
* Map of tool definitions by name
|
|
49
49
|
*/
|
|
50
50
|
const toolDefinitionMap = new Map([
|
|
51
|
+
["createSession", {
|
|
52
|
+
name: "createSession",
|
|
53
|
+
description: `Create a voice Session: a short-lived, single-conversation
|
|
54
|
+
reservation that lets a client hold a live voice chat with your
|
|
55
|
+
agent. This is step 1 of 2. Creating the Session does not start any
|
|
56
|
+
audio on its own; it returns a \`ws_url\` that a client then connects
|
|
57
|
+
to over WebSocket to actually talk.
|
|
58
|
+
|
|
59
|
+
Call this endpoint from your server with your API key, and return
|
|
60
|
+
only the \`ws_url\` to your client. The API key must never reach the
|
|
61
|
+
browser. The \`ws_url\` is the only thing the client needs, and it is
|
|
62
|
+
safe to hand out because it is single-use and expires. For how to
|
|
63
|
+
connect and talk, see "Connect the client and talk" below the
|
|
64
|
+
request details.
|
|
65
|
+
|
|
66
|
+
(Tags: Sessions)`,
|
|
67
|
+
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", "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.\n" } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
|
|
68
|
+
method: "post",
|
|
69
|
+
pathTemplate: "/sessions/create",
|
|
70
|
+
executionParameters: [],
|
|
71
|
+
requestBodyContentType: "application/json",
|
|
72
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
73
|
+
tags: ["Sessions"],
|
|
74
|
+
deprecated: false
|
|
75
|
+
}],
|
|
51
76
|
["listAgents", {
|
|
52
77
|
name: "listAgents",
|
|
53
|
-
description: `Retrieve all agents for the authenticated user with pagination support
|
|
78
|
+
description: `Retrieve all agents for the authenticated user with pagination support.
|
|
79
|
+
(Tags: Agents)`,
|
|
54
80
|
inputSchema: { "type": "object", "properties": { "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)." }, "name": { "type": "string", "description": "Filter agents whose name matches this substring (case-insensitive)." } } },
|
|
55
81
|
method: "get",
|
|
56
82
|
pathTemplate: "/agents",
|
|
57
83
|
executionParameters: [{ "name": "pageno", "in": "query" }, { "name": "pagesize", "in": "query" }, { "name": "name", "in": "query" }],
|
|
58
84
|
requestBodyContentType: undefined,
|
|
59
|
-
securityRequirements: [{ "BearerAuth": [] }]
|
|
85
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
86
|
+
tags: ["Agents"],
|
|
87
|
+
deprecated: false
|
|
60
88
|
}],
|
|
61
89
|
["createAgent", {
|
|
62
90
|
name: "createAgent",
|
|
@@ -64,85 +92,194 @@ const toolDefinitionMap = new Map([
|
|
|
64
92
|
config supports transcriber, model, voice, web search, transfer,
|
|
65
93
|
end-call conditions, post-call actions (email + webhook),
|
|
66
94
|
ambient background track, initial ringing sound, and multilingual support.
|
|
67
|
-
|
|
68
|
-
inputSchema: { "type": "object", "properties": { "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_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." }, "transcriber": { "type": "object", "description": "Configuration for the speech-to-text transcriber.", "properties": { "provider": { "type": "string", "enum": ["deepgram_stream", "cartesia", "sarvam", "azure_stream", "soniox"], "description": "The speech-to-text provider to use.", "example": "deepgram_stream" }, "model": { "type": "string", "enum": ["nova-3", "nova-2"], "description": "The model to use for transcription (required when provider is `deepgram_stream`).", "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", "enum": ["azure-gpt-4.1-mini", "azure-gpt-4.1-nano", "azure-gpt-4o", "azure-gpt-4o-mini", "gemini-2.5-flash", "gemini-2.5-flash-lite", "gpt-3.5-turbo", "gpt-4.1-mini", "gpt-4.1-nano", "gpt-4o", "gpt-4o-mini", "gpt-5.1", "llama-3.3-70b-versatile"], "description": "The language model to use. The current catalog is returned by the LLM providers list.", "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.", "properties": { "provider": { "type": "string", "enum": ["eleven_labs", "google", "cartesia", "sarvam"], "description": "The voice provider to use. The current catalog is returned by the TTS providers list.", "example": "eleven_labs" }, "voice_id": { "type": "string", "description": "The provider's voice identifier, returned in the `name` field of the voices list (not the numeric `id`).", "example": "JBFqnCBsd6RMkjVDRZzb" }, "model": { "type": "string", "description": "TTS model identifier. Only consumed when `provider` is\n`cartesia` (e.g. `sonic-3.5`). For ElevenLabs and other\nproviders the model is implied by `voice_id` and this\nfield is ignored.\n", "example": "sonic-3.5" }, "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"], "description": "The search provider to use.", "example": "DuckDuckGo" } } }, "post_call_actions": { "type": "object", "description": "Side effects that fire once the call ends. Configure email, webhook, or both.", "properties": { "email": { "type": "object", "properties": { "enabled": { "type": "boolean" }, "recipients": { "type": "array", "description": "Email addresses that should receive the notification.", "items": { "type": "string", "format": "email" }, "example": ["support@example.com"] }, "include": { "type": "array", "description": "Which sections to include in the email body.", "items": { "type": "string", "enum": ["summary", "extracted_variables", "fullConversation", "sentiment"] } }, "extracted_variables": { "type": "array", "description": "Variables the model should pull out of the conversation for the email.", "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 should fire this action. Omit to\nuse the default (`completed`, `voicemail_detected`).\nPass an explicit list to also include failed calls,\nno-answers, busy signals, etc.\n", "items": { "type": "string", "enum": ["completed", "voicemail_detected", "failed", "no_answer", "busy", "cancelled"] }, "example": ["completed", "voicemail_detected"] } } }, "webhook": { "type": "object", "properties": { "enabled": { "type": "boolean" }, "url": { "type": "string", "format": "uri", "description": "Endpoint that receives a POST with the call payload.", "example": "https://your-webhook-endpoint.com/omnidim-callback" }, "include": { "type": "array", "description": "Which sections to include in the webhook body.", "items": { "type": "string", "enum": ["summary", "extracted_variables", "fullConversation", "sentiment"] } }, "extracted_variables": { "type": "array", "description": "Variables the model should pull out of the conversation for the webhook.", "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 should fire this webhook. Omit to\nuse the default (`completed`, `voicemail_detected`).\n", "items": { "type": "string", "enum": ["completed", "voicemail_detected", "failed", "no_answer", "busy", "cancelled"] }, "example": ["completed", "failed"] } } } } }, "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.", "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.", "properties": { "enabled": { "type": "boolean", "description": "Detect voicemail and react 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", "welcome_message", "context_breakdown"] }], "description": "The JSON request body." } }, "required": ["requestBody"] },
|
|
95
|
+
|
|
96
|
+
> **Voicemail detection is an access-gated feature** that we turn on per
|
|
97
|
+
account. If it isn't enabled for yours yet,
|
|
98
|
+
[request access](https://omnidim.io/contact-us?reason=product&lock=1)
|
|
99
|
+
before configuring the \`voicemail\` object.
|
|
100
|
+
|
|
101
|
+
(Tags: Agents)`,
|
|
102
|
+
inputSchema: { "type": "object", "properties": { "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." }, "transcriber": { "type": "object", "description": "Configuration for the speech-to-text transcriber.", "properties": { "provider": { "type": "string", "enum": ["deepgram_stream", "cartesia", "sarvam", "azure_stream", "soniox"], "description": "The speech-to-text provider to use.", "example": "deepgram_stream" }, "model": { "type": "string", "enum": ["nova-3", "nova-2"], "description": "The model to use for transcription (required when provider is `deepgram_stream`).", "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", "enum": ["azure-gpt-4.1-mini", "azure-gpt-4.1-nano", "azure-gpt-4o", "azure-gpt-4o-mini", "gemini-2.5-flash", "gemini-2.5-flash-lite", "gpt-3.5-turbo", "gpt-4.1-mini", "gpt-4.1-nano", "gpt-4o", "gpt-4o-mini", "gpt-5.1", "llama-3.3-70b-versatile"], "description": "The language model to use. The current catalog is returned by the LLM providers list.", "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.", "properties": { "provider": { "type": "string", "enum": ["eleven_labs", "google", "cartesia", "sarvam"], "description": "The voice provider to use. The current catalog is returned by the TTS providers list.", "example": "eleven_labs" }, "voice_id": { "type": "string", "description": "The provider's voice identifier, returned in the `name` field of the voices list (not the numeric `id`).", "example": "JBFqnCBsd6RMkjVDRZzb" }, "model": { "type": "string", "description": "TTS model identifier. Only consumed when `provider` is\n`cartesia` (e.g. `sonic-3.5`). For ElevenLabs and other\nproviders the model is implied by `voice_id` and this\nfield is ignored.\n", "example": "sonic-3.5" }, "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"], "description": "The search provider to use.", "example": "DuckDuckGo" } } }, "post_call_actions": { "type": "object", "description": "Side effects that fire once the call ends. Configure email, webhook, or both.", "properties": { "email": { "type": "object", "properties": { "enabled": { "type": "boolean" }, "recipients": { "type": "array", "description": "Email addresses that should receive the notification.", "items": { "type": "string", "format": "email" }, "example": ["support@example.com"] }, "include": { "type": "array", "description": "Which sections to include in the email body.", "items": { "type": "string", "enum": ["summary", "extracted_variables", "fullConversation", "sentiment"] } }, "extracted_variables": { "type": "array", "description": "Variables the model should pull out of the conversation for the email.", "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 should fire this action. Omit to\nuse the default (`completed`, `voicemail_detected`).\nPass an explicit list to also include failed calls,\nno-answers, busy signals, etc.\n", "items": { "type": "string", "enum": ["completed", "voicemail_detected", "failed", "no_answer", "busy", "cancelled"] }, "example": ["completed", "voicemail_detected"] } } }, "webhook": { "type": "object", "properties": { "enabled": { "type": "boolean" }, "url": { "type": "string", "format": "uri", "description": "Endpoint that receives a POST with the call payload.", "example": "https://your-webhook-endpoint.com/omnidim-callback" }, "include": { "type": "array", "description": "Which sections to include in the webhook body.", "items": { "type": "string", "enum": ["summary", "extracted_variables", "fullConversation", "sentiment"] } }, "extracted_variables": { "type": "array", "description": "Variables the model should pull out of the conversation for the webhook.", "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 should fire this webhook. Omit to\nuse the default (`completed`, `voicemail_detected`).\n", "items": { "type": "string", "enum": ["completed", "voicemail_detected", "failed", "no_answer", "busy", "cancelled"] }, "example": ["completed", "failed"] } } } } }, "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.", "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", "welcome_message", "context_breakdown"] }], "description": "The JSON request body." } }, "required": ["requestBody"] },
|
|
69
103
|
method: "post",
|
|
70
104
|
pathTemplate: "/agents/create",
|
|
71
105
|
executionParameters: [],
|
|
72
106
|
requestBodyContentType: "application/json",
|
|
73
|
-
securityRequirements: [{ "BearerAuth": [] }]
|
|
107
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
108
|
+
tags: ["Agents"],
|
|
109
|
+
deprecated: false
|
|
74
110
|
}],
|
|
75
111
|
["getAgent", {
|
|
76
112
|
name: "getAgent",
|
|
77
|
-
description: `Get details of a specific agent by ID
|
|
113
|
+
description: `Get details of a specific agent by ID. The response also includes a \`version_history_enabled\` boolean showing whether [version history](/docs/api-reference/agent-versions) is turned on for the agent's organization.
|
|
114
|
+
(Tags: Agents)`,
|
|
78
115
|
inputSchema: { "type": "object", "properties": { "agent_id": { "type": "number", "description": "The ID of the agent." } }, "required": ["agent_id"] },
|
|
79
116
|
method: "get",
|
|
80
117
|
pathTemplate: "/agents/{agent_id}",
|
|
81
118
|
executionParameters: [{ "name": "agent_id", "in": "path" }],
|
|
82
119
|
requestBodyContentType: undefined,
|
|
83
|
-
securityRequirements: [{ "BearerAuth": [] }]
|
|
120
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
121
|
+
tags: ["Agents"],
|
|
122
|
+
deprecated: false
|
|
84
123
|
}],
|
|
85
124
|
["updateAgent", {
|
|
86
125
|
name: "updateAgent",
|
|
87
|
-
description: `Update an existing agent. Send only the fields you want to change
|
|
88
|
-
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_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." }, "transcriber": { "type": "object", "description": "Configuration for the speech-to-text transcriber.", "properties": { "provider": { "type": "string", "enum": ["deepgram_stream", "cartesia", "sarvam", "azure_stream", "soniox"], "description": "The speech-to-text provider to use." }, "model": { "type": "string", "enum": ["nova-3", "nova-2"], "description": "The model to use for transcription (required when provider is `deepgram_stream`)." }, "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", "enum": ["azure-gpt-4.1-mini", "azure-gpt-4.1-nano", "azure-gpt-4o", "azure-gpt-4o-mini", "gemini-2.5-flash", "gemini-2.5-flash-lite", "gpt-3.5-turbo", "gpt-4.1-mini", "gpt-4.1-nano", "gpt-4o", "gpt-4o-mini", "gpt-5.1", "llama-3.3-70b-versatile"], "description": "The language model to use. The current catalog is returned by the LLM providers list." }, "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.", "properties": { "provider": { "type": "string", "enum": ["eleven_labs", "google", "cartesia", "sarvam"], "description": "The voice provider to use. The current catalog is returned by the TTS providers list." }, "voice_id": { "type": "string", "description": "The provider's voice identifier, returned in the `name` field of the voices list (not the numeric `id`)." }, "model": { "type": "string", "description": "TTS model identifier. Only consumed when `provider` is\n`cartesia` (e.g. `sonic-3.5`). For ElevenLabs and other\nproviders the model is implied by `voice_id` and this\nfield is ignored.\n" }, "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"], "description": "The search provider to use." } } }, "post_call_actions": { "type": "object", "description": "Side effects that fire once the call ends. Configure email, webhook, or both.", "properties": { "email": { "type": "object", "properties": { "enabled": { "type": "boolean" }, "recipients": { "type": "array", "description": "Email addresses that should receive the notification.", "items": { "type": "string", "format": "email" } }, "include": { "type": "array", "description": "Which sections to include in the email body.", "items": { "type": "string", "enum": ["summary", "extracted_variables", "fullConversation", "sentiment"] } }, "extracted_variables": { "type": "array", "description": "Variables the model should pull out of the conversation for the email.", "items": { "type": "object", "required": ["key", "prompt"], "properties": { "key": { "type": "string", "description": "Unique identifier for the variable in the post-call payload." }, "prompt": { "type": "string", "description": "Instruction for the model on what to pull out of the conversation." } } } }, "trigger_call_statuses": { "type": "array", "description": "Call outcomes that should fire this action. Omit to\nuse the default (`completed`, `voicemail_detected`).\nPass an explicit list to also include failed calls,\nno-answers, busy signals, etc.\n", "items": { "type": "string", "enum": ["completed", "voicemail_detected", "failed", "no_answer", "busy", "cancelled"] } } } }, "webhook": { "type": "object", "properties": { "enabled": { "type": "boolean" }, "url": { "type": "string", "format": "uri", "description": "Endpoint that receives a POST with the call payload." }, "include": { "type": "array", "description": "Which sections to include in the webhook body.", "items": { "type": "string", "enum": ["summary", "extracted_variables", "fullConversation", "sentiment"] } }, "extracted_variables": { "type": "array", "description": "Variables the model should pull out of the conversation for the webhook.", "items": { "type": "object", "required": ["key", "prompt"], "properties": { "key": { "type": "string", "description": "Unique identifier for the variable in the post-call payload." }, "prompt": { "type": "string", "description": "Instruction for the model on what to pull out of the conversation." } } } }, "trigger_call_statuses": { "type": "array", "description": "Call outcomes that should fire this webhook. Omit to\nuse the default (`completed`, `voicemail_detected`).\n", "items": { "type": "string", "enum": ["completed", "voicemail_detected", "failed", "no_answer", "busy", "cancelled"] } } } } } }, "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.", "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.", "properties": { "enabled": { "type": "boolean", "description": "Detect voicemail and react 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"] },
|
|
126
|
+
description: `Update an existing agent. Send only the fields you want to change.
|
|
127
|
+
|
|
128
|
+
> **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.
|
|
129
|
+
(Tags: Agents)`,
|
|
130
|
+
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." }, "transcriber": { "type": "object", "description": "Configuration for the speech-to-text transcriber.", "properties": { "provider": { "type": "string", "enum": ["deepgram_stream", "cartesia", "sarvam", "azure_stream", "soniox"], "description": "The speech-to-text provider to use." }, "model": { "type": "string", "enum": ["nova-3", "nova-2"], "description": "The model to use for transcription (required when provider is `deepgram_stream`)." }, "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", "enum": ["azure-gpt-4.1-mini", "azure-gpt-4.1-nano", "azure-gpt-4o", "azure-gpt-4o-mini", "gemini-2.5-flash", "gemini-2.5-flash-lite", "gpt-3.5-turbo", "gpt-4.1-mini", "gpt-4.1-nano", "gpt-4o", "gpt-4o-mini", "gpt-5.1", "llama-3.3-70b-versatile"], "description": "The language model to use. The current catalog is returned by the LLM providers list." }, "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.", "properties": { "provider": { "type": "string", "enum": ["eleven_labs", "google", "cartesia", "sarvam"], "description": "The voice provider to use. The current catalog is returned by the TTS providers list." }, "voice_id": { "type": "string", "description": "The provider's voice identifier, returned in the `name` field of the voices list (not the numeric `id`)." }, "model": { "type": "string", "description": "TTS model identifier. Only consumed when `provider` is\n`cartesia` (e.g. `sonic-3.5`). For ElevenLabs and other\nproviders the model is implied by `voice_id` and this\nfield is ignored.\n" }, "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"], "description": "The search provider to use." } } }, "post_call_actions": { "type": "object", "description": "Side effects that fire once the call ends. Configure email, webhook, or both.", "properties": { "email": { "type": "object", "properties": { "enabled": { "type": "boolean" }, "recipients": { "type": "array", "description": "Email addresses that should receive the notification.", "items": { "type": "string", "format": "email" } }, "include": { "type": "array", "description": "Which sections to include in the email body.", "items": { "type": "string", "enum": ["summary", "extracted_variables", "fullConversation", "sentiment"] } }, "extracted_variables": { "type": "array", "description": "Variables the model should pull out of the conversation for the email.", "items": { "type": "object", "required": ["key", "prompt"], "properties": { "key": { "type": "string", "description": "Unique identifier for the variable in the post-call payload." }, "prompt": { "type": "string", "description": "Instruction for the model on what to pull out of the conversation." } } } }, "trigger_call_statuses": { "type": "array", "description": "Call outcomes that should fire this action. Omit to\nuse the default (`completed`, `voicemail_detected`).\nPass an explicit list to also include failed calls,\nno-answers, busy signals, etc.\n", "items": { "type": "string", "enum": ["completed", "voicemail_detected", "failed", "no_answer", "busy", "cancelled"] } } } }, "webhook": { "type": "object", "properties": { "enabled": { "type": "boolean" }, "url": { "type": "string", "format": "uri", "description": "Endpoint that receives a POST with the call payload." }, "include": { "type": "array", "description": "Which sections to include in the webhook body.", "items": { "type": "string", "enum": ["summary", "extracted_variables", "fullConversation", "sentiment"] } }, "extracted_variables": { "type": "array", "description": "Variables the model should pull out of the conversation for the webhook.", "items": { "type": "object", "required": ["key", "prompt"], "properties": { "key": { "type": "string", "description": "Unique identifier for the variable in the post-call payload." }, "prompt": { "type": "string", "description": "Instruction for the model on what to pull out of the conversation." } } } }, "trigger_call_statuses": { "type": "array", "description": "Call outcomes that should fire this webhook. Omit to\nuse the default (`completed`, `voicemail_detected`).\n", "items": { "type": "string", "enum": ["completed", "voicemail_detected", "failed", "no_answer", "busy", "cancelled"] } } } } } }, "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.", "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"] },
|
|
89
131
|
method: "put",
|
|
90
132
|
pathTemplate: "/agents/{agent_id}",
|
|
91
133
|
executionParameters: [{ "name": "agent_id", "in": "path" }],
|
|
92
134
|
requestBodyContentType: "application/json",
|
|
93
|
-
securityRequirements: [{ "BearerAuth": [] }]
|
|
135
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
136
|
+
tags: ["Agents"],
|
|
137
|
+
deprecated: false
|
|
94
138
|
}],
|
|
95
139
|
["deleteAgent", {
|
|
96
140
|
name: "deleteAgent",
|
|
97
|
-
description: `Permanently delete an agent
|
|
141
|
+
description: `Permanently delete an agent.
|
|
142
|
+
(Tags: Agents)`,
|
|
98
143
|
inputSchema: { "type": "object", "properties": { "agent_id": { "type": "number", "description": "The ID of the agent." } }, "required": ["agent_id"] },
|
|
99
144
|
method: "delete",
|
|
100
145
|
pathTemplate: "/agents/{agent_id}",
|
|
101
146
|
executionParameters: [{ "name": "agent_id", "in": "path" }],
|
|
102
147
|
requestBodyContentType: undefined,
|
|
103
|
-
securityRequirements: [{ "BearerAuth": [] }]
|
|
148
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
149
|
+
tags: ["Agents"],
|
|
150
|
+
deprecated: false
|
|
151
|
+
}],
|
|
152
|
+
["listAgentVersions", {
|
|
153
|
+
name: "listAgentVersions",
|
|
154
|
+
description: `List an agent's saved versions, newest first. Includes manual (named) versions, automatic versions, and system backups taken before a restore.
|
|
155
|
+
(Tags: Agents)`,
|
|
156
|
+
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", "auto", "system"], "description": "Filter versions by kind." } }, "required": ["agent_id"] },
|
|
157
|
+
method: "get",
|
|
158
|
+
pathTemplate: "/agents/{agent_id}/versions",
|
|
159
|
+
executionParameters: [{ "name": "agent_id", "in": "path" }, { "name": "pageno", "in": "query" }, { "name": "pagesize", "in": "query" }, { "name": "search", "in": "query" }, { "name": "kind", "in": "query" }],
|
|
160
|
+
requestBodyContentType: undefined,
|
|
161
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
162
|
+
tags: ["Agents"],
|
|
163
|
+
deprecated: false
|
|
164
|
+
}],
|
|
165
|
+
["createAgentVersion", {
|
|
166
|
+
name: "createAgentVersion",
|
|
167
|
+
description: `Save the agent's current configuration as a named version.
|
|
168
|
+
(Tags: Agents)`,
|
|
169
|
+
inputSchema: { "type": "object", "properties": { "agent_id": { "type": "number", "description": "The ID of the agent." }, "requestBody": { "type": "object", "required": ["name"], "properties": { "name": { "type": "string", "description": "Display name for the version." }, "note": { "type": "string", "description": "Optional note describing the version." } }, "description": "The JSON request body." } }, "required": ["agent_id", "requestBody"] },
|
|
170
|
+
method: "post",
|
|
171
|
+
pathTemplate: "/agents/{agent_id}/versions",
|
|
172
|
+
executionParameters: [{ "name": "agent_id", "in": "path" }],
|
|
173
|
+
requestBodyContentType: "application/json",
|
|
174
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
175
|
+
tags: ["Agents"],
|
|
176
|
+
deprecated: false
|
|
177
|
+
}],
|
|
178
|
+
["deleteAgentVersion", {
|
|
179
|
+
name: "deleteAgentVersion",
|
|
180
|
+
description: `Delete a saved version.
|
|
181
|
+
(Tags: Agents)`,
|
|
182
|
+
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." } }, "required": ["agent_id", "version_number"] },
|
|
183
|
+
method: "delete",
|
|
184
|
+
pathTemplate: "/agents/{agent_id}/versions/{version_number}",
|
|
185
|
+
executionParameters: [{ "name": "agent_id", "in": "path" }, { "name": "version_number", "in": "path" }],
|
|
186
|
+
requestBodyContentType: undefined,
|
|
187
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
188
|
+
tags: ["Agents"],
|
|
189
|
+
deprecated: false
|
|
190
|
+
}],
|
|
191
|
+
["renameAgentVersion", {
|
|
192
|
+
name: "renameAgentVersion",
|
|
193
|
+
description: `Rename a saved version or edit its note. Version history is immutable otherwise; only the name and note can change.
|
|
194
|
+
(Tags: Agents)`,
|
|
195
|
+
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": { "name": { "type": "string", "description": "New display name for the version." }, "note": { "type": "string", "description": "New note for the version." } }, "description": "The JSON request body." } }, "required": ["agent_id", "version_number"] },
|
|
196
|
+
method: "patch",
|
|
197
|
+
pathTemplate: "/agents/{agent_id}/versions/{version_number}",
|
|
198
|
+
executionParameters: [{ "name": "agent_id", "in": "path" }, { "name": "version_number", "in": "path" }],
|
|
199
|
+
requestBodyContentType: "application/json",
|
|
200
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
201
|
+
tags: ["Agents"],
|
|
202
|
+
deprecated: false
|
|
203
|
+
}],
|
|
204
|
+
["diffAgentVersion", {
|
|
205
|
+
name: "diffAgentVersion",
|
|
206
|
+
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.
|
|
207
|
+
(Tags: Agents)`,
|
|
208
|
+
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"] },
|
|
209
|
+
method: "get",
|
|
210
|
+
pathTemplate: "/agents/{agent_id}/versions/{version_number}/diff",
|
|
211
|
+
executionParameters: [{ "name": "agent_id", "in": "path" }, { "name": "version_number", "in": "path" }, { "name": "against", "in": "query" }],
|
|
212
|
+
requestBodyContentType: undefined,
|
|
213
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
214
|
+
tags: ["Agents"],
|
|
215
|
+
deprecated: false
|
|
216
|
+
}],
|
|
217
|
+
["restoreAgentVersion", {
|
|
218
|
+
name: "restoreAgentVersion",
|
|
219
|
+
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\`.
|
|
220
|
+
(Tags: Agents)`,
|
|
221
|
+
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." } }, "required": ["agent_id", "version_number"] },
|
|
222
|
+
method: "post",
|
|
223
|
+
pathTemplate: "/agents/{agent_id}/versions/{version_number}/restore",
|
|
224
|
+
executionParameters: [{ "name": "agent_id", "in": "path" }, { "name": "version_number", "in": "path" }],
|
|
225
|
+
requestBodyContentType: undefined,
|
|
226
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
227
|
+
tags: ["Agents"],
|
|
228
|
+
deprecated: false
|
|
104
229
|
}],
|
|
105
230
|
["dispatchCall", {
|
|
106
231
|
name: "dispatchCall",
|
|
107
232
|
description: `Initiate a call to a phone number using a specified agent. The
|
|
108
233
|
phone number must include a country code with a leading plus.
|
|
109
|
-
|
|
234
|
+
|
|
235
|
+
(Tags: Calls)`,
|
|
110
236
|
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 } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
|
|
111
237
|
method: "post",
|
|
112
238
|
pathTemplate: "/calls/dispatch",
|
|
113
239
|
executionParameters: [],
|
|
114
240
|
requestBodyContentType: "application/json",
|
|
115
|
-
securityRequirements: [{ "BearerAuth": [] }]
|
|
241
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
242
|
+
tags: ["Calls"],
|
|
243
|
+
deprecated: false
|
|
116
244
|
}],
|
|
117
245
|
["listCallLogs", {
|
|
118
246
|
name: "listCallLogs",
|
|
119
|
-
description: `Retrieve call logs with pagination and optional filtering
|
|
247
|
+
description: `Retrieve call logs with pagination and optional filtering.
|
|
248
|
+
(Tags: Calls)`,
|
|
120
249
|
inputSchema: { "type": "object", "properties": { "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." }, "agentid": { "type": "number", "description": "Filter by agent ID." }, "call_status": { "type": "string", "enum": ["completed", "busy", "failed", "no-answer"], "description": "Filter by call outcome." }, "bulk_call_id": { "type": "number", "description": "Filter by bulk-call campaign ID." } } },
|
|
121
250
|
method: "get",
|
|
122
251
|
pathTemplate: "/calls/logs",
|
|
123
252
|
executionParameters: [{ "name": "pageno", "in": "query" }, { "name": "pagesize", "in": "query" }, { "name": "agentid", "in": "query" }, { "name": "call_status", "in": "query" }, { "name": "bulk_call_id", "in": "query" }],
|
|
124
253
|
requestBodyContentType: undefined,
|
|
125
|
-
securityRequirements: [{ "BearerAuth": [] }]
|
|
254
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
255
|
+
tags: ["Calls"],
|
|
256
|
+
deprecated: false
|
|
126
257
|
}],
|
|
127
258
|
["getCallLog", {
|
|
128
259
|
name: "getCallLog",
|
|
129
|
-
description: `Detailed information about a specific call (duration, status, transcript, sentiment, extracted variables)
|
|
260
|
+
description: `Detailed information about a specific call (duration, status, transcript, sentiment, extracted variables).
|
|
261
|
+
(Tags: Calls)`,
|
|
130
262
|
inputSchema: { "type": "object", "properties": { "call_log_id": { "type": "number", "description": "Id of the call log, as returned by the call log list." } }, "required": ["call_log_id"] },
|
|
131
263
|
method: "get",
|
|
132
264
|
pathTemplate: "/calls/logs/{call_log_id}",
|
|
133
265
|
executionParameters: [{ "name": "call_log_id", "in": "path" }],
|
|
134
266
|
requestBodyContentType: undefined,
|
|
135
|
-
securityRequirements: [{ "BearerAuth": [] }]
|
|
267
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
268
|
+
tags: ["Calls"],
|
|
269
|
+
deprecated: false
|
|
136
270
|
}],
|
|
137
271
|
["fetchBulkCalls", {
|
|
138
272
|
name: "fetchBulkCalls",
|
|
139
|
-
description: `List bulk-call campaigns with pagination and optional status filter
|
|
273
|
+
description: `List bulk-call campaigns with pagination and optional status filter.
|
|
274
|
+
(Tags: Bulk calls)`,
|
|
140
275
|
inputSchema: { "type": "object", "properties": { "pageno": { "type": "integer", "minimum": 1, "default": 1, "description": "Page number for pagination." }, "pagesize": { "type": "integer", "minimum": 1, "default": 10, "maximum": 150, "description": "Items per page (max 150)." }, "status": { "type": "string", "description": "Filter by status (e.g. completed)." } } },
|
|
141
276
|
method: "get",
|
|
142
277
|
pathTemplate: "/calls/bulk_call",
|
|
143
278
|
executionParameters: [{ "name": "pageno", "in": "query" }, { "name": "pagesize", "in": "query" }, { "name": "status", "in": "query" }],
|
|
144
279
|
requestBodyContentType: undefined,
|
|
145
|
-
securityRequirements: [{ "BearerAuth": [] }]
|
|
280
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
281
|
+
tags: ["Bulk calls"],
|
|
282
|
+
deprecated: false
|
|
146
283
|
}],
|
|
147
284
|
["createBulkCall", {
|
|
148
285
|
name: "createBulkCall",
|
|
@@ -159,13 +296,16 @@ There are two kinds of campaign:
|
|
|
159
296
|
campaign empty and feed it from a CRM, form, or automation. A
|
|
160
297
|
dynamic campaign stays alive waiting for contacts instead of
|
|
161
298
|
completing when its queue drains.
|
|
162
|
-
|
|
299
|
+
|
|
300
|
+
(Tags: Bulk calls)`,
|
|
163
301
|
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": "Your phone number id to use for making calls." }, "is_dynamic": { "type": "boolean", "default": false, "description": "Set to `true` to create a dynamic campaign that accepts\ncontacts in real time via the Add contact to dynamic\ncampaign webhook. When `true`, `contact_list` is optional\nand may be omitted to start the campaign empty.\n" }, "contact_list": { "type": "array", "description": "Array of contact objects. Each row needs `phone_number`.\nAny other key you add on the row (e.g. `customer_name`,\n`account_id`, `priority`) is passed to the agent as a\ncontext variable for that specific call, so the agent\ncan reference it during the conversation.\n\nRequired for static campaigns. Optional when `is_dynamic`\nis `true` (you can omit it and add contacts later via the\nwebhook).\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": 0, "minimum": 0, "maximum": 5, "description": "Maximum number of retry attempts (0–5)." } } } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
|
|
164
302
|
method: "post",
|
|
165
303
|
pathTemplate: "/calls/bulk_call/create",
|
|
166
304
|
executionParameters: [],
|
|
167
305
|
requestBodyContentType: "application/json",
|
|
168
|
-
securityRequirements: [{ "BearerAuth": [] }]
|
|
306
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
307
|
+
tags: ["Bulk calls"],
|
|
308
|
+
deprecated: false
|
|
169
309
|
}],
|
|
170
310
|
["addBulkCallContact", {
|
|
171
311
|
name: "addBulkCallContact",
|
|
@@ -176,236 +316,305 @@ for contacts, so this webhook is how you feed them from a CRM,
|
|
|
176
316
|
form, or automation platform. The contact is queued immediately,
|
|
177
317
|
and the campaign starts calling it as soon as it is within
|
|
178
318
|
operating hours.
|
|
179
|
-
|
|
319
|
+
|
|
320
|
+
(Tags: Bulk calls)`,
|
|
180
321
|
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 } }, "description": "The JSON request body." } }, "required": ["campaign_id", "requestBody"] },
|
|
181
322
|
method: "post",
|
|
182
323
|
pathTemplate: "/calls/bulk_call/{campaign_id}/add_contact",
|
|
183
324
|
executionParameters: [{ "name": "campaign_id", "in": "path" }],
|
|
184
325
|
requestBodyContentType: "application/json",
|
|
185
|
-
securityRequirements: [{ "BearerAuth": [] }]
|
|
326
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
327
|
+
tags: ["Bulk calls"],
|
|
328
|
+
deprecated: false
|
|
186
329
|
}],
|
|
187
330
|
["getBulkCall", {
|
|
188
331
|
name: "getBulkCall",
|
|
189
|
-
description: `Get detailed information about a bulk-call campaign
|
|
332
|
+
description: `Get detailed information about a bulk-call campaign.
|
|
333
|
+
(Tags: Bulk calls)`,
|
|
190
334
|
inputSchema: { "type": "object", "properties": { "bulk_call_id": { "type": "number", "description": "Id of the bulk call campaign." } }, "required": ["bulk_call_id"] },
|
|
191
335
|
method: "get",
|
|
192
336
|
pathTemplate: "/calls/bulk_call/{bulk_call_id}",
|
|
193
337
|
executionParameters: [{ "name": "bulk_call_id", "in": "path" }],
|
|
194
338
|
requestBodyContentType: undefined,
|
|
195
|
-
securityRequirements: [{ "BearerAuth": [] }]
|
|
339
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
340
|
+
tags: ["Bulk calls"],
|
|
341
|
+
deprecated: false
|
|
196
342
|
}],
|
|
197
343
|
["bulkCallActions", {
|
|
198
344
|
name: "bulkCallActions",
|
|
199
|
-
description: `Pause, resume, or reschedule a running campaign
|
|
345
|
+
description: `Pause, resume, or reschedule a running campaign.
|
|
346
|
+
(Tags: Bulk calls)`,
|
|
200
347
|
inputSchema: { "type": "object", "properties": { "bulk_call_id": { "type": "number", "description": "Id of the bulk call campaign." }, "requestBody": { "type": "object", "required": ["action"], "properties": { "action": { "type": "string", "enum": ["pause", "resume", "reschedule"], "description": "What to do with the campaign." }, "new_scheduled_datetime": { "type": "string", "description": "New start time for `reschedule`. Format `YYYY-MM-DD HH:MM:SS`." }, "new_timezone": { "type": "string", "description": "IANA timezone for `reschedule`." } }, "description": "The JSON request body." } }, "required": ["bulk_call_id", "requestBody"] },
|
|
201
348
|
method: "put",
|
|
202
349
|
pathTemplate: "/calls/bulk_call/{bulk_call_id}",
|
|
203
350
|
executionParameters: [{ "name": "bulk_call_id", "in": "path" }],
|
|
204
351
|
requestBodyContentType: "application/json",
|
|
205
|
-
securityRequirements: [{ "BearerAuth": [] }]
|
|
352
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
353
|
+
tags: ["Bulk calls"],
|
|
354
|
+
deprecated: false
|
|
206
355
|
}],
|
|
207
356
|
["cancelBulkCall", {
|
|
208
357
|
name: "cancelBulkCall",
|
|
209
|
-
description: `Cancel a bulk-call campaign
|
|
358
|
+
description: `Cancel a bulk-call campaign.
|
|
359
|
+
(Tags: Bulk calls)`,
|
|
210
360
|
inputSchema: { "type": "object", "properties": { "bulk_call_id": { "type": "number", "description": "Id of the bulk call campaign." } }, "required": ["bulk_call_id"] },
|
|
211
361
|
method: "delete",
|
|
212
362
|
pathTemplate: "/calls/bulk_call/{bulk_call_id}",
|
|
213
363
|
executionParameters: [{ "name": "bulk_call_id", "in": "path" }],
|
|
214
364
|
requestBodyContentType: undefined,
|
|
215
|
-
securityRequirements: [{ "BearerAuth": [] }]
|
|
365
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
366
|
+
tags: ["Bulk calls"],
|
|
367
|
+
deprecated: false
|
|
216
368
|
}],
|
|
217
369
|
["getBulkCallLiveStatus", {
|
|
218
370
|
name: "getBulkCallLiveStatus",
|
|
219
|
-
description: `Real-time status of a running bulk-call campaign
|
|
371
|
+
description: `Real-time status of a running bulk-call campaign.
|
|
372
|
+
(Tags: Bulk calls)`,
|
|
220
373
|
inputSchema: { "type": "object", "properties": { "bulk_call_id": { "type": "number", "description": "Id of the bulk call campaign." } }, "required": ["bulk_call_id"] },
|
|
221
374
|
method: "get",
|
|
222
375
|
pathTemplate: "/bulk-call/{bulk_call_id}/live-status",
|
|
223
376
|
executionParameters: [{ "name": "bulk_call_id", "in": "path" }],
|
|
224
377
|
requestBodyContentType: undefined,
|
|
225
|
-
securityRequirements: [{ "BearerAuth": [] }]
|
|
378
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
379
|
+
tags: ["Bulk calls"],
|
|
380
|
+
deprecated: false
|
|
226
381
|
}],
|
|
227
382
|
["listKnowledgeBaseFiles", {
|
|
228
383
|
name: "listKnowledgeBaseFiles",
|
|
229
|
-
description: `List all knowledge-base files for the authenticated user
|
|
384
|
+
description: `List all knowledge-base files for the authenticated user.
|
|
385
|
+
(Tags: Knowledge base)`,
|
|
230
386
|
inputSchema: { "type": "object", "properties": {} },
|
|
231
387
|
method: "get",
|
|
232
388
|
pathTemplate: "/knowledge_base/list",
|
|
233
389
|
executionParameters: [],
|
|
234
390
|
requestBodyContentType: undefined,
|
|
235
|
-
securityRequirements: [{ "BearerAuth": [] }]
|
|
391
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
392
|
+
tags: ["Knowledge base"],
|
|
393
|
+
deprecated: false
|
|
236
394
|
}],
|
|
237
395
|
["canUploadFile", {
|
|
238
396
|
name: "canUploadFile",
|
|
239
|
-
description: `Check whether a file can be uploaded based on size and type
|
|
397
|
+
description: `Check whether a file can be uploaded based on size and type.
|
|
398
|
+
(Tags: Knowledge base)`,
|
|
240
399
|
inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["file_size", "file_type"], "properties": { "file_size": { "type": "number", "minimum": 1, "description": "Size in bytes." }, "file_type": { "type": "string", "description": "File extension. Only `pdf` is accepted." } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
|
|
241
400
|
method: "post",
|
|
242
401
|
pathTemplate: "/knowledge_base/can_upload",
|
|
243
402
|
executionParameters: [],
|
|
244
403
|
requestBodyContentType: "application/json",
|
|
245
|
-
securityRequirements: [{ "BearerAuth": [] }]
|
|
404
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
405
|
+
tags: ["Knowledge base"],
|
|
406
|
+
deprecated: false
|
|
246
407
|
}],
|
|
247
408
|
["uploadKnowledgeBaseFile", {
|
|
248
409
|
name: "uploadKnowledgeBaseFile",
|
|
249
|
-
description: `Upload a PDF file. The file content must be Base64 encoded
|
|
410
|
+
description: `Upload a PDF file. The file content must be Base64 encoded.
|
|
411
|
+
(Tags: Knowledge base)`,
|
|
250
412
|
inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["file", "filename"], "properties": { "file": { "type": "string", "description": "Base64-encoded file content." }, "filename": { "type": "string", "description": "Filename including the `.pdf` extension." } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
|
|
251
413
|
method: "post",
|
|
252
414
|
pathTemplate: "/knowledge_base/create",
|
|
253
415
|
executionParameters: [],
|
|
254
416
|
requestBodyContentType: "application/json",
|
|
255
|
-
securityRequirements: [{ "BearerAuth": [] }]
|
|
417
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
418
|
+
tags: ["Knowledge base"],
|
|
419
|
+
deprecated: false
|
|
256
420
|
}],
|
|
257
421
|
["attachKnowledgeBaseFiles", {
|
|
258
422
|
name: "attachKnowledgeBaseFiles",
|
|
259
|
-
description: `Attach multiple knowledge-base files to an agent
|
|
423
|
+
description: `Attach multiple knowledge-base files to an agent.
|
|
424
|
+
(Tags: Knowledge base)`,
|
|
260
425
|
inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["file_ids", "agent_id"], "properties": { "file_ids": { "type": "array", "minItems": 1, "items": { "type": "number" }, "description": "List of knowledge-base file IDs to attach." }, "agent_id": { "type": "number", "description": "ID of the agent to attach files to." }, "when_to_use": { "type": "string", "description": "Instruction to the agent on when to consult these files." } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
|
|
261
426
|
method: "post",
|
|
262
427
|
pathTemplate: "/knowledge_base/attach",
|
|
263
428
|
executionParameters: [],
|
|
264
429
|
requestBodyContentType: "application/json",
|
|
265
|
-
securityRequirements: [{ "BearerAuth": [] }]
|
|
430
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
431
|
+
tags: ["Knowledge base"],
|
|
432
|
+
deprecated: false
|
|
266
433
|
}],
|
|
267
434
|
["detachKnowledgeBaseFiles", {
|
|
268
435
|
name: "detachKnowledgeBaseFiles",
|
|
269
|
-
description: `Detach multiple knowledge-base files from an agent
|
|
436
|
+
description: `Detach multiple knowledge-base files from an agent.
|
|
437
|
+
(Tags: Knowledge base)`,
|
|
270
438
|
inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["file_ids", "agent_id"], "properties": { "file_ids": { "type": "array", "minItems": 1, "items": { "type": "number" }, "description": "List of knowledge-base file IDs to detach." }, "agent_id": { "type": "number", "description": "ID of the agent to detach files from." } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
|
|
271
439
|
method: "post",
|
|
272
440
|
pathTemplate: "/knowledge_base/detach",
|
|
273
441
|
executionParameters: [],
|
|
274
442
|
requestBodyContentType: "application/json",
|
|
275
|
-
securityRequirements: [{ "BearerAuth": [] }]
|
|
443
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
444
|
+
tags: ["Knowledge base"],
|
|
445
|
+
deprecated: false
|
|
276
446
|
}],
|
|
277
447
|
["deleteKnowledgeBaseFile", {
|
|
278
448
|
name: "deleteKnowledgeBaseFile",
|
|
279
|
-
description: `Permanently delete a file. Removes it from any attached agents. Cannot be undone
|
|
449
|
+
description: `Permanently delete a file. Removes it from any attached agents. Cannot be undone.
|
|
450
|
+
(Tags: Knowledge base)`,
|
|
280
451
|
inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["file_id"], "properties": { "file_id": { "type": "number", "description": "ID of the file to delete." } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
|
|
281
452
|
method: "post",
|
|
282
453
|
pathTemplate: "/knowledge_base/delete",
|
|
283
454
|
executionParameters: [],
|
|
284
455
|
requestBodyContentType: "application/json",
|
|
285
|
-
securityRequirements: [{ "BearerAuth": [] }]
|
|
456
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
457
|
+
tags: ["Knowledge base"],
|
|
458
|
+
deprecated: false
|
|
286
459
|
}],
|
|
287
460
|
["listPhoneNumbers", {
|
|
288
461
|
name: "listPhoneNumbers",
|
|
289
|
-
description: `Retrieve all phone numbers associated with your account
|
|
462
|
+
description: `Retrieve all phone numbers associated with your account.
|
|
463
|
+
(Tags: Phone numbers)`,
|
|
290
464
|
inputSchema: { "type": "object", "properties": { "pageno": { "type": "integer", "minimum": 1, "default": 1, "description": "Page number for pagination." }, "pagesize": { "type": "integer", "minimum": 1, "default": 30, "maximum": 150, "description": "Items per page (max 150)." } } },
|
|
291
465
|
method: "get",
|
|
292
466
|
pathTemplate: "/phone_number/list",
|
|
293
467
|
executionParameters: [{ "name": "pageno", "in": "query" }, { "name": "pagesize", "in": "query" }],
|
|
294
468
|
requestBodyContentType: undefined,
|
|
295
|
-
securityRequirements: [{ "BearerAuth": [] }]
|
|
469
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
470
|
+
tags: ["Phone numbers"],
|
|
471
|
+
deprecated: false
|
|
296
472
|
}],
|
|
297
473
|
["attachPhoneNumber", {
|
|
298
474
|
name: "attachPhoneNumber",
|
|
299
|
-
description: `Attach an account-owned phone number to an existing agent
|
|
475
|
+
description: `Attach an account-owned phone number to an existing agent.
|
|
476
|
+
(Tags: Phone numbers)`,
|
|
300
477
|
inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["phone_number_id", "agent_id"], "properties": { "phone_number_id": { "type": "number", "description": "ID of the phone number to attach." }, "agent_id": { "type": "number", "description": "ID of the agent to attach the phone number to." } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
|
|
301
478
|
method: "post",
|
|
302
479
|
pathTemplate: "/phone_number/attach",
|
|
303
480
|
executionParameters: [],
|
|
304
481
|
requestBodyContentType: "application/json",
|
|
305
|
-
securityRequirements: [{ "BearerAuth": [] }]
|
|
482
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
483
|
+
tags: ["Phone numbers"],
|
|
484
|
+
deprecated: false
|
|
306
485
|
}],
|
|
307
486
|
["detachPhoneNumber", {
|
|
308
487
|
name: "detachPhoneNumber",
|
|
309
|
-
description: `Detach a phone number from its associated agent
|
|
488
|
+
description: `Detach a phone number from its associated agent.
|
|
489
|
+
(Tags: Phone numbers)`,
|
|
310
490
|
inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["phone_number_id"], "properties": { "phone_number_id": { "type": "number", "description": "ID of the phone number to detach." } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
|
|
311
491
|
method: "post",
|
|
312
492
|
pathTemplate: "/phone_number/detach",
|
|
313
493
|
executionParameters: [],
|
|
314
494
|
requestBodyContentType: "application/json",
|
|
315
|
-
securityRequirements: [{ "BearerAuth": [] }]
|
|
495
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
496
|
+
tags: ["Phone numbers"],
|
|
497
|
+
deprecated: false
|
|
316
498
|
}],
|
|
317
499
|
["importTwilioNumber", {
|
|
318
500
|
name: "importTwilioNumber",
|
|
319
|
-
description: `Import an existing Twilio number by providing your Twilio credentials
|
|
501
|
+
description: `Import an existing Twilio number by providing your Twilio credentials.
|
|
502
|
+
(Tags: Phone numbers)`,
|
|
320
503
|
inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["phone_number", "account_sid", "account_token"], "properties": { "phone_number": { "type": "string", "description": "Phone number in E.164 format (starting with `+`)." }, "account_sid": { "type": "string", "description": "Your Twilio account SID." }, "account_token": { "type": "string", "description": "Your Twilio auth token." }, "name": { "type": "string", "description": "Optional friendly name for the imported number." } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
|
|
321
504
|
method: "post",
|
|
322
505
|
pathTemplate: "/phone_number/import/twilio",
|
|
323
506
|
executionParameters: [],
|
|
324
507
|
requestBodyContentType: "application/json",
|
|
325
|
-
securityRequirements: [{ "BearerAuth": [] }]
|
|
508
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
509
|
+
tags: ["Phone numbers"],
|
|
510
|
+
deprecated: false
|
|
326
511
|
}],
|
|
327
512
|
["importExotelNumber", {
|
|
328
513
|
name: "importExotelNumber",
|
|
329
|
-
description: `Import an Exotel number by providing your Exotel credentials
|
|
514
|
+
description: `Import an Exotel number by providing your Exotel credentials.
|
|
515
|
+
(Tags: Phone numbers)`,
|
|
330
516
|
inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["exotel_phone_number", "exotel_api_key", "exotel_api_token", "exotel_subdomain", "exotel_account_sid", "exotel_app_id"], "properties": { "exotel_phone_number": { "type": "string", "description": "Exotel phone number in E.164 format." }, "exotel_api_key": { "type": "string", "description": "Your Exotel API key." }, "exotel_api_token": { "type": "string", "description": "Your Exotel API token." }, "exotel_subdomain": { "type": "string", "description": "Your Exotel subdomain (e.g. `your-account.in.exotel.com`)." }, "exotel_account_sid": { "type": "string", "description": "Your Exotel account SID." }, "exotel_app_id": { "type": "string", "description": "The Exotel App ID configured for the bot." }, "name": { "type": "string", "description": "Optional friendly name for the imported number." } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
|
|
331
517
|
method: "post",
|
|
332
518
|
pathTemplate: "/phone_number/import/exotel",
|
|
333
519
|
executionParameters: [],
|
|
334
520
|
requestBodyContentType: "application/json",
|
|
335
|
-
securityRequirements: [{ "BearerAuth": [] }]
|
|
521
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
522
|
+
tags: ["Phone numbers"],
|
|
523
|
+
deprecated: false
|
|
336
524
|
}],
|
|
337
525
|
["importSipTrunk", {
|
|
338
526
|
name: "importSipTrunk",
|
|
339
|
-
description: `Import a phone number associated with a SIP trunk
|
|
527
|
+
description: `Import a phone number associated with a SIP trunk.
|
|
528
|
+
(Tags: Phone numbers)`,
|
|
340
529
|
inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["phone_number", "sip_host", "sip_trunk_name"], "properties": { "phone_number": { "type": "string", "description": "Phone number in E.164 format (starting with `+`)." }, "sip_host": { "type": "string", "description": "SIP server hostname or IP." }, "sip_trunk_name": { "type": "string", "description": "Name for this SIP trunk (must be unique within your account)." }, "name": { "type": "string", "description": "Optional friendly name for the imported number." }, "sip_port": { "type": "number", "default": 5060, "description": "SIP server port." }, "sip_username": { "type": "string", "description": "SIP authentication username." }, "sip_password": { "type": "string", "format": "password", "description": "SIP authentication password." }, "sip_dial_prefix": { "type": "string", "description": "Optional prefix to prepend before the destination number when dialing (e.g. to strip the country code)." }, "sip_strip_plus": { "type": "boolean", "description": "When true, strips the leading `+` from the dialed number." } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
|
|
341
530
|
method: "post",
|
|
342
531
|
pathTemplate: "/phone_number/import/sip",
|
|
343
532
|
executionParameters: [],
|
|
344
533
|
requestBodyContentType: "application/json",
|
|
345
|
-
securityRequirements: [{ "BearerAuth": [] }]
|
|
534
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
535
|
+
tags: ["Phone numbers"],
|
|
536
|
+
deprecated: false
|
|
346
537
|
}],
|
|
347
538
|
["listLLMProviders", {
|
|
348
539
|
name: "listLLMProviders",
|
|
349
|
-
description: `Retrieve all available Large Language Model providers
|
|
540
|
+
description: `Retrieve all available Large Language Model providers.
|
|
541
|
+
(Tags: Providers)`,
|
|
350
542
|
inputSchema: { "type": "object", "properties": {} },
|
|
351
543
|
method: "get",
|
|
352
544
|
pathTemplate: "/providers/llms",
|
|
353
545
|
executionParameters: [],
|
|
354
546
|
requestBodyContentType: undefined,
|
|
355
|
-
securityRequirements: [{ "BearerAuth": [] }]
|
|
547
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
548
|
+
tags: ["Providers"],
|
|
549
|
+
deprecated: false
|
|
356
550
|
}],
|
|
357
551
|
["listVoices", {
|
|
358
552
|
name: "listVoices",
|
|
359
553
|
description: `Retrieve voices with filtering and pagination support. ElevenLabs
|
|
360
554
|
supports advanced filtering by name, language, accent, and gender.
|
|
361
555
|
Other providers support basic pagination only.
|
|
362
|
-
|
|
556
|
+
|
|
557
|
+
(Tags: Providers)`,
|
|
363
558
|
inputSchema: { "type": "object", "properties": { "provider": { "type": "string", "enum": ["eleven_labs", "google", "deepgram", "cartesia", "sarvam"], "description": "TTS provider to list voices from. Omit to list across all providers." }, "search": { "type": "string", "description": "Substring match against voice name or description. ElevenLabs only." }, "language": { "type": "string", "description": "ISO language code (e.g. `en`, `hi`, `es`). ElevenLabs only." }, "accent": { "type": "string", "description": "Accent label (e.g. `american`, `british`). ElevenLabs only." }, "gender": { "type": "string", "enum": ["male", "female"], "description": "Filter voices by gender. ElevenLabs only." }, "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." } } },
|
|
364
559
|
method: "get",
|
|
365
560
|
pathTemplate: "/providers/voices",
|
|
366
561
|
executionParameters: [{ "name": "provider", "in": "query" }, { "name": "search", "in": "query" }, { "name": "language", "in": "query" }, { "name": "accent", "in": "query" }, { "name": "gender", "in": "query" }, { "name": "page", "in": "query" }, { "name": "page_size", "in": "query" }],
|
|
367
562
|
requestBodyContentType: undefined,
|
|
368
|
-
securityRequirements: [{ "BearerAuth": [] }]
|
|
563
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
564
|
+
tags: ["Providers"],
|
|
565
|
+
deprecated: false
|
|
369
566
|
}],
|
|
370
567
|
["listSTTProviders", {
|
|
371
568
|
name: "listSTTProviders",
|
|
372
|
-
description: `Retrieve all Speech-to-Text providers
|
|
569
|
+
description: `Retrieve all Speech-to-Text providers.
|
|
570
|
+
(Tags: Providers)`,
|
|
373
571
|
inputSchema: { "type": "object", "properties": {} },
|
|
374
572
|
method: "get",
|
|
375
573
|
pathTemplate: "/providers/stt",
|
|
376
574
|
executionParameters: [],
|
|
377
575
|
requestBodyContentType: undefined,
|
|
378
|
-
securityRequirements: [{ "BearerAuth": [] }]
|
|
576
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
577
|
+
tags: ["Providers"],
|
|
578
|
+
deprecated: false
|
|
379
579
|
}],
|
|
380
580
|
["listTTSProviders", {
|
|
381
581
|
name: "listTTSProviders",
|
|
382
|
-
description: `Retrieve all Text-to-Speech providers
|
|
582
|
+
description: `Retrieve all Text-to-Speech providers.
|
|
583
|
+
(Tags: Providers)`,
|
|
383
584
|
inputSchema: { "type": "object", "properties": {} },
|
|
384
585
|
method: "get",
|
|
385
586
|
pathTemplate: "/providers/tts",
|
|
386
587
|
executionParameters: [],
|
|
387
588
|
requestBodyContentType: undefined,
|
|
388
|
-
securityRequirements: [{ "BearerAuth": [] }]
|
|
589
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
590
|
+
tags: ["Providers"],
|
|
591
|
+
deprecated: false
|
|
389
592
|
}],
|
|
390
593
|
["listAllProviders", {
|
|
391
594
|
name: "listAllProviders",
|
|
392
|
-
description: `Comprehensive response with services and voices in one payload
|
|
595
|
+
description: `Comprehensive response with services and voices in one payload.
|
|
596
|
+
(Tags: Providers)`,
|
|
393
597
|
inputSchema: { "type": "object", "properties": {} },
|
|
394
598
|
method: "get",
|
|
395
599
|
pathTemplate: "/providers/all",
|
|
396
600
|
executionParameters: [],
|
|
397
601
|
requestBodyContentType: undefined,
|
|
398
|
-
securityRequirements: [{ "BearerAuth": [] }]
|
|
602
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
603
|
+
tags: ["Providers"],
|
|
604
|
+
deprecated: false
|
|
399
605
|
}],
|
|
400
606
|
["getVoice", {
|
|
401
607
|
name: "getVoice",
|
|
402
|
-
description: `Detailed metadata for a specific voice
|
|
608
|
+
description: `Detailed metadata for a specific voice.
|
|
609
|
+
(Tags: Providers)`,
|
|
403
610
|
inputSchema: { "type": "object", "properties": { "voice_id": { "type": "number", "description": "Numeric id of the voice, as returned in the `id` field of the voices list." } }, "required": ["voice_id"] },
|
|
404
611
|
method: "get",
|
|
405
612
|
pathTemplate: "/providers/voice/{voice_id}",
|
|
406
613
|
executionParameters: [{ "name": "voice_id", "in": "path" }],
|
|
407
614
|
requestBodyContentType: undefined,
|
|
408
|
-
securityRequirements: [{ "BearerAuth": [] }]
|
|
615
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
616
|
+
tags: ["Providers"],
|
|
617
|
+
deprecated: false
|
|
409
618
|
}],
|
|
410
619
|
["listChildOrganizations", {
|
|
411
620
|
name: "listChildOrganizations",
|
|
@@ -413,51 +622,63 @@ Other providers support basic pagination only.
|
|
|
413
622
|
account. Returns each organization's balance, cost-per-minute
|
|
414
623
|
rate, and concurrency limit, plus the dashboard menu access
|
|
415
624
|
flags scoped to your reseller's permissions for every user.
|
|
416
|
-
|
|
625
|
+
|
|
626
|
+
(Tags: Reseller)`,
|
|
417
627
|
inputSchema: { "type": "object", "properties": {} },
|
|
418
628
|
method: "get",
|
|
419
629
|
pathTemplate: "/reseller/organizations",
|
|
420
630
|
executionParameters: [],
|
|
421
631
|
requestBodyContentType: undefined,
|
|
422
|
-
securityRequirements: [{ "BearerAuth": [] }]
|
|
632
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
633
|
+
tags: ["Reseller"],
|
|
634
|
+
deprecated: false
|
|
423
635
|
}],
|
|
424
636
|
["addUser", {
|
|
425
637
|
name: "addUser",
|
|
426
638
|
description: `Create a new child user and organization under the reseller.
|
|
427
639
|
The new organization is linked to your reseller account
|
|
428
640
|
automatically.
|
|
429
|
-
|
|
641
|
+
|
|
642
|
+
(Tags: Reseller)`,
|
|
430
643
|
inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["name", "email", "phone", "password"], "properties": { "name": { "type": "string", "description": "Full name of the new user." }, "email": { "type": "string", "format": "email", "description": "Email address. Also used as the login." }, "phone": { "type": "string", "description": "Phone number including country code (e.g. `+15551234567`)." }, "password": { "type": "string", "format": "password", "description": "Account password for the new user." }, "welcome_minutes_to_credit": { "type": "number", "description": "Minutes to credit to the new account on signup." }, "cost_per_min": { "type": "number", "description": "Cost per minute charged to this user (e.g. `0.20`). Must be at least the reseller's premium model rate." }, "concurrent_call_limit": { "type": "number", "description": "Maximum number of concurrent calls allowed for this account." }, "expiry_date": { "type": "string", "format": "date", "description": "Account expiry date in `YYYY-MM-DD` format (e.g. `2026-12-31`)." }, "user_currency": { "type": "string", "description": "ISO 4217 currency code for the account (e.g. `USD`, `INR`). Defaults to the reseller's currency." } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
|
|
431
644
|
method: "post",
|
|
432
645
|
pathTemplate: "/reseller/users/add",
|
|
433
646
|
executionParameters: [],
|
|
434
647
|
requestBodyContentType: "application/json",
|
|
435
|
-
securityRequirements: [{ "BearerAuth": [] }]
|
|
648
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
649
|
+
tags: ["Reseller"],
|
|
650
|
+
deprecated: false
|
|
436
651
|
}],
|
|
437
652
|
["setUserAccessControl", {
|
|
438
653
|
name: "setUserAccessControl",
|
|
439
654
|
description: `Enable or disable dashboard menu access flags for a child user.
|
|
440
655
|
Only the flags you pass are changed. Flags outside your
|
|
441
656
|
reseller's permissions are silently ignored.
|
|
442
|
-
|
|
657
|
+
|
|
658
|
+
(Tags: Reseller)`,
|
|
443
659
|
inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["user_id", "dashboard_menu_access"], "properties": { "user_id": { "type": "number", "description": "ID of the child user to update." }, "dashboard_menu_access": { "allOf": [{ "type": "object", "description": "Reseller-managed dashboard menu access flags. Each property is\na boolean toggle for a feature area in the child user's\ndashboard. On read endpoints, only flags the reseller\nthemselves has enabled are returned (so a child cannot have a\nflag the reseller doesn't have).\n", "properties": { "is_bots_menu_access": { "type": "boolean" }, "is_leads_access": { "type": "boolean" }, "is_voice_cloning_access": { "type": "boolean" }, "is_workflow_access": { "type": "boolean" }, "is_asr_evaluation_menu_access": { "type": "boolean" }, "is_train_with_call_recording_menu_access": { "type": "boolean" }, "is_call_logs_menu_access": { "type": "boolean" }, "is_call_simulation_menu_access": { "type": "boolean" }, "is_omni_crm_access": { "type": "boolean" }, "access_to_monitor_live_call": { "type": "boolean" }, "is_whatsapp_flow_enabled": { "type": "boolean" }, "is_billing_menu_access": { "type": "boolean" }, "is_knowledge_base_access": { "type": "boolean" }, "is_integration_access": { "type": "boolean" }, "is_phone_number_access": { "type": "boolean" }, "is_bulk_call_access": { "type": "boolean" }, "is_analytics_access": { "type": "boolean" } } }], "description": "Flags to update. Only pass the flags you want to\nchange. Others are left untouched. Flags outside\nyour reseller's permissions are silently dropped.\n" } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
|
|
444
660
|
method: "post",
|
|
445
661
|
pathTemplate: "/reseller/users/access-control",
|
|
446
662
|
executionParameters: [],
|
|
447
663
|
requestBodyContentType: "application/json",
|
|
448
|
-
securityRequirements: [{ "BearerAuth": [] }]
|
|
664
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
665
|
+
tags: ["Reseller"],
|
|
666
|
+
deprecated: false
|
|
449
667
|
}],
|
|
450
668
|
["setUserExpiry", {
|
|
451
669
|
name: "setUserExpiry",
|
|
452
670
|
description: `Set or remove the expiry date on a child user. The user must
|
|
453
671
|
belong to a child organization of your reseller.
|
|
454
|
-
|
|
672
|
+
|
|
673
|
+
(Tags: Reseller)`,
|
|
455
674
|
inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["user_id"], "properties": { "user_id": { "type": "number", "description": "ID of the child user to update." }, "expiry_date": { "type": ["string", "null"], "format": "date", "description": "Expiry date in `YYYY-MM-DD` format. Omit or pass `null` to remove the expiry." } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
|
|
456
675
|
method: "post",
|
|
457
676
|
pathTemplate: "/reseller/users/expiry",
|
|
458
677
|
executionParameters: [],
|
|
459
678
|
requestBodyContentType: "application/json",
|
|
460
|
-
securityRequirements: [{ "BearerAuth": [] }]
|
|
679
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
680
|
+
tags: ["Reseller"],
|
|
681
|
+
deprecated: false
|
|
461
682
|
}],
|
|
462
683
|
["setChildConcurrency", {
|
|
463
684
|
name: "setChildConcurrency",
|
|
@@ -466,13 +687,16 @@ organization can run. Slots come from the reseller's shared
|
|
|
466
687
|
pool. Increasing the limit deducts the delta from your pool
|
|
467
688
|
and fails if you don't have enough slots. Decreasing the
|
|
468
689
|
limit returns the delta to your pool immediately.
|
|
469
|
-
|
|
690
|
+
|
|
691
|
+
(Tags: Reseller)`,
|
|
470
692
|
inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["child_organization_id", "new_limit"], "properties": { "child_organization_id": { "type": "number", "description": "ID of the child organization to update." }, "new_limit": { "type": "number", "description": "The desired absolute concurrent call limit (must be `>= 0`)." } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
|
|
471
693
|
method: "post",
|
|
472
694
|
pathTemplate: "/reseller/concurrency",
|
|
473
695
|
executionParameters: [],
|
|
474
696
|
requestBodyContentType: "application/json",
|
|
475
|
-
securityRequirements: [{ "BearerAuth": [] }]
|
|
697
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
698
|
+
tags: ["Reseller"],
|
|
699
|
+
deprecated: false
|
|
476
700
|
}],
|
|
477
701
|
["calculateCreditOperation", {
|
|
478
702
|
name: "calculateCreditOperation",
|
|
@@ -480,13 +704,16 @@ limit returns the delta to your pool immediately.
|
|
|
480
704
|
credits. Use this to confirm amounts before calling the
|
|
481
705
|
transfer or revert endpoints. The response shape differs
|
|
482
706
|
between forward transfers and reverts. See the examples.
|
|
483
|
-
|
|
707
|
+
|
|
708
|
+
(Tags: Reseller)`,
|
|
484
709
|
inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["minutes"], "properties": { "minutes": { "type": "number", "description": "Number of minutes to calculate for." }, "cost_per_min": { "type": "number", "description": "Rate per minute for a forward transfer (e.g. `0.20`). Not required when `is_revert` is `true`." }, "is_revert": { "type": "boolean", "description": "Set to `true` to calculate a revert instead of a forward transfer.", "default": false }, "child_organization_id": { "type": "number", "description": "ID of the child organization to revert credits from. Required when `is_revert` is `true`." } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
|
|
485
710
|
method: "post",
|
|
486
711
|
pathTemplate: "/reseller/credits/calculate",
|
|
487
712
|
executionParameters: [],
|
|
488
713
|
requestBodyContentType: "application/json",
|
|
489
|
-
securityRequirements: [{ "BearerAuth": [] }]
|
|
714
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
715
|
+
tags: ["Reseller"],
|
|
716
|
+
deprecated: false
|
|
490
717
|
}],
|
|
491
718
|
["transferCreditsToChild", {
|
|
492
719
|
name: "transferCreditsToChild",
|
|
@@ -495,13 +722,16 @@ organization. Credits are deducted from your balance
|
|
|
495
722
|
immediately on success. The target organization must be a
|
|
496
723
|
direct child of your reseller. Use the calculate endpoint
|
|
497
724
|
first to preview the cost.
|
|
498
|
-
|
|
725
|
+
|
|
726
|
+
(Tags: Reseller)`,
|
|
499
727
|
inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["to_organization_id", "minutes", "cost_per_min"], "properties": { "to_organization_id": { "type": "number", "description": "ID of the child organization to transfer credits to." }, "minutes": { "type": "number", "description": "Number of minutes to transfer." }, "cost_per_min": { "type": "number", "description": "Rate per minute to charge the child organization (e.g. `0.20`)." } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
|
|
500
728
|
method: "post",
|
|
501
729
|
pathTemplate: "/reseller/credits/transfer",
|
|
502
730
|
executionParameters: [],
|
|
503
731
|
requestBodyContentType: "application/json",
|
|
504
|
-
securityRequirements: [{ "BearerAuth": [] }]
|
|
732
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
733
|
+
tags: ["Reseller"],
|
|
734
|
+
deprecated: false
|
|
505
735
|
}],
|
|
506
736
|
["revertCreditsFromChild", {
|
|
507
737
|
name: "revertCreditsFromChild",
|
|
@@ -510,26 +740,32 @@ reseller balance. The refund is calculated at the child's
|
|
|
510
740
|
current rate, so you don't pass one. This matches exactly
|
|
511
741
|
what was originally charged. Use the calculate endpoint
|
|
512
742
|
first to preview the refund.
|
|
513
|
-
|
|
743
|
+
|
|
744
|
+
(Tags: Reseller)`,
|
|
514
745
|
inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["from_organization_id", "minutes"], "properties": { "from_organization_id": { "type": "number", "description": "ID of the child organization to revert credits from." }, "minutes": { "type": "number", "description": "Number of minutes to revert." } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
|
|
515
746
|
method: "post",
|
|
516
747
|
pathTemplate: "/reseller/credits/revert",
|
|
517
748
|
executionParameters: [],
|
|
518
749
|
requestBodyContentType: "application/json",
|
|
519
|
-
securityRequirements: [{ "BearerAuth": [] }]
|
|
750
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
751
|
+
tags: ["Reseller"],
|
|
752
|
+
deprecated: false
|
|
520
753
|
}],
|
|
521
754
|
["getResellerCreditLogs", {
|
|
522
755
|
name: "getResellerCreditLogs",
|
|
523
756
|
description: `Paginated history of all credit transfers and reverts for the
|
|
524
757
|
reseller account. Returns reverse-chronological order by
|
|
525
758
|
default. Date filters are inclusive.
|
|
526
|
-
|
|
759
|
+
|
|
760
|
+
(Tags: Reseller)`,
|
|
527
761
|
inputSchema: { "type": "object", "properties": { "page": { "type": "integer", "minimum": 1, "default": 1, "description": "Page number for pagination." }, "page_size": { "type": "number", "default": 20, "description": "Number of records per page (max 100)." }, "date_from": { "type": "string", "format": "date", "description": "Filter logs from this date in `YYYY-MM-DD` format (e.g. `2026-01-01`)." }, "date_to": { "type": "string", "format": "date", "description": "Filter logs up to and including this date in `YYYY-MM-DD` format (e.g. `2026-03-31`)." } } },
|
|
528
762
|
method: "get",
|
|
529
763
|
pathTemplate: "/reseller/credits/logs",
|
|
530
764
|
executionParameters: [{ "name": "page", "in": "query" }, { "name": "page_size", "in": "query" }, { "name": "date_from", "in": "query" }, { "name": "date_to", "in": "query" }],
|
|
531
765
|
requestBodyContentType: undefined,
|
|
532
|
-
securityRequirements: [{ "BearerAuth": [] }]
|
|
766
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
767
|
+
tags: ["Reseller"],
|
|
768
|
+
deprecated: false
|
|
533
769
|
}],
|
|
534
770
|
]);
|
|
535
771
|
/**
|
|
@@ -569,10 +805,10 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
569
805
|
*/
|
|
570
806
|
async function acquireOAuth2Token(schemeName, scheme) {
|
|
571
807
|
try {
|
|
572
|
-
// Check if we have the necessary credentials
|
|
573
|
-
const clientId = process.env[`
|
|
574
|
-
const clientSecret = process.env[`
|
|
575
|
-
const scopes = process.env[`
|
|
808
|
+
// Check if we have the necessary credentials (resolved per-scheme at runtime)
|
|
809
|
+
const clientId = process.env[`OAUTH_CLIENT_ID_${schemeName.replace(/[^a-zA-Z0-9]/g, '_').toUpperCase()}`];
|
|
810
|
+
const clientSecret = process.env[`OAUTH_CLIENT_SECRET_${schemeName.replace(/[^a-zA-Z0-9]/g, '_').toUpperCase()}`];
|
|
811
|
+
const scopes = process.env[`OAUTH_SCOPES_${schemeName.replace(/[^a-zA-Z0-9]/g, '_').toUpperCase()}`];
|
|
576
812
|
if (!clientId || !clientSecret) {
|
|
577
813
|
console.error(`Missing client credentials for OAuth2 scheme '${schemeName}'`);
|
|
578
814
|
return null;
|
|
@@ -722,8 +958,8 @@ async function executeApiTool(toolName, definition, toolArgs, allSecuritySchemes
|
|
|
722
958
|
return !!(process.env.OMNIDIM_API_KEY || readApiKey() || process.env[`BEARER_TOKEN_${schemeName.replace(/[^a-zA-Z0-9]/g, '_').toUpperCase()}`]);
|
|
723
959
|
}
|
|
724
960
|
else if (scheme.scheme?.toLowerCase() === 'basic') {
|
|
725
|
-
|
|
726
|
-
|
|
961
|
+
// Username is sufficient; an empty password is valid per RFC 7617 (issue #66)
|
|
962
|
+
return process.env[`BASIC_USERNAME_${schemeName.replace(/[^a-zA-Z0-9]/g, '_').toUpperCase()}`] != null;
|
|
727
963
|
}
|
|
728
964
|
}
|
|
729
965
|
// OAuth2 security
|
|
@@ -789,8 +1025,9 @@ async function executeApiTool(toolName, definition, toolArgs, allSecuritySchemes
|
|
|
789
1025
|
else if (scheme.scheme?.toLowerCase() === 'basic') {
|
|
790
1026
|
const username = process.env[`BASIC_USERNAME_${schemeName.replace(/[^a-zA-Z0-9]/g, '_').toUpperCase()}`];
|
|
791
1027
|
const password = process.env[`BASIC_PASSWORD_${schemeName.replace(/[^a-zA-Z0-9]/g, '_').toUpperCase()}`];
|
|
792
|
-
|
|
793
|
-
|
|
1028
|
+
// Empty password is valid per RFC 7617 (issue #66); only username is required.
|
|
1029
|
+
if (username != null) {
|
|
1030
|
+
headers['authorization'] = `Basic ${Buffer.from(`${username}:${password ?? ''}`).toString('base64')}`;
|
|
794
1031
|
if (process.env.OMNIDIM_DEBUG)
|
|
795
1032
|
console.error(`Applied Basic authentication for '${schemeName}'`);
|
|
796
1033
|
}
|
|
@@ -844,13 +1081,21 @@ async function executeApiTool(toolName, definition, toolArgs, allSecuritySchemes
|
|
|
844
1081
|
};
|
|
845
1082
|
}
|
|
846
1083
|
// Prepare the axios request configuration
|
|
847
|
-
headers['user-agent'] = `${SERVER_NAME}-mcp-server/${SERVER_VERSION}`;
|
|
848
1084
|
const config = {
|
|
849
1085
|
method: definition.method.toUpperCase(),
|
|
850
1086
|
url: requestUrl,
|
|
851
1087
|
params: queryParams,
|
|
852
1088
|
headers: headers,
|
|
853
|
-
|
|
1089
|
+
// Serialize array query params as comma-separated values (issue #41)
|
|
1090
|
+
paramsSerializer: (params) => {
|
|
1091
|
+
const search = new URLSearchParams();
|
|
1092
|
+
for (const [key, value] of Object.entries(params)) {
|
|
1093
|
+
if (value === undefined || value === null)
|
|
1094
|
+
continue;
|
|
1095
|
+
search.append(key, Array.isArray(value) ? value.join(',') : String(value));
|
|
1096
|
+
}
|
|
1097
|
+
return search.toString();
|
|
1098
|
+
},
|
|
854
1099
|
...(requestBodyData !== undefined && { data: requestBodyData }),
|
|
855
1100
|
};
|
|
856
1101
|
if (process.env.OMNIDIM_DEBUG) {
|
|
@@ -860,6 +1105,7 @@ async function executeApiTool(toolName, definition, toolArgs, allSecuritySchemes
|
|
|
860
1105
|
const response = await axios(config);
|
|
861
1106
|
// Process and format the response
|
|
862
1107
|
let responseText = '';
|
|
1108
|
+
// Coerce header value to string before lowercasing (issue #65)
|
|
863
1109
|
const contentType = String(response.headers['content-type'] ?? '').toLowerCase();
|
|
864
1110
|
// Handle JSON responses
|
|
865
1111
|
if (contentType.includes('application/json') && typeof response.data === 'object' && response.data !== null) {
|