Skip to content
Developers

Flex Rental API

Every Flex Rental 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 Rental

Keep a US number for 1 to 30 days, with auto-renew and reactivation of expired numbers.

List rental services and prices

Lists Flex Rental's services with your price for each rental length.

GET/s3-rental-services
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/s3-rental-services" \
  -H "Authorization: Bearer YOUR_API_KEY"
Example response
{
  "statusCode": 200,
  "data": [
    {
      "serviceId": "1f3aa214",
      "serviceName": "Amazon",
      "prices": [
        {
          "period": "1d",
          "days": 1,
          "price": "2.88"
        },
        {
          "period": "30d",
          "days": 30,
          "price": "5.76"
        }
      ]
    }
  ],
  "message": "Request Successful!",
  "success": true
}

List countries

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

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

Rent a number

Rents a Flex Rental number for a service and charges your balance for the whole period.

POST/request-s3-rental
ParameterTypeRequiredDescription
serviceIdstringYesThe service's ID, from the services list.
periodstringYesThe rental length, from the services list, such as "7d".
areasstringNoArea codes, separated by commas (up to 10). They add to the price.
autoRenewbooleanNotrue to renew the rental from your balance a few hours before it ends.
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-rental" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"serviceId":"1f3aa214","period":"7d","autoRenew":true}'
Example response
{
  "statusCode": 200,
  "data": {
    "orderId": "6702f1c4e2",
    "number": "12125550104",
    "serviceName": "WhatsApp",
    "country": "United States",
    "price": "3.20",
    "status": "reserved",
    "canRefund": true,
    "autoRenew": true,
    "purchased": "2026-10-09 12:44:00",
    "expires": "2026-11-08 12:44:00",
    "period": "7d",
    "duration": 7,
    "renewPrice": "3.20"
  },
  "message": "Request Successful!",
  "success": true
}

Get a rental

Returns a rental with its status, end date and renewal settings.

GET/s3-rental-details
ParameterTypeRequiredDescription
orderIdstringYesThe order's ID, as returned when you ordered.
Example request
curl "https://textverification.io/api/v1/users/s3-rental-details?orderId=6702f1c4e2" \
  -H "Authorization: Bearer YOUR_API_KEY"
Example response
{
  "statusCode": 200,
  "data": {
    "orderId": "6702f1c4e2",
    "number": "12125550104",
    "serviceName": "WhatsApp",
    "country": "United States",
    "price": "3.20",
    "status": "active",
    "canRefund": false,
    "autoRenew": true,
    "purchased": "2026-10-09 12:44:00",
    "expires": "2026-11-08 12:44:00",
    "period": "7d",
    "duration": 7
  },
  "message": "Request Successful!",
  "success": true
}

Read a rental's messages

Returns the messages a rental has received, newest first.

GET/s3-rental-messages
ParameterTypeRequiredDescription
orderIdstringYesThe order's ID, as returned when you ordered.
page / limitnumberNoPage number, and page size (up to 100).
Example request
curl "https://textverification.io/api/v1/users/s3-rental-messages?orderId=6702f1c4e2" \
  -H "Authorization: Bearer YOUR_API_KEY"
Example response
{
  "statusCode": 200,
  "data": {
    "messages": [
      {
        "id": "66f0a1",
        "orderId": "6702f1c4e2",
        "number": "12125550104",
        "service": "WhatsApp",
        "sender": "WhatsApp",
        "message": "Your WhatsApp code: 551-204",
        "pin": "551204",
        "timestamp": "2026-10-09 12:44:00"
      }
    ],
    "pagination": {
      "total": 1,
      "page": 1,
      "limit": 10,
      "totalPages": 1
    }
  },
  "message": "Request Successful!",
  "success": true
}

Renew a rental

Extends a running rental and charges your balance. Without a period, it renews for its own length.

POST/renew-s3-rental
ParameterTypeRequiredDescription
orderIdstringYesThe order's ID, as returned when you ordered.
Example request
curl -X POST "https://textverification.io/api/v1/users/renew-s3-rental" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"orderId":"6702f1c4e2"}'
Example response
{
  "statusCode": 200,
  "data": {
    "orderId": "6702f1c4e2",
    "number": "12125550104",
    "serviceName": "WhatsApp",
    "country": "United States",
    "price": "6.40",
    "status": "reserved",
    "canRefund": false,
    "autoRenew": true,
    "purchased": "2026-10-09 12:44:00",
    "expires": "2026-11-08 12:44:00",
    "period": "7d",
    "duration": 7
  },
  "message": "Request Successful!",
  "success": true
}

Turn auto-renew on or off

Sets whether a running rental is renewed from your balance a few hours before it ends.

POST/s3-rental-auto-renew
ParameterTypeRequiredDescription
orderIdstringYesThe order's ID, as returned when you ordered.
enabledbooleanYestrue to turn auto-renew on, false to turn it off.
Example request
curl -X POST "https://textverification.io/api/v1/users/s3-rental-auto-renew" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"orderId":"6702f1c4e2","enabled":true}'
Example response
{
  "statusCode": 200,
  "data": {
    "orderId": "6702f1c4e2",
    "autoRenew": true
  },
  "message": "Request Successful!",
  "success": true
}

Cancel a rental

Cancels a rental that can still be refunded (before its first message) and refunds it to your balance.

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

Get reactivation prices

Lists the lengths an expired rental's number can be reactivated for, with your price for each.

GET/s3-rental-retake-options
ParameterTypeRequiredDescription
orderIdstringYesThe order's ID, as returned when you ordered.
Example request
curl "https://textverification.io/api/v1/users/s3-rental-retake-options?orderId=6702f1c4e2" \
  -H "Authorization: Bearer YOUR_API_KEY"
Example response
{
  "statusCode": 200,
  "data": {
    "orderId": "6702f1c4e2",
    "number": "12125550104",
    "serviceName": "Amazon",
    "periods": [
      {
        "period": "7d",
        "days": 7,
        "price": "4.80"
      }
    ]
  },
  "message": "Request Successful!",
  "success": true
}

Reactivate an expired number

Rents an expired rental's number again for the same service, while it's still free.

POST/retake-s3-rental
ParameterTypeRequiredDescription
orderIdstringYesThe order's ID, as returned when you ordered.
periodstringYesThe rental length, from the services list, such as "7d".
autoRenewbooleanNotrue to renew the rental from your balance a few hours before it ends.
Example request
curl -X POST "https://textverification.io/api/v1/users/retake-s3-rental" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"orderId":"6702f1c4e2","period":"7d"}'
Example response
{
  "statusCode": 200,
  "data": {
    "orderId": "6702f9a811",
    "number": "12125550104",
    "serviceName": "WhatsApp",
    "country": "United States",
    "price": "4.80",
    "status": "reserved",
    "canRefund": true,
    "autoRenew": true,
    "purchased": "2026-10-09 12:44:00",
    "expires": "2026-11-08 12:44:00",
    "period": "7d",
    "duration": 7
  },
  "message": "Request Successful!",
  "success": true
}