Skip to content

Changelog

0.9.4

Released 2026-12-02.

Deploy warns about folders that won't reach production

For Node.js functions, sinch functions deploy lists any top-level folder that is uploaded but not deployed. Production only receives dist/, node_modules/, package.json, assets/, public/ and protected/, so a folder such as content/ works under sinch functions dev and is missing after deploy. Put files your code reads in assets/. Folders the CLI already leaves out of the upload, such as data/ and storage/, are not reported. The warning never blocks the deploy.

Deploy checks your project credentials

Deploy warns when PROJECT_ID in .env differs from the project you are logged in to, and checks the key pair that ships with the function.

Login-only pages

The docs describe protected/: files there are served at the same URL path, but only to visitors who log in with the function's Basic Auth credentials. It needs @sinch/functions-runtime 0.7.5 or later.

0.9.2

Released 2026-12-01.

  • Resources the CLI creates for a function are recorded in sinch.json, and deploy connects them to the function.
  • conversation send can set channel properties, such as the SMS sender.
  • sinch functions dev on Windows keeps Path, SystemRoot and ProgramData, so C# NuGet restore works again.
  • The CLI no longer generates CONVERSATION_WEBHOOK_SECRET; local Voice v2 callbacks are verified in dev.
  • C# deploy warns about a declared secret with no value, as Node.js deploy already did.
  • Updates are offered when a command finishes and installed after it exits.
  • Node.js 24, @sinch/sdk-core 1.8.

0.9.1

Released 2026-11-18.

sinch login with browser login (preview)

sinch login (and sinch logout) are shortcuts for sinch auth login and sinch auth logout. In a terminal, login asks How do you want to log in?: Sinch account (browser, preview), the default, or API key. The browser route opens the Sinch dashboard, where you approve the login; it uses PKCE, so no key secret is typed. The API key route asks for Key ID, Key Secret and Project ID as before.

  • --browser logs in through the browser without asking.
  • Without a terminal or with --json the command never prompts, so pass --browser or --credentials-file, unless SINCH_KEY_ID, SINCH_KEY_SECRET and SINCH_PROJECT_ID are all set.
  • The profile settings oauthUrl and authorizeUrl (SINCH_AUTHORIZE_URL) point the token and authorize endpoints elsewhere; both default from apiUrl.

Login offers the developer skills

After a successful login the CLI offers to install the Sinch developer skills for AI assistants. --skills installs them without asking and --no-skills skips the offer.

Install globally from npx

When you run login through npx (npx @sinch/cli auth login) and the CLI is not installed globally, it offers to run npm install -g @sinch/cli so sinch works from any terminal afterwards. --install installs without asking and --no-install skips the offer. With --json neither offer runs.

0.9.0

Released 2026-11-17.

Breaking for scripts

  • Using --profile <name> no longer makes that profile active. sinch auth login --profile x and sinch config set --profile x used to switch to x; run sinch config profile use x to switch.
  • A blank, unknown or path-like --profile now exits with code 64 before the command runs. Before, an unknown name created an empty profile.
  • sinch functions deploy with --non-interactive, CI or --json now exits with code 103 when the function changed since your copy was taken. Add --overwrite to deploy anyway.
  • sinch voice calls patch --dial no longer names the new leg transfer. Pass --dial-leg <name> to name it.

--profile works with every command

--profile <name> now selects the profile for every command, before or after the subcommand. Before, only auth login and config get|set|list honored it, so sinch --profile staging functions delete ran against the active profile's project.

  • sinch health prints the API URL it checked.
  • sinch config profile create --non-interactive no longer offers to switch or log in.
  • The binary trusts the operating system's certificate store, so a proxy root installed in the macOS keychain or the Windows store works without NODE_EXTRA_CA_CERTS. NODE_EXTRA_CA_CERTS still adds roots on top.

conversation commands work with EU and BR apps

Every sinch conversation command takes --region us|eu|br. Without it, the CLI uses the profile's conversationRegion, then asks when it can prompt (and offers to save the answer), then uses us. Before, every command went to the US region, so EU and BR apps could not be used.

  • sinch conversation apps list lists apps from all three regions (or only --region), shows each app's region, also in --json, and warns instead of failing when one region errors.
  • sinch conversation apps create takes --sms-plan <servicePlanId> and --sms-token <token> to add an SMS channel. With only --sms-plan, the token comes from SINCH_SMS_TOKEN.

Voice calls keep each SAY within 600 characters

Voice v2 drops a call whose plan has a SAY message over 600 characters, without an error. sinch voice calls create --say now splits longer text between sentences into several SAY messages. A single sentence over 600 characters, or SSML over 600, fails before the call is placed. calls create --flow and calls patch --flow reject a SAY over 600 characters with exit code 64 and name where it is; they never split.

