{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bluereacher-com/json-schema/bluereacher-com-message-schema.json",
  "title": "Message",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bluereacher-com-legacy-openapi.yml#/components/schemas/Message",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "from": {
      "type": "string",
      "description": "Sending line in E.164 format"
    },
    "to": {
      "type": "string",
      "description": "Recipient in E.164 format or email address"
    },
    "message": {
      "type": "string"
    },
    "channel": {
      "type": "string",
      "enum": [
        "imessage",
        "rcs",
        "sms"
      ],
      "description": "Channel the message was actually delivered on"
    },
    "status": {
      "type": "string",
      "enum": [
        "queued",
        "sending",
        "sent",
        "delivered",
        "read",
        "failed"
      ]
    },
    "external_id": {
      "type": "string",
      "description": "Your identifier, used for idempotency and reconciliation"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}