{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-docs/functions/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["partial"]},"type":"markdown"},"seo":{"title":"Developer Documentation","siteUrl":"https://developers.sinch.com","llmstxt":{"title":"Sinch Developer Documentation","description":"LLMs.txt containing a map of all the documentation files for Sinch.","sections":[{"title":"SMS API","description":"The SMS API allows you to send and receive SMS messages with a few easy steps. You can also send bulk SMS messages to multiple customers using the Sinch SMS service.","includeFiles":["docs/sms/**/*.md","docs/sms/**/*.yaml"],"excludeFiles":["docs/sms/index.md"]},{"title":"Numbers API","description":"The Numbers API enables you to search for, view, and activate numbers. It's considered a precursor to other APIs in the Sinch product family. The numbers API can be used in tandem with any of our APIs that perform messaging or calling.","includeFiles":["docs/numbers/**/*.md","docs/numbers/**/*.yaml"],"excludeFiles":["docs/numbers/index.md"]},{"title":"Conversation API","description":"Send and receive messages globally on many popular channels with ease and confidence when using Sinch's Conversation API. Conversation API is the preferred API for sending mobile messages on SMS and other social channels with Sinch. It is a simple API with unified error messages, consistent request payloads, and common webhook payloads that are channel-agnostic.","includeFiles":["docs/conversation/**/*.md","docs/conversation/**/*.yaml"],"excludeFiles":["docs/conversation/index.md"]},{"title":"Voice API","description":"The Voice API works as a big telephony switch. The Voice API handles incoming phone calls (also known as incoming call “legs”), sets up outgoing phone calls (or outgoing call “legs”), and bridges the two. The incoming call leg may come in over a data connection (from a smartphone or web application using the Sinch SDKs) or through a local phone number (from the PSTN network). Similarly, the outgoing call leg can be over data (to another smartphone or web application using the Sinch SDKs) or the PSTN network.","includeFiles":["docs/voice/**/*.md","docs/voice/**/*.yaml"],"excludeFiles":["docs/voice/index.md"]},{"title":"Verification API","description":"The Verification API is a platform for phone number verification. It consists of the API and different software development kits (the Sinch SDKs) that you integrate with your smartphone or web application and cloud based back-end services. Together they enable SMS, Flashcall, Phone Call and Data verification in your application.","includeFiles":["docs/verification/**/*.md","docs/verification/**/*.yaml"],"excludeFiles":["docs/verification/index.md"]},{"title":"Provisioning API","description":"Provisioning API allows you to programmatically set up your senders, accounts and templates on your favorite messaging platforms on the Conversation API. For now, you can create your first WhatsApp channel through Meta's Embedded sign up, you can configure your first SMS App and configure your webhooks. As development continues, we will be adding the most commonly used channels.","includeFiles":["docs/provisioning-api/**/*.md","docs/provisioning-api/**/*.json"],"excludeFiles":["docs/provisioning-api/index.md"]},{"title":"Elastic SIP Trunking API","description":"With Elastic SIP Trunking you can create and manage your SIP trunks and phone numbers programmatically.","includeFiles":["docs/est/**/*.md","docs/est/**/*.yaml"],"excludeFiles":["docs/est/index.md"]},{"title":"Fax API","description":"Send and receive HIPAA compliant faxes on our modern fax platform using our developer-friendly API.","includeFiles":["docs/fax/**/*.md","docs/fax/**/*.yaml"],"excludeFiles":["docs/fax/index.md"]},{"title":"In-app Voice and Video SDK","description":"The In-app Voice and Video SDK enables you to add voice and video calling capabilities directly into your mobile or web application using the Sinch SDKs.","includeFiles":["docs/in-app-calling/**/*.md"],"excludeFiles":["docs/in-app-calling/index.md"]}],"hide":false,"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"what-are-sinch-functions-and-the-cli","__idx":0},"children":["What are Sinch Functions and the CLI?"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"what-sinch-functions-is-30-seconds","__idx":1},"children":["What Sinch Functions is (30 seconds)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Sinch is a communications platform. Businesses use Sinch APIs to:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Make and receive phone calls (PSTN, SIP)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Send and receive SMS, MMS, WhatsApp, Messenger, Viber, RCS"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Send faxes"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Verify users (OTP, flashcall, data verification)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Route calls through SIP trunks"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You, the developer, interact with Sinch in two ways: REST APIs and the Sinch CLI."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"what-the-sinch-cli-is","__idx":2},"children":["What the Sinch CLI is"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sinch"]}," command-line tool wraps Sinch REST APIs into fast developer workflows. It does three things:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Manage Sinch resources from your terminal."]}," Rent phone numbers, configure voice apps, manage SIP trunks, send faxes, send messages, store secrets."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Build and deploy Sinch Functions."]}," Scaffold a function from a template, run it locally with hot reload, deploy it to production."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Keep your credentials safe."]}," API keys are stored in the OS keychain (not in a dotfile), so nothing leaks into shell history or version control."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Install it, log in once, and every Sinch workflow is a command away."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"what-sinch-functions-are","__idx":3},"children":["What Sinch Functions are"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Sinch Functions are serverless compute for voice and messaging. Instead of standing up a server to handle an incoming call or SMS, you write a function:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["A call comes in → Sinch sends a callback to your function → you return call-control instructions (SVAML)."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["An SMS arrives → Sinch posts a webhook → your function replies, stores data, or fans out to other APIs."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["You want a custom HTTP endpoint → you export a handler, Sinch exposes it at a URL."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Sinch runs your code in isolated containers, auto-scales to traffic, and deploys in seconds. No infrastructure to manage."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"why-use-functions-instead-of-your-own-server","__idx":4},"children":["Why use Functions instead of your own server?"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["No infrastructure."]}," No containers, no load balancers, no capacity planning."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Fast deploys."]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sinch functions deploy"]}," packages and ships in under a minute."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["SDK clients pre-wired."]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["context.voice"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["context.conversation"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["context.sms"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["context.numbers"]}," are ready to use — no credential management in your code."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Batteries included."]}," Cache, blob storage, SQLite database, environment secrets — all injected by the runtime."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Local development that feels like production."]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sinch functions dev"]}," runs your function on your laptop with a public tunnel so Sinch can reach it."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"how-the-cli-and-functions-relate","__idx":5},"children":["How the CLI and Functions relate"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The CLI is a general Sinch developer tool. Functions is a serverless product built on top of Sinch, and the CLI happens to be the primary interface for it. You can use one without the other:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["CLI without Functions:"]}," rent a number, configure its SMS webhook to point at an existing server you already run. Done."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Functions without full CLI:"]}," write and deploy an IVR, never touch ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sinch numbers"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sinch fax"]},"."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Think of it this way:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The CLI is ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["how you work"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Functions are ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["what you build"]}," when you want Sinch to host your code."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"runtime-mental-model","__idx":6},"children":["Runtime mental model"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The Functions runtime is designed to feel like a framework you already know:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Node.js runtime is effectively Express with conventions."]}," You export handlers, Sinch maps URL paths to them, you get a request and return a response."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["C# runtime is ASP.NET MVC with controllers."]}," You extend a base controller, override the methods you care about, and the runtime DI container wires up services and SDK clients."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["That's it. The rest of the docs are conventions, the SVAML builder APIs, and where to find the context object."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"where-to-go-next","__idx":7},"children":["Where to go next"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"/docs/functions/concepts/architecture"},"children":["Architecture"]}," — how the pieces fit together end-to-end"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"/docs/functions/concepts/glossary"},"children":["Glossary"]}," — ICE, ACE, SVAML, Voice App, and other Sinch terms"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"/docs/functions/cli/installation"},"children":["Install the CLI"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"#"},"children":["Your first Function"]}," — from scratch, no templates"]}]}]},"headings":[{"value":"What are Sinch Functions and the CLI?","id":"what-are-sinch-functions-and-the-cli","depth":1},{"value":"What Sinch Functions is (30 seconds)","id":"what-sinch-functions-is-30-seconds","depth":2},{"value":"What the Sinch CLI is","id":"what-the-sinch-cli-is","depth":2},{"value":"What Sinch Functions are","id":"what-sinch-functions-are","depth":2},{"value":"Why use Functions instead of your own server?","id":"why-use-functions-instead-of-your-own-server","depth":3},{"value":"How the CLI and Functions relate","id":"how-the-cli-and-functions-relate","depth":2},{"value":"Runtime mental model","id":"runtime-mental-model","depth":2},{"value":"Where to go next","id":"where-to-go-next","depth":2}],"frontmatter":{"seo":{"title":""}},"lastModified":"2026-04-15T14:23:23.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/docs/functions/concepts/overview","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}