Skip to content
Developers

Flex API

Every Flex endpoint, with its parameters and a request and response to copy.

  • REST and JSON over HTTPS
  • Bearer API key
  • Callbacks with retries
  • 100 requests a minute
  • Same prices as your dashboard

Every request needs your API key. Getting started covers authentication, the response format, errors and rate limits.

Flex

Several area codes and a carrier in one order, in the US and other countries on offer.

List services and prices

Lists Flex's services with your price for each, after your discount.

GET/server3-pricing
ParameterTypeRequiredDescription
countrystringNoA country code from the countries list. Leave it out for the US (or the first country on sale).
Example request
curl "https://textverification.io/api/v1/users/server3-pricing" \
  -H "Authorization: Bearer YOUR_API_KEY"
Example response
{
  "statusCode": 200,
  "data": [
    {
      "serviceId": "9a1c55e0",
      "serviceName": "Telegram",
      "price": "0.40"
    }
  ],
  "message": "Request Successful!",
  "success": true
}

List countries

Lists the countries Flex sells numbers in, with their codes.

GET/server3-countries
Example request
curl "https://textverification.io/api/v1/users/server3-countries" \
  -H "Authorization: Bearer YOUR_API_KEY"
Example response
{
  "statusCode": 200,
  "data": [
    {
      "code": "us",
      "name": "United States"
    }
  ],
  "message": "Request Successful!",
  "success": true
}

Order a number

Orders one Flex number for a service and charges your balance.

POST/request-s3-service
ParameterTypeRequiredDescription
serviceIdstringYesThe service's ID, from the services list.
areasstringNoArea codes, separated by commas (up to 10). They add to the price.
carrierstringNo"att" or "tmo". It adds to the price.
countrystringNoA country code from the countries list. Leave it out for the US (or the first country on sale).
Example request
curl -X POST "https://textverification.io/api/v1/users/request-s3-service" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"serviceId":"9a1c55e0","areas":"212,646","carrier":"tmo"}'
Example response
{
  "statusCode": 200,
  "data": {
    "orderId": "48211973",
    "number": "16465550103",
    "serviceName": "Telegram",
    "country": "United States",
    "status": "reserved",
    "areas": "212,646",
    "carrier": "tmo",
    "price": "0.58",
    "expiredIn": 600
  },
  "message": "Request Successful!",
  "success": true
}

Get an order

Returns an order with its status and, once it has arrived, the code.

GET/number-details-s3
ParameterTypeRequiredDescription
orderIdstringYesThe order's ID, as returned when you ordered.
Example request
curl "https://textverification.io/api/v1/users/number-details-s3?orderId=48211973" \
  -H "Authorization: Bearer YOUR_API_KEY"
Example response
{
  "statusCode": 200,
  "data": {
    "orderId": "48211973",
    "number": "16465550103",
    "serviceName": "Telegram",
    "country": "United States",
    "price": "0.58",
    "createdAt": "2026-10-09 12:44:00",
    "status": "completed",
    "message": "Your code is 482910",
    "pin": "482910"
  },
  "message": "Request Successful!",
  "success": true
}

Reuse a number

Orders the same number again for another code, where the service allows it.

POST/reuse-s3-service
ParameterTypeRequiredDescription
orderIdstringYesThe order's ID, as returned when you ordered.
Example request
curl -X POST "https://textverification.io/api/v1/users/reuse-s3-service" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"orderId":"48211973"}'
Example response
{
  "statusCode": 200,
  "data": {
    "orderId": "48211973",
    "number": "16465550103",
    "serviceName": "Telegram",
    "country": "United States",
    "price": "0.58",
    "status": "reserved",
    "expiredIn": 600
  },
  "message": "Request Successful!",
  "success": true
}

Cancel a number

Cancels a number that hasn't received a code yet and refunds it to your balance.

POST/reject-s3-service
ParameterTypeRequiredDescription
orderIdstringYesThe order's ID, as returned when you ordered.
Example request
curl -X POST "https://textverification.io/api/v1/users/reject-s3-service" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"orderId":"48211973"}'
Example response
{
  "statusCode": 200,
  "data": null,
  "message": "Request Successful!",
  "success": true
}