{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/phone-com/json-schema/phone-com-sms-schema.json",
  "title": "SMS",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/phone-com-sms-api-openapi.yml#/components/schemas/SMS",
  "type": "object",
  "properties": {
    "text": {
      "type": "string",
      "maxLength": 3200,
      "description": "Text body of the outgoing SMS message"
    },
    "from": {
      "type": "string",
      "pattern": "^\\+?([0-9\\-\\(\\)\\s]*)$",
      "description": "Phone number of sender"
    },
    "extension_id": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 1,
      "description": "ID of Extension where the sms is saved"
    },
    "direction": {
      "enum": [
        "out"
      ],
      "description": "Type of SMS direction (in or out)"
    },
    "to": {
      "type": "string",
      "pattern": "^\\+?([0-9\\-\\(\\)\\s]*)$",
      "description": "Outgoing destination numbers"
    }
  },
  "required": [
    "text",
    "from",
    "to"
  ]
}