GET
/
v1
/
phone-numbers
curl --request GET \
  --url https://api.openphone.com/v1/phone-numbers
{
  "data": [
    {
      "id": "PN123bc",
      "groupId": "1234",
      "createdAt": " '2022-01-01T00:00:00Z'",
      "updatedAt": " '2022-01-01T00:00:00Z'",
      "name": "My phone number",
      "number": "+15555555555",
      "formattedNumber": "+15555555555",
      "forward": "+15555555555",
      "portRequestId": "123abc",
      "portingStatus": "completed",
      "symbol": "🏡",
      "users": [
        {
          "email": "[email protected]",
          "firstName": "John",
          "lastName": "Doe",
          "groupId": "GRcei8k90o",
          "id": "USCuU7xyz7",
          "role": "owner"
        }
      ],
      "restrictions": {
        "messaging": {
          "CA": "unrestricted",
          "US": "restricted",
          "Intl": "unrestricted"
        },
        "calling": {
          "CA": "unrestricted",
          "US": "unrestricted",
          "Intl": "unrestricted"
        }
      }
    }
  ]
}

Query Parameters

userId
string

Filter results to return only phone numbers associated with the specified user"s unique identifier.

Response

200
application/json
Success
data
object[]
required