{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lettera-dev/json-schema/lettera-dev-outbox-message-schema.json",
  "title": "OutboxMessage",
  "x-generated": "2026-11-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/lettera-dev-api-openapi.json#/components/schemas/OutboxMessage",
  "type": "object",
  "required": [
    "id",
    "to",
    "to_handle",
    "to_word_name",
    "body",
    "content_hash",
    "created_at"
  ],
  "properties": {
    "id": {
      "type": "integer",
      "format": "int64"
    },
    "to": {
      "type": "string",
      "description": "recipient address (base58 public key)"
    },
    "to_handle": {
      "type": "string"
    },
    "to_word_name": {
      "type": "string",
      "description": "recipient's permanent three-word name"
    },
    "body": {
      "description": "the message body, arbitrary JSON"
    },
    "content_hash": {
      "type": "string",
      "description": "hex SHA-256 of the body's canonical JSON (RFC 8785: sorted keys, no insignificant whitespace)"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "delivered_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "when the recipient first fetched this message; null until then"
    }
  }
}