Calculate SMS credits for a number and message
post
https://api.expiryedge.com/v1/calculateSMSCostÖffentlich - kein API-Schlüssel60/min
Anfrage
curl -X POST 'https://api.expiryedge.com/v1/calculateSMSCost' \
-H "Content-Type: application/json" \
-d '{
"phone_number": "+14155550123",
"message": "Reminder: Northwind Dental business license expires on 2026-10-15."
}'Antwort
{
"success": true,
"data": {
"phone_number": "+14155550123",
"country": "US",
"country_name": "United States",
"message_length": 68,
"segments": 1,
"credits_per_segment": 1,
"total_credits": 1,
"has_unicode": false
}
}Resolves the destination country tier from phone_number and counts segments in message (160 GSM / 70 Unicode chars). Only POST is accepted.
phone_numberstringerforderlichE.164 phone number.messagestringMessage text. Defaults to an empty string.
200
Credit calculation.
successbooleandataobject
400 | The request is missing required fields or contains invalid values. |
405 | The endpoint does not accept this HTTP method. |
429 | Too many requests for this endpoint from your IP. Wait Retry-After seconds. |
500 | Unexpected server error. Retry later; quote requestId to support. |
