curl --request GET \
--url https://api.openphone.com/v1/phone-numbers/{phoneNumberId} \
--header 'Authorization: <api-key>'{
"data": {
"id": "<string>",
"groupId": "<string>",
"portRequestId": "123abc",
"formattedNumber": "+15555555555",
"forward": "+15555555555",
"name": "<string>",
"number": "<string>",
"portingStatus": "completed",
"symbol": "🏡",
"users": [
{
"email": "[email protected]",
"firstName": "John",
"lastName": "Doe",
"id": "<string>",
"role": "owner",
"groupId": "<string>"
}
],
"createdAt": "<string>",
"updatedAt": "<string>",
"restrictions": {
"calling": {
"CA": "restricted",
"Intl": "restricted",
"US": "restricted"
},
"messaging": {
"CA": "restricted",
"Intl": "restricted",
"US": "restricted"
}
}
}
}Get a phone number by its unique identifier.
curl --request GET \
--url https://api.openphone.com/v1/phone-numbers/{phoneNumberId} \
--header 'Authorization: <api-key>'{
"data": {
"id": "<string>",
"groupId": "<string>",
"portRequestId": "123abc",
"formattedNumber": "+15555555555",
"forward": "+15555555555",
"name": "<string>",
"number": "<string>",
"portingStatus": "completed",
"symbol": "🏡",
"users": [
{
"email": "[email protected]",
"firstName": "John",
"lastName": "Doe",
"id": "<string>",
"role": "owner",
"groupId": "<string>"
}
],
"createdAt": "<string>",
"updatedAt": "<string>",
"restrictions": {
"calling": {
"CA": "restricted",
"Intl": "restricted",
"US": "restricted"
},
"messaging": {
"CA": "restricted",
"Intl": "restricted",
"US": "restricted"
}
}
}
}Was this page helpful?