{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ticexplorer-com/json-schema/ticexplorer-com-key-request-schema.json",
  "title": "KeyRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ticexplorer-com-admin-api-openapi.yml#/components/schemas/KeyRequest",
  "properties": {
    "name": {
      "type": "string",
      "title": "Name",
      "description": "Who/what the key is for."
    },
    "scopes": {
      "items": {
        "type": "string",
        "enum": [
          "read",
          "admin"
        ]
      },
      "type": "array",
      "title": "Scopes",
      "default": [
        "read"
      ]
    },
    "user_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "User Id",
      "description": "Owning account for usage/billing (default: the key name)."
    }
  },
  "type": "object",
  "required": [
    "name"
  ]
}