addedOutput schema / $defs
Added value: +{
+ "PhoneNumberResponse": {
+ "properties": {
+ "capabilities": {
+ "description": "Channels this number supports, e.g. ['voice'], ['sms'], or both.",
+ "items": {
+ "type": "string"
+ },
+ "title": "Capabilities",
+ "type": "array"
+ },
+ "country_code": {
+ "description": "ISO alpha-2 country code this number belongs to.",
+ "title": "Country Code",
+ "type": "string"
+ },
+ "e164": {
+ "description": "The phone number, E.164 format.",
+ "title": "E164",
+ "type": "string"
+ },
+ "id": {
+ "description": "Unique identifier for this number.",
+ "format": "uuid",
+ "title": "Id",
+ "type": "string"
+ },
+ "inbound_registered": {
+ "default": false,
+ "description": "True while the number is attached for inbound calls at the carrier and on Hail's LiveKit inbound trunk. Set when voice_agent_id is set.",
+ "title": "Inbound Registered",
+ "type": "boolean"
+ },
+ "is_dedicated": {
+ "description": "True if this number is owned by the organization. False for shared-pool numbers.",
+ "title": "Is Dedicated",
+ "type": "boolean"
+ },
+ "number_type": {
+ "description": "Kind of number: 'local', 'mobile', 'toll_free', or 'national'.",
+ "title": "Number Type",
+ "type": "string"
+ },
+ "provisioning_state": {
+ "description": "'pending', 'active', 'failed', or 'released'.",
+ "title": "Provisioning State",
+ "type": "string"
+ },
+ "sms_agent_id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Agent that answers texts to this number. Null: texts only reach your webhooks.",
+ "title": "Sms Agent Id"
+ },
+ "subject_name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Name of the person or company the verification used to buy this number is for. Null when no verification was used or the name is unknown.",
+ "title": "Subject Name"
+ },
+ "subject_type": {
+ "anyOf": [
+ {
+ "enum": [
+ "person",
+ "business"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Who the verification used to buy this number is for: 'person' or 'business'. Null when no verification was used.",
+ "title": "Subject Type"
+ },
+ "verification_id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Hail id of the verification used to buy this number. Null when no verification was used.",
+ "title": "Verification Id"
+ },
+ "voice_agent_id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Agent that answers calls to this number. Null: calls ring out.",
+ "title": "Voice Agent Id"
+ }
+ },
+ "required": [
+ "id",
+ "e164",
+ "country_code",
+ "number_type",
+ "capabilities",
+ "provisioning_state",
+ "is_dedicated",
+ "voice_agent_id",
+ "sms_agent_id",
+ "inbound_registered",
+ "subject_type",
+ "verification_id",
+ "subject_name"
+ ],
+ "title": "PhoneNumberResponse",
+ "type": "object"
+ }
+}
addedOutput schema / anyOf
Added value: +[
+ {
+ "properties": {
+ "items": {
+ "description": "Numbers in this page.",
+ "items": {
+ "$ref": "#/$defs/PhoneNumberResponse"
+ },
+ "title": "Items",
+ "type": "array"
+ },
+ "next_cursor": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Opaque cursor for the next page. Null when there are no more results.",
+ "title": "Next Cursor"
+ }
+ },
+ "required": [
+ "items",
+ "next_cursor"
+ ],
+ "title": "PhoneNumberListResponse",
+ "type": "object"
+ },
+ {
+ "properties": {
+ "error": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "error"
+ ],
+ "type": "object"
+ }
+]