{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dropto-run/json-schema/dropto-run-create-token-request-schema.json",
  "title": "CreateTokenRequest",
  "description": "Request body of `POST /api/tokens`.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dropto-run-tokens-api-openapi.yml#/components/schemas/CreateTokenRequest",
  "properties": {
    "expiresInDays": {
      "description": "How long it should last, or null for a token that never expires on its own.",
      "format": "int32",
      "pattern": "^-?(?:0|[1-9]\\d*)$",
      "type": [
        "null",
        "integer",
        "string"
      ]
    },
    "name": {
      "description": "What to call the token, so its owner can tell it from their others.",
      "maxLength": 64,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "name",
    "expiresInDays"
  ],
  "type": "object"
}