{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/przypominamy-com/json-schema/przypominamy-com-tracked-link-schema.json",
  "title": "TrackedLink",
  "description": "Śledzony link utworzony z `{{link:https://…}}` - jeden na parę (odbiorca, adres).",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/przypominamy-com-linki-api-openapi.yml#/components/schemas/TrackedLink",
  "type": "object",
  "properties": {
    "token": {
      "type": "string",
      "description": "8 znaków, część adresu `/l/{token}`"
    },
    "short_url": {
      "type": "string",
      "format": "uri",
      "description": "Pełny krótki adres; w SMS-ie idzie bez `https://`, żeby oszczędzić znaki"
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "Adres docelowy z placeholdera"
    },
    "message_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "to": {
      "type": [
        "string",
        "null"
      ],
      "description": "Odbiorca, który dostał ten link"
    },
    "clicks": {
      "type": "integer"
    },
    "first_click_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "last_click_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}