REST API

Dreaming of platform independence? Rest Easy (with REST API).   

When you’re integrating a new platform into your business, the last thing you want is to waste time figuring it out from scratch. Friction is a drag, but with the right APIs, you’ll have the lubricant for smoother, simpler access and control. That’s why we provide multiple options to integrate our capabilities into your applications. It’s a cinch to connect to a wide range of services through our REST HTTPS interface (REST API). It’s a virtual friction eliminator.
 



SMS REST API

Our REST API for SMS supports standardized programming and simpler interaction for:

  • Auto-encoding: You can send UTF-8 encoding; tyntec will take care of the right encoding for termination.
  • Auto-concatenation: You send over-length messages; tyntec will take care of splitting the messages as required.
  • Direct response: tyntec will perform a consistency check and instantly reject non-conforming message requests.
  • “userContext” parameters:  You can set your own identifier for each message to link DLR and SMS with your own identifier.
  • “validityPeriod” parameters: You can specify the length of time after which the message will expire. For example, passwords might expire in 90 seconds, while viral invites might expire in 24 hours.

Here’s an example of how the SMS REST API works:

curl
-u username:password
-X POST
-H "Content-Type: application/json"
-d '{ "from":"MyCompany", "to":"+491622943176", "message":"Hello World!" }'
https://rest.tyntec.com/sms/v1/outbound/requests


 

Number Information Services REST API

tyntec’s extensive Global Number Portability and Global Number Verification services are easily accessed by our REST API:

  • Price information: You gain full cost control.
  • Synchronous and asynchronous responses: You can get immediate response or wait for the result—your choice.
  • Local time zones: You know the correct time for all relevant network elements.
  • Roaming, porting and presence status: You get a comprehensive, actionable report on your last-known service status.
  • GSM error codes: You know the whys when errors happen.

Here’s an example of how the REST API for Number Information Services works:

curl
-u username:password

-X GET
-H "Accept: application/json"
https://rest.tyntec.com/nis/v1/gnp?msisdn=+491622943176



Coverage and Pricing REST API

With tyntec’s Coverage and Pricing information integrated into your systems, you get full cost control:

  • Full price list: With automated price list updates, you will always know what you’re paying for in real time.
  • Select country: You get country-specific pricing in an instant.
  • Currently unavailable: You get the latest information on unavailable networks.

Here’s an example of how the REST API for Coverage and Pricing works:

curl
-u username:password
-X GET
-H "Accept: application/json"
https://rest.tyntec.com/sms/v1/outbound/coverage