> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.revvue.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.revvue.ai/_mcp/server.

# authorization

GraphQL QUERY

Reference: https://docs.revvue.ai/api-reference/auth-tenants/queries/authorization

## GraphQL Schema

```graphql
query ExampleQuery($token: String, $username: String, $password: String, $totp: String, $grantType: AuthenticationGrantType, $clientId: String) {
  authorization(token: $token, username: $username, password: $password, totp: $totp, grantType: $grantType, clientId: $clientId) {
    user {
      id
      name
      email
      roles
      scopes
      token
      decodedToken
      tenantId
      identityProviders
      emailVerified
    }
  }
}
```

## Variables

```json
{
  "token": "example",
  "username": "example",
  "password": "example",
  "totp": "example",
  "grantType": "PASSWORD",
  "clientId": "revvue-revvue-client"
}
```