This page will help you get started with Disposable Phones API
The Disposable Phones endpoint allows you to detect whether a phone number is associated with a temporary or disposable phone service provider (e.g., freemsg.net, anonymsms.com). This check is a valuable tool in fraud prevention workflows, helping you assess the trustworthiness of user-provided phone numbers.
Request
Following an example of a Phones Disposable
curl --request POST \
--url https://api.trustfull.com/1.0/phone-disposable \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'x-api-key: [your_app_key]' \
--data '
{
"transaction_id": "your_transaction_id",
"phone_number": "39349xxxxxxx"
}'
Here's a detailed explanation of all fields needed for the api call:
name | type |
---|---|
transaction_id | string A unique identifier for the transaction. Duplicate values are not allowed. Ex: 4115d9d9-28f4-4100-8701-cafe2adbc4c2 |
phone_number | string The phone number to analyze, in international format. Ex: 39349xxxxxxx |
Response
Following is an example of the response:
{
"is_valid_format": true,
"is_disposable": true,
"disposable_provider": "freesms.net"
}
Here's a detailed explanation of all fields returned:
name | type |
---|---|
is_valid_format | boolean Indicates if the phone number you provided has a valid format Ex: true |
is_disposable | ?boolean Indicates if the phone number belongs to a temporary phone service provider Ex: true |
disposable_provider_name | ?string When detected, it indicates the temporary phone service provider Ex: anonymsms.com |
FAQ
Following are some common questions for this specific API:
Why do need to pass a transaction_id?
This value is useful to refer to a specific transaction in the system. Using only the phone number can lead to collision in case of duplicated call for the same phone number. Transaction id must be unique across all trustfull api endpoints.
What is the supported phone_number_format?
The phone_number parameter must be submitted in international format, using digits only. This means the number should include the country code directly followed by the national number, without any leading zeros, plus symbols, spaces, or special characters.
What happen if i pass an invalid phone_number?
We strongly encourage you to validate the phone number format before making a request, or to use our Phone Validation endpoint
If the phone_number provided has an invalid format, the response will only include the is_valid_format field (false)βcharged at the same rate as a standard API call.