{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aiven/json-schema/aiven-application-user-access-tokens-list-response-schema.json",
  "title": "ApplicationUserAccessTokensListResponse",
  "description": "ApplicationUserAccessTokensListResponse",
  "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/ApplicationUserAccessTokensListResponse",
  "type": "object",
  "properties": {
    "tokens": {
      "type": "array",
      "description": "Tokens",
      "items": {
        "type": "object",
        "properties": {
          "create_time": {
            "type": "string",
            "maxLength": 36,
            "description": "Create Time"
          },
          "created_manually": {
            "type": "boolean",
            "description": "True for tokens explicitly created via the access_tokens API, false for tokens created via login."
          },
          "currently_active": {
            "type": "boolean",
            "description": "true if API request was made with this access token"
          },
          "description": {
            "type": "string",
            "maxLength": 1000,
            "description": "Description"
          },
          "expiry_time": {
            "type": "string",
            "maxLength": 36,
            "description": "Timestamp when the access token will expire unless extended, if ever"
          },
          "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"
            }
          },
          "last_ip": {
            "type": "string",
            "description": "IP address the access token was last used from in case it has ever been used"
          },
          "last_used_time": {
            "type": "string",
            "maxLength": 36,
            "description": "Timestamp when the access token was last used, if ever"
          },
          "last_user_agent": {
            "type": "string",
            "description": "User agent string of the client that last used the token in case it has ever been used"
          },
          "last_user_agent_human_readable": {
            "type": "string",
            "description": "Human readable user agent string of the client that last used the token in case user agent is known"
          },
          "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"
            }
          },
          "token_prefix": {
            "type": "string",
            "description": "First characters of the actual token value. Full value is only exposed after creation. This value is used when updating or revoking tokens. Note that the value may contain /, + and = characters and must be URL encoded when used (/ =&gt; %2F, + =&gt; %2B, = =&gt; %3D)."
          }
        },
        "required": [
          "create_time",
          "created_manually",
          "currently_active",
          "token_prefix"
        ]
      }
    }
  },
  "required": [
    "tokens"
  ]
}