{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/qrflow-codes/json-schema/qrflow-codes-code-schema.json",
  "title": "Code",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/qrflow-codes-openapi.yml#/components/schemas/Code",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "label": {
      "type": [
        "string",
        "null"
      ]
    },
    "kind": {
      "type": "string"
    },
    "kind_label": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "destination_data": {
      "type": "object"
    },
    "destination": {
      "type": "string"
    },
    "dynamic": {
      "type": "boolean"
    },
    "dynamic_capable": {
      "type": "boolean"
    },
    "short_code": {
      "type": "string"
    },
    "short_url": {
      "type": "string",
      "description": "What to print for a dynamic code"
    },
    "domain_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "fg_color": {
      "type": "string"
    },
    "bg_color": {
      "type": "string"
    },
    "has_logo": {
      "type": "boolean"
    },
    "frame_style": {
      "type": [
        "string",
        "null"
      ]
    },
    "frame_caption": {
      "type": [
        "string",
        "null"
      ]
    },
    "scans": {
      "type": "integer"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "manage_url": {
      "type": "string"
    },
    "image_url": {
      "type": "string",
      "description": "Print-ready SVG; needs the Authorization header"
    },
    "svg_download_url": {
      "type": "string",
      "description": "Same SVG through a signed link that works for 24 hours with no header"
    },
    "png_download_url": {
      "type": "string",
      "description": "Plain PNG (no frame or logo) through a signed 24-hour link"
    },
    "download_expires_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}