functions deploy checks the Conversation webhook instead of changing it

The Functions API sets a function's Conversation webhook during the deploy, so sinch functions deploy no longer creates or changes webhooks itself. After the deploy, it checks that the Conversation app has a webhook targeting the function's /webhook/conversation endpoint, and warns with a sinch conversation webhooks list --app <appId> hint when it does not.

  • Deploy no longer points another function's webhook at this function, and no longer adds a second webhook with only MESSAGE_INBOUND.
  • Deploy no longer prints a false "Failed to update Conversation webhook". The check runs in the app's region from CONVERSATION_REGION, so EU and BR apps are checked too.
  • A private deploy of a function that receives Conversation or Voice callbacks now warns that the callbacks cannot reach it. With --json the warning is in warnings.

functions deploy says when it moves a function to CLI management

The first CLI deploy of an existing function moves it to CLI management, which turns off the web editor, rollback from the dashboard and the Assistant for it. sinch functions deploy now says so before packaging. Interactively it asks to continue (default: yes), and declining deploys nothing. With --non-interactive, CI, --json or no terminal, it prints the notice and deploys; --json includes it in warnings.

  • No notice for a new function, a function already managed from the CLI, or a deploy with SINCH_CLIENT=ai-builder.
  • A function deployed from the CLI before this change may show the notice once more.
  • Warnings about the recorded function and the notice are no longer dropped from --json warnings when validation runs.

functions versions and functions rollback

sinch functions versions lists a function's versions, and sinch functions rollback <version> restores an earlier version's code as a new version. <version> is the number versions shows or the version's id.

  • Rollback restores code only, not environment variables or database data. It confirms first when it can prompt, waits for the build (--no-wait skips that), and refuses a version whose build failed with exit code 103.
  • Rollback doesn't change sinch.json. Run sinch functions download to pull the restored code. Until you do, a deploy from the old copy asks before overwriting the restored version, or exits with code 103 when it can't ask.
  • Errors from the API now show the API's detail in the CLI's message.

functions deploy updates against the version your copy came from

sinch functions deploy now updates the function recorded in sinch.json by its id, and sends the recorded versionId as the base version. If the function changed since your copy was taken, deploy asks before overwriting it, or exits with code 103 when it can't ask (--non-interactive, CI, --json). A copied folder deployed under a new name creates that function instead of touching the original, with a warning that the recorded function wasn't used.

  • --overwrite deploys without the base-version check. --force does not skip it.
  • --message <text> (-m) saves a note on the new version.
  • Deploy records versionId in sinch.json, and includes it in --json output.
  • A deploy under a different --name no longer overwrites functionId in sinch.json. Before, a preview deploy moved the project to the preview function.

sinch functions download records the live version's versionId in sinch.json, and fails without leaving files behind when the function's configuration can't be fetched. sinch functions list shows a Display Name column and sinch functions status prints the display name.

C# secrets go to dotnet user-secrets, and appsettings.json is gitignored

  • sinch secrets add in a C# project ("runtime": "csharp" in sinch.json) now also stores the value with dotnet user-secrets and declares the key as "" in appsettings.json. With --json it adds userSecret and appsettings.
  • sinch functions init for C# copies a template secret you stored earlier with sinch secrets add into dotnet user-secrets, adds appsettings.json to .gitignore, and updates .vscode/tasks.json and launch.json for the renamed project, so the VS Code build task works.
  • sinch functions download for C# now stores each fetched secret exactly, including values with spaces, quotes or $. Before, those values were stored changed, or not at all.
  • Secret values reach dotnet on standard input, never in its arguments. download no longer prints dotnet's own output lines.
  • sinch secrets add no longer exits 1 when .env or appsettings.json can't be read or written. The secret is already stored, so it warns with the file and the key and exits 0. This applies to Node projects too.

Other changes

  • sinch functions init no longer writes a commented # VOICE_SERVICE_SECRET= line to .env. The Functions API sets it on deploy.
  • Some warnings no longer show the warning icon twice.

0.8.2

Released 2026-10-19.

functions deploy sends values with credential names as secrets

sinch functions deploy now sends a filled .env or appsettings.json value as a secret when its name looks like a credential. Before, every filled value was sent as plain configuration and showed in the dashboard. The function reads both kinds from its environment as before, and deploy's list of variables marks these (secret). See Configuration and secrets.

