---
title: "Get authentication info"
method: GET
path: "/auth/info"
---

# Get authentication info

`GET /auth/info`

Returns info about the authenticated API key.

## Response `200`

Authentication info

- AuthInfo — Information about the authenticated caller.
  - `type` 'api_key' | 'user', required — Type of authentication used.
  - `api_key` ApiKeyInfo — Information about the API key used for authentication.
    - `prefix` string, required — Stable prefix identifier for the API key (starts with `gt_`), identifying the key without exposing the secret.
    - `name` string, required — User-provided label for the API key.
    - `created_at` string, date-time, required — Time the API key was created.
    - `space_id` string, required — Space the API key is scoped to.
    - `space_name` string, required — Name of the space the API key is scoped to.
    - `user_id` string, required — ID of the user who created the API key.
    - `user_email` string, required — Email of the user who created the API key.
    - `user_name` string, required — Name of the user who created the API key.
  - `user` UserInfo — Authenticated user details.
    - `id` string, required — User ID.
    - `email` string, required — User email address.
    - `name` string, required — User's full name.

## Other responses

- `default` — Error response

---

[API](https://skmtc.net/timescale/apis/ghost-api.md) · [All operations](https://skmtc.net/timescale/apis/ghost-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/timescale/ghost-api/versions/808022f897be/schema)
