{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/stalwart/main/json-schema/stalwart-post-auth-introspect-response-schema.json",
  "title": "PostAuthIntrospectResponse",
  "x-generated": "2026-10-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/stalwart-auth-openapi-generated.yml#/components/schemas/PostAuthIntrospectResponse",
  "type": "object",
  "properties": {
    "active": {
      "type": "boolean",
      "description": "True if the token is active, false otherwise"
    },
    "username": {
      "type": "string",
      "description": "Owning account name (present when active)"
    },
    "sub": {
      "type": "string",
      "description": "Subject identifier of the account (present when active)"
    },
    "scope": {
      "type": "string",
      "description": "Granted scope of the token (present when active)"
    },
    "client_id": {
      "type": "string",
      "description": "Client identifier of the grant (present when active)"
    },
    "token_type": {
      "type": "string",
      "description": "Either \"bearer\" for access tokens or \"refresh_token\" for refresh tokens"
    }
  }
}