Referencia de la API

Asistentes

Asistentes de voz: listar, crear, editar y publicar.

POST /v1/assistant-builder/applied

Record that a builder proposal was applied to an assistant

Solo para usuarios con sesión iniciada (sin API key) · Rol: editor o superior

An `editor` or above tells the control plane that a proposal of the builder was saved into the draft of `assistant_id`. It is audited as `assistant_builder.proposal_applied` with the assistant id and name only, never the conversation or the proposal. 401 when the token is missing, expired or invalid; 403 when the caller is a `viewer`; 404 when the assistant does not exist in the caller's tenant; 503 when assistants are not available.

Cuerpo de la solicitud

NombreTipoRequeridoDescripción
assistant_idstring (uuid)sí

Respuestas

  • 204 Successful Response
  • 401 Missing, expired or invalid token. · ErrorResponse
  • 403 The caller is a `viewer`. · ErrorResponse
  • 404 No such assistant in the caller's tenant. · ErrorResponse
  • 503 Assistants or the audit log are not available. · ErrorResponse
  • default Default Response · ErrorResponse

POST /v1/assistant-builder/messages

Chat with the AI builder to write a prompt or a conversation tree

Solo para usuarios con sesión iniciada (sin API key) · Rol: editor o superior

An `editor` or above sends the next message of a conversation with the builder. The client keeps the conversation and sends the prior turns (`conversation`, at most 20, oldest first). Send `assistant_id` to edit that assistant's draft, or `mode` to start a new assistant. `target` is `prompt` (a free prompt), `tree` (a conversation tree) or `auto` (the builder chooses). The answer has the `reply` text, optional quick-reply `suggestions` and an optional `proposal`: a short list of `changes`, an optional `name` and the complete resulting `config`, already validated as an assistant version (the draft with the proposed prompt, first message, flow, variables, tools, knowledge bases and result fields applied). Tools and knowledge bases are suggested only from the caller's organization. A proposal that fails validation is repaired once by the model; if it is still invalid there is no `proposal` and `proposal_errors` says why. Nothing is saved: the client applies a proposal by saving the draft (`PUT /v1/assistants/{id}/draft`) and then reports it with `POST /v1/assistant-builder/applied`. Each organization may send a bounded number of messages per minute; above it the answer is `429` with `Retry-After`. Messages are never logged. 401 when the token is missing, expired or invalid; 403 when the caller is a `viewer`; 404 when `assistant_id` is not an assistant of the caller's organization; 422 when the body is invalid; 502 `builder_failed` when the model provider failed; 503 `builder_not_configured` when no model is configured (clients fall back to a guided builder).

Cuerpo de la solicitud

NombreTipoRequeridoDescripción
assistant_idstring (uuid) | null
conversationBuilderTurnRequest[]
conversation[].contentstringsí
conversation[].role"user" | "assistant"sí (user, assistant)
messagestringsí
mode"pipeline" | "realtime" | null (pipeline, realtime)
target"prompt" | "tree" | "auto" (prompt, tree, auto)

Respuestas

  • 200 Successful Response · BuilderMessageResponse
    NombreTipoRequeridoDescripción
    proposalBuilderProposalResponse | nullsí
    proposal.changesstring[]sí
    proposal.configAssistantVersionsí
    proposal.config.analysisAnalysisSettings
    proposal.config.behaviorBehaviorSettings
    proposal.config.first_messagestringsí
    proposal.config.first_message_mode"assistant_speaks_first" | "wait_for_user" (assistant_speaks_first, wait_for_user)
    proposal.config.flowFlow | nullA conversation tree: global instructions plus steps linked by exits. Texts may name `{{variable}}`s (plain placeholders only: no statements, no filters) that are either in the assistant version's `variables` or captured by a step that can come earlier; `check_names` enforces that, because the variables live on the version, not here.
    proposal.config.instructionsstring
    proposal.config.instructions_mode"prompt" | "flow" (prompt, flow)
    proposal.config.knowledge_basesKnowledgeAttachment[]
    proposal.config.mcpMcpAttachment[]
    proposal.config.mode"pipeline" | "realtime"sí (pipeline, realtime)
    proposal.config.pipelinePipelineConfig | null
    proposal.config.pronunciationPronunciationSettingsPronunciation dictionaries of the organization (`/v1/pronunciation-dictionaries`).
    proposal.config.realtimeOpenAiRealtime | AzureOpenAiRealtime | GeminiRealtime | null
    proposal.config.result_specResultSpec | nullWhat to extract from a call (a JSON Schema) and the limits the extracted values must keep.
    proposal.config.speech_styleSpeechStyleSettingsHow the model writes its replies. `spoken_prompt` adds the spoken style block to the instructions (pipeline, realtime and every step of a tree): text written to be heard, short turns that open fast, numbers in words. Off for a version without the field, so a published assistant sounds as before; new assistants are created with it on. See docs/speech-friendly-text.md.
    proposal.config.toolsAssistantToolsWhat the model may call during a call: API tools by reference and the built-ins.
    proposal.config.variablesstring[]
    proposal.config.voice_profileVoiceProfileSettingsThe expressive mode the assistant speaks in. `off` adds nothing to the instructions, so a version stored without the field sounds as before. `intensity` sets how marked the tone is and how often tags are used. `custom` holds the assistant's own profile; it is required when `profile` is `custom` and kept (unused) otherwise. See docs/voice-profiles.md.
    proposal.namestring | nullsí
    proposal_errorsstring[]sí
    replystringsí
    suggestionsstring[]sí
  • 401 Missing, expired or invalid token. · ErrorResponse
  • 403 The caller is a `viewer`. · ErrorResponse
  • 404 No such assistant in the caller's tenant. · ErrorResponse
  • 429 Too many messages; retry later. · ErrorResponse
  • 502 The model provider failed. · ErrorResponse
  • 503 The builder is not configured. · ErrorResponse
  • default Default Response · ErrorResponse

POST /v1/assistant-builder/messages/stream

Chat with the AI builder and read the reply as it is written

Solo para usuarios con sesión iniciada (sin API key) · Rol: editor o superior

The same request, checks and answer as `POST /v1/assistant-builder/messages`, sent as server-sent events so a client can show the first words of the reply while the model is still working. Every check (token, role, `assistant_id`, rate limit, budget, model configured) happens before the stream starts and fails with the same HTTP status as the plain endpoint; once the stream is open the status is `200`. Events, in order: zero or more `delta` (`{"text": "..."}`, the next words of `reply`; provisional, the `reply` of `result` replaces them), then exactly one of `result` (the full `BuilderMessageResponse`) or `error` (`{"code": "builder_failed", "message": "..."}`: the model provider failed). Nothing is saved and messages are never logged.

Cuerpo de la solicitud

NombreTipoRequeridoDescripción
assistant_idstring (uuid) | null
conversationBuilderTurnRequest[]
conversation[].contentstringsí
conversation[].role"user" | "assistant"sí (user, assistant)
messagestringsí
mode"pipeline" | "realtime" | null (pipeline, realtime)
target"prompt" | "tree" | "auto" (prompt, tree, auto)

Respuestas

  • 200 A stream of server-sent events: `delta`, then `result` or `error`.
  • 401 Missing, expired or invalid token. · ErrorResponse
  • 403 The caller is a `viewer`. · ErrorResponse
  • 404 No such assistant in the caller's tenant. · ErrorResponse
  • 429 Too many messages; retry later. · ErrorResponse
  • 503 The builder is not configured. · ErrorResponse
  • default Default Response · ErrorResponse

GET /v1/assistants

List the assistants of my organization

API key con assistants:read · Rol: viewer o superior

Any signed-in member of the tenant, or an API key with `assistants:read`. Each item is a summary: `id`, `name`, `mode` (`pipeline` or `realtime`), `latest_version`, `status` and `updated_at`. `latest_version` is the number of the last published version, `0` when the assistant was never published. `status` is `published` when that version is the current content and `draft` when the assistant was never published or has changes that are not published yet. `q` keeps the assistants whose name contains the text, ignoring case and accents (at most 100 characters). Pages are ordered by `updated_at`, newest first; pass `next_cursor` of a page as `cursor` to get the next one. `next_cursor` is `null` on the last page. The cursor is opaque; do not build or change it. `limit` is at most 200 (default 100). Archived assistants are left out unless `archived` is `true`, which lists only the archived ones (`archived_at` says when). Only the assistants of the caller's tenant are listed. 401 when the token is missing, expired or invalid; 422 when a parameter is out of range or the cursor is not one we issued; 503 when assistants are not available.

Parámetros

NombreEnTipoRequeridoDescripción
qquerystring | null
limitqueryinteger
cursorquerystring | null
archivedqueryboolean

Respuestas

  • 200 Successful Response · AssistantPage
    NombreTipoRequeridoDescripción
    itemsAssistantSummary[]sí
    items[].archived_atstring (date-time) | null
    items[].idstring (uuid)sí
    items[].latest_versionintegersí
    items[].modestringsí (pipeline, realtime)
    items[].namestringsí
    items[].statusstringsí (draft, published)
    items[].updated_atstring (date-time)sí
    next_cursorstring | nullsí
  • 401 Missing, expired or invalid token. · ErrorResponse
  • 403 Role below the one in `x-min-role`, a suspended organization, or an API key without the operation's `x-api-key-scope` (any key, if the operation has none). · ErrorResponse
  • 429 The API key went over its requests per minute. · ErrorResponse
  • 503 Assistants are not available. · ErrorResponse
  • default Default Response · ErrorResponse

POST /v1/assistants

Create an assistant draft

Solo para usuarios con sesión iniciada (sin API key) · Rol: editor o superior

An `editor` or above creates an assistant as a draft: `latest_version` `0`, `status` `draft`, never published. `name` is 1 to 120 characters after trimming; names are not unique. Send `mode` (`pipeline` or `realtime`) for a blank draft, or `template_id` to start from a template: `preventive-collections`, `early-arrears`, `nps-survey` (`pipeline`) or `inbound-faq`, `receptionist` (`realtime`). The template gives the mode, so `mode` may be left out; when both are sent they must agree. The content of a template (prompt, variables, result spec) lives in the API, is versioned with it and carries no customer data; clients send only the id. Blank and template drafts start with a 3-second initial silence timeout and a 6-second conversation silence timeout. The tenant is the one in the caller's access token. 401 when the token is missing, expired or invalid; 403 when the caller is a `viewer`; 422 when the body is invalid, has neither `mode` nor `template_id`, or the `mode` does not match the template. 503 when assistants are not available.

Cuerpo de la solicitud

