1001SMS

API Documentation

1001SMS > API Documentation

Reseller API: activations, virtual numbers, eSIMs, proxies

One key, three products. Buy activation numbers and read their codes, rent virtual numbers for days or months, sell eSIM data plans with the activation code delivered by API, and let webhooks push every event to you instead of polling. Every live endpoint under https://www.1001sms.com/api/v1 is documented here with the exact request and response.

API access

1) Sign in. 2) Open the user menu → API. 3) Create a key, choose its scopes, copy it once. Up to ten keys per account, each with its own webhook.

Create API key

Base URL

https://www.1001sms.com/api/v1

Auth

Authorization: Bearer YOUR_API_KEY

Authentication and scopes

Every endpoint requires an API key. The Bearer header is recommended; a query key works for quick tests. Each key carries scopes; a call outside them answers 403.

Authorization: Bearer YOUR_API_KEY
# Header (recommended)
curl "https://www.1001sms.com/api/v1/informative/countries" \
  -H "Authorization: Bearer YOUR_API_KEY"

# Query key (supported)
curl "https://www.1001sms.com/api/v1/informative/countries?apiKey=YOUR_API_KEY"
ScopeGrants
readLookup and account endpoints: countries, services, prices, balance, transactions.
activateEvery /activations/* endpoint.
numbersEvery /numbers/* endpoint.
esimEvery /esims/* endpoint.
proxiesEvery /proxies/* endpoint. Not on keys made before proxies existed: tick it in the key manager.

Keys created before scopes existed carry the first four. Webhook endpoints need no scope: they act on the calling key itself. Rate limit: 120 requests per minute per key.

The three products

Same key, same envelope, same balance. What differs is how long a number lives and what you get back.

ActivationVirtual numbereSIM
What it isA number for one verification codeA number that is yours for 12 h to 365 dA travel data plan for a handset
LivesMinutesThe term you rent, renewableThe plan term, from first activation
You getPhone number, then the SMSPhone number and an inboxLPA activation code, QR, ICCID, usage
Push eventssms.receivedsms.received, number.*esim.*
Scopeactivatenumbersesim

A fourth product, proxies, is not a number: it is traffic by the gigabyte on a plan with its own login and password (scope proxies, no push events).

Lookup

What can be bought as an activation: the services (apps) we verify, the countries, and the live price per operator. Prices are what you pay; a provider is only ever named by its alias EXTRA, MAIN, EXTRA 2 or NEW. An operator's deliverability is its SMS delivery rate in percent, 0 when it has not been measured.

Three ways to ask for prices

  1. 1) By country

    Only country: every service and operator sold there.

    GET https://www.1001sms.com/api/v1/informative/pricing?country=united-states

  2. 2) By service

    Only service: every country and operator that sells it.

    GET https://www.1001sms.com/api/v1/informative/pricing?service=google

  3. 3) By both

    The operator list for one market pair. This is what you order with.

    GET https://www.1001sms.com/api/v1/informative/pricing?country=US&service=google

GET/api/v1/informative/servicesscope read

Active services (apps/platforms) available for verification. Use the slug as the service value in pricing and order calls.

Example

curl "https://www.1001sms.com/api/v1/informative/services" -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": [
    {
      "id": "clx_service",
      "name": "Google",
      "slug": "google",
      "price": "0.50",
      "popular": true,
      "iconPath": "https://www.1001sms.com/icons/google.svg"
    }
  ]
}
GET/api/v1/informative/countriesscope read

Active countries where activation numbers are sold. Use the code or slug in pricing and order calls.

Example

curl "https://www.1001sms.com/api/v1/informative/countries" -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": [
    {
      "id": "clx_country",
      "name": "United States",
      "code": "US",
      "slug": "united-states",
      "flag": "US",
      "continent": "NORTH_AMERICA",
      "phoneCode": "+1"
    }
  ]
}
GET/api/v1/informative/pricingscope read

Pass country only to get every service and operator available in that country.

Parameters

NameTypeRequiredDescription
countrystringYesCountry code, name or slug. Example: US, Canada, canada.

Example

curl "https://www.1001sms.com/api/v1/informative/pricing?country=canada" -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": {
    "country": "Canada",
    "countryCode": "CA",
    "countrySlug": "canada",
    "services": [
      {
        "service": "google",
        "serviceName": "Google",
        "operators": [
          {
            "operator": "Foxtrot",
            "price": 0.49,
            "count": 13607,
            "deliverability": 73,
            "provider": "MAIN"
          }
        ]
      }
    ]
  }
}
GET/api/v1/informative/pricingscope read

Pass service only to get every country and operator for that service.

Parameters

NameTypeRequiredDescription
servicestringYesService slug from /informative/services. Example: google.

Example

curl "https://www.1001sms.com/api/v1/informative/pricing?service=google" -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": {
    "service": "google",
    "countries": [
      {
        "country": "United States",
        "countryCode": "US",
        "countrySlug": "united-states",
        "operators": [
          {
            "operator": "virtual9",
            "price": 0.45,
            "count": 1200,
            "deliverability": 92,
            "provider": "EXTRA"
          }
        ]
      }
    ]
  }
}
GET/api/v1/informative/pricingscope read

Pass both to get the exact operator list for one market pair.

Parameters

NameTypeRequiredDescription
countrystringYesCountry code, name or slug.
servicestringYesService slug.

Example

curl "https://www.1001sms.com/api/v1/informative/pricing?country=US&service=google" -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": {
    "country": "US",
    "service": "google",
    "operators": [
      {
        "operator": "Foxtrot",
        "price": 0.49,
        "count": 13607,
        "deliverability": 73,
        "provider": "MAIN"
      }
    ]
  }
}

Activations

A short-lived number for one verification code. You pick the country, the service and a provider alias, get a number, and either poll for the SMS or let the sms.received webhook push it to you. No SMS within the window means an automatic refund.

How an activation works

  1. 1) Price it

    Ask for the operators of the market pair and pick one (or let us pick).

    GET https://www.1001sms.com/api/v1/informative/pricing?country=US&service=google

  2. 2) Order

    The balance is charged at once; the response carries the number.

    POST https://www.1001sms.com/api/v1/activations/order

  3. 3) Wait for the code

    Poll /activations/check every few seconds, or subscribe to sms.received and do nothing.

    POST https://www.1001sms.com/api/v1/activations/check

  4. 4) Done, or cancel

    Received: you are done. Nothing arrived: cancel for a full refund, or wait for the automatic one.

    POST https://www.1001sms.com/api/v1/activations/cancel

POST/api/v1/activations/orderscope activate

Places a new activation order and returns the rented number. The balance is charged immediately and refunded automatically when the provider fails.

Request body (JSON)

NameTypeRequiredDescription
countrystringYesCountry code, name or slug.
servicestringYesService slug.
providerstringYesEXTRA, MAIN, EXTRA 2 or NEW.
purchaseTypestringYesMust be exactly "activation".
operatorstringNoPreferred operator/pool. If omitted, the best option is selected.

Example

curl -X POST "https://www.1001sms.com/api/v1/activations/order" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"country":"US","service":"google","provider":"EXTRA","purchaseType":"activation"}'

Response (201)

{
  "success": true,
  "data": {
    "id": "ord_123",
    "phoneNumber": "+14155552671",
    "countryCode": "US",
    "countryName": "United States",
    "serviceId": "google",
    "serviceName": "Google",
    "operatorName": "virtual9",
    "price": 0.5,
    "status": "RENTED",
    "provider": "EXTRA",
    "providerId": "987654321",
    "expiresAt": "2026-02-01T12:15:00.000Z",
    "rentedAt": "2026-02-01T12:00:00.000Z"
  }
}
POST/api/v1/activations/checkscope activate

Asks the provider for new SMS, stores them and returns the current state. When the order timed out with no SMS it is refunded here.

Request body (JSON)

NameTypeRequiredDescription
orderIdstringYesOrder id from /activations/order.

Example

curl -X POST "https://www.1001sms.com/api/v1/activations/check" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"orderId":"VALUE"}'

Response

{
  "success": true,
  "data": {
    "hasMessage": true,
    "messages": [
      {
        "id": "msg_1",
        "sender": "Google",
        "message": "Your code is 482910",
        "code": "482910",
        "receivedAt": "2026-02-01T12:03:00.000Z"
      }
    ],
    "status": "RENTED",
    "providerStatus": "RECEIVED"
  }
}
GET/api/v1/activations/{orderId}scope activate

Full order details with every stored message.

Important: Provider is returned as the reseller-safe alias: EXTRA, MAIN, EXTRA 2 or NEW.

Parameters

NameTypeRequiredDescription
orderIdpath stringYesThe order id.

Example

curl "https://www.1001sms.com/api/v1/activations/ord_123" -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": {
    "id": "ord_123",
    "phoneNumber": "+14155552671",
    "countryCode": "US",
    "countryName": "United States",
    "serviceId": "google",
    "serviceName": "Google",
    "operatorName": "virtual9",
    "price": 0.5,
    "status": "RENTED",
    "provider": "EXTRA",
    "providerId": "987654321",
    "expiresAt": "2026-02-01T12:15:00.000Z",
    "rentedAt": "2026-02-01T12:00:00.000Z",
    "purchaseType": "activation",
    "messages": []
  }
}
GET/api/v1/activations/activescope activate

Paginated orders with status RENTED, ACTIVE or PENDING, each with its latest message.

Parameters

NameTypeRequiredDescription
pageintegerNoPage number, default 1.
limitintegerNoPer page, default 20, max 100.

Example

curl "https://www.1001sms.com/api/v1/activations/active" -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": {
    "orders": [
      {
        "id": "ord_123",
        "phoneNumber": "+14155552671",
        "countryCode": "US",
        "countryName": "United States",
        "serviceId": "google",
        "serviceName": "Google",
        "operatorName": "virtual9",
        "price": 0.5,
        "status": "RENTED",
        "provider": "EXTRA",
        "providerId": "987654321",
        "expiresAt": "2026-02-01T12:15:00.000Z",
        "rentedAt": "2026-02-01T12:00:00.000Z",
        "latestMessage": null
      }
    ],
    "total": 1,
    "page": 1,
    "limit": 20
  }
}
GET/api/v1/activations/historyscope activate

Paginated order history with optional status and date filters.

Parameters

NameTypeRequiredDescription
pageintegerNoPage number, default 1.
limitintegerNoPer page, default 20, max 100.
statusstringNoRENTED, COMPLETED, PENDING, EXPIRED, BLOCKED, REFUNDED.
fromISO dateNoOrders rented from this date.
toISO dateNoOrders rented up to this date.

Example

curl "https://www.1001sms.com/api/v1/activations/history?status=EXPIRED&page=1" -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": {
    "orders": [
      {
        "id": "ord_122",
        "phoneNumber": "+14155552671",
        "countryCode": "US",
        "countryName": "United States",
        "serviceId": "google",
        "serviceName": "Google",
        "operatorName": "virtual9",
        "price": 0.5,
        "status": "EXPIRED",
        "provider": "EXTRA",
        "providerId": "987654321",
        "expiresAt": "2026-02-01T12:15:00.000Z",
        "rentedAt": "2026-02-01T12:00:00.000Z",
        "messageCount": 0
      }
    ],
    "total": 1,
    "page": 1,
    "limit": 20
  }
}
POST/api/v1/activations/cancelscope activate

Cancels one order. A full refund is given only when no real SMS was received.

Important: Some providers reject very early cancel attempts for about 1–2 minutes. An order past its expiry is settled instead: refunded if no SMS arrived (status EXPIRED). Expired orders are also refunded automatically about 10 minutes after expiry, without a cancel.

Request body (JSON)

NameTypeRequiredDescription
orderIdstringYesOrder id to cancel.

Example

curl -X POST "https://www.1001sms.com/api/v1/activations/cancel" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"orderId":"VALUE"}'

Response

{
  "success": true,
  "data": {
    "id": "ord_123",
    "status": "REFUNDED",
    "refundAmount": 0.5,
    "refundReason": "Full refund - No SMS received"
  }
}
POST/api/v1/activations/cancel-allscope activate

Attempts to cancel every order with status RENTED, ACTIVE or PENDING and reports each outcome.

Example

curl -X POST "https://www.1001sms.com/api/v1/activations/cancel-all" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": {
    "cancelled": 2,
    "failed": 1,
    "results": [
      {
        "orderId": "ord_1",
        "status": "REFUNDED",
        "refundAmount": 0.5
      },
      {
        "orderId": "ord_2",
        "status": "failed",
        "refundAmount": 0,
        "error": "Cancel failed. Please try again later."
      }
    ]
  }
}
GET/api/v1/activations/archive-allscope activate

Lists terminal orders: EXPIRED, REFUNDED and BLOCKED.

Example

curl "https://www.1001sms.com/api/v1/activations/archive-all" -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": {
    "archived": 12,
    "orders": [
      {
        "id": "ord_done_1",
        "status": "EXPIRED",
        "serviceId": "google",
        "country": "US",
        "price": 0.5,
        "rentedAt": "2026-02-01T08:00:00.000Z"
      }
    ]
  }
}

Virtual Numbers

A real number that stays yours for a term of 12 hours to a year and receives SMS from every service ("unlimited"), or a cheaper one dedicated to a single service ("service"). Countries are ISO codes, terms are short codes: 12h, 1d, 7d, 30d, 180d, 365d. Dedicated numbers are sold for 7d, 30d, 180d and 365d. Some countries sell unlimited numbers from two pools, MAIN and EXTRA, each with its own terms, prices and cancel rule. One has every term, a stock count and the 120-minute refund; the other has 30d and 365d at one flat price, no stock count, and numbers that cannot be cancelled unless /numbers/pricing says `cancellable: true`. Which pool is which can change, so read `pools` (and `unlimitedPool`, the one an order without `pool` buys from) in /numbers/pricing rather than hard-coding a name; `pool` on /numbers/order picks one.

How a virtual number works

  1. 1) Pick a country

    Eighteen countries; each sells both number types.

    GET https://www.1001sms.com/api/v1/numbers/countries

  2. 2) See what it costs

    One call returns every unlimited term and every dedicated-service offer for the country, and its pools (MAIN, EXTRA) where it has two.

    GET https://www.1001sms.com/api/v1/numbers/pricing?country=GB

  3. 3) Order

    The balance is charged at the live price. The number is live at once. Pass `pool` to choose MAIN or EXTRA where the country has both.

    POST https://www.1001sms.com/api/v1/numbers/order

  4. 4) Read the inbox

    Poll the messages endpoint, or subscribe to sms.received and be told.

    GET https://www.1001sms.com/api/v1/numbers/{id}/messages

  5. 5) Keep it

    Renew for another term before it expires, or switch autoRenew on and we do it from your balance.

    POST https://www.1001sms.com/api/v1/numbers/{id}/renew

GET/api/v1/numbers/countriesscope numbers

The countries where virtual numbers are sold, with the dial code and the number types available.

Example

curl "https://www.1001sms.com/api/v1/numbers/countries" -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": [
    {
      "code": "GB",
      "name": "United Kingdom",
      "phoneCode": "+44",
      "types": [
        "unlimited",
        "service"
      ]
    }
  ]
}
GET/api/v1/numbers/pricingscope numbers

Everything sold in a country at today's price: the unlimited terms and, per dedicated service, its terms. `service` values are what you pass to /numbers/order. Where the country has two pools of unlimited numbers, `pools` lists each pool's own terms with `cancellable` (whether a number bought for that term can be cancelled for a refund); `unlimited` is then the list of the pool named in `unlimitedPool`, which is what an order without `pool` buys. `pools` and `unlimitedPool` are absent in a country with one pool.

Parameters

NameTypeRequiredDescription
countrystringYesISO country code from /numbers/countries, e.g. GB.

Example

curl "https://www.1001sms.com/api/v1/numbers/pricing?country=GB" -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": {
    "country": "GB",
    "countryName": "United Kingdom",
    "unlimited": [
      {
        "term": "1d",
        "days": 1,
        "hours": 24,
        "price": 3.2
      },
      {
        "term": "30d",
        "days": 30,
        "hours": 720,
        "price": 12.5
      }
    ],
    "pools": {
      "MAIN": [
        {
          "term": "30d",
          "days": 30,
          "hours": 720,
          "price": 9.9,
          "cancellable": false
        },
        {
          "term": "365d",
          "days": 365,
          "hours": 8760,
          "price": 49.9,
          "cancellable": false
        }
      ],
      "EXTRA": [
        {
          "term": "1d",
          "days": 1,
          "hours": 24,
          "price": 3.2,
          "cancellable": true
        },
        {
          "term": "30d",
          "days": 30,
          "hours": 720,
          "price": 12.5,
          "cancellable": true
        }
      ]
    },
    "unlimitedPool": "EXTRA",
    "services": [
      {
        "service": "wa",
        "name": "WhatsApp",
        "fromPrice": 4.1,
        "terms": [
          {
            "term": "30d",
            "days": 30,
            "hours": 720,
            "price": 4.1
          }
        ]
      }
    ]
  }
}
GET/api/v1/numbers/availabilityscope numbers

How many unlimited numbers are in stock for one country and term right now, in one pool. The flat-price pool (the one whose terms in /numbers/pricing are 30d and 365d) reports no count: `count` is null and `inStock` says whether it sells the term.

Parameters

NameTypeRequiredDescription
countrystringYesISO country code.
termstringYes12h, 1d, 7d, 30d, 180d or 365d.
poolstringNoMAIN or EXTRA. Default: the pool named `unlimitedPool` in /numbers/pricing.

Example

curl "https://www.1001sms.com/api/v1/numbers/availability?country=GB&term=1d" -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": {
    "country": "GB",
    "term": "1d",
    "days": 1,
    "hours": 24,
    "pool": "EXTRA",
    "count": 42,
    "inStock": true
  }
}
POST/api/v1/numbers/orderscope numbers

Rents a number from the balance at the live price and returns it. Unlimited numbers may carry a nickname and auto-renew; dedicated ones need a service. In a country with two pools, `pool` chooses where an unlimited number comes from: the price, the terms and the cancel rule are the pool's own (see `pools` in /numbers/pricing).

Important: The price is whatever /numbers/pricing shows at the moment of the order, for the pool ordered from. 402 means the balance is short; the response carries `required`. The number comes back with its `pool`.

Request body (JSON)

NameTypeRequiredDescription
countrystringYesISO country code.
termstringYes12h, 1d, 7d, 30d, 180d or 365d.
typestringNo"unlimited" (default) or "service".
servicestringNoRequired for type "service": a service id from /numbers/pricing.
autoRenewbooleanNoUnlimited only. Renew from the balance before the term ends.
nicknamestringNoUnlimited only. A label of letters, numbers and spaces.
poolstringNoUnlimited only. MAIN or EXTRA; when omitted, the pool named `unlimitedPool` in /numbers/pricing. 400 when the flat-price pool does not sell the country and term.

Example

curl -X POST "https://www.1001sms.com/api/v1/numbers/order" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"country":"GB","term":"30d","type":"unlimited","autoRenew":false}'

Response (201)

{
  "success": true,
  "data": {
    "id": "num_8f2k",
    "phoneNumber": "+447700900123",
    "country": "GB",
    "countryName": "United Kingdom",
    "type": "unlimited",
    "pool": "EXTRA",
    "service": null,
    "serviceName": null,
    "term": "30d",
    "days": 30,
    "status": "ACTIVE",
    "price": 12.5,
    "autoRenew": false,
    "nickname": null,
    "rentedAt": "2026-09-22T10:00:00.000Z",
    "expiresAt": "2026-10-22T10:00:00.000Z",
    "messages": []
  }
}
GET/api/v1/numbersscope numbers

Your virtual numbers, newest first, with a message count each.

Parameters

NameTypeRequiredDescription
statusstringNoactive, expired or refunded.
pageintegerNoPage number, default 1.
limitintegerNoPer page, default 20, max 100.

Example

curl "https://www.1001sms.com/api/v1/numbers" -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": {
    "numbers": [
      {
        "id": "num_8f2k",
        "phoneNumber": "+447700900123",
        "country": "GB",
        "countryName": "United Kingdom",
        "type": "unlimited",
        "pool": "EXTRA",
        "service": null,
        "serviceName": null,
        "term": "30d",
        "days": 30,
        "status": "ACTIVE",
        "price": 12.5,
        "autoRenew": false,
        "nickname": null,
        "rentedAt": "2026-09-22T10:00:00.000Z",
        "expiresAt": "2026-10-22T10:00:00.000Z",
        "messageCount": 3
      }
    ],
    "total": 1,
    "page": 1,
    "limit": 20
  }
}
GET/api/v1/numbers/{id}scope numbers

One number with every stored message, newest first. `status` is ACTIVE, EXPIRED, REFUNDED or PENDING.

Parameters

NameTypeRequiredDescription
idpath stringYesThe number id.

Example

curl "https://www.1001sms.com/api/v1/numbers/ID_ID" -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": {
    "id": "num_8f2k",
    "phoneNumber": "+447700900123",
    "country": "GB",
    "countryName": "United Kingdom",
    "type": "unlimited",
    "pool": "EXTRA",
    "service": null,
    "serviceName": null,
    "term": "30d",
    "days": 30,
    "status": "ACTIVE",
    "price": 12.5,
    "autoRenew": false,
    "nickname": null,
    "rentedAt": "2026-09-22T10:00:00.000Z",
    "expiresAt": "2026-10-22T10:00:00.000Z",
    "messages": [
      {
        "id": "msg_1",
        "sender": "WhatsApp",
        "text": "Your WhatsApp code: 482-910",
        "code": "482910",
        "receivedAt": "2026-09-22T10:03:00.000Z"
      }
    ]
  }
}
GET/api/v1/numbers/{id}/messagesscope numbers

Asks the provider for anything new, stores it and returns every message, newest first. `fetched` is false when the provider did not answer; you then get what was already stored.

Important: Polling every 10 seconds is fine. Subscribing to the sms.received webhook is better.

Parameters

NameTypeRequiredDescription
idpath stringYesThe number id.

Example

curl "https://www.1001sms.com/api/v1/numbers/ID_ID/messages" -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": {
    "numberId": "num_8f2k",
    "fetched": true,
    "newMessages": 1,
    "messages": [
      {
        "id": "msg_1",
        "sender": "WhatsApp",
        "text": "Your WhatsApp code: 482-910",
        "code": "482910",
        "receivedAt": "2026-09-22T10:03:00.000Z"
      }
    ]
  }
}
GET/api/v1/numbers/{id}/renewscope numbers

The terms this number can be renewed for, at today's price. A dedicated number renews at its service's own tariff. A number from the flat-price pool (30d and 365d, no stock count) renews only for the term it was bought for, and only before it expires.

Parameters

NameTypeRequiredDescription
idpath stringYesThe number id.

Example

curl "https://www.1001sms.com/api/v1/numbers/ID_ID/renew" -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": {
    "numberId": "num_8f2k",
    "expiresAt": "2026-10-22T10:00:00.000Z",
    "options": [
      {
        "term": "7d",
        "days": 7,
        "hours": 168,
        "price": 6.4
      },
      {
        "term": "30d",
        "days": 30,
        "hours": 720,
        "price": 12.5
      }
    ]
  }
}
POST/api/v1/numbers/{id}/renewscope numbers

Charges the balance and extends the number by one term from its current expiry. `autoRenew` may be changed at the same time (unlimited numbers).

Parameters

NameTypeRequiredDescription
idpath stringYesThe number id.

Request body (JSON)

NameTypeRequiredDescription
termstringYesOne of the options from GET /numbers/{id}/renew.
autoRenewbooleanNoUnlimited only.

Example

curl -X POST "https://www.1001sms.com/api/v1/numbers/num_8f2k/renew" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"term":"30d"}'

Response

{
  "success": true,
  "data": {
    "number": {
      "id": "num_8f2k",
      "phoneNumber": "+447700900123",
      "country": "GB",
      "countryName": "United Kingdom",
      "type": "unlimited",
      "pool": "EXTRA",
      "service": null,
      "serviceName": null,
      "term": "30d",
      "days": 30,
      "status": "ACTIVE",
      "price": 12.5,
      "autoRenew": false,
      "nickname": null,
      "rentedAt": "2026-09-22T10:00:00.000Z",
      "expiresAt": "2026-11-21T10:00:00.000Z"
    },
    "renewal": {
      "term": "30d",
      "days": 30,
      "hours": 720,
      "price": 12.5,
      "expiresAt": "2026-11-21T10:00:00.000Z"
    }
  }
}
POST/api/v1/numbers/{id}/cancelscope numbers

Hands an unlimited number back and refunds it. Only within 120 minutes of purchase and only if no SMS arrived. Dedicated numbers cannot be cancelled, and neither can a number whose term was priced with `cancellable: false` (400). Nothing cancels a number from the flat-price pool automatically.

Parameters

NameTypeRequiredDescription
idpath stringYesThe number id.

Example

curl -X POST "https://www.1001sms.com/api/v1/numbers/ID_ID/cancel" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": {
    "number": {
      "id": "num_8f2k",
      "phoneNumber": "+447700900123",
      "country": "GB",
      "countryName": "United Kingdom",
      "type": "unlimited",
      "pool": "EXTRA",
      "service": null,
      "serviceName": null,
      "term": "30d",
      "days": 30,
      "status": "REFUNDED",
      "price": 12.5,
      "autoRenew": false,
      "nickname": null,
      "rentedAt": "2026-09-22T10:00:00.000Z",
      "expiresAt": "2026-10-22T10:00:00.000Z"
    },
    "refundAmount": 12.5
  }
}
PATCH/api/v1/numbers/{id}scope numbers

Unlimited numbers only. Switch auto-renew on or off, or set a nickname (empty string clears it).

Parameters

NameTypeRequiredDescription
idpath stringYesThe number id.

Request body (JSON)

NameTypeRequiredDescription
autoRenewbooleanNoRenew from the balance before the term ends.
nicknamestringNoLetters, numbers and spaces, up to 100 characters.

Example

curl -X PATCH "https://www.1001sms.com/api/v1/numbers/num_8f2k" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"autoRenew":true,"nickname":"Support line"}'

Response

{
  "success": true,
  "data": {
    "id": "num_8f2k",
    "phoneNumber": "+447700900123",
    "country": "GB",
    "countryName": "United Kingdom",
    "type": "unlimited",
    "pool": "EXTRA",
    "service": null,
    "serviceName": null,
    "term": "30d",
    "days": 30,
    "status": "ACTIVE",
    "price": 12.5,
    "autoRenew": true,
    "nickname": "Support line",
    "rentedAt": "2026-09-22T10:00:00.000Z",
    "expiresAt": "2026-10-22T10:00:00.000Z"
  }
}

eSIMs

Travel data plans for 200+ destinations. A plan is either a fixed bundle (one price, fixed term) or a day pass (a daily rate; you choose the number of days). Orders are paid from the balance; the activation code and QR usually arrive within seconds, and the esim.allocated webhook tells you when they do.

How an eSIM order works

  1. 1) Choose a destination

    Countries, regions and global plans, each with a "from" price.

    GET https://www.1001sms.com/api/v1/esims/destinations

  2. 2) Pick a plan

    per_day plans take a `days` value at order time; bundle plans do not.

    GET https://www.1001sms.com/api/v1/esims/packages?location=ES

  3. 3) Quote it

    Longer terms and several eSIMs in one order are discounted; the quote shows the exact total.

    POST https://www.1001sms.com/api/v1/esims/quote

  4. 4) Order

    The response usually already carries the activation code. If `ready` is false, poll the order or wait for esim.allocated.

    POST https://www.1001sms.com/api/v1/esims/order

  5. 5) Deliver

    Hand your customer the LPA activation code or the QR image URL. Refresh the order for usage.

    GET https://www.1001sms.com/api/v1/esims/orders/{id}?refresh=1

GET/api/v1/esims/destinationsscope esim

Every destination with sellable plans: a country (ISO code), a region (comma-separated member codes) or a global plan.

Example

curl "https://www.1001sms.com/api/v1/esims/destinations" -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": {
    "count": 1,
    "destinations": [
      {
        "locationCode": "ES",
        "name": "Spain",
        "kind": "country",
        "packageCount": 14,
        "fromPrice": 1.9,
        "fromUnlimited": true,
        "topSpeed": "5G"
      }
    ]
  }
}
GET/api/v1/esims/packagesscope esim

The plans sold for one destination at retail. `pricingUnit` is per_day (price is a daily rate, pass `days` when ordering) or bundle (one price for `durationDays`). `unlimited` is true for a plan with no cap and for a day pass that keeps working at `fupPolicy` after its daily allowance of `volumeBytes`, which is how we sell it.

Parameters

NameTypeRequiredDescription
locationstringYesA locationCode from /esims/destinations.

Example

curl "https://www.1001sms.com/api/v1/esims/packages?location=ES" -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": {
    "location": "ES",
    "count": 1,
    "packages": [
      {
        "id": "clx_pkg",
        "packageCode": "ES_1_7",
        "name": "Spain 1GB/Day",
        "locationCode": "ES",
        "locationName": "Spain",
        "volumeLabel": "1 GB/day",
        "volumeBytes": "1073741824",
        "durationDays": 1,
        "speed": "5G",
        "price": 1.9,
        "unlimited": true,
        "pricingUnit": "per_day",
        "fupPolicy": "1 Mbps",
        "fupKbps": 1000,
        "ipExport": "ES"
      }
    ]
  }
}
GET/api/v1/esims/packages/{packageCode}scope esim

One plan by its code.

Parameters

NameTypeRequiredDescription
packageCodepath stringYesThe plan code.

Example

curl "https://www.1001sms.com/api/v1/esims/packages/PACKAGECODE_ID" -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": {
    "id": "clx_pkg",
    "packageCode": "ES_1_7",
    "name": "Spain 1GB/Day",
    "locationCode": "ES",
    "locationName": "Spain",
    "volumeLabel": "1 GB/day",
    "volumeBytes": "1073741824",
    "durationDays": 1,
    "speed": "5G",
    "price": 1.9,
    "unlimited": true,
    "pricingUnit": "per_day",
    "fupPolicy": "1 Mbps",
    "fupKbps": 1000,
    "ipExport": "ES"
  }
}
POST/api/v1/esims/quotescope esim

What an order would cost without placing it. Day passes can get a longer-trip discount, and orders of several eSIMs a multi-eSIM discount off the whole order; the rates are set by us and may change, so read them from this quote rather than hard-coding them.

Request body (JSON)

NameTypeRequiredDescription
packageCodestringYesThe plan code.
quantityintegerNoHow many eSIMs, 1–10. Default 1.
daysintegerNoDay passes only: the term in days, 1–365.

Example

curl -X POST "https://www.1001sms.com/api/v1/esims/quote" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"packageCode":"ES_1_7","quantity":1,"days":7}'

Response

{
  "success": true,
  "data": {
    "packageCode": "ES_1_7",
    "packageName": "Spain Unlimited · 7 days",
    "pricingUnit": "per_day",
    "unlimited": true,
    "quantity": 1,
    "days": 7,
    "unitPrice": 1.9,
    "listPrice": 13.3,
    "termDiscount": 1.33,
    "multiEsimDiscount": 0,
    "price": 11.97
  }
}
POST/api/v1/esims/orderscope esim

Buys the plan from the balance and returns the order. `ready: true` means the profiles carry an activation code; otherwise poll GET /esims/orders/{id} or wait for the esim.allocated webhook. A provider failure refunds the balance and returns 502.

Request body (JSON)

NameTypeRequiredDescription
packageCodestringYesThe plan code.
quantityintegerNoHow many eSIMs, 1–10. Default 1.
daysintegerNoDay passes only: the term in days, 1–365.

Example

curl -X POST "https://www.1001sms.com/api/v1/esims/order" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"packageCode":"ES_1_7","quantity":1,"days":7}'

Response (201)

{
  "success": true,
  "data": {
    "id": "eord_9x1",
    "status": "ALLOCATED",
    "packageCode": "ES_1_7",
    "packageName": "Spain Unlimited · 7 days",
    "unlimited": true,
    "days": 7,
    "locationCode": "ES",
    "quantity": 1,
    "price": 12.1,
    "createdAt": "2026-09-22T10:00:00.000Z",
    "ready": true,
    "profiles": [
      {
        "id": "prof_1",
        "esimTranNo": "T2026092200001",
        "iccid": "8943100000000000001",
        "activationCode": "LPA:1$rsp-eu.example.com$ABCDEF123456",
        "qrCodeUrl": "https://cdn.example.com/qr/T2026092200001.png",
        "shortUrl": "https://esim.example.com/s/abc",
        "apn": "internet",
        "status": "GOT_RESOURCE",
        "smdpStatus": "RELEASED",
        "totalVolume": "1073741824",
        "usedVolume": "0",
        "activatedAt": null,
        "expiresAt": null
      }
    ],
    "lifecycle": "ready"
  }
}
GET/api/v1/esims/ordersscope esim

Your orders, newest first, each with its profiles. `packageName` is what the order was sold as ("Spain Unlimited · 7 days"); `packageCode` identifies the plan. `days` is the term of a day pass (null for a bundle). For an `unlimited` order a profile's `totalVolume` is the daily full-speed allowance, not a cap: show the order as unlimited and `usedVolume` as data used.

Parameters

NameTypeRequiredDescription
pageintegerNoPage number, default 1.
limitintegerNoPer page, default 20, max 100.

Example

curl "https://www.1001sms.com/api/v1/esims/orders" -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": {
    "orders": [
      {
        "id": "eord_9x1",
        "status": "ALLOCATED",
        "packageCode": "ES_1_7",
        "packageName": "Spain Unlimited · 7 days",
        "unlimited": true,
        "days": 7,
        "locationCode": "ES",
        "quantity": 1,
        "price": 12.1,
        "createdAt": "2026-09-22T10:00:00.000Z",
        "ready": true,
        "profiles": [
          {
            "id": "prof_1",
            "esimTranNo": "T2026092200001",
            "iccid": "8943100000000000001",
            "activationCode": "LPA:1$rsp-eu.example.com$ABCDEF123456",
            "qrCodeUrl": "https://cdn.example.com/qr/T2026092200001.png",
            "shortUrl": "https://esim.example.com/s/abc",
            "apn": "internet",
            "status": "GOT_RESOURCE",
            "smdpStatus": "RELEASED",
            "totalVolume": "1073741824",
            "usedVolume": "0",
            "activatedAt": null,
            "expiresAt": null
          }
        ],
        "lifecycle": "ready"
      }
    ],
    "total": 1,
    "page": 1,
    "limit": 20
  }
}
GET/api/v1/esims/orders/{id}scope esim

One order with its profiles. While nothing is allocated yet the provider is asked again before answering. `refresh=1` also refreshes the data counters and status of each profile. `lifecycle` is preparing, ready, active, expired, failed, cancelled or refunded.

Parameters

NameTypeRequiredDescription
idpath stringYesThe order id.
refreshstringNoPass 1 to refresh usage from the provider.

Example

curl "https://www.1001sms.com/api/v1/esims/orders/eord_9x1?refresh=1" -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": {
    "id": "eord_9x1",
    "status": "ALLOCATED",
    "packageCode": "ES_1_7",
    "packageName": "Spain Unlimited · 7 days",
    "unlimited": true,
    "days": 7,
    "locationCode": "ES",
    "quantity": 1,
    "price": 12.1,
    "createdAt": "2026-09-22T10:00:00.000Z",
    "ready": true,
    "profiles": [
      {
        "id": "prof_1",
        "esimTranNo": "T2026092200001",
        "iccid": "8943100000000000001",
        "activationCode": "LPA:1$rsp-eu.example.com$ABCDEF123456",
        "qrCodeUrl": "https://cdn.example.com/qr/T2026092200001.png",
        "shortUrl": "https://esim.example.com/s/abc",
        "apn": "internet",
        "status": "IN_USE",
        "smdpStatus": "ENABLED",
        "totalVolume": "1073741824",
        "usedVolume": "524288000",
        "activatedAt": "2026-09-23T08:00:00.000Z",
        "expiresAt": "2026-09-30T08:00:00.000Z"
      }
    ],
    "lifecycle": "active"
  }
}

Proxies

Rotating proxies sold by the gigabyte in three types: residential (home internet IPs), mobile (carrier IPs) and datacenter (server IPs). An account holds one plan per type: the first order creates it and answers its login and password, every later order adds traffic to the same plan and keeps the login. Traffic is paid from the balance and does not expire. Country, state and city are chosen in the connection itself, not in the order.

How a proxy order works

  1. 1) Read the prices

    Each type has a price per gigabyte, order limits and volume discounts.

    GET https://www.1001sms.com/api/v1/proxies/pricing

  2. 2) Quote it

    The quote applies the volume discount and returns the exact total.

    POST https://www.1001sms.com/api/v1/proxies/quote

  3. 3) Order

    Pass the quoted total as `expectedTotal` so a price change answers 409 instead of charging a different amount. The response carries the plan with its login and password.

    POST https://www.1001sms.com/api/v1/proxies/order

  4. 4) Connect

    Use the plan's host, a port and the login. Targeting goes after the login: `LOGIN__cr.us` for a country, `LOGIN__cr.us;state.california` for a state, `;sessttl.60` to keep a sticky IP for 60 minutes. Codes come from the locations endpoint.

    GET https://www.1001sms.com/api/v1/proxies/locations?type=residential

  5. 5) Watch the traffic

    The plan shows what is left; order again to add more to the same login.

    GET https://www.1001sms.com/api/v1/proxies/plans/residential?refresh=1

GET/api/v1/proxies/pricingscope proxies

The three proxy types with the price of a gigabyte, the smallest and largest order, and the volume discounts (from `fromGb` gigabytes in one order, every gigabyte costs `pricePerGb`). `available: false` means the type cannot be ordered right now. The figures are set by us and may change: read them here rather than hard-coding them.

Example

curl "https://www.1001sms.com/api/v1/proxies/pricing" -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": {
    "currency": "USD",
    "unit": "GB",
    "types": [
      {
        "type": "residential",
        "name": "Residential proxies",
        "available": true,
        "pricePerGb": 2.5,
        "minGb": 1,
        "maxGb": 500,
        "discounts": [
          {
            "fromGb": 10,
            "percent": 10,
            "pricePerGb": 2.25
          },
          {
            "fromGb": 50,
            "percent": 20,
            "pricePerGb": 2
          }
        ]
      }
    ]
  }
}
GET/api/v1/proxies/locationsscope proxies

Without `country`: the countries a type has IPs in, with the number online now, largest first. With `country`: its states and cities (with `state`, the cities of that state). Each `code` is what a connection takes after the login (`cr.us`, `state.california`, `city.losangeles`). The numbers are IPs online at the moment, not a guarantee. State and city targeting counts traffic twice; country targeting does not.

Parameters

NameTypeRequiredDescription
typestringYesresidential, mobile or datacenter.
countrystringNoTwo-letter country code, e.g. us. Lists its states and cities.
statestringNoA state code from this endpoint. Lists the cities of that state.

Example

curl "https://www.1001sms.com/api/v1/proxies/locations?type=residential" -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": {
    "type": "residential",
    "count": 2,
    "ips": 61610,
    "countries": [
      {
        "code": "us",
        "name": "United States",
        "ips": 44072
      },
      {
        "code": "gb",
        "name": "United Kingdom",
        "ips": 17538
      }
    ]
  }
}
POST/api/v1/proxies/quotescope proxies

What an order would be charged, with the volume discount applied. Nothing is bought. Traffic is sold in whole gigabytes.

Request body (JSON)

NameTypeRequiredDescription
typestringYesresidential, mobile or datacenter.
gbintegerYesWhole gigabytes, between the type's minGb and maxGb.

Example

curl -X POST "https://www.1001sms.com/api/v1/proxies/quote" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"type":"residential","gb":10}'

Response

{
  "success": true,
  "data": {
    "type": "residential",
    "gb": 10,
    "pricePerGb": 2.5,
    "discountPercent": 10,
    "ratePerGb": 2.25,
    "price": 22.5
  }
}
POST/api/v1/proxies/orderscope proxies

Buys the traffic from the balance and returns the order with the plan it went to. The first order of a type creates the plan; later ones add traffic to it and keep the login and password. `status` is COMPLETED (the traffic is on the plan) or, rarely, PENDING (charged; confirmed within a few minutes, or the money goes back to the balance): poll GET /proxies/orders/{id}. Errors: 402 with `required` when the balance is short, 409 with `required` when `expectedTotal` no longer matches the price, 409 while another order for the same type is still being confirmed, 503 when the type is not on sale (code `SIZE_UNAVAILABLE`: this size cannot be delivered right now, a smaller order may go through).

Important: Never repeat an order request blindly. If the call times out or answers 5xx, read GET /proxies/orders first: the order may have been placed.

Request body (JSON)

NameTypeRequiredDescription
typestringYesresidential, mobile or datacenter.
gbintegerYesWhole gigabytes, between the type's minGb and maxGb.
expectedTotalnumberNoThe price you were quoted. A different price now answers 409 and charges nothing.

Example

curl -X POST "https://www.1001sms.com/api/v1/proxies/order" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"type":"residential","gb":10,"expectedTotal":22.5}'

Response (201)

{
  "success": true,
  "data": {
    "id": "cmp_ord_7h2",
    "type": "residential",
    "gb": 10,
    "pricePerGb": 2.5,
    "discountPercent": 10,
    "price": 22.5,
    "status": "COMPLETED",
    "createdAt": "2026-11-14T10:00:00.000Z",
    "deliveredAt": "2026-11-14T10:00:03.000Z",
    "plan": {
      "type": "residential",
      "status": "ACTIVE",
      "host": "proxy.1001sms.com",
      "ports": {
        "http": 823,
        "socks5": 824,
        "stickyFrom": 10000,
        "stickyTo": 20000
      },
      "login": "a1b2c3d4e5f6",
      "password": "Xy7kP2mQ9s",
      "stickyMinutes": {
        "min": 1,
        "max": 120
      },
      "purchasedGb": 10,
      "trafficLeftBytes": 9663676416,
      "trafficUsedBytes": 1073741824,
      "trafficLeftGb": 9,
      "pendingGb": null,
      "syncedAt": "2026-11-14T10:05:00.000Z",
      "createdAt": "2026-11-14T10:00:00.000Z"
    }
  }
}
GET/api/v1/proxies/ordersscope proxies

Your orders, newest first. `price` is what was charged; `pricePerGb` and `discountPercent` are the list price and the volume discount at the time.

Parameters

NameTypeRequiredDescription
pageintegerNoPage number, default 1.
limitintegerNoPer page, default 20, max 100.
typestringNoOnly this type.
statusstringNoOnly this status.

Example

curl "https://www.1001sms.com/api/v1/proxies/orders" -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": {
    "orders": [
      {
        "id": "cmp_ord_7h2",
        "type": "residential",
        "gb": 10,
        "pricePerGb": 2.5,
        "discountPercent": 10,
        "price": 22.5,
        "status": "COMPLETED",
        "createdAt": "2026-11-14T10:00:00.000Z",
        "deliveredAt": "2026-11-14T10:00:03.000Z"
      }
    ],
    "total": 1,
    "page": 1,
    "limit": 20
  }
}
GET/api/v1/proxies/orders/{id}scope proxies

One order. While `status` is PENDING, poll it every 30 to 60 seconds: it becomes COMPLETED (traffic on the plan) or FAILED (nothing charged).

Parameters

NameTypeRequiredDescription
idpath stringYesThe order id.

Example

curl "https://www.1001sms.com/api/v1/proxies/orders/ID_ID" -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": {
    "id": "cmp_ord_7h2",
    "type": "residential",
    "gb": 10,
    "pricePerGb": 2.5,
    "discountPercent": 10,
    "price": 22.5,
    "status": "COMPLETED",
    "createdAt": "2026-11-14T10:00:00.000Z",
    "deliveredAt": "2026-11-14T10:00:03.000Z"
  }
}
GET/api/v1/proxies/plansscope proxies

Your plans, one per type you have bought. Each carries where to connect (`host`, `ports`), the `login` and `password`, and the traffic left and used in bytes. `ports.http` and `ports.socks5` give a new IP on every request; each port from `stickyFrom` to `stickyTo` holds one IP (30 minutes unless the login says `sessttl.<minutes>`). `status` is ACTIVE, BLOCKED, or PENDING while a first order is still being confirmed (no login yet).

Parameters

NameTypeRequiredDescription
refreshstringNoPass 1 to read the traffic figures again (at most once a minute per plan).

Example

curl "https://www.1001sms.com/api/v1/proxies/plans" -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": {
    "count": 1,
    "plans": [
      {
        "type": "residential",
        "status": "ACTIVE",
        "host": "proxy.1001sms.com",
        "ports": {
          "http": 823,
          "socks5": 824,
          "stickyFrom": 10000,
          "stickyTo": 20000
        },
        "login": "a1b2c3d4e5f6",
        "password": "Xy7kP2mQ9s",
        "stickyMinutes": {
          "min": 1,
          "max": 120
        },
        "purchasedGb": 10,
        "trafficLeftBytes": 9663676416,
        "trafficUsedBytes": 1073741824,
        "trafficLeftGb": 9,
        "pendingGb": null,
        "syncedAt": "2026-11-14T10:05:00.000Z",
        "createdAt": "2026-11-14T10:00:00.000Z"
      }
    ]
  }
}
GET/api/v1/proxies/plans/{type}scope proxies

The plan of one type. 404 when you have not bought that type yet.

Parameters

NameTypeRequiredDescription
typepath stringYesresidential, mobile or datacenter.
refreshstringNoPass 1 to read the traffic figures again.

Example

curl "https://www.1001sms.com/api/v1/proxies/plans/residential?refresh=1" -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": {
    "type": "residential",
    "status": "ACTIVE",
    "host": "proxy.1001sms.com",
    "ports": {
      "http": 823,
      "socks5": 824,
      "stickyFrom": 10000,
      "stickyTo": 20000
    },
    "login": "a1b2c3d4e5f6",
    "password": "Xy7kP2mQ9s",
    "stickyMinutes": {
      "min": 1,
      "max": 120
    },
    "purchasedGb": 10,
    "trafficLeftBytes": 9663676416,
    "trafficUsedBytes": 1073741824,
    "trafficLeftGb": 9,
    "pendingGb": null,
    "syncedAt": "2026-11-14T10:05:00.000Z",
    "createdAt": "2026-11-14T10:00:00.000Z"
  }
}
GET/api/v1/proxies/plans/{type}/usagescope proxies

The number of requests the plan made on each day of the last month. Traffic left and used are on the plan itself.

Parameters

NameTypeRequiredDescription
typepath stringYesresidential, mobile or datacenter.

Example

curl "https://www.1001sms.com/api/v1/proxies/plans/residential/usage" -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": {
    "type": "residential",
    "days": [
      {
        "date": "2026-11-13",
        "requests": 18240
      },
      {
        "date": "2026-11-14",
        "requests": 9311
      }
    ]
  }
}
POST/api/v1/proxies/plans/{type}/reset-passwordscope proxies

Gives the plan a new password. The login stays the same and the old password stops working at once, so update every tool that uses it. At most five resets in ten minutes per account (429 beyond that).

Parameters

NameTypeRequiredDescription
typepath stringYesresidential, mobile or datacenter.

Example

curl -X POST "https://www.1001sms.com/api/v1/proxies/plans/residential/reset-password" -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": {
    "type": "residential",
    "login": "a1b2c3d4e5f6",
    "password": "Nw4tR8bZ1c"
  }
}

Webhooks

Instead of polling, give each API key a URL and we POST signed JSON to it when something happens: an SMS arrives, a number is renewed or expires, an eSIM is allocated. Configure it in the key manager on the website or with the endpoints below; either way it belongs to the key, so a key with the read scope alone can still receive events.

How delivery works

  1. 1) Set a URL

    https on a public host. The first save issues a signing secret; keep it.

    PUT https://www.1001sms.com/api/v1/webhooks/config

  2. 2) Verify every request

    Recompute the HMAC over the timestamp and the raw body with your secret before trusting a payload.

  3. 3) Answer 2xx fast

    Within 10 seconds. Do the work afterwards. Anything else is retried 1 m, 5 m, 30 m, 2 h and 12 h later, then marked FAILED.

  4. 4) Dedupe on id

    A retry carries the same event id. Twenty failed deliveries in a row switch the webhook off until the URL is saved again.

Events and payloads

Every delivery is one JSON object: id, event, createdAt and data. The data of each event mirrors the matching GET endpoint, so a webhook and a poll never disagree.

Request we send

POST /your/endpoint HTTP/1.1
Content-Type: application/json
User-Agent: 1001SMS-Webhooks/1.0
X-1001SMS-Event: sms.received
X-1001SMS-Delivery: dlv_01j8x…
X-1001SMS-Signature: t=1758535381,v1=5f1c…e9a0

{
  "id": "evt_3f9a1c2b7d8e4f50a1b2",
  "event": "sms.received",
  "createdAt": "2026-09-22T10:03:01.000Z",
  "data": {
    "product": "virtual_number",
    "numberId": "num_8f2k",
    "phoneNumber": "+447700900123",
    "country": "GB",
    "service": "full",
    "serviceName": "All services",
    "message": {
      "id": "msg_1",
      "sender": "WhatsApp",
      "text": "Your WhatsApp code: 482-910",
      "code": "482910",
      "receivedAt": "2026-09-22T10:03:00.000Z"
    }
  }
}
EventGroupWhen
sms.receivedSMSAn SMS arrived on an activation number or a virtual number. Fired the moment the provider tells us, and also when a poll finds a new message.
number.activatedVirtual numbersA virtual number was rented (by the API or on the website).
number.renewedVirtual numbersA virtual number was renewed by you, the API or auto-renew.
number.renewal_failedVirtual numbersAuto-renew ran and the balance was short.
number.expiringVirtual numbersA number expires within a day (sent once per term).
number.expiredVirtual numbersA number's term ended.
number.cancelledVirtual numbersAn unlimited number was cancelled within its window and refunded.
esim.allocatedeSIMsAn order received its activation code and QR.
esim.updatedeSIMsA profile's status or data usage changed (provider event or a refresh).
esim.failedeSIMsThe provider rejected the order after the balance was taken; the balance was refunded. There is no order id yet, so the request is echoed.
esim.refundedeSIMsSupport refunded the order.
pingTestSent by the test button and POST /webhooks/test. Always delivered, whatever the subscriptions.
Sample data for every event

sms.received

{
  "id": "evt_…",
  "event": "sms.received",
  "createdAt": "2026-09-22T10:00:00.000Z",
  "data": {
    "product": "virtual_number",
    "numberId": "num_8f2k",
    "phoneNumber": "+447700900123",
    "country": "GB",
    "service": "full",
    "serviceName": "All services",
    "message": {
      "id": "msg_1",
      "sender": "WhatsApp",
      "text": "Your WhatsApp code: 482-910",
      "code": "482910",
      "receivedAt": "2026-09-22T10:03:00.000Z"
    }
  }
}

number.activated

{
  "id": "evt_…",
  "event": "number.activated",
  "createdAt": "2026-09-22T10:00:00.000Z",
  "data": {
    "number": {
      "id": "num_8f2k",
      "phoneNumber": "+447700900123",
      "country": "GB",
      "countryName": "United Kingdom",
      "type": "unlimited",
      "service": null,
      "serviceName": null,
      "term": "30d",
      "days": 30,
      "status": "ACTIVE",
      "price": 12.5,
      "autoRenew": false,
      "nickname": null,
      "rentedAt": "2026-09-22T10:00:00.000Z",
      "expiresAt": "2026-10-22T10:00:00.000Z",
      "messageCount": 0
    }
  }
}

number.renewed

{
  "id": "evt_…",
  "event": "number.renewed",
  "createdAt": "2026-09-22T10:00:00.000Z",
  "data": {
    "number": {
      "id": "num_8f2k",
      "phoneNumber": "+447700900123",
      "country": "GB",
      "countryName": "United Kingdom",
      "type": "unlimited",
      "service": null,
      "serviceName": null,
      "term": "30d",
      "days": 30,
      "status": "ACTIVE",
      "price": 12.5,
      "autoRenew": false,
      "nickname": null,
      "rentedAt": "2026-09-22T10:00:00.000Z",
      "expiresAt": "2026-11-21T10:00:00.000Z",
      "messageCount": 0
    },
    "price": 12.5,
    "days": 30
  }
}

number.renewal_failed

{
  "id": "evt_…",
  "event": "number.renewal_failed",
  "createdAt": "2026-09-22T10:00:00.000Z",
  "data": {
    "number": {
      "id": "num_8f2k",
      "phoneNumber": "+447700900123",
      "country": "GB",
      "countryName": "United Kingdom",
      "type": "unlimited",
      "service": null,
      "serviceName": null,
      "term": "30d",
      "days": 30,
      "status": "ACTIVE",
      "price": 12.5,
      "autoRenew": false,
      "nickname": null,
      "rentedAt": "2026-09-22T10:00:00.000Z",
      "expiresAt": "2026-10-22T10:00:00.000Z",
      "messageCount": 0
    },
    "price": 12.5,
    "balance": 3.1
  }
}

number.expiring

{
  "id": "evt_…",
  "event": "number.expiring",
  "createdAt": "2026-09-22T10:00:00.000Z",
  "data": {
    "number": {
      "id": "num_8f2k",
      "phoneNumber": "+447700900123",
      "country": "GB",
      "countryName": "United Kingdom",
      "type": "unlimited",
      "service": null,
      "serviceName": null,
      "term": "30d",
      "days": 30,
      "status": "ACTIVE",
      "price": 12.5,
      "autoRenew": false,
      "nickname": null,
      "rentedAt": "2026-09-22T10:00:00.000Z",
      "expiresAt": "2026-10-22T10:00:00.000Z",
      "messageCount": 0
    }
  }
}

number.expired

{
  "id": "evt_…",
  "event": "number.expired",
  "createdAt": "2026-09-22T10:00:00.000Z",
  "data": {
    "number": {
      "id": "num_8f2k",
      "phoneNumber": "+447700900123",
      "country": "GB",
      "countryName": "United Kingdom",
      "type": "unlimited",
      "service": null,
      "serviceName": null,
      "term": "30d",
      "days": 30,
      "status": "EXPIRED",
      "price": 12.5,
      "autoRenew": false,
      "nickname": null,
      "rentedAt": "2026-09-22T10:00:00.000Z",
      "expiresAt": "2026-10-22T10:00:00.000Z",
      "messageCount": 0
    }
  }
}

number.cancelled

{
  "id": "evt_…",
  "event": "number.cancelled",
  "createdAt": "2026-09-22T10:00:00.000Z",
  "data": {
    "number": {
      "id": "num_8f2k",
      "phoneNumber": "+447700900123",
      "country": "GB",
      "countryName": "United Kingdom",
      "type": "unlimited",
      "service": null,
      "serviceName": null,
      "term": "30d",
      "days": 30,
      "status": "REFUNDED",
      "price": 12.5,
      "autoRenew": false,
      "nickname": null,
      "rentedAt": "2026-09-22T10:00:00.000Z",
      "expiresAt": "2026-10-22T10:00:00.000Z",
      "messageCount": 0
    },
    "refundAmount": 12.5
  }
}

esim.allocated

{
  "id": "evt_…",
  "event": "esim.allocated",
  "createdAt": "2026-09-22T10:00:00.000Z",
  "data": {
    "order": {
      "id": "eord_9x1",
      "status": "ALLOCATED",
      "packageCode": "ES_1_7",
      "packageName": "Spain Unlimited · 7 days",
      "unlimited": true,
      "days": 7,
      "locationCode": "ES",
      "quantity": 1,
      "price": 12.1,
      "createdAt": "2026-09-22T10:00:00.000Z",
      "ready": true,
      "lifecycle": "ready",
      "profiles": [
        {
          "id": "prof_1",
          "esimTranNo": "T2026092200001",
          "iccid": "8943100000000000001",
          "activationCode": "LPA:1$rsp-eu.example.com$ABCDEF123456",
          "qrCodeUrl": "https://cdn.example.com/qr/T2026092200001.png",
          "shortUrl": null,
          "apn": "internet",
          "status": "GOT_RESOURCE",
          "smdpStatus": "RELEASED",
          "totalVolume": "1073741824",
          "usedVolume": "0",
          "activatedAt": null,
          "expiresAt": null
        }
      ]
    }
  }
}

esim.updated

{
  "id": "evt_…",
  "event": "esim.updated",
  "createdAt": "2026-09-22T10:00:00.000Z",
  "data": {
    "order": {
      "id": "eord_9x1",
      "status": "ALLOCATED",
      "packageCode": "ES_1_7",
      "packageName": "Spain Unlimited · 7 days",
      "unlimited": true,
      "days": 7,
      "locationCode": "ES",
      "quantity": 1,
      "price": 12.1,
      "createdAt": "2026-09-22T10:00:00.000Z",
      "ready": true,
      "lifecycle": "active",
      "profiles": [
        {
          "id": "prof_1",
          "esimTranNo": "T2026092200001",
          "iccid": "8943100000000000001",
          "activationCode": "LPA:1$rsp-eu.example.com$ABCDEF123456",
          "qrCodeUrl": "https://cdn.example.com/qr/T2026092200001.png",
          "shortUrl": null,
          "apn": "internet",
          "status": "GOT_RESOURCE",
          "smdpStatus": "RELEASED",
          "totalVolume": "1073741824",
          "usedVolume": "0",
          "activatedAt": null,
          "expiresAt": null
        }
      ]
    }
  }
}

esim.failed

{
  "id": "evt_…",
  "event": "esim.failed",
  "createdAt": "2026-09-22T10:00:00.000Z",
  "data": {
    "packageCode": "ES_1_7",
    "packageName": "Spain Unlimited · 7 days",
    "quantity": 1,
    "price": 12.1,
    "reason": "provider order rejected"
  }
}

esim.refunded

{
  "id": "evt_…",
  "event": "esim.refunded",
  "createdAt": "2026-09-22T10:00:00.000Z",
  "data": {
    "order": {
      "id": "eord_9x1",
      "status": "REFUNDED",
      "packageCode": "ES_1_7",
      "packageName": "Spain Unlimited · 7 days",
      "unlimited": true,
      "days": 7,
      "locationCode": "ES",
      "quantity": 1,
      "price": 12.1,
      "createdAt": "2026-09-22T10:00:00.000Z",
      "ready": true,
      "lifecycle": "refunded",
      "profiles": [
        {
          "id": "prof_1",
          "esimTranNo": "T2026092200001",
          "iccid": "8943100000000000001",
          "activationCode": "LPA:1$rsp-eu.example.com$ABCDEF123456",
          "qrCodeUrl": "https://cdn.example.com/qr/T2026092200001.png",
          "shortUrl": null,
          "apn": "internet",
          "status": "GOT_RESOURCE",
          "smdpStatus": "RELEASED",
          "totalVolume": "1073741824",
          "usedVolume": "0",
          "activatedAt": null,
          "expiresAt": null
        }
      ]
    },
    "refundAmount": 12.1
  }
}

ping

{
  "id": "evt_…",
  "event": "ping",
  "createdAt": "2026-09-22T10:00:00.000Z",
  "data": {
    "apiKeyLabel": "Production",
    "sentAt": "2026-09-22T10:00:00.000Z"
  }
}

Verifying signatures

X-1001SMS-Signature is t=<unix seconds>,v1=<hex> where v1 is HMAC-SHA256 of <t>.<raw body> with your key's signing secret. Compute it over the exact bytes you received, compare in constant time, and reject timestamps older than five minutes.

import crypto from 'node:crypto';

export function verify(rawBody, signatureHeader, secret) {
  const parts = Object.fromEntries(signatureHeader.split(',').map((p) => p.split('=')));
  const t = Number(parts.t);
  if (!t || Math.abs(Date.now() / 1000 - t) > 300) return false; // 5-minute tolerance
  const expected = crypto.createHmac('sha256', secret).update(`${t}.${rawBody}`).digest('hex');
  const a = Buffer.from(expected, 'hex');
  const b = Buffer.from(parts.v1 ?? '', 'hex');
  return a.length === b.length && crypto.timingSafeEqual(a, b);
}

// Express: use express.raw({ type: 'application/json' }) so rawBody is the exact bytes.
GET/api/v1/webhooks/configany key

The URL, the subscribed events, a hint of the secret and whether the endpoint is active or disabled.

Example

curl "https://www.1001sms.com/api/v1/webhooks/config" -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": {
    "url": "https://example.com/webhooks/1001sms",
    "events": [
      "sms.received",
      "esim.allocated"
    ],
    "secretHint": "whsec_3f9a…",
    "status": "active",
    "failures": 0,
    "disabledAt": null,
    "availableEvents": [
      "sms.received",
      "number.activated",
      "number.renewed",
      "number.renewal_failed",
      "number.expiring",
      "number.expired",
      "number.cancelled",
      "esim.allocated",
      "esim.updated",
      "esim.failed",
      "esim.refunded"
    ]
  }
}
PUT/api/v1/webhooks/configany key

Sets the URL and events. Saving a URL clears the failure state and re-enables a disabled endpoint; the first save returns the signing `secret` once. `url: null` removes the webhook.

Request body (JSON)

NameTypeRequiredDescription
urlstring | nullNohttps URL on a public host, or null to remove.
eventsstring[]NoEvent names to subscribe to.

Example

curl -X PUT "https://www.1001sms.com/api/v1/webhooks/config" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com/webhooks/1001sms","events":["sms.received","esim.allocated"]}'

Response

{
  "success": true,
  "data": {
    "url": "https://example.com/webhooks/1001sms",
    "events": [
      "sms.received",
      "esim.allocated"
    ],
    "secretHint": "whsec_3f9a…",
    "status": "active",
    "failures": 0,
    "disabledAt": null,
    "secret": "whsec_3f9a1c2b7d8e4f50a1b2c3d4e5f60718293a4b5c"
  }
}
POST/api/v1/webhooks/config/rotate-secretany key

Issues a new signing secret. The old one stops verifying at once.

Example

curl -X POST "https://www.1001sms.com/api/v1/webhooks/config/rotate-secret" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": {
    "secret": "whsec_9b8a7c6d5e4f30211a2b3c4d5e6f70819a0b1c2d"
  }
}
POST/api/v1/webhooks/testany key

Sends a `ping` event to the URL now and returns the delivery outcome.

Example

curl -X POST "https://www.1001sms.com/api/v1/webhooks/test" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": {
    "id": "dlv_01j8x",
    "status": "DELIVERED",
    "attempts": 1,
    "responseStatus": 200,
    "error": null,
    "nextAttemptAt": null
  }
}
GET/api/v1/webhooks/deliveriesany key

The last deliveries to this key, newest first, each with the payload it carried. Kept for 30 days.

Parameters

NameTypeRequiredDescription
limitintegerNoUp to 100, default 50.

Example

curl "https://www.1001sms.com/api/v1/webhooks/deliveries" -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": {
    "deliveries": [
      {
        "id": "dlv_01j8x",
        "event": "sms.received",
        "eventId": "evt_3f9a1c2b7d8e4f50a1b2",
        "status": "DELIVERED",
        "attempts": 1,
        "responseStatus": 200,
        "error": null,
        "nextAttemptAt": null,
        "deliveredAt": "2026-09-22T10:03:02.000Z",
        "createdAt": "2026-09-22T10:03:01.000Z",
        "payload": {
          "id": "evt_3f9a1c2b7d8e4f50a1b2",
          "event": "sms.received",
          "createdAt": "2026-09-22T10:03:01.000Z",
          "data": {
            "product": "virtual_number",
            "numberId": "num_8f2k",
            "phoneNumber": "+447700900123",
            "country": "GB",
            "service": "full",
            "serviceName": "All services",
            "message": {
              "id": "msg_1",
              "sender": "WhatsApp",
              "text": "Your WhatsApp code: 482-910",
              "code": "482910",
              "receivedAt": "2026-09-22T10:03:00.000Z"
            }
          }
        }
      }
    ]
  }
}
POST/api/v1/webhooks/deliveries/{id}/retryany key

Sends one delivery again now, whatever state it is in.

Parameters

NameTypeRequiredDescription
idpath stringYesThe delivery id.

Example

curl -X POST "https://www.1001sms.com/api/v1/webhooks/deliveries/ID_ID/retry" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": {
    "id": "dlv_01j8x",
    "status": "DELIVERED",
    "attempts": 1,
    "responseStatus": 200,
    "error": null,
    "nextAttemptAt": null
  }
}

Account

Your wallet and ledger. Every purchase, renewal and refund on any product lands in the same transaction list, with the API key that made it.

GET/api/v1/informative/balancescope read

Quick balance check.

Example

curl "https://www.1001sms.com/api/v1/informative/balance" -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": {
    "balance": 12.5,
    "username": "john_doe",
    "email": "[email protected]"
  }
}
GET/api/v1/account/profilescope read

Main account fields.

Example

curl "https://www.1001sms.com/api/v1/account/profile" -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": {
    "id": "usr_1",
    "username": "john_doe",
    "email": "[email protected]",
    "balance": 12.5,
    "createdAt": "2025-01-01T00:00:00.000Z",
    "lastLoginAt": "2026-01-20T00:00:00.000Z"
  }
}
GET/api/v1/account/transactionsscope read

Paginated ledger with optional type and status filters.

Parameters

NameTypeRequiredDescription
pageintegerNoPage number, default 1.
limitintegerNoPer page, default 20, max 100.
typestringNoDEPOSIT, SMS_PURCHASE, NUMBER_RENTAL, REFUND, WITHDRAWAL.
statusstringNoPENDING, COMPLETED, FAILED, CANCELLED.

Example

curl "https://www.1001sms.com/api/v1/account/transactions" -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": {
    "transactions": [
      {
        "id": "tx1",
        "amount": "10.00",
        "type": "DEPOSIT",
        "status": "COMPLETED",
        "description": null,
        "reference": null,
        "createdAt": "2026-02-01T00:00:00.000Z"
      }
    ],
    "total": 1,
    "page": 1,
    "limit": 20
  }
}
GET/api/v1/account/transactions/{id}scope read

One transaction by id.

Parameters

NameTypeRequiredDescription
idpath stringYesTransaction id.

Example

curl "https://www.1001sms.com/api/v1/account/transactions/ID_ID" -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": {
    "id": "tx1",
    "amount": "-0.50",
    "type": "SMS_PURCHASE",
    "status": "COMPLETED",
    "description": "SMS purchase for google (US)",
    "reference": "EXTRA-12345",
    "createdAt": "2026-02-01T12:00:00.000Z"
  }
}
GET/api/v1/account/statsscope read

Aggregated usage across orders and transactions.

Example

curl "https://www.1001sms.com/api/v1/account/stats" -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": {
    "totalOrders": 48,
    "totalSpent": 23.5,
    "successfulOrders": 42,
    "successRate": 87.5,
    "totalTransactions": 60,
    "totalDeposited": 50
  }
}

Errors and status codes

// success
{ "success": true, "data": { ... } }

// error
{ "success": false, "error": "Error message" }

// insufficient balance (402)
{ "success": false, "error": "Insufficient balance", "required": 12.5 }
HTTPMeaning
200OK
201Created (an order was placed)
400Invalid parameter or body
401Missing, invalid or expired API key
402Insufficient balance; `required` says how much the call needed
403The key lacks the scope, or the object belongs to someone else
404Not found
409The price changed since the quote (`required` holds the new one), or an order for the same proxy type is still being confirmed
429Rate limit exceeded (per key, per minute)
500Internal error
502The provider failed; any charge was refunded
503Product temporarily unavailable

Statuses and lifecycles

Activation order status

StatusMeaning
RENTEDWaiting for SMS.
ACTIVEActive-like state in the active endpoints.
PENDINGProvider is processing.
COMPLETEDHistorical state after a successful flow.
EXPIREDTimed out; refunded when no SMS arrived.
REFUNDEDCancelled and refunded.
BLOCKEDBlocked by the provider or the system.

Virtual number status

StatusMeaning
ACTIVELive; receives SMS until expiresAt.
EXPIREDThe term ended. Renewing is no longer possible; rent a new one.
REFUNDEDCancelled within the window and refunded.
PENDINGOrdered, waiting for the provider to activate it.

eSIM order lifecycle

LifecycleMeaning
preparingOrdered; no activation code yet.
readyActivation code and QR available; not yet installed.
activeInstalled or in use on a handset.
expiredEvery profile is past its expiry.
failedThe provider rejected the order; refunded.
cancelledCancelled before activation.
refundedRefunded by support.

Proxy order status

StatusMeaning
COMPLETEDThe traffic is on the plan.
PENDINGCharged, and still being confirmed. It becomes COMPLETED or FAILED within a few minutes.
FAILEDNot delivered. Nothing is charged: a charge already made was returned to the balance.

Proxy plan status

StatusMeaning
ACTIVEThe login works while traffic is left.
PENDINGA first order is still being confirmed; the login appears when it is.
BLOCKEDSwitched off. Contact support.

Need help?

Have a question, need some help or advice? Reach out to our support team. We're here to help!

Contact Support