---
title: "Get user info"
method: GET
path: "/api/admin/v1/user/info"
tags: ["Admin Utils"]
---

# Get user info

`GET /api/admin/v1/user/info`

Get detailed info for a single user.

## Query parameters

- `user_id` string
- `id` string

## Response `200`

successful

- object
  - `user` object
    - `id` integer
    - `username` string
    - `display_name` string
    - `slack_uid` string, nullable
    - `slack_username` string, nullable
    - `github_username` string, nullable
    - `timezone` string, nullable
    - `country_code` string, nullable
    - `admin_level` string
    - `trust_level` string
    - `suspected` boolean
    - `banned` boolean
    - `created_at` string, date_time
    - `updated_at` string, date_time
    - `last_heartbeat_at` number, nullable
    - `email_addresses` string[]
    - `api_keys_count` integer
    - `stats` object
      - `total_heartbeats` integer
      - `total_coding_time` number
      - `languages_used` integer
      - `projects_worked_on` integer
      - `days_active` integer

## Other responses

- `404` — user not found
- `422` — missing id — Returned ("who?") when neither id nor user_id is supplied.

---

[API](https://skmtc.net/hackclub/apis/hackatime-admin-api.md) · [All operations](https://skmtc.net/hackclub/apis/hackatime-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hackclub/hackatime-admin-api/versions/6ba07170a777/schema)
