SMS API
SMS Pricing
GET/api/v1/sms/pricing
Retrieve SMS pricing for different countries and regions. Use this endpoint to check rates before sending messages or to display pricing to your users.
Select Language
REQUEST
# Get all SMS pricing
curl -X GET \
https://api.sendcomms.com/api/v1/sms/pricing \
-H "Authorization: Bearer YOUR_API_KEY"
# Get pricing for a specific country
curl -X GET \
"https://api.sendcomms.com/api/v1/sms/pricing?country_code=233" \
-H "Authorization: Bearer YOUR_API_KEY"
# Get pricing for a phone number
curl -X GET \
"https://api.sendcomms.com/api/v1/sms/pricing?phone=+233540800994" \
-H "Authorization: Bearer YOUR_API_KEY"
# Get pricing by region
curl -X GET \
"https://api.sendcomms.com/api/v1/sms/pricing?region=africa" \
-H "Authorization: Bearer YOUR_API_KEY"Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| country_code | string | Optional | Filter by country code (e.g., 233, 1, 44) |
| phone | string | Optional | Get pricing for a specific phone number |
| region | string | Optional | Filter by region: africa, europe, asia, north_america |
Response Codes
200Success401Unauthorized