NombreTipoRequeridoDescripción
modestring | null (pipeline, realtime)
namestringsí
template_idstring | null (preventive-collections, early-arrears, nps-survey, inbound-faq, receptionist)

Respuestas

  • 201 Successful Response · AssistantSummary
    NombreTipoRequeridoDescripción
    archived_atstring (date-time) | null
    idstring (uuid)sí
    latest_versionintegersí
    modestringsí (pipeline, realtime)
    namestringsí
    statusstringsí (draft, published)
    updated_atstring (date-time)sí
  • 401 Missing, expired or invalid token. · ErrorResponse
  • 403 Role below the one this operation needs. · ErrorResponse
  • 503 Assistants are not available. · ErrorResponse
  • default Default Response · ErrorResponse

GET /v1/assistants/{assistant_id}

Read an assistant with its current draft

API key con assistants:read · Rol: viewer o superior

Any signed-in member of the tenant, or an API key with `assistants:read`. The answer has the fields of the list item plus `config`, the current draft (an `AssistantVersion`, see `schemas/assistant-version.schema.json`), and `published_version_id`, the id of the last published version, `null` when never published. The draft includes changes that are not published yet. `mode` is the engine of the draft: it changes when a draft of the other mode is saved. 401 when the token is missing, expired or invalid; 404 when the assistant does not exist in the caller's tenant; 422 when the id is not a UUID; 503 when assistants are not available.

Parámetros

NombreEnTipoRequeridoDescripción
assistant_idpathstring (uuid)sí

