/api/v1/sms/numbers
List SMS numbers
Returns active phone numbers available for receiving one-time SMS verification codes. You can filter by ISO country code.
Request Parameters
| Parameter | In | Type | Required | Description | Example |
|---|---|---|---|---|---|
| country | query | string | Optional | Two-letter ISO 3166-1 alpha-2 country code (e.g. US, GB, VN, SE). (Default: all) | US |
| page | query | integer | Optional | Page number for pagination. (Default: 1) | 1 |
| limit | query | integer | Optional | Items per page (max 100). (Default: 20) | 20 |
curl -X GET 'https://axioapi.com/api/v1/sms/numbers' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Accept: application/json'
const response = await fetch('https://axioapi.com/api/v1/sms/numbers', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Accept': 'application/json'
}
});
const data = await response.json();
console.log(data);
import requests
url = 'https://axioapi.com/api/v1/sms/numbers'
headers = {
'Authorization': 'Bearer YOUR_API_KEY',
'Accept': 'application/json'
}
response = requests.get(url, headers=headers)
print(response.json())
use Illuminate\Support\Facades\Http;
$response = Http::withToken('YOUR_API_KEY')
->acceptJson()
->get('https://axioapi.com/api/v1/sms/numbers');
$data = $response->json();
print_r($data);
{
"status": "success",
"data": {
"items": [
{
"id": null,
"countries": "United States",
"country_code": "US",
"number": "+12025550192",
"expiry_date": null,
"extension_date": null
},
{
"id": null,
"countries": "United States",
"country_code": "US",
"number": "+12025550193",
"expiry_date": null,
"extension_date": null
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 142,
"has_more": true
}
},
"request": {
"id": "7f1c2c1e-9a3b-4c55-8d0e-2b6f4c9a1d10",
"method": "GET",
"path": "/api/v1/sms/numbers",
"input": []
}
}