Fetch a phone number by port in request SID and phone number SID
Fetch a phone number by port in request SID and phone number SID
Path parameters
-
The SID of the Port In request. This is a unique identifier of the port in request.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^KW[0-9a-fA-F]{32}$
. -
The SID of the Phone number. This is a unique identifier of the phone number.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^PU[0-9a-fA-F]{32}$
.
GET
/v1/Porting/PortIn/{PortInRequestSid}/PhoneNumber/{PhoneNumberSid}
curl \
--request GET 'https://numbers.twilio.com/v1/Porting/PortIn/{PortInRequestSid}/PhoneNumber/{PhoneNumberSid}' \
--user "username:password"
Response examples (200)
{
"url": "https://numbers.twilio.com/v1/Porting/PortIn/KWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/PhoneNumber/PUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"country": "US",
"portable": true,
"port_date": "2024-05-17T00:00:00Z",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_created": "2024-04-10T06:52:21Z",
"last_updated": "2024-03-12T06:52:21Z",
"phone_number": "+15024953384",
"port_out_pin": 1234,
"phone_number_sid": "PUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"rejection_reason": null,
"phone_number_type": "LOCAL",
"port_in_request_sid": "KWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"rejection_reason_code": null,
"not_portability_reason": "ALREADY_IN_TWILIO_DIFFERENT_OWNER",
"missing_required_fields": false,
"not_portability_reason_code": 22132,
"port_in_phone_number_status": "in_review"
}