Respuestas

  • 200 Successful Response · AssistantDetail
    NombreTipoRequeridoDescripción
    archived_atstring (date-time) | null
    configAssistantVersionsí
    config.analysisAnalysisSettings
    config.analysis.criteriaSuccessCriterion[]
    config.analysis.enabledboolean
    config.analysis.include_summary_in_eventboolean
    config.analysis.sentimentboolean
    config.analysis.summary_promptstring
    config.behaviorBehaviorSettings
    config.behavior.background_sound"none" | "office" | "call_center" (none, office, call_center)
    config.behavior.background_speechBackgroundSpeechSettings | nullSpeech that is not the caller's (a TV, people nearby). Pipeline only; off when absent. A final transcript of at most `max_words` words whose STT confidence is under `min_confidence` is dropped, unless it holds an answer ("sí", "no", a number, a date: #107): the model, the tree and the transcript never get it, and the call log gets a `speech.ignored` event (no text). `vad_activation_threshold` is Silero's (0.5 by default): higher, faint or distant speech does not count as the caller speaking. A quiet or hesitant caller can be ignored too, so it is opt-in. `primary_speaker_only` (Deepgram only) turns on Deepgram's diarization and drops every final transcript of a speaker other than the primary one (the loudest, normally the caller), whatever its length, as a `speech.background_speaker` event (no text); a background louder than the caller can make the caller the one dropped.
    config.behavior.background_volumenumber
    config.behavior.dtmfDtmfSettingsThe `send_dtmf` tool. Stub until SIP: the tool answers that tones cannot be sent yet.
    config.behavior.end_call_phrasesEndCallPhrases | nullA phrase (a case and accent insensitive substring) that ends the call when said.
    config.behavior.endpointingEndpointingSettingsWhen the caller's turn is over. Pipeline only (realtime: the provider's own VAD).
    config.behavior.guardrailsGuardrailSettingsPipeline: `never_say` is filtered out of the speech (logged as `guardrail.triggered`) and both lists are told to the model. Realtime: only the instruction to the model.
    config.behavior.interruptionsInterruptionSettingsBarge-in. Pipeline: all six. Realtime: only `allow` (the provider's server decides when the caller started speaking).
    config.behavior.max_durationMaxDurationSettings | nullA hard cap: `warning_message` (when not empty) is said 30 seconds before the end.
    config.behavior.recordingRecordingSettingsAudio recording of the call (LiveKit Egress; a campaign can override `enabled`). Off by default. `disclosure_message` is what the agent says at the start of a recorded call, before anything else (the notice some markets require); empty says nothing. See docs/call-recording.md.
    config.behavior.silenceSilenceSettings | nullA phase that is absent inherits the original flat policy.
    config.behavior.voicemailVoicemailSettings | nullOne or more answering-machine detectors (`detectors`, default the model's tool): - `llm_tool`: the conversation model gets a `voicemail_detected` tool. It answers at the end of the callee's turn, so a long greeting is heard whole first. - `llm_transcript`: a classifier reads the live transcript of the first seconds, once the callee said 3 words and again every 2 new words, and hangs up as soon as it hears a machine. It runs on Jev when the organization has TypeSafe configured, otherwise on a small model of the assistant's own provider. It stops listening after 10 seconds. - `audio`: outbound phone calls only. The platform's audio detector listens before the assistant joins (no model, no voice); it needs the detector deployed (docs/sip-amd.md) and does nothing in browser tests.
    config.first_messagestringsí
    config.first_message_mode"assistant_speaks_first" | "wait_for_user" (assistant_speaks_first, wait_for_user)
    config.flowFlow | nullA conversation tree: global instructions plus steps linked by exits. Texts may name `{{variable}}`s (plain placeholders only: no statements, no filters) that are either in the assistant version's `variables` or captured by a step that can come earlier; `check_names` enforces that, because the variables live on the version, not here.
    config.flow.advance_mode"async" | "gate" (async, gate)
    config.flow.deciderDeciderWho picks the exit. `llm` (default) is a small LLM on the assistant's own provider; `model` is a model of that provider, and the worker picks its default for the provider when it is null. `jev` uses only TypeSafe's Jev for the choice (the text of the call goes to TypeSafe). The LLM only extracts fields; `model` names that LLM. Jev errors keep the current step. `min_confidence` is the confidence a move needs (null: 0.6 for `llm`, 0.0 for `jev`) and `history_turns` the last turns the decider reads.
    config.flow.global_instructionsstring
    config.flow.lookahead_depthinteger
    config.flow.nodesobjectsí
    config.flow.startstringsí
    config.flow.transition_strategystring
    config.instructionsstring
    config.instructions_mode"prompt" | "flow" (prompt, flow)
    config.knowledge_basesKnowledgeAttachment[]
    config.knowledge_bases[].descriptionstringsí
    config.knowledge_bases[].knowledge_base_idstring (uuid)sí
    config.knowledge_bases[].tagsstring[]
    config.mcpMcpAttachment[]
    config.mcp[].frozenFrozenMcpServer | nullThe tools of one MCP server frozen into a published version. A call never lists the tools of the live server: it uses these schemas.
    config.mcp[].server_idstring (uuid)sí
    config.mcp[].toolsstring[]sí
    config.mode"pipeline" | "realtime"sí (pipeline, realtime)
    config.pipelinePipelineConfig | null
    config.pipeline.finalize_stt_on_silenceboolean
    config.pipeline.llmOpenAiLlm | AzureOpenAiLlm | AnthropicLlm | GoogleLlm | GroqLlm | CerebrasLlmsí
    config.pipeline.preemptive_generationboolean
    config.pipeline.preemptive_max_speech_secondsnumber
    config.pipeline.preemptive_ttsboolean
    config.pipeline.sttDeepgramStt | GoogleSttsí
    config.pipeline.ttsOpenAiTts | ElevenLabsTts | CartesiaTts | AzureTtssí
    config.pipeline.turn_detection"vad" | "stt" | "model" (vad, stt, model)
    config.pronunciationPronunciationSettingsPronunciation dictionaries of the organization (`/v1/pronunciation-dictionaries`).
    config.pronunciation.dictionary_idsstring (uuid)[]
    config.realtimeOpenAiRealtime | AzureOpenAiRealtime | GeminiRealtime | null
    config.realtime.modelstringsíOpenAiRealtime ·
    config.realtime.noise_reduction"near_field" | "far_field" | nullOpenAiRealtime · (near_field, far_field)
    config.realtime.providerstringsíOpenAiRealtime ·
    config.realtime.transcription_languagestring | nullOpenAiRealtime ·
    config.realtime.turn_detection"server_vad" | "semantic"OpenAiRealtime · (server_vad, semantic)
    config.realtime.voice"alloy" | "ash" | "ballad" | "coral" | "echo" | "sage" | "shimmer" | "verse" | "marin" | "cedar"síOpenAiRealtime · (alloy, ash, ballad, coral, echo, sage, shimmer, verse, marin, cedar)
    config.realtime.deploymentstringsíAzureOpenAiRealtime ·
    config.realtime.modelstring | nullAzureOpenAiRealtime ·
    config.realtime.noise_reduction"near_field" | "far_field" | nullAzureOpenAiRealtime · (near_field, far_field)
    config.realtime.providerstringsíAzureOpenAiRealtime ·
    config.realtime.transcription_languagestring | nullAzureOpenAiRealtime ·
    config.realtime.turn_detection"server_vad" | "semantic"AzureOpenAiRealtime · (server_vad, semantic)
    config.realtime.voice"alloy" | "ash" | "ballad" | "coral" | "echo" | "sage" | "shimmer" | "verse" | "marin" | "cedar"síAzureOpenAiRealtime · (alloy, ash, ballad, coral, echo, sage, shimmer, verse, marin, cedar)
    config.realtime.modelstringsíGeminiRealtime ·
    config.realtime.providerstringsíGeminiRealtime ·
    config.realtime.turn_detectionstringGeminiRealtime ·
    config.realtime.voice"Achernar" | "Achird" | "Algenib" | "Algieba" | "Alnilam" | "Aoede" | "Autonoe" | "Callirrhoe" | "Charon" | "Despina" | "Enceladus" | "Erinome" | "Fenrir" | "Gacrux" | "Iapetus" | "Kore" | "Laomedeia" | "Leda" | "Orus" | "Pulcherrima" | "Puck" | "Rasalgethi" | "Sadachbia" | "Sadaltager" | "Schedar" | "Sulafat" | "Umbriel" | "Vindemiatrix" | "Zephyr" | "Zubenelgenubi"síGeminiRealtime · (Achernar, Achird, Algenib, Algieba, Alnilam, Aoede, Autonoe, Callirrhoe, Charon, Despina, Enceladus, Erinome, Fenrir, Gacrux, Iapetus, Kore, Laomedeia, Leda, Orus, Pulcherrima, Puck, Rasalgethi, Sadachbia, Sadaltager, Schedar, Sulafat, Umbriel, Vindemiatrix, Zephyr, Zubenelgenubi)
    config.result_specResultSpec | nullWhat to extract from a call (a JSON Schema) and the limits the extracted values must keep.
    config.result_spec.guardrailsMinAmount | MaxDaysAhead[]
    config.result_spec.json_schemaobjectsí
    config.speech_styleSpeechStyleSettingsHow the model writes its replies. `spoken_prompt` adds the spoken style block to the instructions (pipeline, realtime and every step of a tree): text written to be heard, short turns that open fast, numbers in words. Off for a version without the field, so a published assistant sounds as before; new assistants are created with it on. See docs/speech-friendly-text.md.
    config.speech_style.spoken_promptboolean
    config.toolsAssistantToolsWhat the model may call during a call: API tools by reference and the built-ins.
    config.tools.apiToolReference[]
    config.tools.built_inBuiltInTools
    config.variablesstring[]
    config.voice_profileVoiceProfileSettingsThe expressive mode the assistant speaks in. `off` adds nothing to the instructions, so a version stored without the field sounds as before. `intensity` sets how marked the tone is and how often tags are used. `custom` holds the assistant's own profile; it is required when `profile` is `custom` and kept (unused) otherwise. See docs/voice-profiles.md.
    config.voice_profile.customCustomVoiceProfile | nullA profile written for one assistant: free tone guidance (Spanish, added to the prompt as it is) and the expressive tags it may use, when the TTS supports them.
    config.voice_profile.intensity"subtle" | "normal" | "expressive" (subtle, normal, expressive)
    config.voice_profile.profile"off" | "neutral" | "empathetic" | "firm" | "warm" | "energetic" | "custom" (off, neutral, empathetic, firm, warm, energetic, custom)
    idstring (uuid)sí
    latest_versionintegersí
    modestringsí (pipeline, realtime)
    namestringsí
    published_version_idstring (uuid) | nullsí
    statusstringsí (draft, published)
    updated_atstring (date-time)sí
  • 401 Missing, expired or invalid token. · ErrorResponse
  • 403 Role below the one in `x-min-role`, a suspended organization, or an API key without the operation's `x-api-key-scope` (any key, if the operation has none). · ErrorResponse
  • 404 No such assistant in the caller's tenant. · ErrorResponse
  • 429 The API key went over its requests per minute. · ErrorResponse
  • 503 Assistants are not available. · ErrorResponse
  • default Default Response · ErrorResponse

POST /v1/assistants/{assistant_id}/archive

Archive an assistant (soft delete)

Solo para usuarios con sesión iniciada (sin API key) · Rol: editor o superior

An `editor` or above hides the assistant from the list and from the pickers (campaigns, phone numbers). Nothing is deleted: versions, calls and reports stay, the assistant can still be read by id and `POST /v1/assistants/{assistant_id}/restore` brings it back. An archived assistant cannot be edited or published. Archiving an archived assistant answers 200 and changes nothing. Written to the audit log as `assistant.archive`. 409 `assistant_in_use_by_campaign` while a running or paused campaign uses it and 409 `assistant_in_use_by_number` while a phone number answers with it. 401 when the token is missing, expired or invalid; 403 when the caller is a `viewer`; 404 when the assistant does not exist in the caller's tenant; 503 when assistants are not available.

Parámetros

NombreEnTipoRequeridoDescripción
assistant_idpathstring (uuid)sí

Respuestas

  • 200 Successful Response · AssistantSummary
    NombreTipoRequeridoDescripción
    archived_atstring (date-time) | null
    idstring (uuid)sí
    latest_versionintegersí
    modestringsí (pipeline, realtime)
    namestringsí
    statusstringsí (draft, published)
    updated_atstring (date-time)sí
  • 401 Missing, expired or invalid token. · ErrorResponse
  • 403 Role below the one this operation needs. · ErrorResponse
  • 404 No such assistant in the caller's tenant. · ErrorResponse
  • 409 A campaign or a phone number uses it. · ErrorResponse
  • 503 Assistants are not available. · ErrorResponse
  • default Default Response · ErrorResponse

PUT /v1/assistants/{assistant_id}/draft

Replace the draft of an assistant

Solo para usuarios con sesión iniciada (sin API key) · Rol: editor o superior

An `editor` or above replaces the whole draft with `config` and, when `name` is sent, renames the assistant (1 to 120 characters after trimming). `config` is validated as an `AssistantVersion`, flow rules included (a start and exits that point to steps, a final step, every step reachable, and `{{name}}` placeholders that are variables or captured earlier). The `mode` of `config` decides the engine: sending a `realtime` config to a `pipeline` assistant (or the other way round) switches it, and the assistant's `mode` follows the draft at once; the config must carry the section of its own mode and not the other's. Published versions keep the engine they were published with and calls only run published versions, so nothing changes for callers until it is published. The keys of `config.result_spec.json_schema.properties` (the fields collected from a call) must be a lowercase letter followed by lowercase letters, digits or `_`, up to 64 characters; a draft with another key is refused with `422` and the error type `invalid_result_field_name` (the key is not echoed), never saved without it. A human label for a field goes in its `title`. Nothing is published: `status` becomes `draft` when the draft differs from the published version and goes back to `published` when it is saved equal to it. The change is written to the audit log as `assistant.update_draft` with names only, never the content. A knowledge base can be newly attached only when it has a ready document: an empty, still processing or failed base answers 422 `knowledge_base_not_ready` at `config.knowledge_bases` (a base already attached keeps saving). 409 `assistant_archived` when the assistant is archived. 401 when the token is missing, expired or invalid; 403 when the caller is a `viewer`; 404 when the assistant does not exist in the caller's tenant; 422 when the id or the body is invalid (including a config that does not fit its own `mode`), with the failing fields in `errors`; 503 when assistants are not available.

Parámetros

NombreEnTipoRequeridoDescripción
assistant_idpathstring (uuid)sí

Cuerpo de la solicitud

NombreTipoRequeridoDescripción
configAssistantVersionsí
config.analysisAnalysisSettings
config.analysis.criteriaSuccessCriterion[]
config.analysis.enabledboolean
config.analysis.include_summary_in_eventboolean
config.analysis.sentimentboolean
config.analysis.summary_promptstring
config.behaviorBehaviorSettings
config.behavior.background_sound"none" | "office" | "call_center" (none, office, call_center)
config.behavior.background_speechBackgroundSpeechSettings | nullSpeech that is not the caller's (a TV, people nearby). Pipeline only; off when absent. A final transcript of at most `max_words` words whose STT confidence is under `min_confidence` is dropped, unless it holds an answer ("sí", "no", a number, a date: #107): the model, the tree and the transcript never get it, and the call log gets a `speech.ignored` event (no text). `vad_activation_threshold` is Silero's (0.5 by default): higher, faint or distant speech does not count as the caller speaking. A quiet or hesitant caller can be ignored too, so it is opt-in. `primary_speaker_only` (Deepgram only) turns on Deepgram's diarization and drops every final transcript of a speaker other than the primary one (the loudest, normally the caller), whatever its length, as a `speech.background_speaker` event (no text); a background louder than the caller can make the caller the one dropped.
config.behavior.background_volumenumber
config.behavior.dtmfDtmfSettingsThe `send_dtmf` tool. Stub until SIP: the tool answers that tones cannot be sent yet.
config.behavior.end_call_phrasesEndCallPhrases | nullA phrase (a case and accent insensitive substring) that ends the call when said.
config.behavior.endpointingEndpointingSettingsWhen the caller's turn is over. Pipeline only (realtime: the provider's own VAD).
config.behavior.guardrailsGuardrailSettingsPipeline: `never_say` is filtered out of the speech (logged as `guardrail.triggered`) and both lists are told to the model. Realtime: only the instruction to the model.
config.behavior.interruptionsInterruptionSettingsBarge-in. Pipeline: all six. Realtime: only `allow` (the provider's server decides when the caller started speaking).
config.behavior.max_durationMaxDurationSettings | nullA hard cap: `warning_message` (when not empty) is said 30 seconds before the end.
config.behavior.recordingRecordingSettingsAudio recording of the call (LiveKit Egress; a campaign can override `enabled`). Off by default. `disclosure_message` is what the agent says at the start of a recorded call, before anything else (the notice some markets require); empty says nothing. See docs/call-recording.md.
config.behavior.silenceSilenceSettings | nullA phase that is absent inherits the original flat policy.
config.behavior.voicemailVoicemailSettings | nullOne or more answering-machine detectors (`detectors`, default the model's tool): - `llm_tool`: the conversation model gets a `voicemail_detected` tool. It answers at the end of the callee's turn, so a long greeting is heard whole first. - `llm_transcript`: a classifier reads the live transcript of the first seconds, once the callee said 3 words and again every 2 new words, and hangs up as soon as it hears a machine. It runs on Jev when the organization has TypeSafe configured, otherwise on a small model of the assistant's own provider. It stops listening after 10 seconds. - `audio`: outbound phone calls only. The platform's audio detector listens before the assistant joins (no model, no voice); it needs the detector deployed (docs/sip-amd.md) and does nothing in browser tests.
config.first_messagestringsí
config.first_message_mode"assistant_speaks_first" | "wait_for_user" (assistant_speaks_first, wait_for_user)
config.flowFlow | nullA conversation tree: global instructions plus steps linked by exits. Texts may name `{{variable}}`s (plain placeholders only: no statements, no filters) that are either in the assistant version's `variables` or captured by a step that can come earlier; `check_names` enforces that, because the variables live on the version, not here.
config.flow.advance_mode"async" | "gate" (async, gate)
config.flow.deciderDeciderWho picks the exit. `llm` (default) is a small LLM on the assistant's own provider; `model` is a model of that provider, and the worker picks its default for the provider when it is null. `jev` uses only TypeSafe's Jev for the choice (the text of the call goes to TypeSafe). The LLM only extracts fields; `model` names that LLM. Jev errors keep the current step. `min_confidence` is the confidence a move needs (null: 0.6 for `llm`, 0.0 for `jev`) and `history_turns` the last turns the decider reads.
config.flow.global_instructionsstring
config.flow.lookahead_depthinteger
config.flow.nodesobjectsí
config.flow.startstringsí
config.flow.transition_strategystring
config.instructionsstring
config.instructions_mode"prompt" | "flow" (prompt, flow)
config.knowledge_basesKnowledgeAttachment[]
config.knowledge_bases[].descriptionstringsí
config.knowledge_bases[].knowledge_base_idstring (uuid)sí
config.knowledge_bases[].tagsstring[]
config.mcpMcpAttachment[]
config.mcp[].frozenFrozenMcpServer | nullThe tools of one MCP server frozen into a published version. A call never lists the tools of the live server: it uses these schemas.
config.mcp[].server_idstring (uuid)sí
config.mcp[].toolsstring[]sí
config.mode"pipeline" | "realtime"sí (pipeline, realtime)
config.pipelinePipelineConfig | null
config.pipeline.finalize_stt_on_silenceboolean
config.pipeline.llmOpenAiLlm | AzureOpenAiLlm | AnthropicLlm | GoogleLlm | GroqLlm | CerebrasLlmsí
config.pipeline.preemptive_generationboolean
config.pipeline.preemptive_max_speech_secondsnumber
config.pipeline.preemptive_ttsboolean
config.pipeline.sttDeepgramStt | GoogleSttsí
config.pipeline.ttsOpenAiTts | ElevenLabsTts | CartesiaTts | AzureTtssí
config.pipeline.turn_detection"vad" | "stt" | "model" (vad, stt, model)
config.pronunciationPronunciationSettingsPronunciation dictionaries of the organization (`/v1/pronunciation-dictionaries`).
config.pronunciation.dictionary_idsstring (uuid)[]
config.realtimeOpenAiRealtime | AzureOpenAiRealtime | GeminiRealtime | null
config.realtime.modelstringsíOpenAiRealtime ·
config.realtime.noise_reduction"near_field" | "far_field" | nullOpenAiRealtime · (near_field, far_field)
config.realtime.providerstringsíOpenAiRealtime ·
config.realtime.transcription_languagestring | nullOpenAiRealtime ·
config.realtime.turn_detection"server_vad" | "semantic"OpenAiRealtime · (server_vad, semantic)
config.realtime.voice"alloy" | "ash" | "ballad" | "coral" | "echo" | "sage" | "shimmer" | "verse" | "marin" | "cedar"síOpenAiRealtime · (alloy, ash, ballad, coral, echo, sage, shimmer, verse, marin, cedar)
config.realtime.deploymentstringsíAzureOpenAiRealtime ·
config.realtime.modelstring | nullAzureOpenAiRealtime ·
config.realtime.noise_reduction"near_field" | "far_field" | nullAzureOpenAiRealtime · (near_field, far_field)
config.realtime.providerstringsíAzureOpenAiRealtime ·
config.realtime.transcription_languagestring | nullAzureOpenAiRealtime ·
config.realtime.turn_detection"server_vad" | "semantic"AzureOpenAiRealtime · (server_vad, semantic)
config.realtime.voice"alloy" | "ash" | "ballad" | "coral" | "echo" | "sage" | "shimmer" | "verse" | "marin" | "cedar"síAzureOpenAiRealtime · (alloy, ash, ballad, coral, echo, sage, shimmer, verse, marin, cedar)
config.realtime.modelstringsíGeminiRealtime ·
config.realtime.providerstringsíGeminiRealtime ·
config.realtime.turn_detectionstringGeminiRealtime ·
config.realtime.voice"Achernar" | "Achird" | "Algenib" | "Algieba" | "Alnilam" | "Aoede" | "Autonoe" | "Callirrhoe" | "Charon" | "Despina" | "Enceladus" | "Erinome" | "Fenrir" | "Gacrux" | "Iapetus" | "Kore" | "Laomedeia" | "Leda" | "Orus" | "Pulcherrima" | "Puck" | "Rasalgethi" | "Sadachbia" | "Sadaltager" | "Schedar" | "Sulafat" | "Umbriel" | "Vindemiatrix" | "Zephyr" | "Zubenelgenubi"síGeminiRealtime · (Achernar, Achird, Algenib, Algieba, Alnilam, Aoede, Autonoe, Callirrhoe, Charon, Despina, Enceladus, Erinome, Fenrir, Gacrux, Iapetus, Kore, Laomedeia, Leda, Orus, Pulcherrima, Puck, Rasalgethi, Sadachbia, Sadaltager, Schedar, Sulafat, Umbriel, Vindemiatrix, Zephyr, Zubenelgenubi)
config.result_specResultSpec | nullWhat to extract from a call (a JSON Schema) and the limits the extracted values must keep.
config.result_spec.guardrailsMinAmount | MaxDaysAhead[]
config.result_spec.json_schemaobjectsí
config.speech_styleSpeechStyleSettingsHow the model writes its replies. `spoken_prompt` adds the spoken style block to the instructions (pipeline, realtime and every step of a tree): text written to be heard, short turns that open fast, numbers in words. Off for a version without the field, so a published assistant sounds as before; new assistants are created with it on. See docs/speech-friendly-text.md.
config.speech_style.spoken_promptboolean
config.toolsAssistantToolsWhat the model may call during a call: API tools by reference and the built-ins.
config.tools.apiToolReference[]
config.tools.built_inBuiltInTools
config.variablesstring[]
config.voice_profileVoiceProfileSettingsThe expressive mode the assistant speaks in. `off` adds nothing to the instructions, so a version stored without the field sounds as before. `intensity` sets how marked the tone is and how often tags are used. `custom` holds the assistant's own profile; it is required when `profile` is `custom` and kept (unused) otherwise. See docs/voice-profiles.md.
config.voice_profile.customCustomVoiceProfile | nullA profile written for one assistant: free tone guidance (Spanish, added to the prompt as it is) and the expressive tags it may use, when the TTS supports them.
config.voice_profile.intensity"subtle" | "normal" | "expressive" (subtle, normal, expressive)
config.voice_profile.profile"off" | "neutral" | "empathetic" | "firm" | "warm" | "energetic" | "custom" (off, neutral, empathetic, firm, warm, energetic, custom)
namestring | null

Respuestas

  • 200 Successful Response · AssistantDetail
    NombreTipoRequeridoDescripción
    archived_atstring (date-time) | null
    configAssistantVersionsí
    config.analysisAnalysisSettings
    config.analysis.criteriaSuccessCriterion[]
    config.analysis.enabledboolean
    config.analysis.include_summary_in_eventboolean
    config.analysis.sentimentboolean
    config.analysis.summary_promptstring
    config.behaviorBehaviorSettings
    config.behavior.background_sound"none" | "office" | "call_center" (none, office, call_center)
    config.behavior.background_speechBackgroundSpeechSettings | nullSpeech that is not the caller's (a TV, people nearby). Pipeline only; off when absent. A final transcript of at most `max_words` words whose STT confidence is under `min_confidence` is dropped, unless it holds an answer ("sí", "no", a number, a date: #107): the model, the tree and the transcript never get it, and the call log gets a `speech.ignored` event (no text). `vad_activation_threshold` is Silero's (0.5 by default): higher, faint or distant speech does not count as the caller speaking. A quiet or hesitant caller can be ignored too, so it is opt-in. `primary_speaker_only` (Deepgram only) turns on Deepgram's diarization and drops every final transcript of a speaker other than the primary one (the loudest, normally the caller), whatever its length, as a `speech.background_speaker` event (no text); a background louder than the caller can make the caller the one dropped.
    config.behavior.background_volumenumber
    config.behavior.dtmfDtmfSettingsThe `send_dtmf` tool. Stub until SIP: the tool answers that tones cannot be sent yet.
    config.behavior.end_call_phrasesEndCallPhrases | nullA phrase (a case and accent insensitive substring) that ends the call when said.
    config.behavior.endpointingEndpointingSettingsWhen the caller's turn is over. Pipeline only (realtime: the provider's own VAD).
    config.behavior.guardrailsGuardrailSettingsPipeline: `never_say` is filtered out of the speech (logged as `guardrail.triggered`) and both lists are told to the model. Realtime: only the instruction to the model.
    config.behavior.interruptionsInterruptionSettingsBarge-in. Pipeline: all six. Realtime: only `allow` (the provider's server decides when the caller started speaking).
    config.behavior.max_durationMaxDurationSettings | nullA hard cap: `warning_message` (when not empty) is said 30 seconds before the end.
    config.behavior.recordingRecordingSettingsAudio recording of the call (LiveKit Egress; a campaign can override `enabled`). Off by default. `disclosure_message` is what the agent says at the start of a recorded call, before anything else (the notice some markets require); empty says nothing. See docs/call-recording.md.
    config.behavior.silenceSilenceSettings | nullA phase that is absent inherits the original flat policy.
    config.behavior.voicemailVoicemailSettings | nullOne or more answering-machine detectors (`detectors`, default the model's tool): - `llm_tool`: the conversation model gets a `voicemail_detected` tool. It answers at the end of the callee's turn, so a long greeting is heard whole first. - `llm_transcript`: a classifier reads the live transcript of the first seconds, once the callee said 3 words and again every 2 new words, and hangs up as soon as it hears a machine. It runs on Jev when the organization has TypeSafe configured, otherwise on a small model of the assistant's own provider. It stops listening after 10 seconds. - `audio`: outbound phone calls only. The platform's audio detector listens before the assistant joins (no model, no voice); it needs the detector deployed (docs/sip-amd.md) and does nothing in browser tests.
    config.first_messagestringsí
    config.first_message_mode"assistant_speaks_first" | "wait_for_user" (assistant_speaks_first, wait_for_user)
    config.flowFlow | nullA conversation tree: global instructions plus steps linked by exits. Texts may name `{{variable}}`s (plain placeholders only: no statements, no filters) that are either in the assistant version's `variables` or captured by a step that can come earlier; `check_names` enforces that, because the variables live on the version, not here.
    config.flow.advance_mode"async" | "gate" (async, gate)
    config.flow.deciderDeciderWho picks the exit. `llm` (default) is a small LLM on the assistant's own provider; `model` is a model of that provider, and the worker picks its default for the provider when it is null. `jev` uses only TypeSafe's Jev for the choice (the text of the call goes to TypeSafe). The LLM only extracts fields; `model` names that LLM. Jev errors keep the current step. `min_confidence` is the confidence a move needs (null: 0.6 for `llm`, 0.0 for `jev`) and `history_turns` the last turns the decider reads.
    config.flow.global_instructionsstring
    config.flow.lookahead_depthinteger
    config.flow.nodesobjectsí
    config.flow.startstringsí
    config.flow.transition_strategystring
    config.instructionsstring
    config.instructions_mode"prompt" | "flow" (prompt, flow)
    config.knowledge_basesKnowledgeAttachment[]
    config.knowledge_bases[].descriptionstringsí
    config.knowledge_bases[].knowledge_base_idstring (uuid)sí
    config.knowledge_bases[].tagsstring[]
    config.mcpMcpAttachment[]
    config.mcp[].frozenFrozenMcpServer | nullThe tools of one MCP server frozen into a published version. A call never lists the tools of the live server: it uses these schemas.
    config.mcp[].server_idstring (uuid)sí
    config.mcp[].toolsstring[]sí
    config.mode"pipeline" | "realtime"sí (pipeline, realtime)
    config.pipelinePipelineConfig | null
    config.pipeline.finalize_stt_on_silenceboolean
    config.pipeline.llmOpenAiLlm | AzureOpenAiLlm | AnthropicLlm | GoogleLlm | GroqLlm | CerebrasLlmsí
    config.pipeline.preemptive_generationboolean
    config.pipeline.preemptive_max_speech_secondsnumber
    config.pipeline.preemptive_ttsboolean
    config.pipeline.sttDeepgramStt | GoogleSttsí
    config.pipeline.ttsOpenAiTts | ElevenLabsTts | CartesiaTts | AzureTtssí
    config.pipeline.turn_detection"vad" | "stt" | "model" (vad, stt, model)
    config.pronunciationPronunciationSettingsPronunciation dictionaries of the organization (`/v1/pronunciation-dictionaries`).
    config.pronunciation.dictionary_idsstring (uuid)[]
    config.realtimeOpenAiRealtime | AzureOpenAiRealtime | GeminiRealtime | null
    config.realtime.modelstringsíOpenAiRealtime ·
    config.realtime.noise_reduction"near_field" | "far_field" | nullOpenAiRealtime · (near_field, far_field)
    config.realtime.providerstringsíOpenAiRealtime ·
    config.realtime.transcription_languagestring | nullOpenAiRealtime ·
    config.realtime.turn_detection"server_vad" | "semantic"OpenAiRealtime · (server_vad, semantic)
    config.realtime.voice"alloy" | "ash" | "ballad" | "coral" | "echo" | "sage" | "shimmer" | "verse" | "marin" | "cedar"síOpenAiRealtime · (alloy, ash, ballad, coral, echo, sage, shimmer, verse, marin, cedar)
    config.realtime.deploymentstringsíAzureOpenAiRealtime ·
    config.realtime.modelstring | nullAzureOpenAiRealtime ·
    config.realtime.noise_reduction"near_field" | "far_field" | nullAzureOpenAiRealtime · (near_field, far_field)
    config.realtime.providerstringsíAzureOpenAiRealtime ·
    config.realtime.transcription_languagestring | nullAzureOpenAiRealtime ·
    config.realtime.turn_detection"server_vad" | "semantic"AzureOpenAiRealtime · (server_vad, semantic)
    config.realtime.voice"alloy" | "ash" | "ballad" | "coral" | "echo" | "sage" | "shimmer" | "verse" | "marin" | "cedar"síAzureOpenAiRealtime · (alloy, ash, ballad, coral, echo, sage, shimmer, verse, marin, cedar)
    config.realtime.modelstringsíGeminiRealtime ·
    config.realtime.providerstringsíGeminiRealtime ·
    config.realtime.turn_detectionstringGeminiRealtime ·
    config.realtime.voice"Achernar" | "Achird" | "Algenib" | "Algieba" | "Alnilam" | "Aoede" | "Autonoe" | "Callirrhoe" | "Charon" | "Despina" | "Enceladus" | "Erinome" | "Fenrir" | "Gacrux" | "Iapetus" | "Kore" | "Laomedeia" | "Leda" | "Orus" | "Pulcherrima" | "Puck" | "Rasalgethi" | "Sadachbia" | "Sadaltager" | "Schedar" | "Sulafat" | "Umbriel" | "Vindemiatrix" | "Zephyr" | "Zubenelgenubi"síGeminiRealtime · (Achernar, Achird, Algenib, Algieba, Alnilam, Aoede, Autonoe, Callirrhoe, Charon, Despina, Enceladus, Erinome, Fenrir, Gacrux, Iapetus, Kore, Laomedeia, Leda, Orus, Pulcherrima, Puck, Rasalgethi, Sadachbia, Sadaltager, Schedar, Sulafat, Umbriel, Vindemiatrix, Zephyr, Zubenelgenubi)
    config.result_specResultSpec | nullWhat to extract from a call (a JSON Schema) and the limits the extracted values must keep.
    config.result_spec.guardrailsMinAmount | MaxDaysAhead[]
    config.result_spec.json_schemaobjectsí
    config.speech_styleSpeechStyleSettingsHow the model writes its replies. `spoken_prompt` adds the spoken style block to the instructions (pipeline, realtime and every step of a tree): text written to be heard, short turns that open fast, numbers in words. Off for a version without the field, so a published assistant sounds as before; new assistants are created with it on. See docs/speech-friendly-text.md.
    config.speech_style.spoken_promptboolean
    config.toolsAssistantToolsWhat the model may call during a call: API tools by reference and the built-ins.
    config.tools.apiToolReference[]
    config.tools.built_inBuiltInTools
    config.variablesstring[]
    config.voice_profileVoiceProfileSettingsThe expressive mode the assistant speaks in. `off` adds nothing to the instructions, so a version stored without the field sounds as before. `intensity` sets how marked the tone is and how often tags are used. `custom` holds the assistant's own profile; it is required when `profile` is `custom` and kept (unused) otherwise. See docs/voice-profiles.md.
    config.voice_profile.customCustomVoiceProfile | nullA profile written for one assistant: free tone guidance (Spanish, added to the prompt as it is) and the expressive tags it may use, when the TTS supports them.
    config.voice_profile.intensity"subtle" | "normal" | "expressive" (subtle, normal, expressive)
    config.voice_profile.profile"off" | "neutral" | "empathetic" | "firm" | "warm" | "energetic" | "custom" (off, neutral, empathetic, firm, warm, energetic, custom)
    idstring (uuid)sí
    latest_versionintegersí
    modestringsí (pipeline, realtime)
    namestringsí
    published_version_idstring (uuid) | nullsí
    statusstringsí (draft, published)
    updated_atstring (date-time)sí
  • 401 Missing, expired or invalid token. · ErrorResponse
  • 403 Role below the one this operation needs. · ErrorResponse
  • 404 No such assistant in the caller's tenant. · ErrorResponse
  • 409 Code `assistant_archived`. · ErrorResponse
  • 503 Assistants are not available. · ErrorResponse
  • default Default Response · ErrorResponse

POST /v1/assistants/{assistant_id}/duplicate

Duplicate an assistant as a new draft

Solo para usuarios con sesión iniciada (sin API key) · Rol: editor o superior

An `editor` or above copies an assistant of the tenant into a new draft with the given `name` (1 to 120 characters after trimming). The copy has the same `mode` and the current content of the source, including changes that are not published yet; it is never published (`latest_version` `0`, `status` `draft`) and does not share anything else with the source. 401 when the token is missing, expired or invalid; 403 when the caller is a `viewer`; 404 when the assistant does not exist in the caller's tenant; 422 when the id or the body is invalid; 503 when assistants are not available.

Parámetros

NombreEnTipoRequeridoDescripción
assistant_idpathstring (uuid)sí

Cuerpo de la solicitud

NombreTipoRequeridoDescripción
namestringsí

Respuestas

  • 201 Successful Response · AssistantSummary
    NombreTipoRequeridoDescripción
    archived_atstring (date-time) | null
    idstring (uuid)sí
    latest_versionintegersí
    modestringsí (pipeline, realtime)
    namestringsí
    statusstringsí (draft, published)
    updated_atstring (date-time)sí
  • 401 Missing, expired or invalid token. · ErrorResponse
  • 403 Role below the one this operation needs. · ErrorResponse
  • 404 No such assistant in the caller's tenant. · ErrorResponse
  • 503 Assistants are not available. · ErrorResponse
  • default Default Response · ErrorResponse

POST /v1/assistants/{assistant_id}/publish

Publish the draft as a new version

Solo para usuarios con sesión iniciada (sin API key) · Rol: editor o superior

An `editor` or above snapshots the current draft into a new immutable version: `latest_version` goes up by one, `published_version_id` is the new version and `status` becomes `published`. The agent worker resolves that version by its id and a published version never changes. The change is written to the audit log as `assistant.publish` with the version numbers, never the content. The version records the author and the optional `change_note` (up to 500 characters after trimming whitespace). 401 when the token is missing, expired or invalid; 403 when the caller is a `viewer`; 404 when the assistant does not exist in the caller's tenant; 409 when the draft is the published version, so there is nothing new to publish, or with a code: `assistant_archived` (the assistant is archived), `tests_failing` (a test case gating the publication fails or has not run on this draft), `mcp_tool_changed` (an MCP tool changed or is no longer allowed since it was approved), `mcp_server_unreachable` (an MCP server could not be checked) or `draft_changed` (the draft changed while publishing: try again); 422 when the id or body is invalid; 503 when assistants are not available.

Parámetros

NombreEnTipoRequeridoDescripción
assistant_idpathstring (uuid)sí

Cuerpo de la solicitud

NombreTipoRequeridoDescripción
change_notestring | null

Respuestas

  • 200 Successful Response · AssistantDetail
    NombreTipoRequeridoDescripción
    archived_atstring (date-time) | null
    configAssistantVersionsí
    config.analysisAnalysisSettings
    config.analysis.criteriaSuccessCriterion[]
    config.analysis.enabledboolean
    config.analysis.include_summary_in_eventboolean
    config.analysis.sentimentboolean
    config.analysis.summary_promptstring
    config.behaviorBehaviorSettings
    config.behavior.background_sound"none" | "office" | "call_center" (none, office, call_center)
    config.behavior.background_speechBackgroundSpeechSettings | nullSpeech that is not the caller's (a TV, people nearby). Pipeline only; off when absent. A final transcript of at most `max_words` words whose STT confidence is under `min_confidence` is dropped, unless it holds an answer ("sí", "no", a number, a date: #107): the model, the tree and the transcript never get it, and the call log gets a `speech.ignored` event (no text). `vad_activation_threshold` is Silero's (0.5 by default): higher, faint or distant speech does not count as the caller speaking. A quiet or hesitant caller can be ignored too, so it is opt-in. `primary_speaker_only` (Deepgram only) turns on Deepgram's diarization and drops every final transcript of a speaker other than the primary one (the loudest, normally the caller), whatever its length, as a `speech.background_speaker` event (no text); a background louder than the caller can make the caller the one dropped.
    config.behavior.background_volumenumber
    config.behavior.dtmfDtmfSettingsThe `send_dtmf` tool. Stub until SIP: the tool answers that tones cannot be sent yet.
    config.behavior.end_call_phrasesEndCallPhrases | nullA phrase (a case and accent insensitive substring) that ends the call when said.
    config.behavior.endpointingEndpointingSettingsWhen the caller's turn is over. Pipeline only (realtime: the provider's own VAD).
    config.behavior.guardrailsGuardrailSettingsPipeline: `never_say` is filtered out of the speech (logged as `guardrail.triggered`) and both lists are told to the model. Realtime: only the instruction to the model.
    config.behavior.interruptionsInterruptionSettingsBarge-in. Pipeline: all six. Realtime: only `allow` (the provider's server decides when the caller started speaking).
    config.behavior.max_durationMaxDurationSettings | nullA hard cap: `warning_message` (when not empty) is said 30 seconds before the end.
    config.behavior.recordingRecordingSettingsAudio recording of the call (LiveKit Egress; a campaign can override `enabled`). Off by default. `disclosure_message` is what the agent says at the start of a recorded call, before anything else (the notice some markets require); empty says nothing. See docs/call-recording.md.
    config.behavior.silenceSilenceSettings | nullA phase that is absent inherits the original flat policy.
    config.behavior.voicemailVoicemailSettings | nullOne or more answering-machine detectors (`detectors`, default the model's tool): - `llm_tool`: the conversation model gets a `voicemail_detected` tool. It answers at the end of the callee's turn, so a long greeting is heard whole first. - `llm_transcript`: a classifier reads the live transcript of the first seconds, once the callee said 3 words and again every 2 new words, and hangs up as soon as it hears a machine. It runs on Jev when the organization has TypeSafe configured, otherwise on a small model of the assistant's own provider. It stops listening after 10 seconds. - `audio`: outbound phone calls only. The platform's audio detector listens before the assistant joins (no model, no voice); it needs the detector deployed (docs/sip-amd.md) and does nothing in browser tests.
    config.first_messagestringsí
    config.first_message_mode"assistant_speaks_first" | "wait_for_user" (assistant_speaks_first, wait_for_user)
    config.flowFlow | nullA conversation tree: global instructions plus steps linked by exits. Texts may name `{{variable}}`s (plain placeholders only: no statements, no filters) that are either in the assistant version's `variables` or captured by a step that can come earlier; `check_names` enforces that, because the variables live on the version, not here.
    config.flow.advance_mode"async" | "gate" (async, gate)
    config.flow.deciderDeciderWho picks the exit. `llm` (default) is a small LLM on the assistant's own provider; `model` is a model of that provider, and the worker picks its default for the provider when it is null. `jev` uses only TypeSafe's Jev for the choice (the text of the call goes to TypeSafe). The LLM only extracts fields; `model` names that LLM. Jev errors keep the current step. `min_confidence` is the confidence a move needs (null: 0.6 for `llm`, 0.0 for `jev`) and `history_turns` the last turns the decider reads.
    config.flow.global_instructionsstring
    config.flow.lookahead_depthinteger
    config.flow.nodesobjectsí
    config.flow.startstringsí
    config.flow.transition_strategystring
    config.instructionsstring
    config.instructions_mode"prompt" | "flow" (prompt, flow)
    config.knowledge_basesKnowledgeAttachment[]
    config.knowledge_bases[].descriptionstringsí
    config.knowledge_bases[].knowledge_base_idstring (uuid)sí
    config.knowledge_bases[].tagsstring[]
    config.mcpMcpAttachment[]
    config.mcp[].frozenFrozenMcpServer | nullThe tools of one MCP server frozen into a published version. A call never lists the tools of the live server: it uses these schemas.
    config.mcp[].server_idstring (uuid)sí
    config.mcp[].toolsstring[]sí
    config.mode"pipeline" | "realtime"sí (pipeline, realtime)
    config.pipelinePipelineConfig | null
    config.pipeline.finalize_stt_on_silenceboolean
    config.pipeline.llmOpenAiLlm | AzureOpenAiLlm | AnthropicLlm | GoogleLlm | GroqLlm | CerebrasLlmsí
    config.pipeline.preemptive_generationboolean
    config.pipeline.preemptive_max_speech_secondsnumber
    config.pipeline.preemptive_ttsboolean
    config.pipeline.sttDeepgramStt | GoogleSttsí
    config.pipeline.ttsOpenAiTts | ElevenLabsTts | CartesiaTts | AzureTtssí
    config.pipeline.turn_detection"vad" | "stt" | "model" (vad, stt, model)
    config.pronunciationPronunciationSettingsPronunciation dictionaries of the organization (`/v1/pronunciation-dictionaries`).
    config.pronunciation.dictionary_idsstring (uuid)[]
    config.realtimeOpenAiRealtime | AzureOpenAiRealtime | GeminiRealtime | null
    config.realtime.modelstringsíOpenAiRealtime ·
    config.realtime.noise_reduction"near_field" | "far_field" | nullOpenAiRealtime · (near_field, far_field)
    config.realtime.providerstringsíOpenAiRealtime ·
    config.realtime.transcription_languagestring | nullOpenAiRealtime ·
    config.realtime.turn_detection"server_vad" | "semantic"OpenAiRealtime · (server_vad, semantic)
    config.realtime.voice"alloy" | "ash" | "ballad" | "coral" | "echo" | "sage" | "shimmer" | "verse" | "marin" | "cedar"síOpenAiRealtime · (alloy, ash, ballad, coral, echo, sage, shimmer, verse, marin, cedar)
    config.realtime.deploymentstringsíAzureOpenAiRealtime ·
    config.realtime.modelstring | nullAzureOpenAiRealtime ·
    config.realtime.noise_reduction"near_field" | "far_field" | nullAzureOpenAiRealtime · (near_field, far_field)
    config.realtime.providerstringsíAzureOpenAiRealtime ·
    config.realtime.transcription_languagestring | nullAzureOpenAiRealtime ·
    config.realtime.turn_detection"server_vad" | "semantic"AzureOpenAiRealtime · (server_vad, semantic)
    config.realtime.voice"alloy" | "ash" | "ballad" | "coral" | "echo" | "sage" | "shimmer" | "verse" | "marin" | "cedar"síAzureOpenAiRealtime · (alloy, ash, ballad, coral, echo, sage, shimmer, verse, marin, cedar)
    config.realtime.modelstringsíGeminiRealtime ·
    config.realtime.providerstringsíGeminiRealtime ·
    config.realtime.turn_detectionstringGeminiRealtime ·
    config.realtime.voice"Achernar" | "Achird" | "Algenib" | "Algieba" | "Alnilam" | "Aoede" | "Autonoe" | "Callirrhoe" | "Charon" | "Despina" | "Enceladus" | "Erinome" | "Fenrir" | "Gacrux" | "Iapetus" | "Kore" | "Laomedeia" | "Leda" | "Orus" | "Pulcherrima" | "Puck" | "Rasalgethi" | "Sadachbia" | "Sadaltager" | "Schedar" | "Sulafat" | "Umbriel" | "Vindemiatrix" | "Zephyr" | "Zubenelgenubi"síGeminiRealtime · (Achernar, Achird, Algenib, Algieba, Alnilam, Aoede, Autonoe, Callirrhoe, Charon, Despina, Enceladus, Erinome, Fenrir, Gacrux, Iapetus, Kore, Laomedeia, Leda, Orus, Pulcherrima, Puck, Rasalgethi, Sadachbia, Sadaltager, Schedar, Sulafat, Umbriel, Vindemiatrix, Zephyr, Zubenelgenubi)
    config.result_specResultSpec | nullWhat to extract from a call (a JSON Schema) and the limits the extracted values must keep.
    config.result_spec.guardrailsMinAmount | MaxDaysAhead[]
    config.result_spec.json_schemaobjectsí
    config.speech_styleSpeechStyleSettingsHow the model writes its replies. `spoken_prompt` adds the spoken style block to the instructions (pipeline, realtime and every step of a tree): text written to be heard, short turns that open fast, numbers in words. Off for a version without the field, so a published assistant sounds as before; new assistants are created with it on. See docs/speech-friendly-text.md.
    config.speech_style.spoken_promptboolean
    config.toolsAssistantToolsWhat the model may call during a call: API tools by reference and the built-ins.
    config.tools.apiToolReference[]
    config.tools.built_inBuiltInTools
    config.variablesstring[]
    config.voice_profileVoiceProfileSettingsThe expressive mode the assistant speaks in. `off` adds nothing to the instructions, so a version stored without the field sounds as before. `intensity` sets how marked the tone is and how often tags are used. `custom` holds the assistant's own profile; it is required when `profile` is `custom` and kept (unused) otherwise. See docs/voice-profiles.md.
    config.voice_profile.customCustomVoiceProfile | nullA profile written for one assistant: free tone guidance (Spanish, added to the prompt as it is) and the expressive tags it may use, when the TTS supports them.
    config.voice_profile.intensity"subtle" | "normal" | "expressive" (subtle, normal, expressive)
    config.voice_profile.profile"off" | "neutral" | "empathetic" | "firm" | "warm" | "energetic" | "custom" (off, neutral, empathetic, firm, warm, energetic, custom)
    idstring (uuid)sí
    latest_versionintegersí
    modestringsí (pipeline, realtime)
    namestringsí
    published_version_idstring (uuid) | nullsí
    statusstringsí (draft, published)
    updated_atstring (date-time)sí
  • 401 Missing, expired or invalid token. · ErrorResponse
  • 403 Role below the one this operation needs. · ErrorResponse
  • 404 No such assistant in the caller's tenant. · ErrorResponse
  • 409 Nothing new to publish, or a code of the description. · ErrorResponse
  • 503 Assistants are not available. · ErrorResponse
  • default Default Response · ErrorResponse

POST /v1/assistants/{assistant_id}/restore

Bring an archived assistant back

Solo para usuarios con sesión iniciada (sin API key) · Rol: editor o superior

An `editor` or above makes an archived assistant appear again in the list and the pickers, as it was. Restoring an assistant that is not archived answers 200 and changes nothing. Written to the audit log as `assistant.restore`. 401 when the token is missing, expired or invalid; 403 when the caller is a `viewer`; 404 when the assistant does not exist in the caller's tenant; 503 when assistants are not available.

Parámetros

NombreEnTipoRequeridoDescripción
assistant_idpathstring (uuid)sí

Respuestas

  • 200 Successful Response · AssistantSummary
    NombreTipoRequeridoDescripción
    archived_atstring (date-time) | null
    idstring (uuid)sí
    latest_versionintegersí
    modestringsí (pipeline, realtime)
    namestringsí
    statusstringsí (draft, published)
    updated_atstring (date-time)sí
  • 401 Missing, expired or invalid token. · ErrorResponse
  • 403 Role below the one this operation needs. · ErrorResponse
  • 404 No such assistant in the caller's tenant. · ErrorResponse
  • 503 Assistants are not available. · ErrorResponse
  • default Default Response · ErrorResponse

POST /v1/assistants/{assistant_id}/talk-sessions

Start a test conversation with an assistant in the browser

Solo para usuarios con sesión iniciada (sin API key) · Rol: editor o superior

An `editor` or above opens a test session: the control plane creates a LiveKit room, sends the agent worker to it and returns what the browser needs to join: `livekit_url` (the public wss URL), a `token` (a LiveKit JWT for that room only: it can publish the microphone and subscribe, and expires after `expires_in` seconds, 900), `room` and `session_id`. By default the agent runs the published version of the assistant; `use_draft` `true` runs the current draft instead, which is sent to the worker with the session and never becomes a version. An assistant that was never published is `409` unless `use_draft` is `true`. `variables` are the test values of the `{{name}}` the prompts use (up to 50, each `string`, `money`, `date` or `phone` as in a call dispatch); a variable the prompts need and the session does not give ends the session with an error event, as a refused call. The call result of the session is reported like any call, with `source` `talk`. Each organization may open a bounded number of sessions per minute; above it the answer is `429` with `Retry-After`. The session is audited as `talk_session.create` with ids only, never variable values. 401 when the token is missing, expired or invalid; 403 when the caller is a `viewer`; 404 when the assistant does not exist in the caller's tenant; 409 when there is no published version and `use_draft` is not set; 413 when the draft is too large to send; 422 when the body is invalid; 503 when Talk is not configured or the media server cannot be reached.

Parámetros

NombreEnTipoRequeridoDescripción
assistant_idpathstring (uuid)sí

Cuerpo de la solicitud

NombreTipoRequeridoDescripción
use_draftboolean
variablesobject

Respuestas

  • 201 Successful Response · TalkSessionResponse
    NombreTipoRequeridoDescripción
    expires_inintegersí
    livekit_urlstringsí
    roomstringsí
    session_idstring (uuid)sí
    tokenstringsí
  • 401 Missing, expired or invalid token. · ErrorResponse
  • 403 The caller is a `viewer`. · ErrorResponse
  • 404 No such assistant in the caller's tenant. · ErrorResponse
  • 409 Never published and `use_draft` is false. · ErrorResponse
  • 413 The draft is too large to send. · ErrorResponse
  • 429 Too many sessions; retry later. · ErrorResponse
  • 503 Talk is unavailable, or no voice worker starts within the assignment deadline (code: voice_capacity_unavailable). · ErrorResponse
  • default Default Response · ErrorResponse

POST /v1/assistants/{assistant_id}/test-calls

Call a phone to try an assistant

Solo para usuarios con sesión iniciada (sin API key) · Rol: editor o superior

An `editor` or above makes the assistant call `phone_number` (E.164) for real, to try it before a campaign. The call goes out through the platform's outbound trunk showing `caller_id_id` (one of the organization's caller IDs; the oldest when omitted). With telephony-managed ANI, caller-ID selection is ignored and telephony selects the ANI. Like Talk, it runs the published version, or the current draft when `use_draft` is `true`, and `variables` are the test values of the `{{name}}` the prompts use. The answer is `202` with the `call_id` and `status` `dialing`: the phone is dialed in the background and the agent joins once it is answered. Read the progress with `GET /v1/assistants/{assistant_id}/test-calls/{call_id}`. The call is recorded like any call (channel `sip`, direction `outbound`, `test` true in the call log) and its usage is metered, but it belongs to no campaign and is left out of the metrics. A number on the organization's do-not-call list is refused. Each organization, and each number, may place a bounded number per minute; above it the answer is `429` with `Retry-After`. The call is audited as `test_call.create` with the last four digits, never the number. 401 when the token is missing, expired or invalid; 403 when the caller is a `viewer`; `outbound_trunk_id` optionally selects a usable assigned organization trunk; otherwise the organization default is used. Foreign or unusable selections return 422 `invalid_outbound_trunk`. 404 when the assistant does not exist in the caller's tenant; 409 with code `not_published` (never published and `use_draft` is not set), `no_outbound_trunk`, `no_caller_id` or `number_do_not_call`; 413 when the draft is too large to send; 422 when the body is invalid or the code is `caller_id_not_found`; 503 `call_test_unavailable`.

Parámetros

NombreEnTipoRequeridoDescripción
assistant_idpathstring (uuid)sí

Cuerpo de la solicitud

NombreTipoRequeridoDescripción
caller_id_idstring (uuid) | null
outbound_trunk_idstring (uuid) | null
phone_numberstringsí
use_draftboolean
variablesobject

Respuestas

  • 202 Successful Response · CallTestResponse
    NombreTipoRequeridoDescripción
    assistant_versioninteger | null
    assistant_version_idstring (uuid) | nullThe version selected before dialing, when known.
    call_idstring (uuid)sí
    failure_reasonstring | nullSet when `status` is `failed`: `no_answer`, `busy`, `rejected`, `unavailable` (carrier or media server) or `timeout`. (no_answer, busy, rejected, unavailable, timeout)
    started_atstring (date-time)sí
    statusstringsí (dialing, in_progress, completed, failed)
  • 401 Missing, expired or invalid token. · ErrorResponse
  • 403 The caller is a `viewer`. · ErrorResponse
  • 404 No such assistant or test call. · ErrorResponse
  • 409 `not_published`, `no_outbound_trunk`, `no_caller_id` or `number_do_not_call`. · ErrorResponse
  • 413 The draft is too large to send. · ErrorResponse
  • 429 Too many calls; retry later. · ErrorResponse
  • 503 Code `call_test_unavailable`. · ErrorResponse
  • default Default Response · ErrorResponse

GET /v1/assistants/{assistant_id}/test-calls/{call_id}

Progress of a test call

Solo para usuarios con sesión iniciada (sin API key) · Rol: editor o superior

An `editor` or above. `status` is `dialing` while the phone rings, `in_progress` once it was answered, `completed` when the call ended and `failed` with a `failure_reason` when nobody took it (`no_answer`, `busy`, `rejected`, `unavailable`, `timeout`). The detail of the conversation, once it exists, is `GET /v1/calls/{call_id}`. 401 when the token is missing, expired or invalid; 403 when the caller is a `viewer`; 404 when the test call does not exist for that assistant in the caller's tenant; 503 `call_test_unavailable`.

Parámetros

NombreEnTipoRequeridoDescripción
assistant_idpathstring (uuid)sí
call_idpathstring (uuid)sí

Respuestas

  • 200 Successful Response · CallTestResponse
    NombreTipoRequeridoDescripción
    assistant_versioninteger | null
    assistant_version_idstring (uuid) | nullThe version selected before dialing, when known.
    call_idstring (uuid)sí
    failure_reasonstring | nullSet when `status` is `failed`: `no_answer`, `busy`, `rejected`, `unavailable` (carrier or media server) or `timeout`. (no_answer, busy, rejected, unavailable, timeout)
    started_atstring (date-time)sí
    statusstringsí (dialing, in_progress, completed, failed)
  • 401 Missing, expired or invalid token. · ErrorResponse
  • 403 The caller is a `viewer`. · ErrorResponse
  • 404 No such assistant or test call. · ErrorResponse
  • 503 Code `call_test_unavailable`. · ErrorResponse
  • default Default Response · ErrorResponse

GET /v1/assistants/{assistant_id}/versions

List Assistant Versions

API key con assistants:read · Rol: viewer o superior

List numbered published versions, newest first, including for an archived assistant.

Parámetros

NombreEnTipoRequeridoDescripción
assistant_idpathstring (uuid)sí

Respuestas

  • 200 Successful Response · AssistantVersionList
    NombreTipoRequeridoDescripción
    itemsAssistantVersionSummary[]sí
    items[].change_notestring | nullsí
    items[].created_atstring (date-time)sí
    items[].created_bystring | nullsí
    items[].idstring (uuid)sí
    items[].numberintegersí
  • 401 Missing, expired or invalid token. · ErrorResponse
  • 403 The API key lacks assistants:read. · ErrorResponse
  • 404 No such assistant or version in this tenant. · ErrorResponse
  • 429 The API key went over its requests per minute. · ErrorResponse
  • 503 Assistants are not available. · ErrorResponse
  • default Default Response · ErrorResponse

GET /v1/assistants/{assistant_id}/versions/{version_id}

Get Assistant Version

API key con assistants:read · Rol: viewer o superior

Read the immutable snapshot of a published version of this assistant.

Parámetros

NombreEnTipoRequeridoDescripción
assistant_idpathstring (uuid)sí
version_idpathstring (uuid)sí

Respuestas

  • 200 Successful Response · AssistantVersionDetail
    NombreTipoRequeridoDescripción
    change_notestring | nullsí
    configAssistantVersionsí
    config.analysisAnalysisSettings
    config.analysis.criteriaSuccessCriterion[]
    config.analysis.enabledboolean
    config.analysis.include_summary_in_eventboolean
    config.analysis.sentimentboolean
    config.analysis.summary_promptstring
    config.behaviorBehaviorSettings
    config.behavior.background_sound"none" | "office" | "call_center" (none, office, call_center)
    config.behavior.background_speechBackgroundSpeechSettings | nullSpeech that is not the caller's (a TV, people nearby). Pipeline only; off when absent. A final transcript of at most `max_words` words whose STT confidence is under `min_confidence` is dropped, unless it holds an answer ("sí", "no", a number, a date: #107): the model, the tree and the transcript never get it, and the call log gets a `speech.ignored` event (no text). `vad_activation_threshold` is Silero's (0.5 by default): higher, faint or distant speech does not count as the caller speaking. A quiet or hesitant caller can be ignored too, so it is opt-in. `primary_speaker_only` (Deepgram only) turns on Deepgram's diarization and drops every final transcript of a speaker other than the primary one (the loudest, normally the caller), whatever its length, as a `speech.background_speaker` event (no text); a background louder than the caller can make the caller the one dropped.
    config.behavior.background_volumenumber
    config.behavior.dtmfDtmfSettingsThe `send_dtmf` tool. Stub until SIP: the tool answers that tones cannot be sent yet.
    config.behavior.end_call_phrasesEndCallPhrases | nullA phrase (a case and accent insensitive substring) that ends the call when said.
    config.behavior.endpointingEndpointingSettingsWhen the caller's turn is over. Pipeline only (realtime: the provider's own VAD).
    config.behavior.guardrailsGuardrailSettingsPipeline: `never_say` is filtered out of the speech (logged as `guardrail.triggered`) and both lists are told to the model. Realtime: only the instruction to the model.
    config.behavior.interruptionsInterruptionSettingsBarge-in. Pipeline: all six. Realtime: only `allow` (the provider's server decides when the caller started speaking).
    config.behavior.max_durationMaxDurationSettings | nullA hard cap: `warning_message` (when not empty) is said 30 seconds before the end.
    config.behavior.recordingRecordingSettingsAudio recording of the call (LiveKit Egress; a campaign can override `enabled`). Off by default. `disclosure_message` is what the agent says at the start of a recorded call, before anything else (the notice some markets require); empty says nothing. See docs/call-recording.md.
    config.behavior.silenceSilenceSettings | nullA phase that is absent inherits the original flat policy.
    config.behavior.voicemailVoicemailSettings | nullOne or more answering-machine detectors (`detectors`, default the model's tool): - `llm_tool`: the conversation model gets a `voicemail_detected` tool. It answers at the end of the callee's turn, so a long greeting is heard whole first. - `llm_transcript`: a classifier reads the live transcript of the first seconds, once the callee said 3 words and again every 2 new words, and hangs up as soon as it hears a machine. It runs on Jev when the organization has TypeSafe configured, otherwise on a small model of the assistant's own provider. It stops listening after 10 seconds. - `audio`: outbound phone calls only. The platform's audio detector listens before the assistant joins (no model, no voice); it needs the detector deployed (docs/sip-amd.md) and does nothing in browser tests.
    config.first_messagestringsí
    config.first_message_mode"assistant_speaks_first" | "wait_for_user" (assistant_speaks_first, wait_for_user)
    config.flowFlow | nullA conversation tree: global instructions plus steps linked by exits. Texts may name `{{variable}}`s (plain placeholders only: no statements, no filters) that are either in the assistant version's `variables` or captured by a step that can come earlier; `check_names` enforces that, because the variables live on the version, not here.
    config.flow.advance_mode"async" | "gate" (async, gate)
    config.flow.deciderDeciderWho picks the exit. `llm` (default) is a small LLM on the assistant's own provider; `model` is a model of that provider, and the worker picks its default for the provider when it is null. `jev` uses only TypeSafe's Jev for the choice (the text of the call goes to TypeSafe). The LLM only extracts fields; `model` names that LLM. Jev errors keep the current step. `min_confidence` is the confidence a move needs (null: 0.6 for `llm`, 0.0 for `jev`) and `history_turns` the last turns the decider reads.
    config.flow.global_instructionsstring
    config.flow.lookahead_depthinteger
    config.flow.nodesobjectsí
    config.flow.startstringsí
    config.flow.transition_strategystring
    config.instructionsstring
    config.instructions_mode"prompt" | "flow" (prompt, flow)
    config.knowledge_basesKnowledgeAttachment[]
    config.knowledge_bases[].descriptionstringsí
    config.knowledge_bases[].knowledge_base_idstring (uuid)sí
    config.knowledge_bases[].tagsstring[]
    config.mcpMcpAttachment[]
    config.mcp[].frozenFrozenMcpServer | nullThe tools of one MCP server frozen into a published version. A call never lists the tools of the live server: it uses these schemas.
    config.mcp[].server_idstring (uuid)sí
    config.mcp[].toolsstring[]sí
    config.mode"pipeline" | "realtime"sí (pipeline, realtime)
    config.pipelinePipelineConfig | null
    config.pipeline.finalize_stt_on_silenceboolean
    config.pipeline.llmOpenAiLlm | AzureOpenAiLlm | AnthropicLlm | GoogleLlm | GroqLlm | CerebrasLlmsí
    config.pipeline.preemptive_generationboolean
    config.pipeline.preemptive_max_speech_secondsnumber
    config.pipeline.preemptive_ttsboolean
    config.pipeline.sttDeepgramStt | GoogleSttsí
    config.pipeline.ttsOpenAiTts | ElevenLabsTts | CartesiaTts | AzureTtssí
    config.pipeline.turn_detection"vad" | "stt" | "model" (vad, stt, model)
    config.pronunciationPronunciationSettingsPronunciation dictionaries of the organization (`/v1/pronunciation-dictionaries`).
    config.pronunciation.dictionary_idsstring (uuid)[]
    config.realtimeOpenAiRealtime | AzureOpenAiRealtime | GeminiRealtime | null
    config.realtime.modelstringsíOpenAiRealtime ·
    config.realtime.noise_reduction"near_field" | "far_field" | nullOpenAiRealtime · (near_field, far_field)
    config.realtime.providerstringsíOpenAiRealtime ·
    config.realtime.transcription_languagestring | nullOpenAiRealtime ·
    config.realtime.turn_detection"server_vad" | "semantic"OpenAiRealtime · (server_vad, semantic)
    config.realtime.voice"alloy" | "ash" | "ballad" | "coral" | "echo" | "sage" | "shimmer" | "verse" | "marin" | "cedar"síOpenAiRealtime · (alloy, ash, ballad, coral, echo, sage, shimmer, verse, marin, cedar)
    config.realtime.deploymentstringsíAzureOpenAiRealtime ·
    config.realtime.modelstring | nullAzureOpenAiRealtime ·
    config.realtime.noise_reduction"near_field" | "far_field" | nullAzureOpenAiRealtime · (near_field, far_field)
    config.realtime.providerstringsíAzureOpenAiRealtime ·
    config.realtime.transcription_languagestring | nullAzureOpenAiRealtime ·
    config.realtime.turn_detection"server_vad" | "semantic"AzureOpenAiRealtime · (server_vad, semantic)
    config.realtime.voice"alloy" | "ash" | "ballad" | "coral" | "echo" | "sage" | "shimmer" | "verse" | "marin" | "cedar"síAzureOpenAiRealtime · (alloy, ash, ballad, coral, echo, sage, shimmer, verse, marin, cedar)
    config.realtime.modelstringsíGeminiRealtime ·
    config.realtime.providerstringsíGeminiRealtime ·
    config.realtime.turn_detectionstringGeminiRealtime ·
    config.realtime.voice"Achernar" | "Achird" | "Algenib" | "Algieba" | "Alnilam" | "Aoede" | "Autonoe" | "Callirrhoe" | "Charon" | "Despina" | "Enceladus" | "Erinome" | "Fenrir" | "Gacrux" | "Iapetus" | "Kore" | "Laomedeia" | "Leda" | "Orus" | "Pulcherrima" | "Puck" | "Rasalgethi" | "Sadachbia" | "Sadaltager" | "Schedar" | "Sulafat" | "Umbriel" | "Vindemiatrix" | "Zephyr" | "Zubenelgenubi"síGeminiRealtime · (Achernar, Achird, Algenib, Algieba, Alnilam, Aoede, Autonoe, Callirrhoe, Charon, Despina, Enceladus, Erinome, Fenrir, Gacrux, Iapetus, Kore, Laomedeia, Leda, Orus, Pulcherrima, Puck, Rasalgethi, Sadachbia, Sadaltager, Schedar, Sulafat, Umbriel, Vindemiatrix, Zephyr, Zubenelgenubi)
    config.result_specResultSpec | nullWhat to extract from a call (a JSON Schema) and the limits the extracted values must keep.
    config.result_spec.guardrailsMinAmount | MaxDaysAhead[]
    config.result_spec.json_schemaobjectsí
    config.speech_styleSpeechStyleSettingsHow the model writes its replies. `spoken_prompt` adds the spoken style block to the instructions (pipeline, realtime and every step of a tree): text written to be heard, short turns that open fast, numbers in words. Off for a version without the field, so a published assistant sounds as before; new assistants are created with it on. See docs/speech-friendly-text.md.
    config.speech_style.spoken_promptboolean
    config.toolsAssistantToolsWhat the model may call during a call: API tools by reference and the built-ins.
    config.tools.apiToolReference[]
    config.tools.built_inBuiltInTools
    config.variablesstring[]
    config.voice_profileVoiceProfileSettingsThe expressive mode the assistant speaks in. `off` adds nothing to the instructions, so a version stored without the field sounds as before. `intensity` sets how marked the tone is and how often tags are used. `custom` holds the assistant's own profile; it is required when `profile` is `custom` and kept (unused) otherwise. See docs/voice-profiles.md.
    config.voice_profile.customCustomVoiceProfile | nullA profile written for one assistant: free tone guidance (Spanish, added to the prompt as it is) and the expressive tags it may use, when the TTS supports them.
    config.voice_profile.intensity"subtle" | "normal" | "expressive" (subtle, normal, expressive)
    config.voice_profile.profile"off" | "neutral" | "empathetic" | "firm" | "warm" | "energetic" | "custom" (off, neutral, empathetic, firm, warm, energetic, custom)
    created_atstring (date-time)sí
    created_bystring | nullsí
    idstring (uuid)sí
    numberintegersí
  • 401 Missing, expired or invalid token. · ErrorResponse
  • 403 The API key lacks assistants:read. · ErrorResponse
  • 404 No such assistant or version in this tenant. · ErrorResponse
  • 429 The API key went over its requests per minute. · ErrorResponse
  • 503 Assistants are not available. · ErrorResponse
  • default Default Response · ErrorResponse

GET /v1/test-calls/readiness

Can the organization place test calls?

Solo para usuarios con sesión iniciada (sin API key) · Rol: editor o superior

An `editor` or above. Says what a test call needs: `outbound_trunk` (the organization has a usable default outbound SIP trunk) and the organization's `caller_ids` with the `default_caller_id` a request without one uses (the oldest). `caller_id_required` is false with telephony-managed ANI; caller IDs are then empty and the default is null. A UI disables the call and explains what is missing. 401 when the token is missing, expired or invalid; 403 when the caller is a `viewer`; 503 `call_test_unavailable`.

Respuestas

  • 200 Successful Response · CallTestReadinessResponse
    NombreTipoRequeridoDescripción
    caller_id_requiredbooleanWhether an ECO caller ID is required. False when telephony owns ANI selection.
    caller_idsCallTestCallerId[]sí
    caller_ids[].idstring (uuid)sí
    caller_ids[].labelstringsí
    caller_ids[].last4stringsí
    default_caller_idstring (uuid) | nullThe caller ID used when the request names none.
    outbound_trunkbooleansíThe platform has an outbound trunk to dial through.
  • 401 Missing, expired or invalid token. · ErrorResponse
  • 403 The caller is a `viewer`. · ErrorResponse
  • 503 Code `call_test_unavailable`. · ErrorResponse
  • default Default Response · ErrorResponse