curl --request GET \
--url https://dev-public-api.openphone.dev/v1/phone-numbers \
--header 'Authorization: <api-key>'{
"data": [
{
"id": "<string>",
"groupId": "<string>",
"portRequestId": "123abc",
"formattedNumber": "+15555555555",
"forward": "+15555555555",
"name": "<string>",
"number": "<string>",
"portingStatus": "completed",
"symbol": "🏡",
"users": [
{
"email": "jsmith@example.com",
"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"
}
}
}
]
}Retrieve the list of phone numbers and users associated with your OpenPhone workspace.
curl --request GET \
--url https://dev-public-api.openphone.dev/v1/phone-numbers \
--header 'Authorization: <api-key>'{
"data": [
{
"id": "<string>",
"groupId": "<string>",
"portRequestId": "123abc",
"formattedNumber": "+15555555555",
"forward": "+15555555555",
"name": "<string>",
"number": "<string>",
"portingStatus": "completed",
"symbol": "🏡",
"users": [
{
"email": "jsmith@example.com",
"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?