{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/c1k-me/json-schema/c1k-me-link-schema.json",
  "title": "Link",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/c1k-me-openapi.yml#/components/schemas/Link",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "org_id": {
      "type": "string"
    },
    "short_url": {
      "type": "string",
      "format": "uri"
    },
    "slug": {
      "type": "string"
    },
    "domain_id": {
      "type": "string"
    },
    "domain": {
      "type": "string"
    },
    "destination_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "state": {
      "type": "string",
      "enum": [
        "active",
        "paused",
        "archived"
      ]
    },
    "effective_state": {
      "type": "string",
      "description": "The state visitors see now, taking the schedule into account."
    },
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "campaign": {
      "type": [
        "string",
        "null"
      ]
    },
    "utm": {
      "type": "object"
    },
    "starts_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "expires_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "password_protected": {
      "type": "boolean"
    },
    "forward_query_keys": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "version": {
      "type": "integer"
    },
    "created_by": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string"
        },
        "id": {
          "type": "string"
        }
      }
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}