An Application Programming Interface (API) enables developers to add functionality (such as sending an SMS) to their app that would be difficult to program themselves. APIs consist of a group of methods and operations that can be accessed through endpoints, URLs that can be plugged into an application's code to send and receive information.
An example is the Sinch SMS API. It contains endpoints that enable applications to send and receive SMS messages. Imagine that you want to build an appointment reminder or marketing app. An application like this needs the ability to send SMS messages at scheduled times. To do this, your app simply sends a Post request to the SMS send endpoint . This tells Sinch the message you want to send, the numbers you want to send it to, and when you want it to be sent. Our servers handle the rest, making your development easier, faster and more productive.
Endpoints can be a pain to use directly so many developers use APIs in the guise of an SDK. In the case of the above example, let's say your app is written in Python. Instead of calling the SMS API send endpoint directly, it can call the send method of our Python SDK.
One of the most popular type of APIs is the REST API. This sends and receives data in the popular JSON format. Sinch uses REST APIs to provide integrations with SMS , WhatsApp, RCS and voice calling.
APIs, particularly REST APIs are an effective development tool that allows developers at all levels to integrate advanced functionality into their applications.
Sinch provides a wide range of programmable APIs to power all your communication needs:
Messaging APIs |
Reach any mobile phone on the planet with our powerful standalone messaging APIs for SMS, RCS, MMS, Rich SMS, WhatsApp, Instagram, Facebook Messenger, Apple Messages, Viber, LINE, Telegram, KakaoTalk, WeChat and more |
|
Conversation API |
Leverage a single API to send and receive messages over the most popular channels in the world. |
|
Voice |
Reach any mobile phone on the planet with our powerful calling APIs |
|
|
Start sending transactional or marketing emails in minutes via API |
|
Verification |
Verify users with SMS, voice, flash-calls, and data |
|
Numbers |
Get access to a complete range of carefully-tested phone numbers, to use with all your communication services |
|
Sinch Engage |
Your one platform for conversational care, marketing, and commerce |
To enable developers to use them effectively, APIs are normally extensively documented. The state of the art in documentation standards is the Open API Specification (OAS). Sinch uses OAS 3.0 to provide consistent and comprehensive API documentation. OAS files can also be imported into Postman to create Postman Collections. Postman is a convenient tool for testing APIs and is often used for QA purposes.
Authenticating APIs
APIs almost always require some form of authentication. This can come in a number of types:
The first two types of authentication are used in the Sinch Conversation API, which allows you to leverage a single API to send and receive messages over the most popular channels in the world.