Run a portability check
POST/portability_checks
Runs a portability check, returning the results immediately.
Request
- application/json
Body
required
phone_numbers string[]
The list of +E.164 formatted phone numbers to check for portability
Responses
201: PortabilityCheck Response
- application/json
401: Unauthorized
422: Unprocessable entity. Check message field in response for details.
Request samples
curl -L 'https://api.telnyx.com/v2/portability_checks' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"phone_numbers": [
"+13035550000",
"+13035550001",
"+13035550002"
]
}'
Response samples
{
"data": [
{
"record_type": "portability_check_result",
"fast_portable": true,
"not_portable_reason": "No coverage",
"phone_number": "+13125550123",
"portable": true
}
]
}