112+ countries115+ appsPay per code with cryptoRefunded if no code arrives

Developers

Issue numbers and read codes from your own code

A small REST API over your Coingite balance. Issue a one-time virtual number for any app and country, then poll for the SMS code as JSON. Same prices, same auto refund, no code in time and the balance goes back.

Bearer authJSON responsesAuto refund

Authentication

One key, one balance

Create a key on the dashboard and send it as a Bearer token on every request. The same balance powers the dashboard and the API, so a key spends from the funds you already topped up in crypto.

Base URL

https://coingite.com/api/v1

All endpoints are relative to this URL. Requests must use HTTPS.

Authorization header

Authorization: Bearer cg_live_7Qx...k2P

Manage keys on the API keys page. Keep them server-side. A key that leaks can spend your balance.

Quick start

From zero to a code in three calls

01

Create a key

Sign up for a token account, top up in crypto, and generate a live key on the dashboard. That is the only secret your code needs.

02

Issue a number

Post the app and country. The price is charged from your balance and you get back a number to enter in the app.

03

Poll for the code

Call the number by id every few seconds until its status turns to received and the code field is filled.

# 1. issue a number for Telegram in the US
curl -s https://coingite.com/api/v1/numbers \
  -H "Authorization: Bearer $COINGITE_KEY" \
  -d app=telegram -d country=us

# 2. poll for the code (repeat every ~3s)
curl -s https://coingite.com/api/v1/numbers/num_8fK2a1 \
  -H "Authorization: Bearer $COINGITE_KEY"

Reference

Endpoints

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
}

Good to know

Rate limits, errors and retries

Rate limits

Up to 10 requests per second per key. Polling a number once every 3 to 5 seconds sits well inside that. Over the limit returns 429 with a Retry-After header in seconds. Back off and try again.

Idempotency

Send an Idempotency-Key header on POST /numbers to make retries safe. A repeat with the same key returns the first number instead of issuing (and charging for) another.

-H "Idempotency-Key: 9f1c-order-204"

Error format

Every error returns the matching HTTP status and a JSON body with a stable code and a human-readable message. Branch on code, show message.

{
  "error": {
    "code": "insufficient_balance",
    "message": "Top up your balance to issue a number."
  }
}
401 invalid_key402 insufficient_balance404 not_found409 out_of_stock429 rate_limited

Ship it with your key

Create a token account, top up in crypto, and generate a live key in a click.