A name looks like a credential when its last word is KEY, KEYS, APIKEY, SECRET, SECRETS, TOKEN, PASSWORD, PASSWD, PASS, PWD, PASSPHRASE, CREDENTIAL or CREDENTIALS, and none of its words is PUBLIC or PUBLISHABLE. Names are split into words on non-alphanumeric characters and where a lowercase letter is followed by an uppercase one. An all-caps run is not split.

  • Sent as secrets: OPENAI_API_KEY, GITHUB_TOKEN, SMTP_PASS.
  • Kept plain: MAX_TOKENS, TOKEN_URL, AWS_ACCESS_KEY_ID, PUBLIC_KEY, OpenAIKey, and a filled PROJECT_ID_API_KEY or VOICE_APPLICATION_KEY.

For C#, only top-level appsettings.json keys count. Because the file also ships inside the package, deploy warns with the key names (not under --json) and points you to dotnet user-secrets.

A value that has deployed as a secret stays a secret, so renaming the key is the only way to make it plain again. sinch functions download treats it like any other secret: it is blank in .env, with an offer to fetch its value into your keychain. If you decline, or the run cannot prompt, a later deploy from that folder warns and leaves the key out of the function.

The developer skills offer can install for one project

The offer to install the Sinch developer skills now asks This project only (followed by the folder's path), Globally (all projects) or Skip, instead of yes or no for a global install.

  • After sinch auth login, the project choice shows only when the current folder has a sinch.json.
  • sinch functions init and sinch functions download make the offer at the end, for the folder they created.
  • Skip is saved as skipSkillsPrompt in ~/.sinch/config.json and stops the offer everywhere. sinch skills install still installs the skills later.
  • --json, --non-interactive and runs with no terminal never ask.

A project install writes .agents, .claude and skills-lock.json, so sinch functions deploy now leaves files and folders with those names out of the package, anywhere in the function folder.

functions logs -n limits the number of entries

sinch functions logs -n <N> now returns at most N entries (the API caps it at 500). Before, the CLI sent a parameter the API never read, so -n had no effect. Without -n the API still returns up to 100 entries, and the help text now says 100 (it said 50). -n now rejects anything that is not a positive whole number, with exit 64. With --follow it is still checked but has no effect.

Commands no longer keep spinning after a login retry

After a login retry, sinch functions list, download <function-id>, delete, logs, storage and db, and sinch templates list and show, now exit when the retried command finishes. Before, if you ran one of them logged out (or with stored credentials that no longer work) and logged in at the prompt, it did its work and then kept spinning until Ctrl+C. logs --follow still streams until Ctrl+C.

Other changes

  • sinch functions docs --update no longer fails every time with a .find is not a function error. It looks up the function named after the current folder on every page of the function list.
  • Download errors from sinch functions download, storage download and db download, and from the template download in sinch functions init, now show the API's message when the error has one, instead of Request failed with status code N. Exit codes and message prefixes are unchanged.

0.8.1

Released 2026-10-08.

functions init defaults to a new voice service and records what it created

The interactive voice picker now offers "Create a new one" first, and it is the default whenever the project has services; picking an existing service is opt-in. Non-interactive runs are unchanged.

  • A service or number that init creates is saved in sinch.json as createdResources, with the name of the function init created it for. A picked service, or one passed with --voice-service-id, is never recorded.
  • A sinch functions deploy of that function sends them, so deleting the function releases them. Deploy removes each one from sinch.json once the API reports it as recorded for the function.
  • A deploy under another name (--name) does not send them. If the API does not record them, they stay in sinch.json and the next deploy sends them again.

If the API rejects a deploy because another function already records one of these resources as created, the error names that function and says to remove createdResources from sinch.json. A failed deploy now prints "Failed to deploy function:" once instead of twice.

The CLI joins an inherited trace

When TRACEPARENT (W3C trace context, version 00) is set, every Functions API request forwards it unchanged, together with TRACESTATE, and the run's telemetry uses that trace id. SINCH_CLIENT and SINCH_BUILDER_SESSION_ID are sent as the X-Sinch-Client and X-Sinch-Builder-Session headers; they label diagnostics only, and invalid values are dropped. AI Builder sets these so each deploy is filed under its builder session. Without them the CLI behaves as before.

0.8.0

Released 2026-10-05.

Connection settings come from your profile only

Breaking for scripts: a project's sinch.json can no longer set projectId, apiUrl, oauthUrl, keyId, or any credential or oauth* field; those values are ignored. If a folder's sinch.json names a different project than your active profile, commands now use the profile's project. To target another project, run sinch config profile use <name> (only auth login and config get|set|list honor the --profile flag; see Configuration). In CI, set SINCH_KEY_ID, SINCH_KEY_SECRET and SINCH_PROJECT_ID together. functions download no longer writes projectId. Folders downloaded earlier still work when your active profile is on the project they came from.

0.7.0

Released 2026-09-30.

functions init can create a voice service and rent a number, and prints JSON

Voice templates now offer to create a Voice v2 service and, after showing the price and asking, rent a US LOCAL number linked to it. VOICE_SERVICE_ID and VOICE_FROM_NUMBER go into .env. New flags: --create-voice-service, --rent-number <region>, --area-code <digits>, --force (required to rent when non-interactive) and --json. New voice projects get accessKey: "managed" in sinch.json.

--json on more commands

These commands now accept --json. Each prints one JSON document on stdout and never prompts. Where confirmation is needed and neither --force nor --non-interactive is given, --json fails with an error document naming --force and exits 66. voice v1 conferences kick-all (which also takes --yes), functions download (to overwrite), storage delete, the sinch sip delete commands, auth logout and config profile delete take only --force as confirmation.

  • sinch functions delete, download, validate, db download|upload, storage list|upload|download|delete
  • sinch conversation delete and stop commands (apps, contacts, conversations, messages, templates, webhooks), and sinch sip delete commands (acls, ACL IP ranges, endpoints, trunks) and sip trunks acls remove. conversation conversations stop and conversation messages delete gain --force, and a confirmation step they did not have before (see below).
  • sinch config (all subcommands; config profile delete gains --force), sinch secrets add|get|delete|clear (secrets list already had --json), sinch skills, sinch env init
  • sinch auth status|login|logout, sinch health. auth login needs --credentials-file under --json, and auth logout gains --force.
  • sinch numbers order resume

sinch functions logs (one JSON object per line with --follow), sinch fax download and sinch upgrade also gain --json. sinch voice v1 conferences kick-all already accepted --json. It gains -f, --force, and --yes still works.

Under --json, missing or rejected credentials now print { "error": "..." } on stdout and exit 100 or 101, with no login prompt.

Some deletes with no terminal now exit 66

Breaking for scripts: with no terminal and no -f, --force, the sinch sip delete commands (acls, ACL IP ranges, endpoints, trunks) and sip trunks acls remove now exit 66 and change nothing. Before, they printed "Deletion cancelled" or "Operation cancelled" and exited 0.

conversation conversations stop and conversation messages delete now ask for confirmation. With no terminal and neither -f, --force nor --non-interactive, they exit 66 and do nothing. Before, they ran without asking.

sinch auth status exits non-zero when no credentials are configured

Breaking for scripts: sinch auth status now exits 101 (AUTH_FAILED) when no credentials are configured, with and without --json. It used to exit 0. A script or CI step that ran it and treated exit 0 as success now sees a failure. With --json it prints { "authenticated": false }.

Credentials that exist but are rejected, for example a wrong SINCH_KEY_SECRET, still exit 0. With --json the output has "authenticated": true and "tokenValid": false, so a CI check should read tokenValid rather than the exit code alone.

--json list output is an object with a named array key

Breaking for scripts: every --json list is now an object with one named array key, which leaves room for pagination fields later. A script that indexed the array directly reads the key instead, for example jq '.[0]' becomes jq '.faxes[0]'.

CommandBeforeNow
sinch fax list --json[...]{ "faxes": [...] }
sinch fax services list --json[...]{ "services": [...] }
sinch fax services numbers <service-id> --json[...]{ "numbers": [...] }
sinch fax emails list --json[...]{ "emails": [...] }
sinch fax emails numbers <email> --json[...]{ "numbers": [...] }
sinch fax cover-pages list --json[...]{ "coverPages": [...] }
sinch fax send --json (with and without --wait)[...]{ "faxes": [...] }
sinch numbers active list --json[...]{ "activeNumbers": [...] }
sinch numbers order list --json[...], or text if empty{ "orders": [...] }
sinch voice calls list --json[...]{ "calls": [...] }
sinch voice services list --json[...]{ "services": [...] }

Commands that already printed an object (conversation, sip, porting, templates, secrets, functions list) are unchanged.

Other changes

  • A failed API call exits with a code that follows its HTTP status: 401 exits 100, 403 exits 77, 404 exits 102, 409 exits 103, and 429 or 5xx exits 69. CI/CD lists every code.
  • -a, --app-key works on every Voice v1 command. On voice v1 applications numbers list it filters the listed numbers instead. voice calls create and voice calls bridge gain --service-id.
  • functions init removes the half-created directory when stopped with Ctrl+C, and exits 130.
  • New sinch conversation apps update command. It sends only the fields you pass.
  • sinch conversation apps create no longer fails with HTTP 400 because it sent an empty body.
  • sinch functions dev points the Voice and Conversation webhooks back at their deployed targets when it stops.