{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aiven/json-schema/aiven-application-user-access-token-create-request-body-schema.json",
  "title": "ApplicationUserAccessTokenCreateRequestBody",
  "description": "ApplicationUserAccessTokenCreateRequestBody",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aiven-application-users-api-openapi.yml#/components/schemas/ApplicationUserAccessTokenCreateRequestBody",
  "type": "object",
  "properties": {
    "description": {
      "type": "string",
      "maxLength": 1000,
      "description": "Description"
    },
    "extend_when_used": {
      "type": "boolean",
      "description": "Extend token expiration time when token is used. Only applicable if max_age_seconds is specified.",
      "default": false
    },
    "ip_allowlist": {
      "type": "array",
      "maxItems": 100,
      "description": "List of allowed IP ranges",
      "items": {
        "type": "string"
      }
    },
    "max_age_seconds": {
      "type": "integer",
      "minimum": 600,
      "maximum": 315360000,
      "description": "Time the token remains valid since creation (or since last use if extend_when_used is true)"
    },
    "scopes": {
      "type": "array",
      "maxItems": 100,
      "description": "Scopes this token is restricted to if specified",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "description"
  ]
}