---
title: "GetCurrentMagicAuthToken returns information about the current magic auth token."
method: GET
path: "/v1/magic-tokens/current"
---

# GetCurrentMagicAuthToken returns information about the current magic auth token.

`GET /v1/magic-tokens/current`

## Response `200`

A successful response.

- V1GetCurrentMagicAuthTokenResponse
  - `token` V1MagicAuthToken
    - `attributes` object
    - `createdByUserEmail` string
    - `createdByUserId` string
    - `createdOn` string, date-time
    - `displayName` string
    - `expiresOn` string, date-time
    - `fields` string[]
    - `filter` V1Expression
      - `cond` V1Condition
        - `exprs` V1Expression[]
        - `op` 'OPERATION_UNSPECIFIED' | 'OPERATION_EQ' | 'OPERATION_NEQ' | 'OPERATION_LT' | 'OPERATION_LTE' | 'OPERATION_GT' | 'OPERATION_GTE' | 'OPERATION_OR' | 'OPERATION_AND' | 'OPERATION_IN' | 'OPERATION_NIN' | 'OPERATION_LIKE' | 'OPERATION_NLIKE'
      - `ident` string
      - `subquery` V1Subquery
        - `dimension` string
        - `having` V1Expression — recursive
        - `measures` string[]
        - `where` V1Expression — recursive
      - `val` unknown
    - `id` string
    - `projectId` string
    - `resourceName` string
    - `resourceType` string
    - `resources` V1ResourceName[]
      - `name` string
      - `type` string
    - `state` string
    - `token` string
    - `url` string
    - `usedOn` string, date-time

## Other responses

- `default` — An unexpected error response.

## Changes

- **2025-12-11** (v1) `f317ff96998d` — 1 warning, 1 info
  - removed the optional property `token/metricsViewFilters` from the response with the `200` status
  - added the optional property `token/filter` to the response with the `200` status

[Change history](https://skmtc.dev/rilldata/apis/rill-admin-api/changes/v1/magic-tokens/current/get.md)

---

[API](https://skmtc.dev/rilldata/apis/rill-admin-api.md) · [All operations](https://skmtc.dev/rilldata/apis/rill-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rilldata/rill-admin-api/revisions/f317ff96998d/schema)
