Get started with three simple steps
This guide will walk you through authentication and making your first API call.Step 1: Obtain API Credentials
Contact your Telegent representative to receive your API credentials:AccountKey(e.g.,DID-1e24785ab-3f3c-7db1-89d7-956d80fdnn2)AccountSecret(e.g.,cfmtvVERgKcdqKZZTwIjF4S1)
Step 2: Authenticate and Get Token
Make a POST request to the authentication endpoint:Step 3: Make Your First API Call
Use your token to search for available phone numbers:Congratulations! You’ve successfully authenticated and made your first API call.
Next Steps
Explore these key API capabilities:Provision Numbers
Order and activate phone numbers for your application
Send Messages
Start sending SMS and MMS messages
Configure Voice
Set up IVR menus and voice routing
Port Numbers
Port existing numbers to Telegent
Key Concepts
Phone Number Formats
Phone Number Formats
All phone numbers use E.164 format:
+<country_code><number>Examples:- US:
+18015551234 - UK:
+442071234567
Message Types
Message Types
- A2P (Application-to-Person): Business messaging to consumers
- P2P (Person-to-Person): Individual messaging
Number Classifications
Number Classifications
- MVNO: Mobile virtual network operator numbers
- IoT: Internet of Things capable numbers
- VoIP: Voice over IP numbers
Authentication
Authentication
- Tokens expire after the time specified in
TokenExpiry - Request a new token when expired
- Use the same credentials for re-authentication