Overview
This guide walks you through the complete process of setting up your first Telegent number, configuring messaging and voice routes, and creating a subscriber. By the end, you’ll have sent your first test message!What You’ll Build:
- Authenticate with the API
- Set up message and voice routing
- Provision a phone number
- Create a subscriber
- Send a test message
Prerequisites
API Credentials
You’ll need an
AccountKey and AccountSecret from your Telegent representativeAPI Tool
Postman, cURL, or any HTTP client for making API requests
Step 1: Authenticate
All API calls require a Bearer token. Get yours first by authenticating with your credentials. API Call:POST /v1.0/oauth2/tokens
Save this token! You’ll need it in the Authorization header for all subsequent requests.
Step 2: Create Message Route
Message routes define how SMS/MMS messages are delivered to your system. This is required for ALL subscribers. API Call:POST /v1.0/message/routes
Save the MessageRouteId (also called MRID) - required for number provisioning.Step 3: Create Voice Route (Optional - MVNO Only)
Voice routes define where inbound calls are directed. Only required if you’re offering voice services. API Call:POST /v1.0/voice/routes
Save the CallRouteId (also called CRID) if you created one.Step 4: Check Available Phone Numbers
Before provisioning a number, check what’s available in your desired area. This endpoint returns a count of available numbers and the areas where they’re available. API Call:POST /v1.0/numbers/availability
Field Notes
NumberType
NumberType
"mobile" or "voip"MessageType
MessageType
"a2p" or "p2p"AreaCode & ZipCode
AreaCode & ZipCode
- AreaCode: 3-digit area code (leave blank
""for all available area codes and zipcodes) - ZipCode: 5-digit zip code (if area code unavailable, system looks at zipcode)
- Note: You can input both, but AreaCode searches first if included. If both are blank/NULL, randomized results are returned.
PageNumber
PageNumber
Pagination limits 10,000 per page
Response Fields
- ResultsTotal: Total count of available numbers in the searched area
- AvailableNumberAreas: Array of areas with available numbers
- NGP: Number Gateway Provider
- AreaCode: Area code where numbers are available
- Zipcode: Zip code where numbers are available
Review the
ResultsTotal count to confirm numbers are available in your desired area before provisioning.Step 5: Create Subscriber
Create the end user who will use the phone number. API Call:POST /v1.0/subscribers/create
Save the SubscriberIdStep 6: Provision Phone Number
Now let’s provision a phone number in your desired area with. API Call:POST /v1.0/numbers/provision
Save the PhoneNumberAssigned and PhoneNumberId for the next step.Step 7: Test Your Setup
Send a test SMS message to verify everything is working. API Call:POST /v1.0/message/outbound
🎉 Success!
You’ve completed your first setup! You now have:What’s Next?
Now that you have the basics working, explore these advanced features:Add Data Limits
Set data caps or throttling for IoT and mobile data plans
Port-In Numbers
Transfer phone numbers from other carriers
Create Packages
Build service plans to offer to customers
Subscriptions
Create subscription-based billing
Common Issues & Solutions
401 Unauthorized
401 Unauthorized
MessageRouteId is required
MessageRouteId is required
Solution: You must create a Message Route (Step 3) before provisioning numbers. Message routes are required for ALL subscribers.
Phone number already in use
Phone number already in use
Solution: The number you selected was claimed by another user. Check availability again and select a different number.
Email already exists
Email already exists
Solution: Each subscriber email must be unique across the entire platform. Try a different email address.
Invalid AccountId
Invalid AccountId
Solution: Make sure you’re using the correct AccountId provided by your Telegent representative.
API Base URL
All endpoints use this base URL:Rate Limits
- Standard tier: 50 requests per minute
- Enterprise tier: Contact support for custom limits
Need Help?
Full Documentation
Complete API reference with all endpoints
Support
Email us at support@telegent.com, Bennet@telegent.com, or Vince@telegent.com
Last Updated: January 30, 2026