Security
Basic or OAuth2
Contains requested features. Fallback to LineType if not provided.
| Items Enum Value | Description |
|---|---|
| LineType | Use to return line type information for the phone number. |
| SimSwap | Use to determine whether the phone number is SIM swapped. |
| VoIPDetection | Use to determine if the carrier is associated with a VoIP provider (alpha). |
| RND | Use to determine whether the phone number has been disconnected (alpha). |
- https://lookup.api.sinch.comhttps://lookup.api.sinch.com/v2/projects/{projectId}/lookups
curl -i -X POST \
-u '<username>:<password>' \
'https://lookup.api.sinch.com/v2/projects/{projectId}/lookups' \
-H 'Content-Type: application/json' \
-d '{
"number": "+12312312312"
}'Successful response
An object containing information about the SimSwap verification performed on the number.
An object containing information about the VoIP detection performed on the number.
Response
{ "line": { "carrier": "T-Mobile USA", "type": "Mobile", "mobileCountryCode": "310", "mobileNetworkCode": "260", "ported": true, "portingDate": "2000-01-01 00:00:00+00:00", "error": { … } }, "simSwap": { "swapped": true, "swapPeriod": "SP24H", "error": { … } }, "voIPDetection": { "probability": "High", "error": { … } }, "rnd": { "disconnected": true, "error": { … } }, "countryCode": "string", "traceId": "84c1fd4063c38d9f3900d06e56542d48", "number": "+12312312312" }
We'd love to hear from you!
Rate this content: