Skip to content
Developers

Prime API

Every Prime 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.

Prime

US numbers with a choice of state, and premium requests for services that are out of stock.

List services and prices

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

GET/server1-pricing
Example request
curl "https://textverification.io/api/v1/users/server1-pricing" \
  -H "Authorization: Bearer YOUR_API_KEY"
Example response
{
  "statusCode": 200,
  "data": [
    {
      "serviceId": "2264119e",
      "serviceName": "WhatsApp",
      "price": "1.30"
    }
  ],
  "message": "Request Successful!",
  "success": true
}

Price a service with options

Returns your price for one service with the options you'd order with.

GET/server1-price
ParameterTypeRequiredDescription
serviceIdstringYesThe service's ID, from the services list.
areaCodestringNoA 3-digit US area code such as "212", to get a number from it. It takes priority over state and may add to the price.
requestPremiumnumberNoA premium for services that are out of stock: the order waits as pending and wins a number when one is available.
Example request
curl "https://textverification.io/api/v1/users/server1-price?serviceId=2264119e&areaCode=212&requestPremium=20" \
  -H "Authorization: Bearer YOUR_API_KEY"
Example response
{
  "statusCode": 200,
  "data": {
    "serviceId": "2264119e",
    "serviceName": "WhatsApp",
    "areaCode": "212",
    "requestPremium": 20,
    "price": "1.56"
  },
  "message": "Request Successful!",
  "success": true
}

List US states

Lists the US states you can ask for.

GET/us-states
Example request
curl "https://textverification.io/api/v1/users/us-states" \
  -H "Authorization: Bearer YOUR_API_KEY"
Example response
{
  "statusCode": 200,
  "data": {
    "CA": "CA",
    "FL": "FL",
    "NY": "NY",
    "TX": "TX"
  },
  "message": "Request Successful!",
  "success": true
}

Order a number

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

POST/request-s1-service
ParameterTypeRequiredDescription
serviceIdstringYesThe service's ID, from the services list.
statestringNoA US state code such as "NY", to get a number from that state.
areaCodestringNoA 3-digit US area code such as "212", to get a number from it. It takes priority over state and may add to the price.
requestPremiumnumberNoA premium for services that are out of stock: the order waits as pending and wins a number when one is available.

With a premium, an out-of-stock order waits as pending; you get an s1_win_premium_request callback when it wins a number.

Example request
curl -X POST "https://textverification.io/api/v1/users/request-s1-service" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"serviceId":"2264119e","state":"NY"}'
Example response
{
  "statusCode": 200,
  "data": {
    "orderId": "55655059",
    "number": "12125550101",
    "serviceName": "WhatsApp",
    "status": "reserved",
    "state": "NY",
    "areaCode": "",
    "requestPremium": 0,
    "price": "1.30",
    "expiredIn": 900
  },
  "message": "Request Successful!",
  "success": true
}

Get an order

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

GET/number-details-s1
ParameterTypeRequiredDescription
orderIdstringYesThe order's ID, as returned when you ordered.
Example request
curl "https://textverification.io/api/v1/users/number-details-s1?orderId=55655059" \
  -H "Authorization: Bearer YOUR_API_KEY"
Example response
{
  "statusCode": 200,
  "data": {
    "orderId": "55655059",
    "number": "12125550101",
    "serviceName": "WhatsApp",
    "country": "United States",
    "state": "NY",
    "areaCode": "",
    "price": "1.30",
    "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-s1-service
ParameterTypeRequiredDescription
orderIdstringYesThe order's ID, as returned when you ordered.
Example request
curl -X POST "https://textverification.io/api/v1/users/reuse-s1-service" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"orderId":"55655059"}'
Example response
{
  "statusCode": 200,
  "data": {
    "orderId": "55655059",
    "number": "12125550101",
    "serviceName": "WhatsApp",
    "country": "United States",
    "state": "NY",
    "areaCode": "",
    "price": "1.30",
    "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-s1-service
ParameterTypeRequiredDescription
orderIdstringYesThe order's ID, as returned when you ordered.
Example request
curl -X POST "https://textverification.io/api/v1/users/reject-s1-service" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"orderId":"55655059"}'
Example response
{
  "statusCode": 200,
  "data": null,
  "message": "Request Successful!",
  "success": true
}