Skip to Content

Get Virtual Number

Retrieve full detail for a single virtual number, including stats, attached operators, and recent calls.

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

Returns settings, attached operators, available operators on the account, call statistics, and the 10 most recent calls.

Requires read permission

Scopes

API key scopeBehavior
Account-wideCan fetch any virtual number on the account.
Project-scopedReturns 404 if the virtual number is not attached to the key’s project.

Path Parameters

Parameters

NameTypeRequiredDefaultDescription
idintegerYes-Virtual number ID

Request

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

Response

Response200 OK
{
"data": {
  "id": 7,
  "phone_number": "+15551234567",
  "name": "US Sales Line",
  "country_code": "US",
  "active": true,
  "recording": true,
  "routing_strategy": "priority",
  "ai_receptionist_enabled": false,
  "stats": {
    "total_calls": 142,
    "answered_calls": 118,
    "missed_calls": 24,
    "average_duration_seconds": 184
  },
  "operators": [
    {
      "id": 12,
      "name": "Alice Carter",
      "phone_number": "+15555550112",
      "initials": "AC",
      "priority": 0
    },
    {
      "id": 13,
      "name": "Bob Diaz",
      "phone_number": "+15555550113",
      "initials": "BD",
      "priority": 1
    },
    {
      "id": 14,
      "name": "Carol Evans",
      "phone_number": "+15555550114",
      "initials": "CE",
      "priority": 2
    }
  ],
  "available_operators": [
    {
      "id": 22,
      "name": "Eva Frank",
      "phone_number": "+15555550122",
      "initials": "EF"
    }
  ],
  "recent_calls": [
    {
      "id": 9981,
      "phone_number": "+15558884444",
      "caller_name": "John Smith",
      "call_status": "answered",
      "call_duration": 213,
      "direction": "inbound",
      "ai_handled": false,
      "transcript_summary": null,
      "created_at": "2026-04-14T16:22:05Z"
    }
  ]
}
}

Response Fields

FieldTypeDescription
idintegerUnique virtual number ID
phone_numberstringE.164 phone number
namestringDisplay name
country_codestringISO 3166-1 alpha-2 country code
activebooleanWhether the number receives calls
recordingbooleanWhether inbound calls are recorded
routing_strategystringHow calls are distributed across operators (e.g. priority, round_robin, simultaneous)
ai_receptionist_enabledbooleanWhether an AI agent answers inbound calls
statsobjectAggregated call counts and average duration
operatorsarrayOperators attached to this number, ordered by priority
available_operatorsarrayActive operators on the account that are NOT yet attached
recent_callsarrayUp to 10 most recent calls on this number

Errors

StatusErrorDescription
404”Resource not found”Virtual number doesn’t exist or isn’t accessible under the key’s scope

See Also

Try It

Try It