---
title: "Authenticate with email and password"
method: POST
path: "/auth/login"
tags: ["auth"]
---

# Authenticate with email and password

`POST /auth/login`

Verifies credentials and returns a 24-hour session token. Revokes any existing session for the user.

## Request body

- InternalApiAdminLoginRequest
  - `email` string
  - `password` string

## Response `200`

OK

- InternalApiAdminLoginResponse
  - `expires_at` string
  - `token` string
  - `user` InternalApiAdminMeResponse
    - `display_name` string
    - `email` string
    - `id` string
    - `is_system_admin` boolean
    - `org_id` string
    - `role` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `500` — Internal Server Error

---

[API](https://skmtc.dev/voidmind-io/apis/untitled-api.md) · [All operations](https://skmtc.dev/voidmind-io/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/voidmind-io/untitled-api/revisions/1405e7d9c155/schema)
