diff --git a/fern/apis/api/openapi.json b/fern/apis/api/openapi.json index ea2c1963b..47cea0ba0 100644 --- a/fern/apis/api/openapi.json +++ b/fern/apis/api/openapi.json @@ -22,7 +22,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Assistant" + "$ref": "#/components/schemas/AssistantSaveResponse" } } } @@ -226,7 +226,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Assistant" + "$ref": "#/components/schemas/AssistantSaveResponse" } } } @@ -12217,14 +12217,15 @@ "enum": [ "scribe_v1", "scribe_v2", - "scribe_v2_realtime" + "scribe_v2_realtime", + "scribe_v3_live" ] } ] }, "language": { "type": "string", - "description": "This is the language that will be used for the transcription.", + "description": "Language for transcription. `multi` enables automatic code-switching on scribe_v3_live.", "enum": [ "aa", "ab", @@ -12410,11 +12411,208 @@ "yo", "za", "zh", - "zu" + "zu", + "multi" ] }, + "languages": { + "type": "array", + "description": "Language detection hints for scribe_v3_live. Duplicates are removed; [] explicitly clears inherited hints.", + "items": { + "type": "string", + "enum": [ + "aa", + "ab", + "ae", + "af", + "ak", + "am", + "an", + "ar", + "as", + "av", + "ay", + "az", + "ba", + "be", + "bg", + "bh", + "bi", + "bm", + "bn", + "bo", + "br", + "bs", + "ca", + "ce", + "ch", + "co", + "cr", + "cs", + "cu", + "cv", + "cy", + "da", + "de", + "dv", + "dz", + "ee", + "el", + "en", + "eo", + "es", + "et", + "eu", + "fa", + "ff", + "fi", + "fj", + "fo", + "fr", + "fy", + "ga", + "gd", + "gl", + "gn", + "gu", + "gv", + "ha", + "he", + "hi", + "ho", + "hr", + "ht", + "hu", + "hy", + "hz", + "ia", + "id", + "ie", + "ig", + "ii", + "ik", + "io", + "is", + "it", + "iu", + "ja", + "jv", + "ka", + "kg", + "ki", + "kj", + "kk", + "kl", + "km", + "kn", + "ko", + "kr", + "ks", + "ku", + "kv", + "kw", + "ky", + "la", + "lb", + "lg", + "li", + "ln", + "lo", + "lt", + "lu", + "lv", + "mg", + "mh", + "mi", + "mk", + "ml", + "mn", + "mr", + "ms", + "mt", + "my", + "na", + "nb", + "nd", + "ne", + "ng", + "nl", + "nn", + "no", + "nr", + "nv", + "ny", + "oc", + "oj", + "om", + "or", + "os", + "pa", + "pi", + "pl", + "ps", + "pt", + "qu", + "rm", + "rn", + "ro", + "ru", + "rw", + "sa", + "sc", + "sd", + "se", + "sg", + "si", + "sk", + "sl", + "sm", + "sn", + "so", + "sq", + "sr", + "ss", + "st", + "su", + "sv", + "sw", + "ta", + "te", + "tg", + "th", + "ti", + "tk", + "tl", + "tn", + "to", + "tr", + "ts", + "tt", + "tw", + "ty", + "ug", + "uk", + "ur", + "uz", + "ve", + "vi", + "vo", + "wa", + "wo", + "xh", + "yi", + "yue", + "yo", + "za", + "zh", + "zu" + ] + }, + "minItems": 0, + "uniqueItems": true + }, "keyterms": { - "description": "Words or phrases to bias the transcription towards, such as product names. Supported on scribe_v2 (up to 100 terms of 50 characters each) and scribe_v2_realtime (up to 50 terms of 20 characters each). Each term has at most 5 words and none of `< > { } [ ] \\`. Adds ElevenLabs' keyterm prompting rate to the transcriber cost.", + "description": "Words or phrases to bias the transcription towards, such as product names. Supported on scribe_v2 (up to 100 terms of 50 characters each) and scribe_v2_realtime or scribe_v3_live (up to 50 terms of 20 characters each). Each term has at most 5 words and none of `< > { } [ ] \\`. Adds ElevenLabs' keyterm prompting rate to the transcriber cost.", "type": "array", "items": { "type": "string" @@ -12853,7 +13051,8 @@ "stt-rt-v5", "stt-rt-v6" ], - "description": "The Soniox model to use for transcription." + "description": "The Soniox model to use for transcription. Defaults to stt-rt-v6.", + "default": "stt-rt-v6" }, "agentTextInputEnabled": { "type": "boolean", @@ -13930,8 +14129,8 @@ }, "language": { "type": "string", - "description": "Language for transcription (e.g. `nl`), or a comma-separated candidate list such as `nl,en` which constrains auto-detection. When omitted, Reson8 auto-detects the language per utterance. Supported: de, en, es, fr, fy, it, nl, pl, pt, sv.", - "pattern": "^(de|en|es|fr|fy|it|nl|pl|pt|sv)(,(de|en|es|fr|fy|it|nl|pl|pt|sv))*$" + "description": "Language for transcription (e.g. `nl`), or a comma-separated candidate list such as `nl,en` which constrains auto-detection. When omitted, Reson8 auto-detects the language per utterance. Supported: af, ar, az, be, bg, bn, bs, ca, ceb, cs, da, de, el, en, es, et, eu, fa, fi, fil, fr, fy, gl, hi, hr, hu, id, is, it, ja, jv, ko, lt, lv, mk, mr, ms, mt, nb, nl, pl, pt, ro, ru, sk, sl, sq, sr, sv, ta, th, tr, uk, vi, yue, zh.", + "pattern": "^(af|ar|az|be|bg|bn|bs|ca|ceb|cs|da|de|el|en|es|et|eu|fa|fi|fil|fr|fy|gl|hi|hr|hu|id|is|it|ja|jv|ko|lt|lv|mk|mr|ms|mt|nb|nl|pl|pt|ro|ru|sk|sl|sq|sr|sv|ta|th|tr|uk|vi|yue|zh)(,(af|ar|az|be|bg|bn|bs|ca|ceb|cs|da|de|el|en|es|et|eu|fa|fi|fil|fr|fy|gl|hi|hr|hu|id|is|it|ja|jv|ko|lt|lv|mk|mr|ms|mt|nb|nl|pl|pt|ro|ru|sk|sl|sq|sr|sv|ta|th|tr|uk|vi|yue|zh))*$" }, "keyterms": { "description": "Domain-specific terms to boost recognition (brand names, product codes, jargon). Sent to Reson8 as the `phrases` parameter. Max 250 phrases.", @@ -13947,13 +14146,13 @@ }, "eagerTurnProbability": { "type": "number", - "description": "Threshold (0-1) at which Reson8 emits an eager turn-end candidate. Provider default 0.5.", + "description": "Threshold (0-1) at which Reson8 emits an eager turn-end candidate. Provider default 0.3.", "minimum": 0, "maximum": 1 }, "finalTurnProbability": { "type": "number", - "description": "Threshold (0-1) at which Reson8 confirms the end of a turn. Provider default 0.92.", + "description": "Threshold (0-1) at which Reson8 confirms the end of a turn. Provider default 0.5.", "minimum": 0, "maximum": 1 }, @@ -15455,14 +15654,15 @@ "enum": [ "scribe_v1", "scribe_v2", - "scribe_v2_realtime" + "scribe_v2_realtime", + "scribe_v3_live" ] } ] }, "language": { "type": "string", - "description": "This is the language that will be used for the transcription.", + "description": "Language for transcription. `multi` enables automatic code-switching on scribe_v3_live.", "enum": [ "aa", "ab", @@ -15648,11 +15848,208 @@ "yo", "za", "zh", - "zu" + "zu", + "multi" ] }, + "languages": { + "type": "array", + "description": "Language detection hints for scribe_v3_live. Duplicates are removed; [] explicitly clears inherited hints.", + "items": { + "type": "string", + "enum": [ + "aa", + "ab", + "ae", + "af", + "ak", + "am", + "an", + "ar", + "as", + "av", + "ay", + "az", + "ba", + "be", + "bg", + "bh", + "bi", + "bm", + "bn", + "bo", + "br", + "bs", + "ca", + "ce", + "ch", + "co", + "cr", + "cs", + "cu", + "cv", + "cy", + "da", + "de", + "dv", + "dz", + "ee", + "el", + "en", + "eo", + "es", + "et", + "eu", + "fa", + "ff", + "fi", + "fj", + "fo", + "fr", + "fy", + "ga", + "gd", + "gl", + "gn", + "gu", + "gv", + "ha", + "he", + "hi", + "ho", + "hr", + "ht", + "hu", + "hy", + "hz", + "ia", + "id", + "ie", + "ig", + "ii", + "ik", + "io", + "is", + "it", + "iu", + "ja", + "jv", + "ka", + "kg", + "ki", + "kj", + "kk", + "kl", + "km", + "kn", + "ko", + "kr", + "ks", + "ku", + "kv", + "kw", + "ky", + "la", + "lb", + "lg", + "li", + "ln", + "lo", + "lt", + "lu", + "lv", + "mg", + "mh", + "mi", + "mk", + "ml", + "mn", + "mr", + "ms", + "mt", + "my", + "na", + "nb", + "nd", + "ne", + "ng", + "nl", + "nn", + "no", + "nr", + "nv", + "ny", + "oc", + "oj", + "om", + "or", + "os", + "pa", + "pi", + "pl", + "ps", + "pt", + "qu", + "rm", + "rn", + "ro", + "ru", + "rw", + "sa", + "sc", + "sd", + "se", + "sg", + "si", + "sk", + "sl", + "sm", + "sn", + "so", + "sq", + "sr", + "ss", + "st", + "su", + "sv", + "sw", + "ta", + "te", + "tg", + "th", + "ti", + "tk", + "tl", + "tn", + "to", + "tr", + "ts", + "tt", + "tw", + "ty", + "ug", + "uk", + "ur", + "uz", + "ve", + "vi", + "vo", + "wa", + "wo", + "xh", + "yi", + "yue", + "yo", + "za", + "zh", + "zu" + ] + }, + "minItems": 0, + "uniqueItems": true + }, "keyterms": { - "description": "Words or phrases to bias the transcription towards, such as product names. Supported on scribe_v2 (up to 100 terms of 50 characters each) and scribe_v2_realtime (up to 50 terms of 20 characters each). Each term has at most 5 words and none of `< > { } [ ] \\`. Adds ElevenLabs' keyterm prompting rate to the transcriber cost.", + "description": "Words or phrases to bias the transcription towards, such as product names. Supported on scribe_v2 (up to 100 terms of 50 characters each) and scribe_v2_realtime or scribe_v3_live (up to 50 terms of 20 characters each). Each term has at most 5 words and none of `< > { } [ ] \\`. Adds ElevenLabs' keyterm prompting rate to the transcriber cost.", "type": "array", "items": { "type": "string" @@ -16054,7 +16451,8 @@ "stt-rt-v5", "stt-rt-v6" ], - "description": "The Soniox model to use for transcription." + "description": "The Soniox model to use for transcription. Defaults to stt-rt-v6.", + "default": "stt-rt-v6" }, "agentTextInputEnabled": { "type": "boolean", @@ -17059,8 +17457,8 @@ }, "language": { "type": "string", - "description": "Language for transcription (e.g. `nl`), or a comma-separated candidate list such as `nl,en` which constrains auto-detection. When omitted, Reson8 auto-detects the language per utterance. Supported: de, en, es, fr, fy, it, nl, pl, pt, sv.", - "pattern": "^(de|en|es|fr|fy|it|nl|pl|pt|sv)(,(de|en|es|fr|fy|it|nl|pl|pt|sv))*$" + "description": "Language for transcription (e.g. `nl`), or a comma-separated candidate list such as `nl,en` which constrains auto-detection. When omitted, Reson8 auto-detects the language per utterance. Supported: af, ar, az, be, bg, bn, bs, ca, ceb, cs, da, de, el, en, es, et, eu, fa, fi, fil, fr, fy, gl, hi, hr, hu, id, is, it, ja, jv, ko, lt, lv, mk, mr, ms, mt, nb, nl, pl, pt, ro, ru, sk, sl, sq, sr, sv, ta, th, tr, uk, vi, yue, zh.", + "pattern": "^(af|ar|az|be|bg|bn|bs|ca|ceb|cs|da|de|el|en|es|et|eu|fa|fi|fil|fr|fy|gl|hi|hr|hu|id|is|it|ja|jv|ko|lt|lv|mk|mr|ms|mt|nb|nl|pl|pt|ro|ru|sk|sl|sq|sr|sv|ta|th|tr|uk|vi|yue|zh)(,(af|ar|az|be|bg|bn|bs|ca|ceb|cs|da|de|el|en|es|et|eu|fa|fi|fil|fr|fy|gl|hi|hr|hu|id|is|it|ja|jv|ko|lt|lv|mk|mr|ms|mt|nb|nl|pl|pt|ro|ru|sk|sl|sq|sr|sv|ta|th|tr|uk|vi|yue|zh))*$" }, "keyterms": { "description": "Domain-specific terms to boost recognition (brand names, product codes, jargon). Sent to Reson8 as the `phrases` parameter. Max 250 phrases.", @@ -17076,13 +17474,13 @@ }, "eagerTurnProbability": { "type": "number", - "description": "Threshold (0-1) at which Reson8 emits an eager turn-end candidate. Provider default 0.5.", + "description": "Threshold (0-1) at which Reson8 emits an eager turn-end candidate. Provider default 0.3.", "minimum": 0, "maximum": 1 }, "finalTurnProbability": { "type": "number", - "description": "Threshold (0-1) at which Reson8 confirms the end of a turn. Provider default 0.92.", + "description": "Threshold (0-1) at which Reson8 confirms the end of a turn. Provider default 0.5.", "minimum": 0, "maximum": 1 }, @@ -17979,7 +18377,7 @@ "description": "This is the key of the variable.\n\nThis variable will be accessible during the call as `{{key}}` and stored in `call.artifact.variableValues` after the call.\n\nRules:\n- Must start with a letter (a-z, A-Z).\n- Subsequent characters can be letters, numbers, or underscores.\n- Minimum length of 1 and maximum length of 40.", "minLength": 1, "maxLength": 40, - "pattern": "/^[a-zA-Z][a-zA-Z0-9_]*$/" + "pattern": "^[a-zA-Z][a-zA-Z0-9_]*$" }, "value": { "type": "string", @@ -20702,6 +21100,13 @@ "KeypadInputPlan": { "type": "object", "properties": { + "variableName": { + "type": "string", + "description": "This is the call variable each completed keypad entry is stored in, as a string with leading zeros kept. A later entry replaces the earlier one.\n\nReference it as `{{variableName}}` in a transfer destination, for example in `sipHeaders`, so the model never has to repeat the digits. A keypad value the caller entered wins over a same-named handoff or transfer tool argument. Other writes to a variable with this name, such as variable extraction, still replace it. The value also appears in the call's `artifact.variableValues`.\n\nIn a squad, the active assistant's `variableName` is used when the entry completes. A variable already stored under a previous assistant's name keeps its value.\n\nNot supported on full-duplex (GPT-Live) assistants: the call starts with a warning in the call logs and no variable is stored.\n\nRules:\n- Must start with a letter (a-z, A-Z).\n- Subsequent characters can be letters, numbers, or underscores.\n- Minimum length of 1 and maximum length of 40.", + "minLength": 1, + "maxLength": 40, + "pattern": "^[a-zA-Z][a-zA-Z0-9_]*$" + }, "enabled": { "type": "boolean", "description": "This keeps track of whether the user has enabled keypad input.\nBy default, it is off.\n\n@default false" @@ -20720,6 +21125,10 @@ "*", "" ] + }, + "triggerResponseEnabled": { + "type": "boolean", + "description": "This determines whether a completed keypad entry triggers an assistant response.\n\nUsage:\n- Use `true` to have the assistant respond to the entry.\n- Use `false` to add the entry to the conversation history silently. The model reads it on its next turn, for example to pass an ID to a tool. OpenAI Realtime and Gemini speech-to-speech models never receive keypad entries.\n\nIn a squad, this follows the active assistant when the entry completes. A half-typed entry carries over and completes under the new assistant's setting. `enabled`, `timeoutSeconds` and `delimiters` come from the first assistant for the whole call.\n\n@default true" } } }, @@ -21629,71 +22038,6 @@ "AssistantOverrides": { "type": "object", "properties": { - "transcriber": { - "description": "These are the options for the assistant's transcriber.", - "oneOf": [ - { - "$ref": "#/components/schemas/AssemblyAITranscriber", - "title": "AssemblyAITranscriber" - }, - { - "$ref": "#/components/schemas/AzureSpeechTranscriber", - "title": "AzureSpeechTranscriber" - }, - { - "$ref": "#/components/schemas/CustomTranscriber", - "title": "CustomTranscriber" - }, - { - "$ref": "#/components/schemas/DeepgramTranscriber", - "title": "DeepgramTranscriber" - }, - { - "$ref": "#/components/schemas/ElevenLabsTranscriber", - "title": "ElevenLabsTranscriber" - }, - { - "$ref": "#/components/schemas/GladiaTranscriber", - "title": "GladiaTranscriber" - }, - { - "$ref": "#/components/schemas/GoogleTranscriber", - "title": "GoogleTranscriber" - }, - { - "$ref": "#/components/schemas/SpeechmaticsTranscriber", - "title": "SpeechmaticsTranscriber" - }, - { - "$ref": "#/components/schemas/TalkscriberTranscriber", - "title": "TalkscriberTranscriber" - }, - { - "$ref": "#/components/schemas/OpenAITranscriber", - "title": "OpenAITranscriber" - }, - { - "$ref": "#/components/schemas/CartesiaTranscriber", - "title": "CartesiaTranscriber" - }, - { - "$ref": "#/components/schemas/SonioxTranscriber", - "title": "SonioxTranscriber" - }, - { - "$ref": "#/components/schemas/XaiTranscriber", - "title": "XaiTranscriber" - }, - { - "$ref": "#/components/schemas/Reson8Transcriber", - "title": "Reson8Transcriber" - }, - { - "$ref": "#/components/schemas/VapiTranscriber", - "title": "VapiTranscriber" - } - ] - }, "model": { "description": "These are the options for the assistant's LLM.", "oneOf": [ @@ -22429,6 +22773,71 @@ ] } }, + "transcriber": { + "description": "These are the options for the assistant's transcriber.", + "oneOf": [ + { + "$ref": "#/components/schemas/AssemblyAITranscriber", + "title": "AssemblyAITranscriber" + }, + { + "$ref": "#/components/schemas/AzureSpeechTranscriber", + "title": "AzureSpeechTranscriber" + }, + { + "$ref": "#/components/schemas/CustomTranscriber", + "title": "CustomTranscriber" + }, + { + "$ref": "#/components/schemas/DeepgramTranscriber", + "title": "DeepgramTranscriber" + }, + { + "$ref": "#/components/schemas/ElevenLabsTranscriber", + "title": "ElevenLabsTranscriber" + }, + { + "$ref": "#/components/schemas/GladiaTranscriber", + "title": "GladiaTranscriber" + }, + { + "$ref": "#/components/schemas/GoogleTranscriber", + "title": "GoogleTranscriber" + }, + { + "$ref": "#/components/schemas/SpeechmaticsTranscriber", + "title": "SpeechmaticsTranscriber" + }, + { + "$ref": "#/components/schemas/TalkscriberTranscriber", + "title": "TalkscriberTranscriber" + }, + { + "$ref": "#/components/schemas/OpenAITranscriber", + "title": "OpenAITranscriber" + }, + { + "$ref": "#/components/schemas/CartesiaTranscriber", + "title": "CartesiaTranscriber" + }, + { + "$ref": "#/components/schemas/SonioxTranscriber", + "title": "SonioxTranscriber" + }, + { + "$ref": "#/components/schemas/XaiTranscriber", + "title": "XaiTranscriber" + }, + { + "$ref": "#/components/schemas/Reson8Transcriber", + "title": "Reson8Transcriber" + }, + { + "$ref": "#/components/schemas/VapiTranscriber", + "title": "VapiTranscriber" + } + ] + }, "tools:append": { "type": "array", "items": { @@ -26106,6 +26515,7 @@ "type": "string", "description": "This is the OpenAI model that will be used.\nFor GPT-Live configuration and supported settings, see https://docs.vapi.ai/gpt-live/overview.\n\nWhen using Vapi OpenAI or your own Azure Credentials, you have the option to specify the region for the selected model. This shouldn't be specified unless you have a specific reason to do so. Vapi will automatically find the fastest region that make sense.\nThis is helpful when you are required to comply with Data Residency rules. Learn more about Azure regions here https://azure.microsoft.com/en-us/explore/global-infrastructure/data-residency/.\n\n@default undefined", "enum": [ + "gpt-6.1-terra", "gpt-6-luna", "gpt-5.6-sol", "gpt-5.6-terra", @@ -26276,6 +26686,7 @@ "items": { "type": "string", "enum": [ + "gpt-6.1-terra", "gpt-6-luna", "gpt-5.6-sol", "gpt-5.6-terra", @@ -27065,6 +27476,7 @@ "description": "This is the OpenAI model that will be used.\n\nWhen using Vapi OpenAI or your own Azure Credentials, you have the option to specify the region for the selected model. This shouldn't be specified unless you have a specific reason to do so. Vapi will automatically find the fastest region that make sense.\nThis is helpful when you are required to comply with Data Residency rules. Learn more about Azure regions here https://azure.microsoft.com/en-us/explore/global-infrastructure/data-residency/.", "maxLength": 100, "enum": [ + "gpt-6.1-terra", "gpt-6-luna", "gpt-5.6-sol", "gpt-5.6-terra", @@ -30396,7 +30808,7 @@ }, "language": { "type": "string", - "description": "This is the language that will be used. This is optional and will default to the correct language for the voiceId.", + "description": "This is the language the voice speaks. When omitted, Vapi uses the voice's native language if it has one on record for that voice; otherwise no language is sent to Cartesia. Regional codes such as `es-MX` require the `sonic-3.6` model.", "enum": [ "ar", "bg", @@ -30441,7 +30853,63 @@ "uk", "ur", "vi", - "zh" + "zh", + "bg-BG", + "bn-IN", + "cs-CZ", + "da-DK", + "de-DE", + "el-GR", + "en-AU", + "en-CA", + "en-GB", + "en-IE", + "en-IN", + "en-NZ", + "en-SG", + "en-US", + "en-ZA", + "es-ES", + "es-MX", + "es-US", + "fi-FI", + "fr-CA", + "fr-FR", + "gu-IN", + "he-IL", + "hi-IN", + "hr-HR", + "hu-HU", + "id-ID", + "it-IT", + "ja-JP", + "ka-GE", + "kn-IN", + "ko-KR", + "ml-IN", + "mr-IN", + "ms-MY", + "nl-BE", + "nl-NL", + "no-NO", + "or-IN", + "pa-IN", + "pl-PL", + "pt-BR", + "pt-PT", + "ro-RO", + "ru-RU", + "sk-SK", + "sv-SE", + "ta-IN", + "te-IN", + "th-TH", + "tl-PH", + "tr-TR", + "uk-UA", + "ur-IN", + "vi-VN", + "zh-CN" ], "example": "en" }, @@ -33171,7 +33639,7 @@ }, "language": { "type": "string", - "description": "This is the language that will be used. This is optional and will default to the correct language for the voiceId.", + "description": "This is the language the voice speaks. When omitted, Vapi uses the voice's native language if it has one on record for that voice; otherwise no language is sent to Cartesia. Regional codes such as `es-MX` require the `sonic-3.6` model.", "enum": [ "ar", "bg", @@ -33216,7 +33684,63 @@ "uk", "ur", "vi", - "zh" + "zh", + "bg-BG", + "bn-IN", + "cs-CZ", + "da-DK", + "de-DE", + "el-GR", + "en-AU", + "en-CA", + "en-GB", + "en-IE", + "en-IN", + "en-NZ", + "en-SG", + "en-US", + "en-ZA", + "es-ES", + "es-MX", + "es-US", + "fi-FI", + "fr-CA", + "fr-FR", + "gu-IN", + "he-IL", + "hi-IN", + "hr-HR", + "hu-HU", + "id-ID", + "it-IT", + "ja-JP", + "ka-GE", + "kn-IN", + "ko-KR", + "ml-IN", + "mr-IN", + "ms-MY", + "nl-BE", + "nl-NL", + "no-NO", + "or-IN", + "pa-IN", + "pl-PL", + "pt-BR", + "pt-PT", + "ro-RO", + "ru-RU", + "sk-SK", + "sv-SE", + "ta-IN", + "te-IN", + "th-TH", + "tl-PH", + "tr-TR", + "uk-UA", + "ur-IN", + "vi-VN", + "zh-CN" ], "example": "en" }, @@ -35531,51 +36055,106 @@ "service" ] }, - "CreateAzureOpenAICredentialDTO": { + "AzureOpenAIDeployment": { "type": "object", "properties": { - "provider": { - "type": "string", - "enum": [ - "azure-openai" - ] - }, - "region": { + "model": { "type": "string", + "description": "This is the model the deployment serves. It must be one of the credential's `models`.", "enum": [ - "australiaeast", - "canadaeast", - "canadacentral", - "centralus", - "eastus2", - "eastus", - "france", - "germanywestcentral", - "india", - "japaneast", - "japanwest", - "northcentralus", - "norway", - "polandcentral", - "southcentralus", - "spaincentral", - "swedencentral", - "switzerland", - "switzerlandnorth", - "switzerlandwest", - "uaenorth", - "uk", - "westeurope", - "westus", - "westus3" - ] - }, - "models": { - "type": "array", - "enum": [ + "gpt-6-luna", "gpt-5.6-luna-2026-07-09", "gpt-5.6-terra-2026-07-09", "gpt-5.6-sol-2026-07-09", + "gpt-5.5", + "gpt-5.4", + "gpt-5.4-mini", + "gpt-5.4-nano", + "gpt-5.2", + "gpt-5.2-chat", + "gpt-5.1", + "gpt-5.1-chat", + "gpt-5", + "gpt-5-mini", + "gpt-5-nano", + "gpt-4.1-2025-04-14", + "gpt-4.1-mini-2025-04-14", + "gpt-4.1-nano-2025-04-14", + "gpt-4o-2024-11-20", + "gpt-4o-2024-08-06", + "gpt-4o-2024-05-13", + "gpt-4o-mini-2024-07-18", + "gpt-4-turbo-2024-04-09", + "gpt-4-0125-preview", + "gpt-4-1106-preview", + "gpt-4-0613", + "gpt-35-turbo-0125", + "gpt-35-turbo-1106", + "gpt-4o", + "gpt-4.1", + "gpt-5.4-mini-2026-03-17" + ] + }, + "name": { + "type": "string", + "description": "This is the name of the deployment in your Azure resource, exactly as Azure shows it.", + "pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]{0,63}$", + "maxLength": 64, + "example": "gpt-5.4-clinic-a" + } + }, + "required": [ + "model", + "name" + ] + }, + "CreateAzureOpenAICredentialDTO": { + "type": "object", + "properties": { + "provider": { + "type": "string", + "enum": [ + "azure-openai" + ] + }, + "region": { + "type": "string", + "enum": [ + "australiaeast", + "canadaeast", + "canadacentral", + "centralus", + "eastus2", + "eastus", + "france", + "germanywestcentral", + "india", + "japaneast", + "japanwest", + "northcentralus", + "norway", + "polandcentral", + "southcentralus", + "spaincentral", + "swedencentral", + "switzerland", + "switzerlandnorth", + "switzerlandwest", + "uaenorth", + "uk", + "westeurope", + "westus", + "westus3" + ] + }, + "models": { + "type": "array", + "enum": [ + "gpt-6-luna", + "gpt-5.6-luna-2026-07-09", + "gpt-5.6-terra-2026-07-09", + "gpt-5.6-sol-2026-07-09", + "gpt-5.5", "gpt-5.4", "gpt-5.4-mini", "gpt-5.4-nano", @@ -35610,9 +36189,11 @@ "items": { "type": "string", "enum": [ + "gpt-6-luna", "gpt-5.6-luna-2026-07-09", "gpt-5.6-terra-2026-07-09", "gpt-5.6-sol-2026-07-09", + "gpt-5.5", "gpt-5.4", "gpt-5.4-mini", "gpt-5.4-nano", @@ -35651,6 +36232,13 @@ "type": "string", "description": "This is not returned in the API." }, + "deployments": { + "description": "These are the names of your Azure deployments, one entry for every model in `models`. Omit the field when every deployment is named after its model; once it has any entry, a model with no entry is rejected, so a deployment named after its model takes `{ \"model\": \"\", \"name\": \"\" }`. Requests use the first of the org's keys that matches the region (on a live call, also the model), so an org holding two keys for the same region and model should pin `credentialIds` on its assistants.", + "type": "array", + "items": { + "$ref": "#/components/schemas/AzureOpenAIDeployment" + } + }, "openAIEndpoint": { "type": "string", "maxLength": 10000 @@ -38161,7 +38749,41 @@ "replacementStatus" ] }, - "Assistant": { + "AssistantFallbackWarning": { + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "Machine-readable reason for the warning.", + "enum": [ + "fallback-voices-empty", + "fallback-voice-same-provider", + "fallback-voice-language-unsupported", + "fallback-voice-invalid", + "fallback-transcribers-empty", + "fallback-transcriber-same-provider", + "fallback-transcriber-language-unsupported" + ], + "example": "fallback-voice-same-provider" + }, + "slot": { + "type": "string", + "description": "Path of the setting the warning is about, relative to the assistant:\n`voice.fallbackPlan.voices[1]` for one fallback, or\n`voice.fallbackPlan.voices` for the whole list.", + "example": "voice.fallbackPlan.voices[0]" + }, + "message": { + "type": "string", + "description": "Human-readable explanation, in sentence case.", + "example": "Fallback voice 1 uses the same provider as the primary (11labs), so an outage there takes down both." + } + }, + "required": [ + "code", + "slot", + "message" + ] + }, + "AssistantSaveResponse": { "type": "object", "properties": { "transcriber": { @@ -38976,6 +39598,13 @@ "$ref": "#/components/schemas/ModelDeprecationNotice" } }, + "fallbackWarnings": { + "description": "Read-only. Fallback voices and transcribers that saved but may not work when the primary fails: an empty fallback list, a fallback on the same provider as the primary, a fallback that does not support the primary's language, or a fallback voice that failed its provider check. Present only on create, update and replace responses, and only when there is a warning. Ignored if sent back in a create or update request.", + "type": "array", + "items": { + "$ref": "#/components/schemas/AssistantFallbackWarning" + } + }, "name": { "type": "string", "description": "This is the name of the assistant.\n\nThis is required when you want to transfer between assistants in a call.", @@ -39100,119 +39729,7 @@ "updatedAt" ] }, - "ValidateBackgroundSoundUrlDTO": { - "type": "object", - "properties": { - "url": { - "type": "string", - "maxLength": 1000, - "description": "This is the background sound URL to validate. The server performs a ranged request and checks that the URL serves a live media file.", - "example": "https://example.com/my-sound.mp3" - } - }, - "required": [ - "url" - ] - }, - "BackgroundSoundUrlValidationResult": { - "type": "object", - "properties": { - "valid": { - "type": "boolean", - "description": "Whether the URL currently serves a live media file. When false, calls configured with this URL silently play no background sound." - }, - "reason": { - "type": "string", - "description": "Why validation failed. Only present when valid is false.", - "enum": [ - "invalid-url", - "blocked-address", - "unreachable", - "timeout", - "too-many-redirects", - "http-error", - "not-audio" - ] - }, - "status": { - "type": "number", - "description": "The HTTP status the URL returned, when a response was received." - }, - "contentType": { - "type": "string", - "description": "The content-type the URL returned, when a response was received." - } - }, - "required": [ - "valid" - ] - }, - "PaginationMeta": { - "type": "object", - "properties": { - "itemsPerPage": { - "type": "number" - }, - "totalItems": { - "type": "number" - }, - "currentPage": { - "type": "number" - }, - "totalPages": { - "type": "number" - }, - "hasNextPage": { - "type": "boolean" - }, - "nextCursor": { - "type": "string", - "description": "Opaque cursor for the next page under keyset pagination (PRO-3163). Pass it\nback as the `cursor` query param to fetch the next page without an OFFSET\nscan. Present only when a further page likely exists." - }, - "sortOrder": { - "type": "string", - "enum": [ - "ASC", - "DESC" - ] - }, - "itemsBeyondRetention": { - "type": "boolean" - }, - "createdAtLe": { - "format": "date-time", - "type": "string" - }, - "createdAtGe": { - "format": "date-time", - "type": "string" - } - }, - "required": [ - "itemsPerPage", - "totalItems", - "currentPage" - ] - }, - "AssistantPaginatedResponse": { - "type": "object", - "properties": { - "results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Assistant" - } - }, - "metadata": { - "$ref": "#/components/schemas/PaginationMeta" - } - }, - "required": [ - "results", - "metadata" - ] - }, - "AssistantDraft": { + "Assistant": { "type": "object", "properties": { "transcriber": { @@ -40015,6 +40532,11 @@ ] } }, + "latestVersion": { + "type": "string", + "nullable": true, + "description": "This is the latest version label (e.g. `v3`) of the assistant in the\nversion history. `null` while the org is not yet\nonboarded to versioning, or for assistants that have not yet been\npublished under it." + }, "modelDeprecations": { "description": "Read-only. Present only when a model this configuration uses is deprecated or retired in Vapi's model deprecation registry, judged on the day of the response. Each entry names the slot (for example `model` or `model.fallbackModels[1]`), provider, stored model, and deprecation and retirement dates as `YYYY-MM-DD` in UTC. `replacementStatus` is `available` with a `replacementModel` when a replacement can be recommended, or `manual-action-required` with no replacement model when eligibility is unknown or no eligible replacement exists. `manual-action-required` can be transient when compliance context is unavailable; re-fetch before acting. HIPAA-required configurations, sparse drafts, and squads with unresolved assistant references currently require manual action. HIPAA requirements include the organization and assistant settings, including HIPAA with data retention. Recommendations reflect the response-time decision; they do not confirm a swap or authorize future execution. Examples: an available recommendation includes `{\"replacementStatus\":\"available\",\"replacementModel\":\"gpt-5\"}`; a blocked recommendation includes `{\"replacementStatus\":\"manual-action-required\"}`. Ignored if sent back in a create or update request.", "type": "array", @@ -40120,124 +40642,137 @@ "keypadInputPlan": { "$ref": "#/components/schemas/KeypadInputPlan" }, - "baseVersion": { - "type": "string", - "description": "Server-resolved baseVersion (always set after POST)." - }, "id": { "type": "string", - "description": "Surrogate key used as `draftId` in URLs." + "description": "This is the unique identifier for the assistant." }, "orgId": { "type": "string", - "description": "Org this draft belongs to." - }, - "assistantId": { - "type": "string", - "description": "Parent assistant the draft was forked from. FK to assistant.id ON DELETE CASCADE." - }, - "createdBy": { - "type": "string", - "nullable": true, - "description": "Email when JWT, null when API or external JWT. Set on POST, never rewritten on PATCH." + "description": "This is the unique identifier for the org that this assistant belongs to." }, "createdAt": { "format": "date-time", - "type": "string" + "type": "string", + "description": "This is the ISO 8601 date-time string of when the assistant was created." }, "updatedAt": { "format": "date-time", - "type": "string" + "type": "string", + "description": "This is the ISO 8601 date-time string of when the assistant was last updated." } }, "required": [ - "baseVersion", "id", "orgId", - "assistantId", "createdAt", "updatedAt" ] }, - "AssistantDraftPaginatedMetadata": { + "ValidateBackgroundSoundUrlDTO": { "type": "object", "properties": { - "nextCursor": { + "url": { "type": "string", - "nullable": true - }, - "hasNextPage": { - "type": "boolean" - }, - "limit": { - "type": "number" + "maxLength": 1000, + "description": "This is the background sound URL to validate. The server performs a ranged request and checks that the URL serves a live media file.", + "example": "https://example.com/my-sound.mp3" } }, "required": [ - "nextCursor", - "hasNextPage", - "limit" + "url" ] }, - "AssistantDraftPaginatedResponse": { + "BackgroundSoundUrlValidationResult": { "type": "object", "properties": { - "results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AssistantDraft" - } + "valid": { + "type": "boolean", + "description": "Whether the URL currently serves a live media file. When false, calls configured with this URL silently play no background sound." }, - "metadata": { - "$ref": "#/components/schemas/AssistantDraftPaginatedMetadata" + "reason": { + "type": "string", + "description": "Why validation failed. Only present when valid is false.", + "enum": [ + "invalid-url", + "blocked-address", + "unreachable", + "timeout", + "too-many-redirects", + "http-error", + "not-audio" + ] + }, + "status": { + "type": "number", + "description": "The HTTP status the URL returned, when a response was received." + }, + "contentType": { + "type": "string", + "description": "The content-type the URL returned, when a response was received." } }, "required": [ - "results", - "metadata" + "valid" ] }, - "LegacyAssistantVersion": { + "PaginationMeta": { "type": "object", "properties": { - "id": { - "type": "string" + "itemsPerPage": { + "type": "number" }, - "assistantId": { - "type": "string" + "totalItems": { + "type": "number" }, - "orgId": { - "type": "string" + "currentPage": { + "type": "number" }, - "data": { + "totalPages": { + "type": "number" + }, + "hasNextPage": { + "type": "boolean" + }, + "nextCursor": { + "type": "string", + "description": "Opaque cursor for the next page under keyset pagination (PRO-3163). Pass it\nback as the `cursor` query param to fetch the next page without an OFFSET\nscan. Present only when a further page likely exists." + }, + "sortOrder": { + "type": "string", + "enum": [ + "ASC", + "DESC" + ] + }, + "itemsBeyondRetention": { + "type": "boolean" + }, + "createdAtLe": { + "format": "date-time", "type": "string" }, - "createdAt": { + "createdAtGe": { "format": "date-time", "type": "string" } }, "required": [ - "id", - "assistantId", - "orgId", - "createdAt" + "itemsPerPage", + "totalItems", + "currentPage" ] }, - "LegacyAssistantVersionPaginatedResponse": { + "AssistantPaginatedResponse": { "type": "object", "properties": { "results": { "type": "array", "items": { - "$ref": "#/components/schemas/LegacyAssistantVersion" + "$ref": "#/components/schemas/Assistant" } }, "metadata": { "$ref": "#/components/schemas/PaginationMeta" - }, - "nextPageState": { - "type": "string" } }, "required": [ @@ -40245,7 +40780,7 @@ "metadata" ] }, - "AssistantVersion": { + "AssistantDraft": { "type": "object", "properties": { "transcriber": { @@ -41048,68 +41583,6 @@ ] } }, - "versionName": { - "type": "string", - "nullable": true, - "description": "Optional human-readable label for this version. Pass `null` to clear.", - "maxLength": 80 - }, - "versionDescription": { - "type": "string", - "nullable": true, - "description": "Optional description for this version. Pass `null` to clear.", - "maxLength": 500 - }, - "id": { - "type": "string", - "description": "This is the unique identifier for the version row.", - "format": "uuid" - }, - "orgId": { - "type": "string", - "description": "This is the unique identifier for the org that owns this version.", - "format": "uuid" - }, - "assistantId": { - "type": "string", - "description": "This is the unique identifier for the assistant this version was snapshotted from.", - "format": "uuid" - }, - "version": { - "type": "string", - "description": "This is the public monotonic version label, e.g. \"v1\".\nSystem-owned and incremented per assistant; never user-supplied.", - "example": "v1" - }, - "configHash": { - "type": "string", - "description": "This is the SHA-256 hex of the snapshotted content used for no-op detection." - }, - "parentVersion": { - "type": "string", - "nullable": true, - "description": "This is the prior version label (vN-1). Null on v1 or for branch roots." - }, - "restoredFromVersion": { - "type": "string", - "nullable": true, - "description": "The version this version was restored from. Null when it was not restored." - }, - "createdBy": { - "type": "string", - "nullable": true, - "description": "This is the actor that wrote this version. Email when created via JWT, null when created via API." - }, - "deletedAt": { - "type": "string", - "nullable": true, - "description": "This is the soft-delete timestamp. Null when active.", - "format": "date-time" - }, - "createdAt": { - "type": "string", - "description": "This is the ISO 8601 date-time string of when the version was created.", - "format": "date-time" - }, "modelDeprecations": { "description": "Read-only. Present only when a model this configuration uses is deprecated or retired in Vapi's model deprecation registry, judged on the day of the response. Each entry names the slot (for example `model` or `model.fallbackModels[1]`), provider, stored model, and deprecation and retirement dates as `YYYY-MM-DD` in UTC. `replacementStatus` is `available` with a `replacementModel` when a replacement can be recommended, or `manual-action-required` with no replacement model when eligibility is unknown or no eligible replacement exists. `manual-action-required` can be transient when compliance context is unavailable; re-fetch before acting. HIPAA-required configurations, sparse drafts, and squads with unresolved assistant references currently require manual action. HIPAA requirements include the organization and assistant settings, including HIPAA with data retention. Recommendations reflect the response-time decision; they do not confirm a swap or authorize future execution. Examples: an available recommendation includes `{\"replacementStatus\":\"available\",\"replacementModel\":\"gpt-5\"}`; a blocked recommendation includes `{\"replacementStatus\":\"manual-action-required\"}`. Ignored if sent back in a create or update request.", "type": "array", @@ -41214,18 +41687,47 @@ }, "keypadInputPlan": { "$ref": "#/components/schemas/KeypadInputPlan" + }, + "baseVersion": { + "type": "string", + "description": "Server-resolved baseVersion (always set after POST)." + }, + "id": { + "type": "string", + "description": "Surrogate key used as `draftId` in URLs." + }, + "orgId": { + "type": "string", + "description": "Org this draft belongs to." + }, + "assistantId": { + "type": "string", + "description": "Parent assistant the draft was forked from. FK to assistant.id ON DELETE CASCADE." + }, + "createdBy": { + "type": "string", + "nullable": true, + "description": "Email when JWT, null when API or external JWT. Set on POST, never rewritten on PATCH." + }, + "createdAt": { + "format": "date-time", + "type": "string" + }, + "updatedAt": { + "format": "date-time", + "type": "string" } }, "required": [ + "baseVersion", "id", "orgId", "assistantId", - "version", - "configHash", - "createdAt" + "createdAt", + "updatedAt" ] }, - "AssistantVersionPaginatedMetadata": { + "AssistantDraftPaginatedMetadata": { "type": "object", "properties": { "nextCursor": { @@ -41240,21 +41742,22 @@ } }, "required": [ + "nextCursor", "hasNextPage", "limit" ] }, - "AssistantVersionPaginatedResponse": { + "AssistantDraftPaginatedResponse": { "type": "object", "properties": { "results": { "type": "array", "items": { - "$ref": "#/components/schemas/AssistantVersion" + "$ref": "#/components/schemas/AssistantDraft" } }, "metadata": { - "$ref": "#/components/schemas/AssistantVersionPaginatedMetadata" + "$ref": "#/components/schemas/AssistantDraftPaginatedMetadata" } }, "required": [ @@ -41262,24 +41765,55 @@ "metadata" ] }, - "UpdateAssistantVersionMetadataDTO": { + "LegacyAssistantVersion": { "type": "object", "properties": { - "versionName": { - "type": "string", - "nullable": true, - "description": "Optional human-readable label for this version. Pass `null` to clear.", - "maxLength": 80 + "id": { + "type": "string" }, - "versionDescription": { - "type": "string", - "nullable": true, - "description": "Optional description for this version. Pass `null` to clear.", - "maxLength": 500 + "assistantId": { + "type": "string" + }, + "orgId": { + "type": "string" + }, + "data": { + "type": "string" + }, + "createdAt": { + "format": "date-time", + "type": "string" } - } + }, + "required": [ + "id", + "assistantId", + "orgId", + "createdAt" + ] }, - "CreateAssistantDraftDTO": { + "LegacyAssistantVersionPaginatedResponse": { + "type": "object", + "properties": { + "results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/LegacyAssistantVersion" + } + }, + "metadata": { + "$ref": "#/components/schemas/PaginationMeta" + }, + "nextPageState": { + "type": "string" + } + }, + "required": [ + "results", + "metadata" + ] + }, + "AssistantVersion": { "type": "object", "properties": { "transcriber": { @@ -42082,6 +42616,75 @@ ] } }, + "versionName": { + "type": "string", + "nullable": true, + "description": "Optional human-readable label for this version. Pass `null` to clear.", + "maxLength": 80 + }, + "versionDescription": { + "type": "string", + "nullable": true, + "description": "Optional description for this version. Pass `null` to clear.", + "maxLength": 500 + }, + "id": { + "type": "string", + "description": "This is the unique identifier for the version row.", + "format": "uuid" + }, + "orgId": { + "type": "string", + "description": "This is the unique identifier for the org that owns this version.", + "format": "uuid" + }, + "assistantId": { + "type": "string", + "description": "This is the unique identifier for the assistant this version was snapshotted from.", + "format": "uuid" + }, + "version": { + "type": "string", + "description": "This is the public monotonic version label, e.g. \"v1\".\nSystem-owned and incremented per assistant; never user-supplied.", + "example": "v1" + }, + "configHash": { + "type": "string", + "description": "This is the SHA-256 hex of the snapshotted content used for no-op detection." + }, + "parentVersion": { + "type": "string", + "nullable": true, + "description": "This is the prior version label (vN-1). Null on v1 or for branch roots." + }, + "restoredFromVersion": { + "type": "string", + "nullable": true, + "description": "The version this version was restored from. Null when it was not restored." + }, + "createdBy": { + "type": "string", + "nullable": true, + "description": "This is the actor that wrote this version. Email when created via JWT, null when created via API." + }, + "deletedAt": { + "type": "string", + "nullable": true, + "description": "This is the soft-delete timestamp. Null when active.", + "format": "date-time" + }, + "createdAt": { + "type": "string", + "description": "This is the ISO 8601 date-time string of when the version was created.", + "format": "date-time" + }, + "modelDeprecations": { + "description": "Read-only. Present only when a model this configuration uses is deprecated or retired in Vapi's model deprecation registry, judged on the day of the response. Each entry names the slot (for example `model` or `model.fallbackModels[1]`), provider, stored model, and deprecation and retirement dates as `YYYY-MM-DD` in UTC. `replacementStatus` is `available` with a `replacementModel` when a replacement can be recommended, or `manual-action-required` with no replacement model when eligibility is unknown or no eligible replacement exists. `manual-action-required` can be transient when compliance context is unavailable; re-fetch before acting. HIPAA-required configurations, sparse drafts, and squads with unresolved assistant references currently require manual action. HIPAA requirements include the organization and assistant settings, including HIPAA with data retention. Recommendations reflect the response-time decision; they do not confirm a swap or authorize future execution. Examples: an available recommendation includes `{\"replacementStatus\":\"available\",\"replacementModel\":\"gpt-5\"}`; a blocked recommendation includes `{\"replacementStatus\":\"manual-action-required\"}`. Ignored if sent back in a create or update request.", + "type": "array", + "items": { + "$ref": "#/components/schemas/ModelDeprecationNotice" + } + }, "name": { "type": "string", "description": "This is the name of the assistant.\n\nThis is required when you want to transfer between assistants in a call.", @@ -42179,34 +42782,72 @@ }, "keypadInputPlan": { "$ref": "#/components/schemas/KeypadInputPlan" - }, - "baseVersion": { - "type": "string", - "description": "Optional pointer to the published version this draft was forked from.\nWhen omitted on `POST /assistant/:id/draft`, defaults server-side to the\nparent assistant's current `latestVersion` (which is lazy-created via\n`assistantBaselineVersionEnsureInTx` if the parent has never been\nversioned). Immutable for the lifetime of the draft." } - } + }, + "required": [ + "id", + "orgId", + "assistantId", + "version", + "configHash", + "createdAt" + ] }, - "AssistantDraftConflictResponseDTO": { + "AssistantVersionPaginatedMetadata": { "type": "object", "properties": { - "existingDraftId": { + "nextCursor": { "type": "string", "nullable": true }, - "error": { - "type": "string" + "hasNextPage": { + "type": "boolean" }, - "message": { - "type": "string" + "limit": { + "type": "number" } }, "required": [ - "existingDraftId", - "error", - "message" + "hasNextPage", + "limit" ] }, - "UpdateAssistantDraftDTO": { + "AssistantVersionPaginatedResponse": { + "type": "object", + "properties": { + "results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AssistantVersion" + } + }, + "metadata": { + "$ref": "#/components/schemas/AssistantVersionPaginatedMetadata" + } + }, + "required": [ + "results", + "metadata" + ] + }, + "UpdateAssistantVersionMetadataDTO": { + "type": "object", + "properties": { + "versionName": { + "type": "string", + "nullable": true, + "description": "Optional human-readable label for this version. Pass `null` to clear.", + "maxLength": 80 + }, + "versionDescription": { + "type": "string", + "nullable": true, + "description": "Optional description for this version. Pass `null` to clear.", + "maxLength": 500 + } + } + }, + "CreateAssistantDraftDTO": { "type": "object", "properties": { "transcriber": { @@ -43106,10 +43747,34 @@ }, "keypadInputPlan": { "$ref": "#/components/schemas/KeypadInputPlan" + }, + "baseVersion": { + "type": "string", + "description": "Optional pointer to the published version this draft was forked from.\nWhen omitted on `POST /assistant/:id/draft`, defaults server-side to the\nparent assistant's current `latestVersion` (which is lazy-created via\n`assistantBaselineVersionEnsureInTx` if the parent has never been\nversioned). Immutable for the lifetime of the draft." } } }, - "UpdateAssistantDTO": { + "AssistantDraftConflictResponseDTO": { + "type": "object", + "properties": { + "existingDraftId": { + "type": "string", + "nullable": true + }, + "error": { + "type": "string" + }, + "message": { + "type": "string" + } + }, + "required": [ + "existingDraftId", + "error", + "message" + ] + }, + "UpdateAssistantDraftDTO": { "type": "object", "properties": { "transcriber": { @@ -44012,389 +44677,1292 @@ } } }, - "AssistantGoalErrorDTO": { - "type": "object", - "properties": { - "statusCode": { - "type": "integer", - "minimum": 400, - "maximum": 599 - }, - "error": { - "type": "string" - }, - "message": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "array", - "items": { - "type": "string" - } - } - ] - } - }, - "required": [ - "statusCode", - "message" - ] - }, - "AssistantGoalCreateDTO": { - "type": "object", - "properties": { - "succeedsWhen": { - "type": "string", - "maxLength": 600, - "minLength": 1, - "description": "Success criteria. Trimmed before commit; blank or non-PostgreSQL-compatible text is rejected." - }, - "leaveOut": { - "type": "string", - "nullable": true, - "maxLength": 300, - "minLength": 1, - "description": "Optional trimmed exclusions. Omit or send null for no exclusions." - } - }, - "required": [ - "succeedsWhen" - ] - }, - "AssistantGoalDTO": { - "type": "object", - "properties": { - "orgId": { - "type": "string", - "format": "uuid" - }, - "assistantId": { - "type": "string", - "format": "uuid" - }, - "goalId": { - "type": "string", - "format": "uuid" - }, - "goalVersion": { - "type": "string", - "description": "Committed decimal bigint revision." - }, - "succeedsWhen": { - "type": "string" - }, - "leaveOut": { - "type": "string" - }, - "createdAt": { - "type": "string", - "format": "date-time", - "description": "Committed goal-change time anchoring its fixed backfill window." - } - }, - "required": [ - "orgId", - "assistantId", - "goalId", - "goalVersion", - "succeedsWhen", - "createdAt" - ] - }, - "AssistantGoalSetDTO": { - "type": "object", - "properties": { - "expectedGoalVersion": { - "type": "string", - "pattern": "^[1-9][0-9]{0,18}$", - "description": "Observed current revision of this goal as a positive decimal bigint string." - }, - "succeedsWhen": { - "type": "string", - "maxLength": 600, - "minLength": 1, - "description": "Success criteria. Trimmed before commit; blank or non-PostgreSQL-compatible text is rejected." - }, - "leaveOut": { - "type": "string", - "nullable": true, - "maxLength": 300, - "minLength": 1, - "description": "Optional trimmed exclusions. Omit or send null for no exclusions." - } - }, - "required": [ - "expectedGoalVersion", - "succeedsWhen" - ] - }, - "Squad": { - "type": "object", - "properties": { - "latestVersion": { - "type": "string", - "nullable": true, - "description": "This is the latest version label (e.g. `v3`) of the squad in the version\nhistory. `null` while the org is not yet onboarded to versioning, or for\nsquads that have not yet been published under it." - }, - "modelDeprecations": { - "description": "Read-only. Present only when a model this configuration uses is deprecated or retired in Vapi's model deprecation registry, judged on the day of the response. Each entry names the slot (for example `model` or `model.fallbackModels[1]`), provider, stored model, and deprecation and retirement dates as `YYYY-MM-DD` in UTC. `replacementStatus` is `available` with a `replacementModel` when a replacement can be recommended, or `manual-action-required` with no replacement model when eligibility is unknown or no eligible replacement exists. `manual-action-required` can be transient when compliance context is unavailable; re-fetch before acting. HIPAA-required configurations, sparse drafts, and squads with unresolved assistant references currently require manual action. HIPAA requirements include the organization and assistant settings, including HIPAA with data retention. Recommendations reflect the response-time decision; they do not confirm a swap or authorize future execution. Examples: an available recommendation includes `{\"replacementStatus\":\"available\",\"replacementModel\":\"gpt-5\"}`; a blocked recommendation includes `{\"replacementStatus\":\"manual-action-required\"}`. Ignored if sent back in a create or update request.", - "type": "array", - "items": { - "$ref": "#/components/schemas/ModelDeprecationNotice" - } - }, - "name": { - "type": "string", - "description": "This is the name of the squad." - }, - "members": { - "description": "This is the list of assistants that make up the squad.\n\nThe call will start with the first assistant in the list.", - "type": "array", - "items": { - "$ref": "#/components/schemas/SquadMemberDTO" - } - }, - "membersOverrides": { - "description": "This can be used to override all the assistants' settings and provide values for their template variables.\n\nBoth `membersOverrides` and `members[n].assistantOverrides` can be used together. First, `members[n].assistantOverrides` is applied. Then, `membersOverrides` is applied as a global override.", - "allOf": [ - { - "$ref": "#/components/schemas/AssistantOverrides" - } - ] - }, - "id": { - "type": "string", - "description": "This is the unique identifier for the squad." - }, - "orgId": { - "type": "string", - "description": "This is the unique identifier for the org that this squad belongs to." - }, - "createdAt": { - "format": "date-time", - "type": "string", - "description": "This is the ISO 8601 date-time string of when the squad was created." - }, - "updatedAt": { - "format": "date-time", - "type": "string", - "description": "This is the ISO 8601 date-time string of when the squad was last updated." - } - }, - "required": [ - "members", - "id", - "orgId", - "createdAt", - "updatedAt" - ] - }, - "SquadVersion": { - "type": "object", - "properties": { - "versionName": { - "type": "string", - "nullable": true, - "description": "Optional human-readable label for this version. Set when the version is published.", - "maxLength": 80 - }, - "versionDescription": { - "type": "string", - "nullable": true, - "description": "Optional description for this version. Set when the version is published.", - "maxLength": 500 - }, - "id": { - "type": "string", - "description": "This is the unique identifier for the version row.", - "format": "uuid" - }, - "orgId": { - "type": "string", - "description": "This is the unique identifier for the org that owns this version.", - "format": "uuid" - }, - "squadId": { - "type": "string", - "description": "This is the unique identifier for the squad this version was snapshotted from.", - "format": "uuid" - }, - "version": { - "type": "string", - "description": "This is the public monotonic version label, e.g. \"v1\".\nSystem-owned and incremented per squad; never user-supplied.", - "example": "v1" - }, - "configHash": { - "type": "string", - "description": "This is the SHA-256 hex of the snapshotted content used for no-op detection." - }, - "parentVersion": { - "type": "string", - "nullable": true, - "description": "This is the prior version label (vN-1). Null on v1 or for branch roots." - }, - "restoredFromVersion": { - "type": "string", - "nullable": true, - "description": "The version this version was restored from. Null when it was not restored." - }, - "createdBy": { - "type": "string", - "nullable": true, - "description": "This is the actor that wrote this version. Email when created via JWT; null\nwhen created via API key, and null for a baseline version authored by nobody." - }, - "deletedAt": { - "type": "string", - "nullable": true, - "description": "This is the soft-delete timestamp. Null when active.", - "format": "date-time" - }, - "createdAt": { - "type": "string", - "description": "This is the ISO 8601 date-time string of when the version was created.", - "format": "date-time" - }, - "name": { - "type": "string", - "description": "This is the name of the squad." - }, - "members": { - "description": "This is the list of assistants that make up the squad.\n\nThe call will start with the first assistant in the list.", - "type": "array", - "items": { - "$ref": "#/components/schemas/SquadMemberDTO" - } - }, - "membersOverrides": { - "description": "This can be used to override all the assistants' settings and provide values for their template variables.\n\nBoth `membersOverrides` and `members[n].assistantOverrides` can be used together. First, `members[n].assistantOverrides` is applied. Then, `membersOverrides` is applied as a global override.", - "allOf": [ - { - "$ref": "#/components/schemas/AssistantOverrides" - } - ] - } - }, - "required": [ - "id", - "orgId", - "squadId", - "version", - "configHash", - "createdAt", - "members" - ] - }, - "SquadVersionPaginatedMetadata": { - "type": "object", - "properties": { - "nextCursor": { - "type": "string", - "nullable": true - }, - "hasNextPage": { - "type": "boolean" - }, - "limit": { - "type": "number" - } - }, - "required": [ - "hasNextPage", - "limit" - ] - }, - "SquadVersionPaginatedResponse": { - "type": "object", - "properties": { - "results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SquadVersion" - } - }, - "metadata": { - "$ref": "#/components/schemas/SquadVersionPaginatedMetadata" - } - }, - "required": [ - "results", - "metadata" - ] - }, - "UpdateSquadDTO": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "This is the name of the squad." - }, - "members": { - "description": "This is the list of assistants that make up the squad.\n\nThe call will start with the first assistant in the list.", - "type": "array", - "items": { - "$ref": "#/components/schemas/SquadMemberDTO" - } - }, - "membersOverrides": { - "description": "This can be used to override all the assistants' settings and provide values for their template variables.\n\nBoth `membersOverrides` and `members[n].assistantOverrides` can be used together. First, `members[n].assistantOverrides` is applied. Then, `membersOverrides` is applied as a global override.", - "allOf": [ - { - "$ref": "#/components/schemas/AssistantOverrides" - } - ] - } - }, - "required": [ - "members" - ] - }, - "Workflow": { + "UpdateAssistantDTO": { "type": "object", "properties": { - "nodes": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/ConversationNode", - "title": "ConversationNode" - }, - { - "$ref": "#/components/schemas/ToolNode", - "title": "ToolNode" - } - ] - } - }, - "model": { - "description": "This is the model for the workflow.\n\nThis can be overridden at node level using `nodes[n].model`.", - "oneOf": [ - { - "$ref": "#/components/schemas/WorkflowOpenAIModel", - "title": "WorkflowOpenAIModel" - }, - { - "$ref": "#/components/schemas/WorkflowAnthropicModel", - "title": "WorkflowAnthropicModel" - }, - { - "$ref": "#/components/schemas/WorkflowAnthropicBedrockModel", - "title": "WorkflowAnthropicBedrockModel" - }, - { - "$ref": "#/components/schemas/WorkflowGoogleModel", - "title": "WorkflowGoogleModel" - }, - { - "$ref": "#/components/schemas/WorkflowCustomModel", - "title": "WorkflowCustomModel" - } - ] - }, "transcriber": { - "description": "This is the transcriber for the workflow.\n\nThis can be overridden at node level using `nodes[n].transcriber`.", + "description": "These are the options for the assistant's transcriber.", + "oneOf": [ + { + "$ref": "#/components/schemas/AssemblyAITranscriber", + "title": "AssemblyAITranscriber" + }, + { + "$ref": "#/components/schemas/AzureSpeechTranscriber", + "title": "AzureSpeechTranscriber" + }, + { + "$ref": "#/components/schemas/CustomTranscriber", + "title": "CustomTranscriber" + }, + { + "$ref": "#/components/schemas/DeepgramTranscriber", + "title": "DeepgramTranscriber" + }, + { + "$ref": "#/components/schemas/ElevenLabsTranscriber", + "title": "ElevenLabsTranscriber" + }, + { + "$ref": "#/components/schemas/GladiaTranscriber", + "title": "GladiaTranscriber" + }, + { + "$ref": "#/components/schemas/GoogleTranscriber", + "title": "GoogleTranscriber" + }, + { + "$ref": "#/components/schemas/SpeechmaticsTranscriber", + "title": "SpeechmaticsTranscriber" + }, + { + "$ref": "#/components/schemas/TalkscriberTranscriber", + "title": "TalkscriberTranscriber" + }, + { + "$ref": "#/components/schemas/OpenAITranscriber", + "title": "OpenAITranscriber" + }, + { + "$ref": "#/components/schemas/CartesiaTranscriber", + "title": "CartesiaTranscriber" + }, + { + "$ref": "#/components/schemas/SonioxTranscriber", + "title": "SonioxTranscriber" + }, + { + "$ref": "#/components/schemas/XaiTranscriber", + "title": "XaiTranscriber" + }, + { + "$ref": "#/components/schemas/Reson8Transcriber", + "title": "Reson8Transcriber" + }, + { + "$ref": "#/components/schemas/VapiTranscriber", + "title": "VapiTranscriber" + } + ] + }, + "model": { + "description": "These are the options for the assistant's LLM.", + "oneOf": [ + { + "$ref": "#/components/schemas/AnthropicModel", + "title": "Anthropic" + }, + { + "$ref": "#/components/schemas/AnthropicBedrockModel", + "title": "AnthropicBedrock" + }, + { + "$ref": "#/components/schemas/AnyscaleModel", + "title": "Anyscale" + }, + { + "$ref": "#/components/schemas/CerebrasModel", + "title": "Cerebras" + }, + { + "$ref": "#/components/schemas/CustomLLMModel", + "title": "CustomLLM" + }, + { + "$ref": "#/components/schemas/DeepInfraModel", + "title": "DeepInfra" + }, + { + "$ref": "#/components/schemas/DeepSeekModel", + "title": "DeepSeek" + }, + { + "$ref": "#/components/schemas/GoogleModel", + "title": "Google" + }, + { + "$ref": "#/components/schemas/GroqModel", + "title": "Groq" + }, + { + "$ref": "#/components/schemas/InflectionAIModel", + "title": "InflectionAI" + }, + { + "$ref": "#/components/schemas/MinimaxLLMModel", + "title": "MiniMaxLLM" + }, + { + "$ref": "#/components/schemas/OpenAIModel", + "title": "OpenAI" + }, + { + "$ref": "#/components/schemas/OpenRouterModel", + "title": "OpenRouter" + }, + { + "$ref": "#/components/schemas/PerplexityAIModel", + "title": "PerplexityAI" + }, + { + "$ref": "#/components/schemas/TogetherAIModel", + "title": "Together" + }, + { + "$ref": "#/components/schemas/XaiModel", + "title": "XAI" + }, + { + "$ref": "#/components/schemas/VapiModel", + "title": "Vapi" + } + ] + }, + "voice": { + "description": "These are the options for the assistant's voice.", + "oneOf": [ + { + "$ref": "#/components/schemas/AzureVoice", + "title": "AzureVoice" + }, + { + "$ref": "#/components/schemas/CartesiaVoice", + "title": "CartesiaVoice" + }, + { + "$ref": "#/components/schemas/CustomVoice", + "title": "CustomVoice" + }, + { + "$ref": "#/components/schemas/DeepgramVoice", + "title": "DeepgramVoice" + }, + { + "$ref": "#/components/schemas/ElevenLabsVoice", + "title": "ElevenLabsVoice" + }, + { + "$ref": "#/components/schemas/HumeVoice", + "title": "HumeVoice" + }, + { + "$ref": "#/components/schemas/LMNTVoice", + "title": "LMNTVoice" + }, + { + "$ref": "#/components/schemas/NeuphonicVoice", + "title": "NeuphonicVoice" + }, + { + "$ref": "#/components/schemas/OpenAIVoice", + "title": "OpenAIVoice" + }, + { + "$ref": "#/components/schemas/PlayHTVoice", + "title": "PlayHTVoice" + }, + { + "$ref": "#/components/schemas/WellSaidVoice", + "title": "WellSaidVoice" + }, + { + "$ref": "#/components/schemas/RimeAIVoice", + "title": "RimeAIVoice" + }, + { + "$ref": "#/components/schemas/SmallestAIVoice", + "title": "SmallestAIVoice" + }, + { + "$ref": "#/components/schemas/VapiVoice", + "title": "VapiVoice" + }, + { + "$ref": "#/components/schemas/SesameVoice", + "title": "SesameVoice" + }, + { + "$ref": "#/components/schemas/InworldVoice", + "title": "InworldVoice" + }, + { + "$ref": "#/components/schemas/MinimaxVoice", + "title": "MinimaxVoice" + }, + { + "$ref": "#/components/schemas/XaiVoice", + "title": "XaiVoice" + }, + { + "$ref": "#/components/schemas/MicrosoftVoice", + "title": "MicrosoftVoice" + } + ] + }, + "firstMessage": { + "type": "string", + "description": "This is the first message that the assistant will say. This can also be a URL to a containerized audio file (mp3, wav, etc.).\n\nIf unspecified, assistant will wait for user to speak and use the model to respond once they speak.", + "example": "Hello! How can I help you today?" + }, + "firstMessageInterruptionsEnabled": { + "type": "boolean", + "default": false + }, + "firstMessageMode": { + "type": "string", + "description": "This is the mode for the first message. Default is 'assistant-speaks-first'.\n\nUse:\n- 'assistant-speaks-first' to have the assistant speak first.\n- 'assistant-waits-for-user' to have the assistant wait for the user to speak first.\n- 'assistant-speaks-first-with-model-generated-message' to have the assistant speak first with a message generated by the model based on the conversation state. (`assistant.model.messages` at call start, `call.messages` at squad transfer points).\n\n@default 'assistant-speaks-first'", + "enum": [ + "assistant-speaks-first", + "assistant-speaks-first-with-model-generated-message", + "assistant-waits-for-user" + ], + "example": "assistant-speaks-first" + }, + "voicemailDetection": { + "description": "These are the settings to configure or disable voicemail detection. Alternatively, voicemail detection can be configured using the model.tools=[VoicemailTool].\nBy default, voicemail detection is disabled.", + "oneOf": [ + { + "type": "string", + "enum": [ + "off" + ] + }, + { + "$ref": "#/components/schemas/GoogleVoicemailDetectionPlan", + "title": "Google" + }, + { + "$ref": "#/components/schemas/OpenAIVoicemailDetectionPlan", + "title": "OpenAI" + }, + { + "$ref": "#/components/schemas/TwilioVoicemailDetectionPlan", + "title": "Twilio" + }, + { + "$ref": "#/components/schemas/VapiVoicemailDetectionPlan", + "title": "Vapi" + } + ] + }, + "clientMessages": { + "type": "array", + "enum": [ + "conversation-update", + "assistant.speechStarted", + "function-call", + "function-call-result", + "hang", + "language-changed", + "metadata", + "model-output", + "speech-update", + "status-update", + "transcript", + "tool-calls", + "tool-calls-result", + "tool.completed", + "transfer-update", + "user-interrupted", + "voice-input", + "workflow.node.started", + "assistant.started" + ], + "example": [ + "conversation-update", + "function-call", + "hang", + "model-output", + "speech-update", + "status-update", + "transfer-update", + "transcript", + "tool-calls", + "user-interrupted", + "voice-input", + "workflow.node.started", + "assistant.started" + ], + "description": "These are the messages that will be sent to your Client SDKs. Default is conversation-update,function-call,hang,model-output,speech-update,status-update,transfer-update,transcript,tool-calls,user-interrupted,voice-input,workflow.node.started,assistant.started. You can check the shape of the messages in ClientMessage schema.", + "items": { + "type": "string", + "enum": [ + "conversation-update", + "assistant.speechStarted", + "function-call", + "function-call-result", + "hang", + "language-changed", + "metadata", + "model-output", + "speech-update", + "status-update", + "transcript", + "tool-calls", + "tool-calls-result", + "tool.completed", + "transfer-update", + "user-interrupted", + "voice-input", + "workflow.node.started", + "assistant.started" + ] + } + }, + "serverMessages": { + "type": "array", + "enum": [ + "assistant.started", + "assistant.speechStarted", + "conversation-update", + "end-of-call-report", + "function-call", + "hang", + "language-changed", + "language-change-detected", + "model-output", + "phone-call-control", + "speech-update", + "status-update", + "transcript", + "transcript[transcriptType=\"final\"]", + "tool-calls", + "transfer-destination-request", + "handoff-destination-request", + "transfer-update", + "user-interrupted", + "voice-input", + "chat.created", + "chat.deleted", + "session.created", + "session.updated", + "session.deleted", + "call.deleted", + "call.delete.failed", + "call.artifact.upload" + ], + "example": [ + "conversation-update", + "end-of-call-report", + "function-call", + "hang", + "speech-update", + "status-update", + "tool-calls", + "transfer-destination-request", + "handoff-destination-request", + "user-interrupted", + "assistant.started" + ], + "description": "These are the messages that will be sent to your Server URL. Default is conversation-update,end-of-call-report,function-call,hang,speech-update,status-update,tool-calls,transfer-destination-request,handoff-destination-request,user-interrupted,assistant.started. You can check the shape of the messages in ServerMessage schema.", + "items": { + "type": "string", + "enum": [ + "assistant.started", + "assistant.speechStarted", + "conversation-update", + "end-of-call-report", + "function-call", + "hang", + "language-changed", + "language-change-detected", + "model-output", + "phone-call-control", + "speech-update", + "status-update", + "transcript", + "transcript[transcriptType=\"final\"]", + "tool-calls", + "transfer-destination-request", + "handoff-destination-request", + "transfer-update", + "user-interrupted", + "voice-input", + "chat.created", + "chat.deleted", + "session.created", + "session.updated", + "session.deleted", + "call.deleted", + "call.delete.failed", + "call.artifact.upload" + ] + } + }, + "maxDurationSeconds": { + "type": "number", + "description": "This is the maximum number of seconds that the call will last. When the call reaches this duration, it will be ended.\n\n@default 600 (10 minutes)", + "minimum": 10, + "maximum": 43200, + "example": 600 + }, + "backgroundSound": { + "description": "This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'.\nBundled sounds: 'office', 'white-noise', 'city', 'crowd' and 'farm'. GPT Live assistants don't play 'office'.\nYou can also provide a custom sound by providing a URL to an audio file.", + "oneOf": [ + { + "type": "string", + "enum": [ + "off", + "office", + "white-noise", + "city", + "crowd", + "farm" + ], + "example": "office" + }, + { + "type": "string", + "format": "uri", + "example": "https://example.com/my-sound.mp3" + } + ] + }, + "modelOutputInMessagesEnabled": { + "type": "boolean", + "description": "This determines whether the model's output is used in conversation history rather than the transcription of assistant's speech.\n\n@default false", + "example": false + }, + "transportConfigurations": { + "type": "array", + "description": "These are the configurations to be passed to the transport providers of assistant's calls, like Twilio. You can store multiple configurations for different transport providers. For a call, only the configuration matching the call transport provider is used.", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/TransportConfigurationTwilio", + "title": "Twilio" + } + ] + } + }, + "observabilityPlan": { + "description": "This is the plan for observability of assistant's calls.\n\nCurrently, only Langfuse is supported.", + "oneOf": [ + { + "$ref": "#/components/schemas/LangfuseObservabilityPlan", + "title": "Langfuse" + } + ], + "allOf": [ + { + "$ref": "#/components/schemas/LangfuseObservabilityPlan" + } + ] + }, + "credentials": { + "type": "array", + "description": "These are dynamic credentials that will be used for the assistant calls. By default, all the credentials are available for use in the call but you can supplement an additional credentials using this. Dynamic credentials override existing credentials.", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/CreateAnthropicCredentialDTO", + "title": "AnthropicCredential" + }, + { + "$ref": "#/components/schemas/CreateAnthropicBedrockCredentialDTO", + "title": "AnthropicBedrockCredential" + }, + { + "$ref": "#/components/schemas/CreateAnyscaleCredentialDTO", + "title": "AnyscaleCredential" + }, + { + "$ref": "#/components/schemas/CreateAssemblyAICredentialDTO", + "title": "AssemblyAICredential" + }, + { + "$ref": "#/components/schemas/CreateAzureCredentialDTO", + "title": "AzureCredential" + }, + { + "$ref": "#/components/schemas/CreateAzureOpenAICredentialDTO", + "title": "AzureOpenAICredential" + }, + { + "$ref": "#/components/schemas/CreateByoSipTrunkCredentialDTO", + "title": "ByoSipTrunkCredential" + }, + { + "$ref": "#/components/schemas/CreateCartesiaCredentialDTO", + "title": "CartesiaCredential" + }, + { + "$ref": "#/components/schemas/CreateCerebrasCredentialDTO", + "title": "CerebrasCredential" + }, + { + "$ref": "#/components/schemas/CreateCloudflareCredentialDTO", + "title": "CloudflareCredential" + }, + { + "$ref": "#/components/schemas/CreateCustomLLMCredentialDTO", + "title": "CustomLLMCredential" + }, + { + "$ref": "#/components/schemas/CreateDeepgramCredentialDTO", + "title": "DeepgramCredential" + }, + { + "$ref": "#/components/schemas/CreateDeepInfraCredentialDTO", + "title": "DeepInfraCredential" + }, + { + "$ref": "#/components/schemas/CreateDeepSeekCredentialDTO", + "title": "DeepSeekCredential" + }, + { + "$ref": "#/components/schemas/CreateElevenLabsCredentialDTO", + "title": "ElevenLabsCredential" + }, + { + "$ref": "#/components/schemas/CreateGcpCredentialDTO", + "title": "GcpCredential" + }, + { + "$ref": "#/components/schemas/CreateGladiaCredentialDTO", + "title": "GladiaCredential" + }, + { + "$ref": "#/components/schemas/CreateGoHighLevelCredentialDTO", + "title": "GhlCredential" + }, + { + "$ref": "#/components/schemas/CreateGoogleCredentialDTO", + "title": "GoogleCredential" + }, + { + "$ref": "#/components/schemas/CreateGroqCredentialDTO", + "title": "GroqCredential" + }, + { + "$ref": "#/components/schemas/CreateHumeCredentialDTO", + "title": "HumeCredential" + }, + { + "$ref": "#/components/schemas/CreateInflectionAICredentialDTO", + "title": "InflectionAICredential" + }, + { + "$ref": "#/components/schemas/CreateLangfuseCredentialDTO", + "title": "LangfuseCredential" + }, + { + "$ref": "#/components/schemas/CreateLmntCredentialDTO", + "title": "LmntCredential" + }, + { + "$ref": "#/components/schemas/CreateMakeCredentialDTO", + "title": "MakeCredential" + }, + { + "$ref": "#/components/schemas/CreateMistralCredentialDTO", + "title": "MistralCredential" + }, + { + "$ref": "#/components/schemas/CreateNeuphonicCredentialDTO", + "title": "NeuphonicCredential" + }, + { + "$ref": "#/components/schemas/CreateOpenAICredentialDTO", + "title": "OpenAICredential" + }, + { + "$ref": "#/components/schemas/CreateOpenRouterCredentialDTO", + "title": "OpenRouterCredential" + }, + { + "$ref": "#/components/schemas/CreatePerplexityAICredentialDTO", + "title": "PerplexityAICredential" + }, + { + "$ref": "#/components/schemas/CreatePlayHTCredentialDTO", + "title": "PlayHTCredential" + }, + { + "$ref": "#/components/schemas/CreateRimeAICredentialDTO", + "title": "RimeAICredential" + }, + { + "$ref": "#/components/schemas/CreateRunpodCredentialDTO", + "title": "RunpodCredential" + }, + { + "$ref": "#/components/schemas/CreateS3CredentialDTO", + "title": "S3Credential" + }, + { + "$ref": "#/components/schemas/CreateS3CompatibleCredentialDTO", + "title": "S3CompatibleStorageCredential" + }, + { + "$ref": "#/components/schemas/CreateSmallestAICredentialDTO", + "title": "SmallestAICredential" + }, + { + "$ref": "#/components/schemas/CreateSpeechmaticsCredentialDTO", + "title": "SpeechmaticsCredential" + }, + { + "$ref": "#/components/schemas/CreateSonioxCredentialDTO", + "title": "SonioxCredential" + }, + { + "$ref": "#/components/schemas/CreateReson8CredentialDTO", + "title": "Reson8Credential" + }, + { + "$ref": "#/components/schemas/CreateSupabaseCredentialDTO", + "title": "SupabaseCredential" + }, + { + "$ref": "#/components/schemas/CreateTavusCredentialDTO", + "title": "TavusCredential" + }, + { + "$ref": "#/components/schemas/CreateTogetherAICredentialDTO", + "title": "TogetherAICredential" + }, + { + "$ref": "#/components/schemas/CreateTwilioCredentialDTO", + "title": "TwilioCredential" + }, + { + "$ref": "#/components/schemas/CreateVonageCredentialDTO", + "title": "VonageCredential" + }, + { + "$ref": "#/components/schemas/CreateWebhookCredentialDTO", + "title": "WebhookCredential" + }, + { + "$ref": "#/components/schemas/CreateCustomCredentialDTO", + "title": "CustomCredential" + }, + { + "$ref": "#/components/schemas/CreateXAiCredentialDTO", + "title": "XAiCredential" + }, + { + "$ref": "#/components/schemas/CreateMicrosoftCredentialDTO", + "title": "MicrosoftCredential" + }, + { + "$ref": "#/components/schemas/CreateGoogleCalendarOAuth2ClientCredentialDTO", + "title": "GoogleCalendarOAuth2ClientCredential" + }, + { + "$ref": "#/components/schemas/CreateGoogleCalendarOAuth2AuthorizationCredentialDTO", + "title": "GoogleCalendarOAuth2AuthorizationCredential" + }, + { + "$ref": "#/components/schemas/CreateGoogleSheetsOAuth2AuthorizationCredentialDTO", + "title": "GoogleSheetsOAuth2AuthorizationCredential" + }, + { + "$ref": "#/components/schemas/CreateSlackOAuth2AuthorizationCredentialDTO", + "title": "SlackOAuth2AuthorizationCredential" + }, + { + "$ref": "#/components/schemas/CreateGoHighLevelMCPCredentialDTO", + "title": "GoHighLevelMCPCredential" + }, + { + "$ref": "#/components/schemas/CreateInworldCredentialDTO", + "title": "InworldCredential" + }, + { + "$ref": "#/components/schemas/CreateMinimaxCredentialDTO", + "title": "MinimaxCredential" + }, + { + "$ref": "#/components/schemas/CreateWellSaidCredentialDTO", + "title": "WellSaidCredential" + }, + { + "$ref": "#/components/schemas/CreateEmailCredentialDTO", + "title": "EmailCredential" + }, + { + "$ref": "#/components/schemas/CreateSlackWebhookCredentialDTO", + "title": "SlackWebhookCredential" + } + ], + "discriminator": { + "propertyName": "provider", + "mapping": { + "11labs": "#/components/schemas/CreateElevenLabsCredentialDTO", + "anthropic": "#/components/schemas/CreateAnthropicCredentialDTO", + "anthropic-bedrock": "#/components/schemas/CreateAnthropicBedrockCredentialDTO", + "anyscale": "#/components/schemas/CreateAnyscaleCredentialDTO", + "assembly-ai": "#/components/schemas/CreateAssemblyAICredentialDTO", + "azure-openai": "#/components/schemas/CreateAzureOpenAICredentialDTO", + "azure": "#/components/schemas/CreateAzureCredentialDTO", + "byo-sip-trunk": "#/components/schemas/CreateByoSipTrunkCredentialDTO", + "cartesia": "#/components/schemas/CreateCartesiaCredentialDTO", + "cerebras": "#/components/schemas/CreateCerebrasCredentialDTO", + "cloudflare": "#/components/schemas/CreateCloudflareCredentialDTO", + "custom-llm": "#/components/schemas/CreateCustomLLMCredentialDTO", + "deepgram": "#/components/schemas/CreateDeepgramCredentialDTO", + "deepinfra": "#/components/schemas/CreateDeepInfraCredentialDTO", + "deep-seek": "#/components/schemas/CreateDeepSeekCredentialDTO", + "gcp": "#/components/schemas/CreateGcpCredentialDTO", + "gladia": "#/components/schemas/CreateGladiaCredentialDTO", + "gohighlevel": "#/components/schemas/CreateGoHighLevelCredentialDTO", + "google": "#/components/schemas/CreateGoogleCredentialDTO", + "groq": "#/components/schemas/CreateGroqCredentialDTO", + "inflection-ai": "#/components/schemas/CreateInflectionAICredentialDTO", + "langfuse": "#/components/schemas/CreateLangfuseCredentialDTO", + "lmnt": "#/components/schemas/CreateLmntCredentialDTO", + "make": "#/components/schemas/CreateMakeCredentialDTO", + "openai": "#/components/schemas/CreateOpenAICredentialDTO", + "openrouter": "#/components/schemas/CreateOpenRouterCredentialDTO", + "perplexity-ai": "#/components/schemas/CreatePerplexityAICredentialDTO", + "playht": "#/components/schemas/CreatePlayHTCredentialDTO", + "rime-ai": "#/components/schemas/CreateRimeAICredentialDTO", + "runpod": "#/components/schemas/CreateRunpodCredentialDTO", + "s3": "#/components/schemas/CreateS3CredentialDTO", + "s3-compatible": "#/components/schemas/CreateS3CompatibleCredentialDTO", + "supabase": "#/components/schemas/CreateSupabaseCredentialDTO", + "smallest-ai": "#/components/schemas/CreateSmallestAICredentialDTO", + "tavus": "#/components/schemas/CreateTavusCredentialDTO", + "together-ai": "#/components/schemas/CreateTogetherAICredentialDTO", + "twilio": "#/components/schemas/CreateTwilioCredentialDTO", + "vonage": "#/components/schemas/CreateVonageCredentialDTO", + "webhook": "#/components/schemas/CreateWebhookCredentialDTO", + "custom-credential": "#/components/schemas/CreateCustomCredentialDTO", + "xai": "#/components/schemas/CreateXAiCredentialDTO", + "microsoft": "#/components/schemas/CreateMicrosoftCredentialDTO", + "neuphonic": "#/components/schemas/CreateNeuphonicCredentialDTO", + "hume": "#/components/schemas/CreateHumeCredentialDTO", + "mistral": "#/components/schemas/CreateMistralCredentialDTO", + "speechmatics": "#/components/schemas/CreateSpeechmaticsCredentialDTO", + "soniox": "#/components/schemas/CreateSonioxCredentialDTO", + "reson8": "#/components/schemas/CreateReson8CredentialDTO", + "google.calendar.oauth2-client": "#/components/schemas/CreateGoogleCalendarOAuth2ClientCredentialDTO", + "google.calendar.oauth2-authorization": "#/components/schemas/CreateGoogleCalendarOAuth2AuthorizationCredentialDTO", + "google.sheets.oauth2-authorization": "#/components/schemas/CreateGoogleSheetsOAuth2AuthorizationCredentialDTO", + "slack.oauth2-authorization": "#/components/schemas/CreateSlackOAuth2AuthorizationCredentialDTO", + "ghl.oauth2-authorization": "#/components/schemas/CreateGoHighLevelMCPCredentialDTO", + "inworld": "#/components/schemas/CreateInworldCredentialDTO", + "minimax": "#/components/schemas/CreateMinimaxCredentialDTO", + "wellsaid": "#/components/schemas/CreateWellSaidCredentialDTO", + "email": "#/components/schemas/CreateEmailCredentialDTO", + "slack-webhook": "#/components/schemas/CreateSlackWebhookCredentialDTO" + } + } + } + }, + "hooks": { + "type": "array", + "description": "This is a set of actions that will be performed on certain events.", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/CallHookCallEnding", + "title": "CallHookCallEnding" + }, + { + "$ref": "#/components/schemas/CallHookAssistantSpeechInterrupted", + "title": "CallHookAssistantSpeechInterrupted" + }, + { + "$ref": "#/components/schemas/CallHookCustomerSpeechInterrupted", + "title": "CallHookCustomerSpeechInterrupted" + }, + { + "$ref": "#/components/schemas/CallHookCustomerSpeechTimeout", + "title": "CallHookCustomerSpeechTimeout" + }, + { + "$ref": "#/components/schemas/SessionCreatedHook", + "title": "SessionCreatedHook" + } + ] + } + }, + "name": { + "type": "string", + "description": "This is the name of the assistant.\n\nThis is required when you want to transfer between assistants in a call.", + "maxLength": 40 + }, + "voicemailMessage": { + "type": "string", + "description": "This is the message that the assistant will say if the call is forwarded to voicemail.\n\nIf unspecified, it will hang up.", + "maxLength": 1000 + }, + "endCallMessage": { + "type": "string", + "description": "This is the message that the assistant will say if it ends the call.\n\nIf unspecified, it will hang up without saying anything.", + "maxLength": 1000 + }, + "endCallPhrases": { + "description": "This list contains phrases that, if spoken by the assistant, will trigger the call to be hung up. Case insensitive.", + "type": "array", + "items": { + "type": "string", + "maxLength": 140, + "minLength": 2 + } + }, + "compliancePlan": { + "$ref": "#/components/schemas/CompliancePlan" + }, + "metadata": { + "type": "object", + "description": "This is for metadata you want to store on the assistant." + }, + "backgroundSpeechDenoisingPlan": { + "description": "This enables filtering of noise and background speech while the user is talking.\n\nFeatures:\n- Smart denoising using Krisp\n- Fourier denoising\n\nSmart denoising can be combined with or used independently of Fourier denoising.\n\nOrder of precedence:\n- Smart denoising\n- Fourier denoising", + "allOf": [ + { + "$ref": "#/components/schemas/BackgroundSpeechDenoisingPlan" + } + ] + }, + "analysisPlan": { + "description": "This is the plan for analysis of assistant's calls. Stored in `call.analysis`.", + "deprecated": true, + "allOf": [ + { + "$ref": "#/components/schemas/AnalysisPlan" + } + ] + }, + "artifactPlan": { + "description": "This is the plan for artifacts generated during assistant's calls. Stored in `call.artifact`.", + "allOf": [ + { + "$ref": "#/components/schemas/ArtifactPlan" + } + ] + }, + "startSpeakingPlan": { + "description": "This is the plan for when the assistant should start talking.\n\nYou should configure this if you're running into these issues:\n- The assistant is too slow to start talking after the customer is done speaking.\n- The assistant is too fast to start talking after the customer is done speaking.\n- The assistant is so fast that it's actually interrupting the customer.", + "allOf": [ + { + "$ref": "#/components/schemas/StartSpeakingPlan" + } + ] + }, + "stopSpeakingPlan": { + "description": "This is the plan for when assistant should stop talking on customer interruption.\n\nYou should configure this if you're running into these issues:\n- The assistant is too slow to recognize customer's interruption.\n- The assistant is too fast to recognize customer's interruption.\n- The assistant is getting interrupted by phrases that are just acknowledgments.\n- The assistant is getting interrupted by background noises.\n- The assistant is not properly stopping -- it starts talking right after getting interrupted.", + "allOf": [ + { + "$ref": "#/components/schemas/StopSpeakingPlan" + } + ] + }, + "monitorPlan": { + "description": "This is the plan for real-time monitoring of the assistant's calls.\n\nUsage:\n- To enable live listening of the assistant's calls, set `monitorPlan.listenEnabled` to `true`.\n- To enable live control of the assistant's calls, set `monitorPlan.controlEnabled` to `true`.\n- To attach monitors to the assistant, set `monitorPlan.monitorIds` to the set of monitor ids.", + "allOf": [ + { + "$ref": "#/components/schemas/MonitorPlan" + } + ] + }, + "credentialIds": { + "description": "These are the credentials that will be used for the assistant calls. By default, all the credentials are available for use in the call but you can provide a subset using this.", + "type": "array", + "items": { + "type": "string" + } + }, + "server": { + "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server.url\n2. phoneNumber.serverUrl\n3. org.serverUrl", + "allOf": [ + { + "$ref": "#/components/schemas/Server" + } + ] + }, + "keypadInputPlan": { + "$ref": "#/components/schemas/KeypadInputPlan" + } + } + }, + "AssistantGoalErrorDTO": { + "type": "object", + "properties": { + "statusCode": { + "type": "integer", + "minimum": 400, + "maximum": 599 + }, + "error": { + "type": "string" + }, + "message": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + } + ] + } + }, + "required": [ + "statusCode", + "message" + ] + }, + "AssistantGoalCreateDTO": { + "type": "object", + "properties": { + "succeedsWhen": { + "type": "string", + "maxLength": 600, + "minLength": 1, + "description": "Success criteria. Trimmed before commit; blank or non-PostgreSQL-compatible text is rejected." + }, + "leaveOut": { + "type": "string", + "nullable": true, + "maxLength": 300, + "minLength": 1, + "description": "Optional trimmed exclusions. Omit or send null for no exclusions." + } + }, + "required": [ + "succeedsWhen" + ] + }, + "AssistantGoalDTO": { + "type": "object", + "properties": { + "orgId": { + "type": "string", + "format": "uuid" + }, + "assistantId": { + "type": "string", + "format": "uuid" + }, + "goalId": { + "type": "string", + "format": "uuid" + }, + "goalVersion": { + "type": "string", + "description": "Committed decimal bigint revision." + }, + "succeedsWhen": { + "type": "string" + }, + "leaveOut": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "description": "Committed goal-change time anchoring its fixed backfill window." + } + }, + "required": [ + "orgId", + "assistantId", + "goalId", + "goalVersion", + "succeedsWhen", + "createdAt" + ] + }, + "AssistantGoalSetDTO": { + "type": "object", + "properties": { + "expectedGoalVersion": { + "type": "string", + "pattern": "^[1-9][0-9]{0,18}$", + "description": "Observed current revision of this goal as a positive decimal bigint string." + }, + "succeedsWhen": { + "type": "string", + "maxLength": 600, + "minLength": 1, + "description": "Success criteria. Trimmed before commit; blank or non-PostgreSQL-compatible text is rejected." + }, + "leaveOut": { + "type": "string", + "nullable": true, + "maxLength": 300, + "minLength": 1, + "description": "Optional trimmed exclusions. Omit or send null for no exclusions." + } + }, + "required": [ + "expectedGoalVersion", + "succeedsWhen" + ] + }, + "Squad": { + "type": "object", + "properties": { + "latestVersion": { + "type": "string", + "nullable": true, + "description": "This is the latest version label (e.g. `v3`) of the squad in the version\nhistory. `null` while the org is not yet onboarded to versioning, or for\nsquads that have not yet been published under it." + }, + "modelDeprecations": { + "description": "Read-only. Present only when a model this configuration uses is deprecated or retired in Vapi's model deprecation registry, judged on the day of the response. Each entry names the slot (for example `model` or `model.fallbackModels[1]`), provider, stored model, and deprecation and retirement dates as `YYYY-MM-DD` in UTC. `replacementStatus` is `available` with a `replacementModel` when a replacement can be recommended, or `manual-action-required` with no replacement model when eligibility is unknown or no eligible replacement exists. `manual-action-required` can be transient when compliance context is unavailable; re-fetch before acting. HIPAA-required configurations, sparse drafts, and squads with unresolved assistant references currently require manual action. HIPAA requirements include the organization and assistant settings, including HIPAA with data retention. Recommendations reflect the response-time decision; they do not confirm a swap or authorize future execution. Examples: an available recommendation includes `{\"replacementStatus\":\"available\",\"replacementModel\":\"gpt-5\"}`; a blocked recommendation includes `{\"replacementStatus\":\"manual-action-required\"}`. Ignored if sent back in a create or update request.", + "type": "array", + "items": { + "$ref": "#/components/schemas/ModelDeprecationNotice" + } + }, + "name": { + "type": "string", + "description": "This is the name of the squad." + }, + "members": { + "description": "This is the list of assistants that make up the squad.\n\nThe call will start with the first assistant in the list.", + "type": "array", + "items": { + "$ref": "#/components/schemas/SquadMemberDTO" + } + }, + "membersOverrides": { + "description": "This can be used to override all the assistants' settings and provide values for their template variables.\n\nBoth `membersOverrides` and `members[n].assistantOverrides` can be used together. First, `members[n].assistantOverrides` is applied. Then, `membersOverrides` is applied as a global override.", + "allOf": [ + { + "$ref": "#/components/schemas/AssistantOverrides" + } + ] + }, + "id": { + "type": "string", + "description": "This is the unique identifier for the squad." + }, + "orgId": { + "type": "string", + "description": "This is the unique identifier for the org that this squad belongs to." + }, + "createdAt": { + "format": "date-time", + "type": "string", + "description": "This is the ISO 8601 date-time string of when the squad was created." + }, + "updatedAt": { + "format": "date-time", + "type": "string", + "description": "This is the ISO 8601 date-time string of when the squad was last updated." + } + }, + "required": [ + "members", + "id", + "orgId", + "createdAt", + "updatedAt" + ] + }, + "SquadVersion": { + "type": "object", + "properties": { + "versionName": { + "type": "string", + "nullable": true, + "description": "Optional human-readable label for this version. Set when the version is published.", + "maxLength": 80 + }, + "versionDescription": { + "type": "string", + "nullable": true, + "description": "Optional description for this version. Set when the version is published.", + "maxLength": 500 + }, + "id": { + "type": "string", + "description": "This is the unique identifier for the version row.", + "format": "uuid" + }, + "orgId": { + "type": "string", + "description": "This is the unique identifier for the org that owns this version.", + "format": "uuid" + }, + "squadId": { + "type": "string", + "description": "This is the unique identifier for the squad this version was snapshotted from.", + "format": "uuid" + }, + "version": { + "type": "string", + "description": "This is the public monotonic version label, e.g. \"v1\".\nSystem-owned and incremented per squad; never user-supplied.", + "example": "v1" + }, + "configHash": { + "type": "string", + "description": "This is the SHA-256 hex of the snapshotted content used for no-op detection." + }, + "parentVersion": { + "type": "string", + "nullable": true, + "description": "This is the prior version label (vN-1). Null on v1 or for branch roots." + }, + "restoredFromVersion": { + "type": "string", + "nullable": true, + "description": "The version this version was restored from. Null when it was not restored." + }, + "createdBy": { + "type": "string", + "nullable": true, + "description": "This is the actor that wrote this version. Email when created via JWT; null\nwhen created via API key, and null for a baseline version authored by nobody." + }, + "deletedAt": { + "type": "string", + "nullable": true, + "description": "This is the soft-delete timestamp. Null when active.", + "format": "date-time" + }, + "createdAt": { + "type": "string", + "description": "This is the ISO 8601 date-time string of when the version was created.", + "format": "date-time" + }, + "name": { + "type": "string", + "description": "This is the name of the squad." + }, + "members": { + "description": "This is the list of assistants that make up the squad.\n\nThe call will start with the first assistant in the list.", + "type": "array", + "items": { + "$ref": "#/components/schemas/SquadMemberDTO" + } + }, + "membersOverrides": { + "description": "This can be used to override all the assistants' settings and provide values for their template variables.\n\nBoth `membersOverrides` and `members[n].assistantOverrides` can be used together. First, `members[n].assistantOverrides` is applied. Then, `membersOverrides` is applied as a global override.", + "allOf": [ + { + "$ref": "#/components/schemas/AssistantOverrides" + } + ] + } + }, + "required": [ + "id", + "orgId", + "squadId", + "version", + "configHash", + "createdAt", + "members" + ] + }, + "SquadVersionPaginatedMetadata": { + "type": "object", + "properties": { + "nextCursor": { + "type": "string", + "nullable": true + }, + "hasNextPage": { + "type": "boolean" + }, + "limit": { + "type": "number" + } + }, + "required": [ + "hasNextPage", + "limit" + ] + }, + "SquadVersionPaginatedResponse": { + "type": "object", + "properties": { + "results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SquadVersion" + } + }, + "metadata": { + "$ref": "#/components/schemas/SquadVersionPaginatedMetadata" + } + }, + "required": [ + "results", + "metadata" + ] + }, + "UpdateSquadDTO": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "This is the name of the squad." + }, + "members": { + "description": "This is the list of assistants that make up the squad.\n\nThe call will start with the first assistant in the list.", + "type": "array", + "items": { + "$ref": "#/components/schemas/SquadMemberDTO" + } + }, + "membersOverrides": { + "description": "This can be used to override all the assistants' settings and provide values for their template variables.\n\nBoth `membersOverrides` and `members[n].assistantOverrides` can be used together. First, `members[n].assistantOverrides` is applied. Then, `membersOverrides` is applied as a global override.", + "allOf": [ + { + "$ref": "#/components/schemas/AssistantOverrides" + } + ] + } + }, + "required": [ + "members" + ] + }, + "Workflow": { + "type": "object", + "properties": { + "nodes": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/ConversationNode", + "title": "ConversationNode" + }, + { + "$ref": "#/components/schemas/ToolNode", + "title": "ToolNode" + } + ] + } + }, + "model": { + "description": "This is the model for the workflow.\n\nThis can be overridden at node level using `nodes[n].model`.", + "oneOf": [ + { + "$ref": "#/components/schemas/WorkflowOpenAIModel", + "title": "WorkflowOpenAIModel" + }, + { + "$ref": "#/components/schemas/WorkflowAnthropicModel", + "title": "WorkflowAnthropicModel" + }, + { + "$ref": "#/components/schemas/WorkflowAnthropicBedrockModel", + "title": "WorkflowAnthropicBedrockModel" + }, + { + "$ref": "#/components/schemas/WorkflowGoogleModel", + "title": "WorkflowGoogleModel" + }, + { + "$ref": "#/components/schemas/WorkflowCustomModel", + "title": "WorkflowCustomModel" + } + ] + }, + "transcriber": { + "description": "This is the transcriber for the workflow.\n\nThis can be overridden at node level using `nodes[n].transcriber`.", "oneOf": [ { "$ref": "#/components/schemas/AssemblyAITranscriber", @@ -48429,6 +49997,7 @@ "call.start.error-vapi-number-international", "call.start.error-vapi-number-outbound-daily-limit", "call.start.error-get-transport", + "call.start.error-twilio-credential-rejected", "call.start.error-subscription-wallet-does-not-exist", "call.start.error-fraud-check-failed", "call.start.error-subscription-frozen", @@ -67002,6 +68571,10 @@ "type": "number", "description": "Number of voice simulations that can start now (available call slots / 2)" }, + "chatConcurrencyLimit": { + "type": "number", + "description": "Max chat simulations that can run at once. A count of simulations, not call slots: chat simulations use none." + }, "createdAt": { "type": "string", "format": "date-time", @@ -67022,6 +68595,7 @@ "concurrencyLimit", "activeSimulations", "availableToStart", + "chatConcurrencyLimit", "createdAt", "updatedAt", "isDefault" @@ -70041,6 +71615,7 @@ "description": "This is the OpenAI model that will be used.\n\nWhen using Vapi OpenAI or your own Azure Credentials, you have the option to specify the region for the selected model. This shouldn't be specified unless you have a specific reason to do so. Vapi will automatically find the fastest region that make sense.\nThis is helpful when you are required to comply with Data Residency rules. Learn more about Azure regions here https://azure.microsoft.com/en-us/explore/global-infrastructure/data-residency/.", "maxLength": 100, "enum": [ + "gpt-6.1-terra", "gpt-6-luna", "gpt-5.6-sol", "gpt-5.6-terra", @@ -73061,9 +74636,11 @@ "models": { "type": "array", "enum": [ + "gpt-6-luna", "gpt-5.6-luna-2026-07-09", "gpt-5.6-terra-2026-07-09", "gpt-5.6-sol-2026-07-09", + "gpt-5.5", "gpt-5.4", "gpt-5.4-mini", "gpt-5.4-nano", @@ -73098,9 +74675,11 @@ "items": { "type": "string", "enum": [ + "gpt-6-luna", "gpt-5.6-luna-2026-07-09", "gpt-5.6-terra-2026-07-09", "gpt-5.6-sol-2026-07-09", + "gpt-5.5", "gpt-5.4", "gpt-5.4-mini", "gpt-5.4-nano", @@ -73163,6 +74742,13 @@ "minLength": 1, "maxLength": 40 }, + "deployments": { + "description": "These are the names of your Azure deployments, one entry for every model in `models`. Omit the field when every deployment is named after its model; once it has any entry, a model with no entry is rejected, so a deployment named after its model takes `{ \"model\": \"\", \"name\": \"\" }`. Requests use the first of the org's keys that matches the region (on a live call, also the model), so an org holding two keys for the same region and model should pin `credentialIds` on its assistants.", + "type": "array", + "items": { + "$ref": "#/components/schemas/AzureOpenAIDeployment" + } + }, "openAIEndpoint": { "type": "string", "maxLength": 10000 @@ -76700,9 +78286,11 @@ "models": { "type": "array", "enum": [ + "gpt-6-luna", "gpt-5.6-luna-2026-07-09", "gpt-5.6-terra-2026-07-09", "gpt-5.6-sol-2026-07-09", + "gpt-5.5", "gpt-5.4", "gpt-5.4-mini", "gpt-5.4-nano", @@ -76737,9 +78325,11 @@ "items": { "type": "string", "enum": [ + "gpt-6-luna", "gpt-5.6-luna-2026-07-09", "gpt-5.6-terra-2026-07-09", "gpt-5.6-sol-2026-07-09", + "gpt-5.5", "gpt-5.4", "gpt-5.4-mini", "gpt-5.4-nano", @@ -76784,6 +78374,13 @@ "minLength": 1, "maxLength": 40 }, + "deployments": { + "description": "These are the names of your Azure deployments, one entry for every model in `models`. Omit the field when every deployment is named after its model; once it has any entry, a model with no entry is rejected, so a deployment named after its model takes `{ \"model\": \"\", \"name\": \"\" }`. Requests use the first of the org's keys that matches the region (on a live call, also the model), so an org holding two keys for the same region and model should pin `credentialIds` on its assistants.", + "type": "array", + "items": { + "$ref": "#/components/schemas/AzureOpenAIDeployment" + } + }, "openAIEndpoint": { "type": "string", "maxLength": 10000 @@ -82899,6 +84496,7 @@ "call.start.error-vapi-number-international", "call.start.error-vapi-number-outbound-daily-limit", "call.start.error-get-transport", + "call.start.error-twilio-credential-rejected", "call.start.error-subscription-wallet-does-not-exist", "call.start.error-fraud-check-failed", "call.start.error-subscription-frozen", @@ -84390,6 +85988,7 @@ "call.start.error-vapi-number-international", "call.start.error-vapi-number-outbound-daily-limit", "call.start.error-get-transport", + "call.start.error-twilio-credential-rejected", "call.start.error-subscription-wallet-does-not-exist", "call.start.error-fraud-check-failed", "call.start.error-subscription-frozen",