POST/numbers
Issue a number
Buys a fresh virtual number for one app in one country. The price is taken from your balance straight away. The number starts in waiting. Enter it in the app, then poll for the code.
appService slug, e.g. telegram, whatsapp, openai.
countryTwo-letter country code, e.g. us, gb, in.
Request
curl -s https://coingite.com/api/v1/numbers \
-H "Authorization: Bearer $COINGITE_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
Returns the current state of a number. Poll every few seconds while the status is waiting. When the SMS arrives the status turns to received and code holds the digits. After 20 minutes with no code the status is expired and the price is refunded to your balance.
Request
curl -s https://coingite.com/api/v1/numbers/num_8fK2a1 \
-H "Authorization: Bearer $COINGITE_KEY"
Response 200
{
"id": "num_8fK2a1",
"status": "received",
"code": "48391",
"number": "+14155550199"
}
DELETE/numbers/{id}
Cancel a number
Cancels a number that is still waiting and refunds its price to your balance. Once a code has been received the number can no longer be cancelled.
Request
curl -s -X DELETE \
https://coingite.com/api/v1/numbers/num_8fK2a1 \
-H "Authorization: Bearer $COINGITE_KEY"
Response 200
{
"id": "num_8fK2a1",
"status": "cancelled",
"refunded": 0.45
}
GET/prices
List prices
Lists every country available for an app, cheapest first, with the price per code and how many numbers are in stock right now. Use it to pick a country before issuing.
appService slug to price, e.g. telegram.
Request
curl -s "https://coingite.com/api/v1/prices?app=telegram" \
-H "Authorization: Bearer $COINGITE_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
Returns the funds left on your account in US dollars. Check it before a batch of numbers so a job never stalls mid-run.
Request
curl -s https://coingite.com/api/v1/balance \
-H "Authorization: Bearer $COINGITE_KEY"
Response 200
{
"balance": 42.15
}