{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eztexting-com/json-schema/eztexting-com-message-create-request-schema.json",
  "title": "MessageCreateRequest",
  "x-generated": "2026-11-07",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eztexting-com-api-openapi.yml#/components/schemas/MessageCreateRequest",
  "type": "object",
  "properties": {
    "message": {
      "type": "string",
      "description": "The text message to send"
    },
    "companyName": {
      "type": "string",
      "description": "Company name, if provided will be added as message prefix"
    },
    "sendAt": {
      "type": "string",
      "format": "date-time",
      "description": "When to send the message (omit to send immediately) example: 2020-12-03T10:15:30+00:00"
    },
    "mediaFileId": {
      "type": "string",
      "description": "Media file id - reference to a previously uploaded media file"
    },
    "mediaUrl": {
      "type": "string",
      "description": "Media url - most standard format image, video and audio files supported up to 5MB"
    },
    "messageTemplateId": {
      "type": "string",
      "description": "Message template id to build message from"
    },
    "fromNumber": {
      "type": "string",
      "description": "Number to send from - only required if you have more than one number available to send from"
    },
    "toNumbers": {
      "type": "array",
      "description": "Collection of contact numbers to send to",
      "items": {
        "type": "string"
      }
    },
    "groupIds": {
      "type": "array",
      "description": "Collection of contact group ids to send to",
      "items": {
        "type": "string"
      }
    },
    "strictValidation": {
      "type": "boolean",
      "description": "If false - message will be sent to all valid numbers (all invalid numbers will be skipped),if true - message will not be sent if there is at least one invalid number from list"
    },
    "messageType": {
      "type": "string",
      "description": "Requested message type to send",
      "enum": [
        "SMS",
        "MMS"
      ]
    }
  }
}