This defines the List Numbers API:
A Fax API request looks like:
https://fax.to/api/v2/numbers?api_key=xxxxx
This request contains:
The following table shows the parameters you use in the request:
Parameter | Description | Required |
---|---|---|
limit | The number of record to return. For example, limit=10 . |
No. |
page | The page you want to get. Basically its pagination. For example, page=1 . |
No. |
The following table shows the information for authentication:
Parameter | Description | Required |
---|---|---|
api_key | Your Key. For example, api_key=f@x2r0ckkz . |
Yes. |
You find your Key in Dashboard.
To ensure privacy, you must use HTTPS for all Faxto API requests.
You submit all requests with a POST or GET call using UTF-8 encoding and URL encoded values.
We support JSON ONLY responses
{
"status": "success",
"numbers": [
{
"id": 775,
"order_reference": null,
"country_code": "CAN",
"country": "CANADA",
"city_name": null,
"area_code": "204",
"did_group_id": 67,
"did_number": "+12048134699",
"expiration_date": "2017-07-30",
"status": "Active"
},
{
"id": 776,
"order_reference": null,
"country_code": "CAN",
"country": "CANADA",
"city_name": null,
"area_code": "204",
"did_group_id": 67,
"did_number": "+12048134700",
"expiration_date": "2017-07-30",
"status": "Active"
}
],
"meta": {
"pagination": {
"total": 7,
"count": 2,
"per_page": 2,
"current_page": 2,
"total_pages": 4,
"links": {
"previous": "https://fax.to/api/v2/numbers?page=1",
"next": "https://fax.to/api/v2/numbers?page=3"
}
}
}
}
Key | Value | Response Type |
---|---|---|
data | Array containing numbers | JSON |
meta | Meta containing paginations links | JSON |
HTTP Status Code | Reason |
---|---|
200 | Successful response |
401 | Unauthorized. |
403 | Rate limit exceeded |
404 | Resource not Found |
500 | Internal server error |