This directory provides ready-to-run examples and templates to help you get started quickly with the Sinch Java SDK.
| Directory | Purpose | Java |
|---|---|---|
getting-started/ |
Minimal one-feature examples, each paired with a Sinch tutorial | 8+ |
snippets/ |
Self-contained code snippets covering every API operation | 8+ |
client/ |
SDK Client template application | 8+ |
sinch-events/ |
Spring Boot server template to process received Sinch Events | 21+ |
tutorials/ |
Step-by-step tutorials combining multiple SDK features | 21+ |
Best entry point if you are new to the SDK.
getting-started/ contains small, focused examples — one per feature — each matching a tutorial on developers.sinch.com.
getting-started/
├── conversation/
│ ├── send-text-message/
│ └── respond-to-incoming-message/
├── numbers/
│ ├── search-available/
│ ├── rent-first-available-number/
│ └── rent-and-configure/
├── sms/
│ ├── send-sms-message/
│ └── respond-to-incoming-message/
├── verification/
│ └── user-verification-using-sms-pin/
└── voice/
├── make-a-call/
└── respond-to-incoming-call/
Each subdirectory contains its own README.md with a link to the corresponding online tutorial and a pointer to the shared client configuration.
snippets/ contains individual, self-contained Java classes demonstrating a single API operation each. They are a useful reference when you need to know exactly how to call a specific endpoint.
Covered services and operations:
See dedicated README file
client/ is a skeleton of application that lets you explore all SDK features through a menu-driven interface.
Useful when you want to experiment with several services without writing code.
See dedicated README file
sinch-events/ is a Spring Boot server template for receiving and processing Sinch Events.
Useful when you need a starting point for a backend that reacts to inbound messages, delivery reports, call events, or verification results.
See dedicated README file
tutorials/ contains longer, scenario-based examples that combine multiple SDK features.
tutorials/voice/capture-leads-app/
A Spring Boot application that initiates outbound calls from a CLI helper and processes the resulting call events on a local server. Accompanies the Qualify Leads tutorial on the Sinch developer portal.
See the tutorial README for setup instructions.