GET
/balance
Get balance
Returns your account's current balance in US dollars. Receiving codes and sending SMS use the same balance.
Parameters
No parameters.
Sample request
request
$ curl https://today-sms.com/api/v1/balance \
-H "Authorization: Bearer YOUR_API_KEY"
Sample response
response
{
"balance": "42.5000",
"currency": "USD"
}
Possible errors
| unauthorized | API key is missing or wrong |
| not_allowed | The API opens after your first top-up is credited |
| rate_limited | Too many requests in 1 minute |
GET
/apps
List apps
Lists apps that have numbers right now. Returns the app code, name, lowest price and number of countries with numbers.
Parameters
No parameters.
Sample request
request
$ curl https://today-sms.com/api/v1/apps \
-H "Authorization: Bearer YOUR_API_KEY"
Sample response
response
[
{ "app": "telegram", "name": "Telegram", "from": "0.4515", "countries": 61 }
]
Possible errors
| unauthorized | API key is missing or wrong |
| not_allowed | The API opens after your first top-up is credited |
GET
/prices?app=telegram
Countries and prices for an app
Returns one app's countries, cheapest first. Includes the country code, ISO code, price and how many numbers are available now.
Parameters
| Name | Type | Required | Description |
|---|
| app | string | Required | App code (the app value from GET /apps) |
Sample request
request
$ curl https://today-sms.com/api/v1/prices?app=telegram \
-H "Authorization: Bearer YOUR_API_KEY"
Sample response
response
[
{ "country": "indonesia", "iso": "id", "price": "0.4515", "stock": 702866 }
]
Possible errors
| bad_request | A required value is missing or in the wrong format |
| unauthorized | API key is missing or wrong |
POST
/numbers
Buy a number
Buys a number for the app and country you choose. The price is taken from your balance and the number waits for SMS for the set time. If confirming the number takes longer, it returns 202 with the checking status.
Parameters
| Name | Type | Required | Description |
|---|
| app | string | Required | App code |
| country | string | Required | Country code (the country value from GET /prices) |
Sample request
request
$ curl -X POST https://today-sms.com/api/v1/numbers \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"app":"telegram","country":"indonesia"}'
Sample response
response
{
"id": "N-7K2M-QX4P-9D3A",
"app": "telegram",
"country": "indonesia",
"phone": "+6281234567890",
"price": "0.4515",
"refunded": "0.0000",
"status": "waiting",
"expires_at": "2026-10-18T09:20:00.000Z",
"sms": []
}
Possible errors
| bad_request | A required value is missing or in the wrong format |
| not_enough_balance | Balance too low, please top up first |
| too_many_open | Too many open numbers, please finish or cancel some |
| no_numbers | No numbers for this app and country right now |
GET
/numbers/{id}
Number status and SMS
Returns the number's status and every SMS received so far. The verification code is also given separately in code.
Parameters
| Name | Type | Required | Description |
|---|
| id | string | Required | The id you got when buying the number (starts with N-) |
Sample request
request
$ curl https://today-sms.com/api/v1/numbers/N-7K2M-QX4P-9D3A \
-H "Authorization: Bearer YOUR_API_KEY"
Sample response
response
{
"id": "N-7K2M-QX4P-9D3A",
"status": "received",
"sms": [
{ "code": "482913", "text": "Your code is 482913", "at": "2026-10-18T09:02:11.000Z" }
]
}
Possible errors
| not_found | No such number or message in your account |
POST
/numbers/{id}/cancel
Cancel a number
Cancels a number that has received no SMS, from 120 seconds after purchase. The full amount goes back to your balance.
Parameters
| Name | Type | Required | Description |
|---|
| id | string | Required | Number id (starts with N-) |
Sample request
request
$ curl -X POST https://today-sms.com/api/v1/numbers/N-7K2M-QX4P-9D3A/cancel \
-H "Authorization: Bearer YOUR_API_KEY"
Sample response
response
{
"id": "N-7K2M-QX4P-9D3A",
"status": "canceled",
"refunded": "0.4515"
}
Possible errors
| too_early | You can cancel from 120 seconds after purchase |
| has_sms | Numbers that have received SMS cannot be cancelled |
| try_again | Cancellation not confirmed yet, please try again in 1 minute |
| not_found | No such number or message in your account |
POST
/numbers/{id}/finish
Finish a number
Closes the number after you receive the code. A closed number no longer receives SMS.
Parameters
| Name | Type | Required | Description |
|---|
| id | string | Required | Number id (starts with N-) |
Sample request
request
$ curl -X POST https://today-sms.com/api/v1/numbers/N-7K2M-QX4P-9D3A/finish \
-H "Authorization: Bearer YOUR_API_KEY"
Sample response
response
{
"id": "N-7K2M-QX4P-9D3A",
"status": "finished"
}
Possible errors
| not_found | No such number or message in your account |
GET
/messages/prices
SMS prices by country
Returns the price per SMS for each country for sending SMS. Includes the ISO code, country code and price per SMS (USD).
Parameters
No parameters.
Sample request
request
$ curl https://today-sms.com/api/v1/messages/prices \
-H "Authorization: Bearer YOUR_API_KEY"
Sample response
response
[
{ "iso": "us", "dial": "1", "price": "0.0042" },
{ "iso": "gb", "dial": "44", "price": "0.0066" }
]
Possible errors
| unauthorized | API key is missing or wrong |
| not_allowed | The API opens after your first top-up is credited |
POST
/messages
Send SMS
Sends SMS to a list of recipients with your message. Up to 1,000 recipients per request, and duplicate numbers get only one message. Add at to schedule sending for that time (UTC). The total cost is held from your balance when sending, and failed parts are refunded to your balance.
Parameters
| Name | Type | Required | Description |
|---|
| to | string[] | Required | List of numbers in international format (with + and country code), up to 1,000 |
| text | string | Required | Message text. 160 GSM-7 or 70 Unicode characters is one SMS |
| at | string | Optional | Scheduled time, ISO 8601 UTC (e.g. 2026-10-18T10:00:00Z) |
| ref | string | Optional | Your own reference, such as an order number, up to 64 characters |
Sample request
request
$ curl -X POST https://today-sms.com/api/v1/messages \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"to":["+14155550100","+447700900123"],"text":"Your code is 482913"}'
Sample response
response
{
"id": "m_7Q2K9X",
"status": "queued",
"recipients": 2,
"parts": 1,
"encoding": "GSM-7",
"cost": "0.0136"
}
Possible errors
| bad_request | A required value is missing or in the wrong format |
| too_many_recipients | Up to 1,000 recipients per request |
| not_enough_balance | Balance too low, please top up first |
| not_available | This product opens soon. This request was not accepted and your balance is unchanged |
GET
/messages/{id}
Sending status and delivery reports
Returns the overall status of a sent message and a delivery report for each recipient. Amounts for failed parts are added to refunded.
Parameters
| Name | Type | Required | Description |
|---|
| id | string | Required | The id you got when sending |
Sample request
request
$ curl https://today-sms.com/api/v1/messages/m_7Q2K9X \
-H "Authorization: Bearer YOUR_API_KEY"
Sample response
response
{
"id": "m_7Q2K9X",
"status": "done",
"cost": "0.0136",
"refunded": "0.0083",
"reports": [
{ "to": "+14155550100", "status": "delivered", "at": "2026-10-18T10:00:04Z" },
{ "to": "+447700900123", "status": "failed", "at": "2026-10-18T10:00:09Z" }
]
}
Possible errors
| not_found | No such number or message in your account |
POST
/messages/{id}/cancel
Cancel a scheduled send
Cancels a scheduled send that has not gone out yet. The full amount held goes back to your balance.
Parameters
| Name | Type | Required | Description |
|---|
| id | string | Required | Message id |
Sample request
request
$ curl -X POST https://today-sms.com/api/v1/messages/m_7Q2K9X/cancel \
-H "Authorization: Bearer YOUR_API_KEY"
Sample response
response
{
"id": "m_7Q2K9X",
"status": "canceled",
"refunded": "0.0136"
}
Possible errors
| too_late | Messages that have started sending cannot be cancelled |
| not_found | No such number or message in your account |