# Changelog Changes of the Account API and the Tenant API, newest version first. ## 1.94.2 ### Fixed - API reference: the brick properties say which properties read a variable as `{{name}}` and a contact field as `{{contact.}}`, and link the Variables guide with examples, because a client building a scenario through the API could not find the placeholder form. - API reference: `variables` of a communication says that `contact` holds the contact’s data as JSON text, so a client knows how to read a contact field after the call. ## 1.94.1 ### Fixed - `GET /v1/a/adapters/tts/validation-rules`: `max_bytes`, `max_chars` and `max_chars_non_latin` are marked optional in the API reference, because an engine sends only the limits it has. A client generated from the reference no longer expects all three. ## 1.94.0 ### Added - `GET /v1/a/adapters/stt/transcribe/{id}`: a dialog turn has `language`, and a change of language starts a new turn, so a caller reads the language of each turn without searching `channels`. ### Changed - `POST /v1/a/adapters/stt/transcribe`: a `gs://` call recording is accepted only in the recording bucket of the environment, so a recording in another bucket returns `404` instead of `500`. - `POST /v1/a/adapters/stt/transcribe`: `gsr@v2` with more than one code in `language` is refused with `400`, because the engine took one code or `auto` and silently used `auto` for a list. Breaking: a caller sends one code or `auto` for `gsr@v2`. ### Fixed - `GET /v1/a/adapters/stt/transcribe/{id}`: on `gsr@v2` the first word of a turn starts when it is spoken, so the dialog keeps the real order of the speakers. - `GET /v1/a/adapters/stt/transcribe/{id}`: on `soniox` with one code in `language` the channel `language` carries that code, and the warning about unreliable language identification appears only when the engine identifies the language. ## 1.93.0 ### Added - `GET /v1/a/adapters/tts/validation-rules`: lists the text limit of each speech engine the account can use and the default limit, so an editor checks a text before the save and does not keep its own copy of the limits. ### Changed - `POST /v1/a/scenario` and `PATCH /v1/a/scenario/{id}`, on a publish and on a draft save with `validate: true`: a text-to-speech text longer than the limit of its engine is refused with `422 scenario_validation_failed` and `SCN112`, and a text of spaces only with `SCN107`, because the engine refuses such a text and the call plays no speech. The detail names the brick, the property, the limit and the engine. The rule covers question, audio, call transfer and text-to-speech bricks. Breaking: a stored scenario with such a text is refused on its next validated save or publish until the text is shortened; a published version keeps running. ## 1.92.1 ### Added - `POST /v1/a/scenario`, `PATCH /v1/a/scenario/{id}`, `POST /v1/t/scenario-template`, `PATCH /v1/t/scenario-template/{id}`: `position` (`x`, `y`) on every node of `constructor.forest.trees[].nodes[]`, so that the builder keeps where each brick stands. The scenario, its versions, its copy and the template return it as saved; a record saved before this version returns `null`. - The same routes: a node saved with no position gets one, so that a scenario created through the API opens as a readable picture. The start brick stands at `{120, 120}`, a node linked from a placed node stands to its right, and any other node stands under the start brick. - The same routes: a `position` with only one of `x` and `y` is refused with `400` (`bad_request` on the scenario routes, `validation_failed` on the template routes), so that a missing coordinate is never stored as 0. ### Changed - `GET /v1/a/scenario-version`, `GET /v1/a/scenario-version/by-scenario`: `content_hash` ignores node positions and the order of brick outputs, so that a move of a brick or a new order of its outputs keeps the hash and a test call reuses the frozen draft. A record saved after this version can once get another hash than an earlier record of the same content, when the earlier record had its outputs in another order. - `PATCH /v1/a/scenario/{id}`: a publish that changes neither `name` nor the content of `constructor` keeps `version` and adds no scenario version, so that a move of bricks or a new order of outputs does not add a version. The latest version then returns the positions and the order of outputs of that publish. ## 1.92.0 ### Added - `POST /v1/a/brick/-/validate`: checks one brick of a given type and version and answers with the errors the same brick gets when its scenario is saved, so a caller fixes one brick without sending the whole scenario again. ## 1.91.2 ### Changed - `POST /v1/a/scenario` and `PATCH /v1/a/scenario/{id}`, on a publish and on a draft save with `validate: true`, and `POST /v1/t/scenario-template` and `PATCH /v1/t/scenario-template/{id}`: an AI agent brick with `configuration.stt.speech_timeout` or `configuration.stt.no_input_timeout` above 20 seconds, and an AI agent or question brick with a `recognition_shift.duration` or `interruption_shift.duration` above 59 seconds, are refused with `422 scenario_validation_failed` and the code `SCN134`, because the call would wait on a silent line longer than the editor allows. - The same routes: a call transfer brick takes a `timeout` from 5 to 60 seconds; it took up to 120 seconds before. A larger value is refused with `422 scenario_validation_failed` and the code `SCN112`, because the editor offers no more than 60 seconds. - Stored scenarios, their versions and scenario templates with such values hold the limit instead, so they save again without a change. ## 1.91.1 ### Changed - `POST /v1/a/scenario` and `PATCH /v1/a/scenario/{id}`, on a publish and on a draft save with `validate: true`, and `POST /v1/t/scenario-template` and `PATCH /v1/t/scenario-template/{id}`: a question is refused with `422 scenario_validation_failed` and the code `SCN134` when its `stt_properties.speech_timeout` or `stt_properties.no_input_timeout` is above 20 seconds, or its `dtmf_properties.dtmf_timeout` or `dtmf_properties.no_input_timeout` is above 59 seconds, because a longer timeout keeps the call waiting on a silent line. Only the timeouts of the question’s `input_mode` are checked. - Stored scenarios, their published versions and scenario templates: a question timeout above its limit is lowered to the limit, so a stored scenario still saves and publishes and its calls wait no longer than the limit. ## 1.91.0 ### Added - `POST /v1/a/scenario/{id}/validate`: checks a scenario body with the checks of a publish and stores nothing, so a client shows every error before the user saves or publishes. `id` is `-` for a new scenario; the id of a stored scenario also runs the checks of publishing its next version, so a client editing a live scenario gets the same answer as its publish. ### Changed - `POST /v1/a/scenario`, `PATCH /v1/a/scenario/{id}`: a publish is refused when a JavaScript brick names an edge function the account does not hold (`scenario_validation_failed`, detail `SCN138`), so a scenario does not go live with a brick that fails on every call. While the edge function runner cannot answer, such a publish fails with `500` and nothing is stored. Breaking: the caller creates the function or corrects the id in the brick; a draft save is not refused. - `POST /v1/a/scenario`, `PATCH /v1/a/scenario/{id}`: a publish with no constructor is refused (`scenario_validation_failed`, details `SCN101` and `SCN102`), so a scenario with no bricks does not go live. On `PATCH` this reaches a stored scenario that has no constructor. Breaking: the caller sends a constructor; a draft save is not refused. ## 1.90.7 ### Fixed - `POST /v1/a/scenario` and `PATCH /v1/a/scenario/{id}`, on a publish and on a draft save with `validate: true`: a closed question with two answers that have the same non-empty `tag` is refused with `422 scenario_validation_failed` and the code `SCN135`, and one with two intent-based answers that have the same `speech_input.intent.id` is refused with the code `SCN136`, because during a call the first matching answer is always picked and the second one is never reached. Values that differ only in letter case or in spaces at the ends count as the same. Answers with the same `description` or an empty `tag` still save. A stored scenario with such answers is refused on its next validated save or publish until the answers are changed; its published version keeps running. ## 1.90.6 ### Changed - `POST /v1/a/scenario` and `PATCH /v1/a/scenario/{id}`, on a publish and on a draft save with `validate: true`: an AI agent brick whose `configuration.llm.temperature` is below 0 or above 1 is refused with `422 scenario_validation_failed` and the code `SCN112`, because the model does not accept such a value. A temperature of `0`, or no temperature, uses the default of the model. A stored scenario with such a temperature is refused on its next validated save or publish until the value is changed; its published version keeps running. ## 1.90.5 ### Added - `POST /v1/a/scenario`, `PATCH /v1/a/scenario/{id}`, `POST /v1/t/scenario-template`, `PATCH /v1/t/scenario-template/{id}`: the speech recognition engine `elevenlabs` (ElevenLabs Scribe realtime), so that a scenario can recognise speech with ElevenLabs. A scenario, a scenario version and a template read back with it. - `GET /v1/a/adapters/stt/info/model`, `GET /v1/a/adapters/stt/info/language`: the engine `elevenlabs` with its model `scribe_v2_realtime`, the default for each of its 92 languages, so that a client offers the new engine where it offers the others. Each language is one fixed language; the engine has no automatic language detection. - `GET /v1/a/adapters/stt/info/spec`: the engine `elevenlabs` returns empty lists of grammar parameters and class tokens, because ElevenLabs has no tuning options in the catalog. ## 1.90.4 ### Changed - `POST /v1/a/scenario`, `PATCH /v1/a/scenario/{id}`, `POST /v1/a/scenario/{id}/copy`, `POST /v1/a/scenario-template/{id}/copy`, `POST /v1/t/scenario-template`, `PATCH /v1/t/scenario-template/{id}`: a question fallback whose `type` is not `llm` (`custom`, `initial`, or a fallback with no `type`) is stored without `llm_properties`, because only an `llm` fallback uses them. A fallback of type `llm` keeps its `llm_properties`. The request is accepted as before, with no error. A scenario or a template saved earlier keeps the field until its next save. ## 1.90.3 ### Fixed - `POST /v1/a/scenario` and `PATCH /v1/a/scenario/{id}`, on a publish and on a draft save with `validate: true`, and `POST /v1/t/scenario-template` and `PATCH /v1/t/scenario-template/{id}`, on every save: a subscenario with no `start_tree` node is refused with `422 scenario_validation_failed` and `SCN121`, because a call that enters it has no entry node. Before, such a scenario or template was stored. The rule covers every tree other than the main tree, also one that no `tree` brick names; the same holds for the existing refusal of a subscenario with more than one `start_tree` node. Before, a tree that no `tree` brick names was dropped on the save and never checked. A stored scenario with such a subscenario is refused on its next validated save or publish until the node is added, and a stored scenario template on its next save; a published version keeps running. ## 1.90.2 ### Fixed - `POST /v1/a/scenario` and `PATCH /v1/a/scenario/{id}`, on a publish and on a draft save with `validate: true`: an answer of a closed question whose `answer_id` is `valid`, `invalid`, `empty`, `incomplete` or `change_language` is refused with `422 scenario_validation_failed` and the code `SCN133`, because the answer and the system output of the brick with that name would become one output. A stored scenario with such an answer is refused on its next validated save or publish until the answer id is changed; its published version keeps running. ## 1.90.1 ### Fixed - `POST /v1/a/scenario` and `PATCH /v1/a/scenario/{id}`: a link to a node that does not exist is refused with `SCN110` only, because no other tree is involved. Before, a link with no `tree_id` or with the `tree_id` of a tree that does not exist also got `SCN130`. - `POST /v1/a/scenario` and `PATCH /v1/a/scenario/{id}`, on a publish and on a draft save with `validate: true`: a scenario whose entry or exit nodes give the call no clear path is refused with `422 scenario_validation_failed`, because the call cannot tell where to enter or where to return. A `start_tree` or `end_tree` node in the main tree is refused with `SCN132`, since the main tree has no parent tree. A subscenario with more than one `start_tree` node is refused with `SCN121`. A stored scenario with such a node is refused on its next validated save or publish until the node is removed; its published version keeps running. ## 1.90.0 ### Added - `POST /v1/a/adapters/stt/transcribe`, `GET /v1/a/adapters/stt/transcribe/{id}`: a WAV file is transcribed as an asynchronous job, because a long call does not fit a synchronous request. The required field `engine` of the request names the engine. The file comes as an upload, an http or https link, or a gs\:// link to a call recording of the caller’s account or to a shared test file in the `test-cases/` folder of the environment bucket. The engines and their models are listed by `GET /v1/a/adapters/stt/info/transcribe`: `soniox`, `azuresr` and `gsr@v2`, one model each today; an engine not enabled for the account is absent from the list. An optional `model` selects a model of the engine; without it the default model is used. `language` takes comma-separated codes or `auto`; the default is `de-DE,en-US`. An optional cut (`start_ms`, `end_ms`) limits the audio; the times in the answer count from the start of the cut. `speaker_labels` gives one label per channel, 1 to 32 letters, digits, `_` or `-`; without it a stereo call recording has `client` on channel 0 and `bot` on channel 1, and a mono file has no role. A job is `queued`, `running`, `completed` or `failed`; a job that stops before it completes is `failed`, and `error` says why. A completed job holds the engine, the model and the endpoint that transcribed the audio, the text of each channel with the time and the confidence of each word, one dialog of both channels, and `issues`, a list of warnings about the result, for example a channel with no recognized speech. The job is kept for 1 hour. - The routes return `400` when `engine` is absent, for an unknown engine or model, for an engine not enabled for the account, a file that is not PCM WAV, a bad cut, a wrong number of speaker labels, or a link that cannot be fetched. They return `404` for a job of another account, an unknown job, or a job older than 1 hour; for a gs\:// link outside the call recordings of the account and outside the shared test files, and for an http or https link whose host answers 404. A body larger than 65 MiB returns `413`. `500` means the service failed to start or read the job. `502` means the transcription service failed to answer. `503` means the service cannot take a job now; the caller retries later. ## 1.89.0 ### Fixed - `POST /v1/a/scenario` and `PATCH /v1/a/scenario/{id}`, on a publish and on a draft save with `validate: true`: a scenario link that makes the call path ambiguous or invalid is refused with `422 scenario_validation_failed`, because the call could not follow it as the designer meant. The detail names the tree, the node and the output, with a code per case: two links from one output (`SCN128`), a link from a node to itself (`SCN129`), a link to a node of another tree (`SCN130`), a link to a `start_call` or `start_tree` node (`SCN131`). A stored scenario with such a link is refused on its next validated save or publish until the link is fixed; its published version keeps running. ## 1.88.3 ### Changed - Webhook brick properties: `request`, `request.method` and `request.url` are now marked as required, so generated clients match the existing `422` on a webhook run without them. - A scenario read now always returns `request.method` and `request.url` on a webhook brick, as an empty string when they are not set, so a client reads the same fields on every brick. ## 1.88.2 ### Changed - `POST /v1/a/contact/-/data`: the body declares that each of `from`, `to` and `field` is optional, so a client sends `from` and `to` for a rename and `field` for a delete. - `POST /v1/a/contact/-/data`: the `422` `contact_field_conflict` declares its `data`: `field`, always present, and `contact`, present when a contact stops the rename. ## 1.88.1 ### Changed - API reference: the account and tenant documents are OpenAPI 3.1, and a field that can be `null` declares `null` in its type in place of `nullable`, so a client generated from them reads every nullable field as nullable. A caller of the API sees no change; a client generated from the documents is generated again with a tool that reads OpenAPI 3.1. ## 1.88.0 ### Changed - `GET /v1/a/automation/{id}/attempt`: runs are listed by start time, earliest first, instead of newest first, so the list shows the schedule in the order it runs. Runs that start at the same moment keep a stable order. Breaking: a caller that read the first item as the newest run reads the last item instead. ## 1.87.1 ### Added - `GET /v1/a/adapters/stt/info/model`: the Soniox model `stt-rt-v6`, with the same languages as `stt-rt-v5`, because Soniox released it and removes `stt-rt-v5` on 2026-12-15. ### Changed - `GET /v1/a/adapters/stt/info/model`: `stt-rt-v6` is the default Soniox model (`is_default_model: true`), and `stt-rt-v5` is no longer the default, so a new scenario starts on the model Soniox keeps. - A call with the Soniox engine runs the model its scenario selects. A scenario with no model, or with a model the catalog does not offer, runs the default `stt-rt-v6`, so a retired model never fails a call. Before, every Soniox call ran `stt-rt-v5`. ## 1.87.0 ### Removed - `GET`, `HEAD`, `POST` and `DELETE` on `/v1/a/adapters/tts/{engine}`: the engine `ya` is removed from the list of engines, because the speech synthesis service no longer supports it. Breaking: a caller that sends `ya` uses `ya_v3`. ## 1.86.0 ### Added - `POST /v1/a/segment/{id}/source/-/publish`: `counts` holds `created` and `updated`, the contacts the call created and the contacts the account already held that it wrote data to, so a client can say what a publish did. A retried publish counts only the contacts it wrote itself. - `PUT` and `PATCH` on `/v1/a/segment/{id}/source/{source_id}/file`, and every answer that carries a source: `counts` holds the counts of the upload (`total`, `success`, `rejected`, `duplicate`) or of the source (`total`, `success`, `rejected`), so a client reads every count in one place. `duplicate` counts the rows merged into another row of the same number. ### Changed - `PUT` and `PATCH` on `/v1/a/segment/{id}/source/{source_id}/batch-contact`: the answer is `SourceRowsResult`, with `counts` and `errors` only, because a list of rows has no file name and no flat counts. Breaking: a caller of 1.85.0 reads `counts` instead of `total_count`, `success_count` and `error_count`. ### Deprecated - `total_count`, `success_count` and `error_count` of a file upload and of a source, because `counts` carries the same values. A client reads `counts`. ### Removed - `source_rows_duplicated` in `errors` of an upload, because a merged row is not an error. Breaking: a client that showed it reads `counts.duplicate`. ## 1.85.0 ### Added - `PUT /v1/a/segment/{id}/source/{source_id}/batch-contact`, `PATCH /v1/a/segment/{id}/source/{source_id}/batch-contact`: the routes that take a list of rows, so that `…/contact` serves one row at a time. ### Changed - API reference: the routes of a source are grouped by what they work on (the source, its file, its rows supplied as JSON, the publish) and named by what they take, so a caller finds the route of a file, of a batch and of one row apart. ### Removed - `PUT /v1/a/segment/{id}/source/{source_id}/contact`, `PATCH /v1/a/segment/{id}/source/{source_id}/contact`: moved to `…/batch-contact`, so `…/contact` serves one row at a time. Breaking: a caller sends a list of rows to `PUT` or `PATCH /v1/a/segment/{id}/source/{source_id}/batch-contact`; the old routes answer `405`. ## 1.84.1 ### Changed - `POST /v1/a/adapters/edge/functions`, `POST /v1/t/adapters/edge/functions`: the body has no `function_name`, because an edge function no longer has a name. A body that still sends it is accepted and the name is ignored. - `DELETE /v1/a/adapters/edge/functions/{slug}/{version}`, `DELETE /v1/t/adapters/edge/functions/{slug}/{version}`: the delete now also removes the stored code of the version, because a deleted version kept its code. A later run of that version answers `404`. ### Fixed - `GET` and `DELETE` on `/v1/a/adapters/edge/functions/{slug}/{version}` and `/v1/t/adapters/edge/functions/{slug}/{version}`: the API reference now documents `404` for a missing version, because the API answers `404` and no longer `400` with `NOT_FOUND`. - API reference: `401` on the edge and text-to-speech adapter routes now describes the answer to a request without a valid credential, because the earlier text described an answer the caller never gets. ## 1.84.0 ### Added - `PUT /v1/a/segment/{id}/source/{source_id}/contact`, `PATCH /v1/a/segment/{id}/source/{source_id}/contact`: replace or add the rows of a draft source with one JSON list of rows, checked by the bounds and refusals of a file upload, so a client system loads a large audience without building a file. - `row_index` on a source row: the position of a rejected row in the supplied list of rows, so the caller finds the row it has to fix. - A request body may be sent compressed with `Content-Encoding: gzip` or `br`, on every route, so a large list of rows takes less time to send. ### Changed - `PUT /v1/a/segment/{id}/source/{source_id}/file`, `PATCH /v1/a/segment/{id}/source/{source_id}/file`: a dot in a heading names a nested key (`Address.City` is stored as `city` inside `address`), so a file can fill nested contact data. A heading beside one that nests under it (`address` and `address.city`) is refused with `file_columns_clash`. Breaking: a file whose headings hold a dot now fills nested data; a caller that read the flat key (`address_city`) reads the nested one, and renames a heading that both stands alone and nests. - `POST /v1/a/segment/{id}/source/-/publish`, `POST /v1/a/communication/-/dispatch`: data is merged into a stored contact leaf by leaf, so a nested object changes only the keys it names and keeps the others. Before, a nested object replaced the stored one whole. Breaking: to remove a nested key, a caller sets it to `null`. - `GET /v1/a/segment/{id}/source/{source_id}/file/rejected`: a value that is not text is written as text, a nested value is written as one column per leaf named by its dotted path, and a last column `row_index` is added, so the file keeps every value and reads back whole. A reader of the file by column position finds `row_index` after `error`. - The bound of an upload body moves from 64 MiB to 128 MiB, counted after decompression, for a file and for a list of rows alike, so a list of rows with nested data fits the 100 000 row bound. ## 1.83.0 ### Added - `POST /v1/a/contact`, `PATCH /v1/a/contact/{id}`: `422 contact_invalid` carries `data.reason`, a code of why the number was refused (`number_missing`, `number_no_digits`, `identifier_invalid`, `number_not_international`, `number_not_for_country`, `country_code_required`), so a client shows the right field error without reading `message`. - `GET`, `POST` and `PATCH` on `/v1/a/segment/{id}/source/{source_id}/contact` and on a row of it: a rejected row carries `rejection`, its reason as a code from the same set plus `value_too_long` with `field` and `limit`, and `type_mismatch` with `field` and `type`, so a client explains a rejected row without reading `error`. Rows rejected before this version carry it too. ## 1.82.0 ### Changed - `POST /v1/a/scenario`, `PATCH /v1/a/scenario/{id}`, `POST /v1/t/scenario-template`, `PATCH /v1/t/scenario-template/{id}`: a save with validation and a publish refuse a `start_call` brick of version `v2` whose `busy` or `unanswered` output is missing (`SCN105`) or has no link (`SCN111`), because an output with no link looks like a mistake in the editor. Breaking: a caller links both outputs; to end the scenario on them, it links them to an `end` brick. - Stored scenarios, their versions and scenario templates now have `busy` and `unanswered` of the `start_call` brick linked, so they still pass validation. An output that had no link now leads to the first `end` brick of the tree that holds the start call, and a tree with no `end` brick gets one (`end_busy_unanswered`). A busy or unanswered call still ends the scenario, as before. ## 1.81.0 ### Added - `GET`, `POST /v1/t/scenario-template`, `GET`, `PATCH`, `DELETE /v1/t/scenario-template/{id}`: a tenant keeps scenario templates of its own, so it gives every account the same working start, such as the inbound scenario with contact data. - `GET /v1/a/scenario-template`, `GET /v1/a/scenario-template/{id}`: an account lists and reads the templates of its tenant, so a user picks one to start from. - `POST /v1/a/scenario-template/{id}/copy`: creates a draft scenario in the account from a template. The scenario gets its own copy of every classifier, edge function, RAG document and audio file of the template, so it works on a call and a later change of the template does not change it. It answers `scenario_copy_failed` (`422`) when a resource cannot be copied, and `rate_limited` (`429`) when the account made a copy less than a minute before. - `POST /v1/t/audio`, `GET /v1/t/audio/{filename}`, and the account-scoped routes of `/v1/a/adapters/ids`, `/v1/a/adapters/llm` (RAG documents) and `/v1/a/adapters/edge` under `/v1/t/adapters/…`: the audio files, classifiers, RAG documents and edge functions of the tenant’s templates, so a tenant builds a template with the calls it uses for a scenario. Writes need `tenant:scenario_template:manage`, reads `scenario:template:read`. - Permissions `scenario:template:read` and `tenant:scenario_template:manage`, so a role grants reading templates and managing them apart. The fixed roles `reader` and above, `tenant_admin` and `tenant_dpu` read templates; `tenant_admin` manages them. ### Changed - `POST /v1/a/scenario/{id}/copy`: a scenario shared by another account is copied with its own copy of every classifier, edge function, RAG document and audio file, and without its webhook authentication, so the copy works in the new account. It answers `scenario_copy_failed` (`422`) when a resource cannot be copied, and `rate_limited` (`429`) when the account made a copy less than a minute before. A copy within the own account is unchanged. ## 1.80.0 ### Changed - `POST /v1/a/scenario`, `PATCH /v1/a/scenario/{id}`: a save with validation and a publish refuse a `start_call` brick of version `v1` (`SCN127`), so every scenario starts with the same brick. Breaking: a caller that builds scenarios on `v1` builds them on `v2`, with the outputs of `outbound_call` and `inbound_call` on the `start_call` brick. - Stored scenarios and their versions on the `start_call` brick of version `v1` now start with version `v2`, because with one shape the old bricks can be removed later. The `outbound_call` and `inbound_call` bricks are gone from them, their links start from the `start_call` brick, and `voicemail_enabled` is true where an agent that runs the scenario had voicemail switched on and the outbound call asked for it. A call runs through the same bricks as before. ### Deprecated - `start_call.v1` in the scenario constructor, because `v2` replaces it. A later version removes it, together with the `outbound_call` and `inbound_call` bricks and the agent’s `voicemail_enabled`. ## 1.79.1 ### Added - `GET /v1/a/profile`, `PATCH /v1/a/profile`: `feature_flags` carries `sentry_enabled`, by default off for an account in the EEA and on for every other account, so a client knows whether it may send its errors, traces and session replays to an error tracker. ## 1.79.0 ### Changed - `PATCH /v1/a/number/{id}`, `PATCH /v1/a/number-pool/{id}`: `status: inactive` on a number or a pool also switches off the active agents that use it, and so does a pool left with no active number, so an agent never stays active with nothing to call from. A number or a pool switched on again leaves its agents off. Breaking: a caller that switches a number or a pool back on also switches its agents on with `PATCH /v1/a/agent/{id}`. - `POST /v1/a/agent`, `PATCH /v1/a/agent/{id}`: an agent is created active, switched on, or moved to another number or pool while active only when its number is active, or its pool is active and holds an active number (`agent_gateway_inactive`), so an active agent can always place calls. Breaking: a caller switches the number or the pool on first. - `PATCH /v1/a/number/{id}`: a number an agent holds is not put into a pool (`number_in_use`), and `POST /v1/a/agent`, `PATCH /v1/a/agent/{id}` do not give an agent a number that is in a pool (`agent_number_in_pool`), because a pool can give its numbers to other agents and two agents would call from one number. ### Fixed - `PATCH /v1/a/agent/{id}`: a new `gateway_type` with its number or pool replaces the previous gateway; before, the request was refused with `agent_invalid` because the previous number or pool stayed set. ## 1.78.0 ### Added - `POST /v1/a/scenario`, `PATCH /v1/a/scenario/{id}`: the `start_call` brick of version `v2`, with the outputs `outbound`, `inbound`, `voicemail`, `busy` and `unanswered` and the property `voicemail_enabled`, so a scenario handles every call outcome from its first brick and runs an SMS, a webhook or a script after a busy or unanswered call. A scenario on `v2` has no `outbound_call` and no `inbound_call` brick (`SCN126`); scenarios on `v1` work as before. On `v2` the scenario’s `voicemail_enabled` decides answering machine detection, and the agent’s `voicemail_enabled` has no effect. ### Changed - `GET /v1/a/communication`, `GET /v1/a/communication/{id}`: the status `in_progress_offline` is new: a call that has ended while its scenario still runs the bricks that need no call, so the line of the agent is free for the next call before the outcome is known. A client that lists the values of `status` adds this one. ## 1.77.1 ### Added - `GET /v1/a/adapters/llm/public/data/models`: the response carries `has_more`, so a client pages through the models without computing it from `total`, `limit` and `offset`. ### Changed - API reference: the 200 response of `GET /v1/a/adapters/llm/public/data/models` is described with its fields, one shape for `mode=flat` and one for `mode=group`, so a client generated from the reference gets a typed response. ## 1.77.0 ### Added - `GET /v1/a/adapters/llm/rag/document/list`: each entry of `documents` is described as `RagDocument` with its fields, required fields and allowed values, so a client generates its document type from the API reference. - `POST /v1/a/adapters/llm/chat/completion`, `POST /v1/a/adapters/llm/chat/stream`, `GET /v1/a/adapters/llm/chat/stream/info/{id}`: the optional `reasoning_effort` field (`none`, `minimal`, `low`, `medium`, `high`) is in the API reference, so a client sets the reasoning budget of a reasoning model. ### Changed - `GET /v1/a/adapters/llm/rag/document/list`: the list is paged by `limit` (default 100, at most 500) and `offset`, and the response carries `total`, `limit`, `offset` and `has_more`, so an account with many documents is read page by page. Breaking: a caller that sends no `limit` gets the first 100 documents; it reads `has_more` and asks for the next page with `offset`. - `GET /v1/a/adapters/llm/rag/document/list`: an account with no documents gets `"documents": []` instead of `null`, so a client reads the field as an array in every case. ## 1.76.0 ### Changed - `lines_in_use` of the account on `GET /v1/a/analytics/lines`: counts every call the account holds, a test call with no agent included, so the figure shows the lines a new call waits for. Breaking: it can be above the sum of `lines_in_use` over `agents`. A client that adds up `agents[].lines_in_use` for the account’s figure reads `lines_in_use` instead. - API reference: `GET /v1/a/analytics/lines` says a test call is counted, as it is since 1.75.0, because the reference said test calls were left out. ## 1.75.0 ### Added - Routings of an agent: `GET`, `POST /v1/a/agent/{id}/routing` and `GET`, `PATCH`, `DELETE /v1/a/agent/{id}/routing/{routing_id}`, so one agent plays a different scenario by the call, the time and the contact. A routing may play a scenario with no published version; `is_published` says which. New codes: `routing_name_in_use` and `routing_invalid` on `POST` and `PATCH`, `routing_default_locked` on `PATCH` and `DELETE`, `routing_not_found` on the routes with `{routing_id}`. - `GET /v1/a/agent/-/routing/-/query-language`, so a client builds its condition editor from it. - `routing_sid` and `routing_plan` on a communication, so a person sees why a call played its scenario. - `group_by=routing` on `GET /v1/a/analytics/call`, so a person sees how many calls each routing takes. - `IN (…)` and `NOT IN (…)` in a contact query and in a routing condition, so one comparison matches a list of values. - Permissions `agent:routing:read`, `agent:routing:write` and `agent:routing:manage`, given to every role with the same right on automations, so the people who set up automations also set up routings. - `is_test` and `prefer_draft` on `POST /v1/a/communication/-/dispatch` with `agent_sid`, so a person hears what the routings do before the scenarios go live. - `prefer_draft` on a communication and `skipped` on a route of `routing_plan`, so a person sees what a test call asked for and which draft routing a call passed over. ### Changed - `scenario_sid` and `version` on a communication of an agent: set when the call is dialled or answered, so each call plays the scenario its routings choose at that moment. Breaking: before the dial they are empty, and the filters `scenario_sid` and `draft=false` do not find the call; read them after the dial. - `DELETE /v1/a/scenario/{id}` and `DELETE /v1/a/segment/{id}`: refused with `scenario_in_use` and `segment_in_use` while a routing uses the target, so a routing never points at a deleted one. - `POST /v1/a/contact/-/data`: a rename also rewrites the routing conditions, and the removal of a field a condition reads is refused with `contact_field_in_use`, so a routing keeps matching its calls. - `DELETE /v1/a/agent/{id}`: also deletes the agent’s routings, so nothing points at a deleted agent. - `POST /v1/a/communication/-/dispatch` with `agent_sid`: accepted when the agent’s scenario has no published version; a call that is not a test and finds no published routing fails with `no_published_routing`, so a published routing still takes its calls. Breaking: read `status` and `reason` of the call where the refusal came before. - An inbound call that no published routing takes is answered as a test call of the draft, so a caller never hears a draft as a real call. - `POST /v1/a/communication/-/dispatch` with `scenario_sid` and `prefer_draft`: plays the published version when there is no draft, no longer a refusal, so one flag tests the newest content. - A call with no number to dial from: `failed` with `no_number_to_dial_from` at once, no longer `bounced` with retries, because no retry finds a number. Breaking: act on `failed` and set up a number. - `POST /v1/a/automation` and a move of an automation are refused with `automation_scenario_unpublished`, and `PATCH /v1/a/agent/{id}` with `automation_requires_published_scenario`, while the agent’s scenario has no published version, so an automation never runs into failing calls. Breaking: publish the agent’s scenario before the automation. - Test calls (`is_test`): take lines and pacing like any call, so every call stays within the lines the account bought. Breaking: a test call can wait in `ready` until a line is free. ### Deprecated - `draft` on `POST /v1/a/communication/-/dispatch`: use `prefer_draft`, which also works with `agent_sid`. ## 1.74.1 ### Fixed - `POST /v1/a/communication/-/dispatch` with `scenario_sid` and `draft: true`: when the account has no free number, the test call now dials from a number of the scenario’s agent, so an account whose numbers are all held by agents can test a draft without a spare number. Before, the call was refused with `communication_invalid`. A draft of a scenario with no agent is still refused when no number is free, and a free number is still used first when there is one. ## 1.74.0 ### Added - `links` on `GET /v1/a/profile` and in the answer of `PATCH /v1/a/profile`: the links the caller’s tenant places in the interface, each with `title`, `url` and `group`, in the order the tenant sets them, so a client draws the integrator’s own entries without building any address itself. The address is ready to open: the tenant’s values are already in it, and it is always `https`. Every caller of the tenant reads the same list, and a tenant with no links answers `[]`. `title` and `group` are plain text and carry no `<` or `>`. ## 1.73.0 ### Added - `query` on `GET /v1/a/contact` and `POST /v1/a/contact/-/export`: filters contacts by an expression over their own fields and their data (`data.city = "Riga" AND last_call_at > 2026-10-01`), so a selection no longer has to be built by paging and filtering on the client. A data value is cast the way JavaScript casts it, a value that does not cast never matches, and a date or a time is read in the account’s timezone. The query applies together with `segment_ids` and `filter_query` and holds at most 10 comparisons and 2000 characters, so one request stays within a few seconds of database work at the largest account; an expression that cannot be read, holds more, or names a data field no contact of the account holds is refused with `query_invalid`, so a misspelt field is not read as an empty result, and `message` names what is wrong and where. - `GET /v1/a/contact/-/query-language`: lists the contact’s own fields, every data field of the account with its type, and the operators a `query` can use, so a client builds its query editor from what the account’s contacts hold. - `POST /v1/a/contact/-/data`: renames or removes one data field on every contact of the account in one step and answers how many contacts changed, so a field is cleaned up without rewriting each contact. A rename onto a field a contact holds, under it or on the way to it is refused with `contact_field_conflict` and changes no contact; removing that field first lets the rename through. - `POST /v1/a/segment/{id}/source/{source_id}/data`: renames or removes one column on every row of a draft source, so a file’s headings are fixed without uploading it again. - `GET /v1/a/analytics/contacts`: reads the account’s contacts against its contact limit, the data fields its contacts hold with their types and contacts, and the bytes of all their data with the time they were summed, so an operator cleans the data before a write is refused. The bytes are summed every 15 minutes. - `contact_limits` on the account (`POST /v1/t/account`, `PATCH /v1/t/account/{sid}`, and the account reads): the tenant sets the account’s limits on contact data and on the number of contacts, so a customer with larger contact data or more contacts gets them by agreement with the tenant; `null` follows the platform’s defaults. - `contact_limits` on `GET /v1/a/profile`, and `data_usage` on a contact read by its id, created or edited: show the limits the account runs on, and how many fields and bytes one contact takes, so a client shows them before a write is refused. - `GET /v1/a/segment/{id}/source/-/validate`: `over_limit` per merged contact, `is_over_limit=true`, and `contacts` with `current` and `limit`, so a batch that would break a limit is found before publish. - `GET /v1/changelog.md`: serves the release notes of every version up to the one a deployment runs, newest version first, without a credential, so a caller reads what changed in the version it calls, and why, from the deployment itself. - Error codes `query_invalid`, `contact_data_limit`, `contact_limit_reached`, `contact_field_conflict`, `source_data_limit` and `source_contact_limit`, so a client tells each refusal apart by its code. ### Changed - Contact data is bounded by the account’s limits: 30 data fields, 100 bytes a value and an array item, 100 items an array, array items scalar only; the tenant raises them up to 100 fields, 1000 bytes and 500 items. A create, `PATCH` or dispatch `contact.data` past a limit is refused with `contact_data_limit`, and `data` names the rule, the field and the numbers; a publish is refused with `source_data_limit`, so one account’s data stays within what a query and an export can read. Breaking: a caller that wrote larger data keeps it under the limits, or asks the tenant to raise them. - An account holds at most 100 000 contacts by default, up to 200 000 by the tenant’s setting. A create or a dispatch that would add one more is refused with `contact_limit_reached`, and a publish with `source_contact_limit`, so the platform stays sized for its accounts. Breaking: a caller at the limit removes contacts or asks the tenant to raise it. - An inbound call from a number the account does not hold, with the account at its contact limit, is served without a contact, so a call is never refused for the limit. - A data field holds one type across the account’s contacts: `string`, `number`, `boolean`, `array`, or `object` for a field that holds fields of its own. The first write of a field gives it its type, and the type is free again once no contact holds the field, so a type is changed by removing the field first. A value of another type, or an object where the field holds a value, is refused with `contact_data_limit`, `type_mismatch`, `params {type, got}`, so a query and a sort over a field compare like with like. Breaking: a caller that wrote mixed types sends one type per field. - A data value set to `null` removes the field from the contact, so a field is cleared with the same write that sets the others. A `null` item inside an array is refused, since an array holds scalars only. Breaking: a caller that stored `null` as a value sends no key or another value. - A call that writes contact data stores each field as the type the field holds (`"42"` becomes 42, 7 becomes `"7"`), and skips a value that does not read as that type or breaks a limit, so a call never fails on the contact’s data. A field the contact already held keeps its value when the call’s value cannot be written, and new fields past the field limit are dropped: first the fields no contact of the account holds yet, from the end of the alphabet, then the fields the account learned last. - A segment source row is rejected when a value is longer than the account’s value limit in bytes, or does not read as the type its field holds; before, the bound was 1000 characters. Validate and publish cast by the types at that moment, and a publish in which one new field gets two types is refused before any contact changes. `POST /v1/a/segment/{id}/source/-/publish` is refused with `source_data_limit` or `source_contact_limit` while the batch breaks a limit. Breaking: a file with longer values is rejected row by row. - Contacts stored before this version lose the values that break the new rules, so every field holds one type from this version on: `null` values and `null` array items; a value where another contact holds an object at that field; and at a field held as several types, the values of every type but the one the account learned first, or, learned at one moment, the one most contacts hold. Breaking: a client that read such a value no longer finds it. - API reference: every description whose facts form a set is written as a list under one of a fixed set of labels, so values, rules and refusals are read at a glance. Corrected facts: the STT routes are `/v1/a/adapters/stt/*`; the Agent tag describes CRUD and archive; the profile route is `/v1/a/profile`; a number pool delete by external id is refused while agents use the pool; `scenario_not_found` covers a scenario of another account of the tenant that is not shared for copy. ## 1.72.2 ### Changed - `GET /v1/a/adapters/stt/info/spec`: the `languages` filter matches as `info/model` does. A locale also selects an engine that lists only the bare language (`languages=en-US` returns the soniox item with `language: en`), and a bare language selects its whole family (`languages=en` returns every `en-*` pair). The GUI builder reads the first item for one engine and one language, and soniox English did not show the endpoint detection settings. Breaking: a caller reads `language` on each item, which carries the code as the engine lists it. ### Fixed - `GET /v1/a/adapters/stt/info/model` and `info/spec`: the language of a code is the part before the first `-`, no longer the first two characters, so a three-letter code no longer returns the models of another language (`fil-PH` no longer returns soniox `fi`, `yue` returns `yue-CN` and `yue-Hant-HK`). ## 1.72.1 ### Changed - API reference: every field description opens with what the field does (`total`: “Counts the accounts matching the query, ignoring paging”), so a reader learns a field’s job from its first word. No behaviour changes. ## 1.72.0 ### Changed - `GET /v1/a/communication`, `GET /v1/a/communication/{id}`, `POST /v1/a/communication/-/dispatch`: `variables` and `result_payload.variables` no longer carry `call.dialog-TEXT`, `call.dialog-BASE64`, `last_.*` and `current_brick.*`, because the dialog in three forms and the state of the last brick were most of the stored size of a call. Breaking: a caller or a webhook target that read these keys reads the dialog from `call.dialog`; the other keys are no longer kept. - `GET /v1/a/communication-result`, `GET /v1/a/communication-result/{id}`: `variables` comes from the call and no longer carries the keys above, so a result no longer stores a second copy of the call’s variables. - A resent result carries the same variables as its first delivery, because the variables are stored once, on the call. - Every test call is recorded, its audio and the personal data of the call, whatever the agent’s recording setting, so a test of a scenario can always be listened back. - Calls stored before this version lose the removed keys from `variables`, and their `result_payload` no longer holds a copy of the variables.