Number
Type: object
Required means required within its containing object, when that object is present. Union/conditional constraints remain defined by the JSON Schema below.
| Field | Type | Presence | Description / constraints |
|---|---|---|---|
attached_line | anyOf: string; null | Optional | — |
capabilities | object | Optional | Additional properties allowed |
id | string | Optional | Public num_… reference (not a UUID). pattern: ^num_[0-7][0-9A-HJKMNP-TV-Z]{25}$ |
monthly_cost_micros | anyOf: string; null | Optional | — |
phone_number | string | Optional | pattern: ^\+[1-9][0-9]{6,14}$ |
status | pending_activation, active, release_pending, released | Optional | — |
upfront_cost_micros | string | Optional | Integer USD micros as a decimal string; $1 = 1000000 micros. pattern: ^[0-9]+$ |
JSON Schema
json
{
"additionalProperties": true,
"properties": {
"attached_line": {
"anyOf": [
{
"description": "Public line_… reference (not a UUID)",
"pattern": "^line_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
"type": "string"
},
{
"type": "null"
}
]
},
"capabilities": {
"additionalProperties": true,
"properties": {},
"type": "object"
},
"id": {
"description": "Public num_… reference (not a UUID)",
"pattern": "^num_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
"type": "string"
},
"monthly_cost_micros": {
"anyOf": [
{
"description": "Integer USD micros as a decimal string; $1 = 1000000 micros",
"pattern": "^[0-9]+$",
"type": "string"
},
{
"type": "null"
}
]
},
"phone_number": {
"examples": [
"+12125550101"
],
"pattern": "^\\+[1-9][0-9]{6,14}$",
"type": "string"
},
"status": {
"enum": [
"pending_activation",
"active",
"release_pending",
"released"
],
"type": "string"
},
"upfront_cost_micros": {
"description": "Integer USD micros as a decimal string; $1 = 1000000 micros",
"pattern": "^[0-9]+$",
"type": "string"
}
},
"type": "object"
}