Line
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 |
|---|---|---|---|
agent | anyOf: string; null | Optional | — |
capabilities | object | Optional | Additional properties allowed |
capabilities.a2p_outbound | string | Optional | — |
capabilities.sms | string | Optional | — |
capabilities.voice | string | Optional | — |
id | string | Required | Public line_… reference (not a UUID). pattern: ^line_[0-7][0-9A-HJKMNP-TV-Z]{25}$ |
number | anyOf: string; null | Optional | — |
org | string | Optional | Public org_… reference (not a UUID). pattern: ^org_[0-7][0-9A-HJKMNP-TV-Z]{25}$ |
phone_number | anyOf: string; null | Optional | — |
project | string | Optional | Public proj_… reference (not a UUID). pattern: ^proj_[0-7][0-9A-HJKMNP-TV-Z]{25}$ |
spend | object | Optional | Additional properties allowed |
spend.committed_micros | string | Optional | Integer USD micros as a decimal string; $1 = 1000000 micros. pattern: ^[0-9]+$ |
spend.limit_micros | anyOf: string; null | Optional | — |
spend.period | string | Optional | — |
spend.reserved_micros | string | Optional | Integer USD micros as a decimal string; $1 = 1000000 micros. pattern: ^[0-9]+$ |
spend_limit_cents | anyOf: integer; null | Optional | — |
status | provisioning, active, suspended, releasing, released | Required | — |
voice | anyOf: string; null | Optional | — |
voice_language | anyOf: string; null | Optional | — |
voice_mode | none, ordan | Optional | ordan: ORDan speaks the agent's text on the Line's calls and transcribes the other party (the owner's switch) |
JSON Schema
json
{
"additionalProperties": true,
"properties": {
"agent": {
"anyOf": [
{
"description": "Public agent_… reference (not a UUID)",
"pattern": "^agent_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
"type": "string"
},
{
"type": "null"
}
]
},
"capabilities": {
"additionalProperties": true,
"properties": {
"a2p_outbound": {
"type": "string"
},
"sms": {
"type": "string"
},
"voice": {
"type": "string"
}
},
"type": "object"
},
"id": {
"description": "Public line_… reference (not a UUID)",
"pattern": "^line_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
"type": "string"
},
"number": {
"anyOf": [
{
"description": "Public num_… reference (not a UUID)",
"pattern": "^num_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
"type": "string"
},
{
"type": "null"
}
]
},
"org": {
"description": "Public org_… reference (not a UUID)",
"pattern": "^org_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
"type": "string"
},
"phone_number": {
"anyOf": [
{
"examples": [
"+12125550101"
],
"pattern": "^\\+[1-9][0-9]{6,14}$",
"type": "string"
},
{
"type": "null"
}
]
},
"project": {
"description": "Public proj_… reference (not a UUID)",
"pattern": "^proj_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
"type": "string"
},
"spend": {
"additionalProperties": true,
"properties": {
"committed_micros": {
"description": "Integer USD micros as a decimal string; $1 = 1000000 micros",
"pattern": "^[0-9]+$",
"type": "string"
},
"limit_micros": {
"anyOf": [
{
"description": "Integer USD micros as a decimal string; $1 = 1000000 micros",
"pattern": "^[0-9]+$",
"type": "string"
},
{
"type": "null"
}
]
},
"period": {
"type": "string"
},
"reserved_micros": {
"description": "Integer USD micros as a decimal string; $1 = 1000000 micros",
"pattern": "^[0-9]+$",
"type": "string"
}
},
"type": "object"
},
"spend_limit_cents": {
"anyOf": [
{
"minimum": 0,
"type": "integer"
},
{
"type": "null"
}
]
},
"status": {
"enum": [
"provisioning",
"active",
"suspended",
"releasing",
"released"
],
"type": "string"
},
"voice": {
"anyOf": [
{
"description": "The carrier voice id ORDan voice speaks with; null: the default",
"type": "string"
},
{
"type": "null"
}
]
},
"voice_language": {
"anyOf": [
{
"description": "The language ORDan voice speaks and transcribes, e.g. en-US; null: the default",
"type": "string"
},
{
"type": "null"
}
]
},
"voice_mode": {
"description": "ordan: ORDan speaks the agent's text on the Line's calls and transcribes the other party (the owner's switch)",
"enum": [
"none",
"ordan"
],
"type": "string"
}
},
"required": [
"id",
"status"
],
"type": "object"
}