POST/numbers
Issue a number
Takes out a fresh virtual number for one app in one country, debiting the price from your balance at once. It opens in waiting: put it into the app, then poll for the code.
appThe service slug, for instance telegram, whatsapp or openai.
countryA two-letter country code, such as us, gb or in.
Request
curl -s https://simlyra.com/api/v1/numbers \
-H "Authorization: Bearer $SIMLYRA_KEY" \
-d app=telegram -d country=us
Response 201
{
"id": "num_8fK2a1",
"number": "+14155550199",
"status": "waiting",
"app": "telegram",
"country": "us",
"price": 0.45
}
GET/numbers/{id}
Poll for the code
Hands back where a number stands right now. Keep polling every few seconds while it reads waiting. The moment the SMS lands, the status flips to received and code carries the digits. Twenty minutes with nothing leaves it expired, and the price is already back on your balance.
Request
curl -s https://simlyra.com/api/v1/numbers/num_8fK2a1 \
-H "Authorization: Bearer $SIMLYRA_KEY"
Response 200
{
"id": "num_8fK2a1",
"status": "received",
"code": "48391",
"number": "+14155550199"
}
DELETE/numbers/{id}
Cancel a number
Releases a number that is still waiting and puts its price back on your balance. Once a code has come through, the number is settled and can no longer be cancelled.
Request
curl -s -X DELETE \
https://simlyra.com/api/v1/numbers/num_8fK2a1 \
-H "Authorization: Bearer $SIMLYRA_KEY"
Response 200
{
"id": "num_8fK2a1",
"status": "cancelled",
"refunded": 0.45
}
GET/prices
List prices
Walks every country an app can use, cheapest first, with the price per code and how many numbers are free at this moment. Read it to settle on a country before you issue.
appThe service slug to price, for instance telegram.
Request
curl -s "https://simlyra.com/api/v1/prices?app=telegram" \
-H "Authorization: Bearer $SIMLYRA_KEY"
Response 200
[
{ "country": "ru", "price": 0.28, "stock": 1842 },
{ "country": "in", "price": 0.33, "stock": 517 },
{ "country": "us", "price": 0.45, "stock": 96 }
]
GET/balance
Check balance
Reports what is left on your account, in US dollars. Read it ahead of a batch so a run never stops short halfway through.
Request
curl -s https://simlyra.com/api/v1/balance \
-H "Authorization: Bearer $SIMLYRA_KEY"
Response 200
{
"balance": 42.15
}