Skip to content
Last updated

Templates

Templates are starter projects for voice, SMS, and AI use cases. Each template includes a README with setup instructions — that README is your getting-started guide for that template.

Browse Templates

sinch templates list                          # all templates
sinch templates list --runtime node           # Node.js only
sinch templates list --runtime csharp         # C# only
sinch templates show node/simple-voice-ivr    # full details

Templates are also browsable in the dashboard.

Create a Function from a Template

sinch functions init simple-voice-ivr --name my-ivr

Downloads the template, creates the directory, installs dependencies, and prompts for required variables and secrets.

sinch.json

Every template includes a sinch.json that configures the function:

{
  "name": "my-ivr",
  "runtime": "node",
  "description": "A voice IVR for handling inbound calls",
  "variables": {
    "COMPANY_NAME": "Acme Corp",
    "FORWARD_NUMBER": "+15559876543"
  }
}
FieldRequiredDescription
nameYesFunction name, used as the deployment identifier
runtimeYesnode or csharp
descriptionNoHuman-readable description
variablesNoNon-secret environment variables

After the first deployment, the CLI adds functionId so subsequent commands find the function automatically.