---
title: "Get user by email"
method: POST
path: "/api/admin/v1/user/get_user_by_email"
tags: ["Admin Utils"]
---

# Get user by email

`POST /api/admin/v1/user/get_user_by_email`

Lookup user by email (POST).

## Request body

- object
  - `email` string, required — Email address to look up. Required in practice; a blank email returns 422.

## Response `200`

successful

- object
  - `user_id` integer

## Other responses

- `404` — email not found — Returned ("email not found") when no email address matches.
- `422` — missing email — Returned ("bro dont have a email") when the email is blank.

---

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