Skip to Content
API ReferenceVirtual NumbersList Virtual Numbers

List Virtual Numbers

Retrieve all virtual numbers visible to the API key.

GEThttps://api.identitycall.ai/api/v1/public/virtual_numbers

Returns the virtual numbers in the account, filtered by the key's project when project-scoped.

Requires read permission

Scopes

API key scopeBehavior
Account-wideReturns every virtual number on the account.
Project-scopedReturns only virtual numbers attached to the key’s bound project.

Query Parameters

This endpoint takes no query parameters. The result set is determined by the API key’s scope.

Request

curl -X GET "https://api.identitycall.ai/api/v1/public/virtual_numbers" \ -H "Authorization: Bearer $IDENTITYCALL_API_KEY"

Response

Response200 OK
{
"data": [
  {
    "id": 7,
    "phone_number": "+15551234567",
    "name": "US Sales Line",
    "country_code": "US",
    "active": true,
    "ai_receptionist_enabled": false,
    "operators": [
      { "id": 12, "name": "Alice Carter", "initials": "AC" },
      { "id": 13, "name": "Bob Diaz", "initials": "BD" },
      { "id": 14, "name": "Carol Evans", "initials": "CE" }
    ],
    "operators_count": 3
  },
  {
    "id": 8,
    "phone_number": "+37060012345",
    "name": "LT Support Line",
    "country_code": "LT",
    "active": true,
    "ai_receptionist_enabled": true,
    "operators": [
      { "id": 21, "name": "Daiva Petrauskas", "initials": "DP" }
    ],
    "operators_count": 1
  }
]
}

Response Fields

FieldTypeDescription
idintegerUnique virtual number ID
phone_numberstringE.164-formatted phone number
namestringDisplay name (nullable)
country_codestringISO 3166-1 alpha-2 country code
activebooleanWhether the number is enabled for receiving calls
ai_receptionist_enabledbooleanWhether an AI voice agent answers inbound calls
operatorsarrayUp to the first 3 attached operators (id, name, initials)
operators_countintegerTotal operators attached to this number

Errors

StatusErrorDescription
401”Unauthorized”Missing or invalid API key
403”Forbidden”API key lacks read permission

See Also

Try It

Try It