---
title: "Lookup user by Slack UID"
method: GET
path: "/api/v1/users/lookup_slack_uid/{slack_uid}"
tags: ["Users"]
---

# Lookup user by Slack UID

`GET /api/v1/users/lookup_slack_uid/{slack_uid}`

Find a user ID by their Slack User ID. Requires an active Admin API Key supplied via the Authorization Bearer header (the api_key query param is NOT accepted for this endpoint). During migration, STATS_API_KEY is also accepted when the allow_legacy_stats_api_key Flipper flag is enabled.

## Path parameters

- `slack_uid` string, required

## Response `200`

successful

- object
  - `user_id` integer
  - `slack_uid` string

## Other responses

- `401` — unauthorized — Returned when the Admin API Key is missing, revoked, or incorrect. (Auth is bypassed in the development environment.)
- `404` — not found

## Changes

- **2026-06-07** (v1) `10d87f00ef0b` — 3 info
  - the endpoint scheme security `Bearer` was added to the API
  - the endpoint scheme security `Bearer AND ApiKeyAuth` was removed from the API
  - added the non-success response with the status `401`
- **2026-01-27** (v1) `b6d6849481da` — 3 info
  - the endpoint scheme security `Bearer AND ApiKeyAuth` was added to the API
  - the endpoint scheme security `Bearer` was removed from the API
  - removed the non-success response with the status `401`

[Change history](https://skmtc.dev/hackclub/apis/hackatime-api/changes/api/v1/users/lookup_slack_uid/:slack_uid/get.md)

---

[API](https://skmtc.dev/hackclub/apis/hackatime-api.md) · [All operations](https://skmtc.dev/hackclub/apis/hackatime-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hackclub/hackatime-api/revisions/172c35ec816f/schema)
