SMS API | Interface Information

Learn more about the interface and tyntec's SMS REST API. Our easy access to tyntec's messaging platform.

Interface Information

The REST API (Representational State Transfer Application Programming Interface) enables quick and easy access to tyntec’s messaging platform. 

The communication is established via HTTPS (Hypertext Transfer Protocol Secure) connections.

The exchanged object types are either JSON (JavaScript Object Notation) or XML (Extensible Markup Language).

tyntec accepts “application/json” or “application/xml” as “Content-Type” (and “charset=utf-8”) in the HTTP header. tyntec’s application automatically detects the object type of the request and responds accordingly.

i.e., tyntec replies to a request containing a JSON object with a response containing a JSON object; tyntec’s application reacts similarly to XML objects.

 

The “Accept” parameter can override the default response object type by tyntec’s application, e.g. the request can be a JSON object and tyntec’s response will be a XML object for “Content-Type: application/json; Accept: application/xml”.

All of tyntec’s SMS services are accessible through the base URL (Unique Resource Location) (${baseURL}):

1 | https://rest.tyntec.com/sms/v1/

Authentication is done during the setup of the REST API connection.

tyntec will provide a username (${username}) and password (${password}) to grant access to the services:

1 | https://${username}:${password}@rest.tyntec.com/sms/v1/

The Base64-encoded combination "${username}:${password}" is used as an authentication-token for the Basic HTTP authentication and can also be given in the HTTP header:

1 | Authorization: Basic ${authentication-token}