{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/stacktr-ee/json-schema/stacktr-ee-share-token-schema.json",
  "title": "ShareToken",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/stacktr-ee-openapi.yml#/components/schemas/ShareToken",
  "type": "object",
  "required": [
    "id",
    "created_at"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "Pass to DELETE /share-tokens/{tokenId} to revoke."
    },
    "label": {
      "type": [
        "string",
        "null"
      ],
      "description": "Who the link is for; opens through it are attributed to this name."
    },
    "created_at": {
      "type": "integer"
    },
    "expires_at": {
      "type": [
        "integer",
        "null"
      ]
    },
    "max_uses": {
      "type": [
        "integer",
        "null"
      ]
    },
    "use_count": {
      "type": "integer",
      "description": "Uses counted against max_uses. Not opens: a bot or link scanner fetch counts here too."
    },
    "revoked_at": {
      "type": [
        "integer",
        "null"
      ]
    },
    "opens": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Human opens through this link. null when the plan has no viewer numbers (metrics_locked)."
    },
    "last_opened_at": {
      "type": [
        "integer",
        "null"
      ]
    },
    "opened_since_update": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Opened through this link since the page content last changed. null when the plan has no viewer numbers, or since_update is null."
    }
  }
}