Pay only when a code lands. Every number is auto-refunded if it doesn't.

Developers

Numbers and codes, straight from your own code

A quiet REST layer over the balance you already hold. Request a one-time number for any app and country, then read the SMS code back as plain JSON. The prices match the site, the refund is the same, and an empty twenty minutes returns the money on its own.

Bearer authJSON responsesAuto refund

Authentication

One key, drawing on one balance

Mint a key in the dashboard and pass it as a Bearer token with every request. The site and the API share a single balance, so a key simply spends from the crypto you have already topped up, with nothing to fund twice.

Base URL

https://cloudmerra.com/api/v1

Every path below hangs off this address, and each call has to come over HTTPS.

Authorization header

Authorization: Bearer cm_live_7Qx...k2P

Keys live on the API keys page, where you can revoke one at any time. Hold them server-side: anyone with a key can draw on your balance.

Quick start

A code in hand after three calls

01

Create a key

Open a token account, add funds in crypto, and generate a live key from the dashboard. It is the one secret your code has to carry.

02

Issue a number

Send the app and the country. The price comes off your balance and a number comes back, ready to type into the app you are verifying.

03

Poll for the code

Ask for the number by its id every few seconds until the status reads received and the code field carries the digits.

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

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

Reference

Endpoints

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://cloudmerra.com/api/v1/numbers \
  -H "Authorization: Bearer $CLOUDMERRA_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://cloudmerra.com/api/v1/numbers/num_8fK2a1 \
  -H "Authorization: Bearer $CLOUDMERRA_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://cloudmerra.com/api/v1/numbers/num_8fK2a1 \
  -H "Authorization: Bearer $CLOUDMERRA_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://cloudmerra.com/api/v1/prices?app=telegram" \
  -H "Authorization: Bearer $CLOUDMERRA_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://cloudmerra.com/api/v1/balance \
  -H "Authorization: Bearer $CLOUDMERRA_KEY"

Response 200

{
  "balance": 42.15
}

Good to know

Limits, errors and safe retries

Rate limits

Each key may send up to 10 requests a second. Polling a number once every three to five seconds stays comfortably under that line. Cross it and you get a 429 with a Retry-After header in seconds. Ease off, then come back.

Idempotency

Add an Idempotency-Key header to POST /numbers and a retry can do no harm. A second call under the same key hands back the first number rather than opening (and billing) a second one.

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

Error format

Each error comes back with its HTTP status and a JSON body holding a steady code and a plain-English message. Branch your logic on code, and show message to the person.

{
  "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

Put a key to work

Open a token account, add crypto, and a live key is one click away.