{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/flockfs-com/json-schema/flockfs-com-post-api-tokens-request-schema.json",
  "title": "PostApiTokensRequest",
  "x-generated": "2026-11-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/flockfs-com-openapi-generated.yml#/components/schemas/PostApiTokensRequest",
  "type": "object",
  "properties": {
    "label": {
      "type": "string",
      "description": "Token label (1–80 bytes)"
    },
    "level": {
      "type": "string",
      "description": "\"view\" or \"edit\""
    },
    "write": {
      "type": "boolean",
      "description": "Deprecated flag, overridden by level"
    },
    "days": {
      "type": "integer",
      "description": "Expiration in days (1–90)"
    },
    "scopes": {
      "type": "array",
      "description": "Optional list of path scopes"
    }
  },
  "required": [
    "label"
  ]
}