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

# Login with email and password

`POST /api/auth/login`

## Request body

- object
  - `email` string, email, required
  - `password` string, required

## Response `200`

Login successful

- AuthResponse
  - `token` string
  - `user` object
    - `id` string
    - `name` string
    - `email` string, email
    - `role` 'user' | 'admin'

## Other responses

- `401` — Invalid credentials

## Changes

- **2026-08-18** `7d769a938487` — 1 info
  - api operation id `loginUser` was added

[Change history](https://skmtc.dev/kubeorch/apis/kubeorch-core-api/changes/api/auth/login/post.md)

---

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