---
title: "Get user login data"
method: GET
path: "/accounts/user-login-data"
tags: ["User Management"]
---

# Get user login data

`GET /accounts/user-login-data`

## Request

- Base URL: `https://api.quiva.ai`
- URL: `https://api.quiva.ai/accounts/user-login-data`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/docs/accounts/user-login-data/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves login data for the current user

## Response `200`

User login data retrieved successfully

- object
  - `data` object, required
    - `account` AccountPublicInfo, required
      - `name` string: Account name (normalized)
      - `id` string: Account unique identifier - 10 digits
      - `display_name` string: Account display name
      - `root_email` string, email: Root user email address
      - `subscription_status` 'active' | 'pending' | 'cancelled': Subscription status
      - `subscription_plan` string: Subscription plan
      - `emergency_credit` number, float: Emergency credit amount
      - `country` string: Country
      - `company_name` string: Company name
      - `address` string: Address
      - `website` string: Website
      - `phone_number` string: Phone number
      - `scheduled_for_deletion` boolean: Whether the account is scheduled for deletion
      - `deletion_date` string, date-time: If the account is scheduled for deletion, it will be deleted on this date
      - `region` string: Region
      - `provider` string: Provider
      - `bstier` integer: BS tier
      - `cloud` boolean: Cloud functionality enabled. It true, the user has access to quiva.ai Cloud
      - `hub` boolean: Hub functionality enabled. It true, the user has access to quiva.ai Hub
    - `user` string, email, required
    - `user_id` string, required
    - `first_name` string
    - `last_name` string
    - `role` string, required
    - `mfa` MfaInfo
      - `passkey_enabled` boolean, required: Whether passkey authentication is enabled
      - `totp_enabled` boolean, required: Whether TOTP authentication is enabled
    - `theme` string
    - `sound` boolean
    - `profile_image` UserProfileImage
      - `name` string: File name
      - `contentType` string: Content type

## Other responses

- `401`: Unauthorized

## Changes

- **2025-06-12** `4979dfd00eda`: 4 breaking, 6 warning, 1 info
  - removed the required property `account` from the response with the `200` status
  - removed the required property `role` from the response with the `200` status
  - removed the required property `user` from the response with the `200` status
  - removed the required property `user_id` from the response with the `200` status
  - …7 more
- **2025-06-10** `964e2801b73d`: 1 breaking, 2 info
  - the `mfa` response's property type changed from no type to `object` for status `200`
  - added the required property `mfa/passkey_enabled` to the response with the `200` status
  - added the required property `mfa/totp_enabled` to the response with the `200` status

[Operation history](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/changes/accounts/user-login-data/get.md)

---

[API](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway.md) - [All operations](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/revisions/700eb1ace61a?raw)
