{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/przypominamy-com/json-schema/przypominamy-com-template-schema.json",
  "title": "Template",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/przypominamy-com-szablony-api-openapi.yml#/components/schemas/Template",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string",
      "maxLength": 60
    },
    "type": {
      "type": "string",
      "enum": [
        "sms",
        "mms",
        "vms"
      ],
      "description": "Kanał, do którego pasuje szablon - musi zgadzać się z endpointem wysyłki"
    },
    "body": {
      "type": "string",
      "maxLength": 5000,
      "description": "Treść z placeholderami `{{klucz}}` (dla MMS - dokument SMIL)"
    },
    "subject": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 80,
      "description": "Temat (tylko MMS)"
    },
    "placeholders": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Placeholdery znalezione w `body`, małymi literami"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}