{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/depixapp-com/json-schema/depixapp-com-ticket-attachment-request-schema.json",
  "title": "TicketAttachmentRequest",
  "description": "Attach ONE file to a ticket. The bytes go in file_b64 (base64, no data: URI prefix) and are forwarded to the support team's Telegram topic — not stored or served back. Max ~3 MB decoded. Same state machine as a reply: an answered ticket returns to awaiting_reply; an auto-closed ticket within 7 days reopens.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/depixapp-com-support-api-openapi.yml#/components/schemas/TicketAttachmentRequest",
  "type": "object",
  "required": [
    "filename",
    "content_type",
    "file_b64"
  ],
  "additionalProperties": false,
  "properties": {
    "filename": {
      "type": "string",
      "description": "Filename shown to support (sanitized; max 200 chars).",
      "maxLength": 200
    },
    "content_type": {
      "type": "string",
      "description": "File MIME type.",
      "enum": [
        "image/png",
        "image/jpeg",
        "image/webp",
        "application/pdf",
        "text/plain",
        "application/json"
      ]
    },
    "file_b64": {
      "type": "string",
      "description": "The file bytes, base64-encoded (no data: URI prefix). Max ~3 MB decoded."
    },
    "caption": {
      "type": "string",
      "description": "Optional note shown with the file (max 400 chars).",
      "maxLength": 400
    }
  }
}