The PhoneNumber Object

The PhoneNumber object represents a phone number in the Vobiz system, including details about capabilities, billing, provider information, and status.

Attributes

PhoneNumber Attributes

NameTypeDescription
id
stringUUID identifier for the phone number.
account_id
stringAccount ID (MA_xxx or SA_xxx) that owns this number. Null if number is in inventory and not assigned to any account.
e164
stringPhone number in E164 format (e.g., "+14155551234").
country
stringCountry code (e.g., "US", "IN").
region
stringState/region code (e.g., "CA", "MH"). Optional.
capabilities
objectObject containing boolean flags for each capability: voice, sms, mms, fax.
capabilities.voice
booleanWhether the number supports voice calling.
capabilities.sms
booleanWhether the number supports SMS messaging.
capabilities.mms
booleanWhether the number supports MMS messaging.
capabilities.fax
booleanWhether the number supports fax.
status
stringCurrent status of the number. One of: "active", "pending_purchase", "pending_release", "released", "blocked".
provider
stringProvider name (e.g., "vobiz", "manual", or other provider).
provider_ref
stringProvider's reference ID for this number.
setup_fee
numberOne-time setup fee charged when purchasing the number.
monthly_fee
numberMonthly recurring fee for the number.
currency
stringCurrency code for fees (e.g., "USD", "INR").
trunk_group_id
stringUUID of assigned trunk group. Null if not assigned to any trunk. Optional.
purchased_at
stringISO 8601 timestamp when the number was purchased. Optional.
released_at
stringISO 8601 timestamp when the number was released. Optional.
created_at
stringISO 8601 timestamp when the number record was created.
updated_at
stringISO 8601 timestamp when the number record was last updated.

Number Status Values

StatusDescription
activeNumber is active and available
pending_purchasePurchase in progress
pending_releaseRelease in progress
releasedNumber has been released
blockedNumber is blocked

Example PhoneNumber Object

JSON
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "account_id": "{Auth_ID}",
  "e164": "+14155551234",
  "country": "US",
  "region": "CA",
  "capabilities": {
    "voice": true,
    "sms": true,
    "mms": false,
    "fax": false
  },
  "status": "active",
  "provider": "vobiz",
  "provider_ref": "PN1234567890",
  "setup_fee": 1.00,
  "monthly_fee": 1.00,
  "currency": "USD",
  "trunk_group_id": "660e8400-e29b-41d4-a716-446655440001",
  "purchased_at": "2025-01-15T10:00:00Z",
  "created_at": "2025-01-15T10:00:00Z",
  "updated_at": "2025-01-15T10:00:00Z"
}