---
title: "User Login"
method: POST
path: "/auth/login"
tags: ["Auth"]
---

# User Login

`POST /auth/login`

Authenticates a user with email and password and returns a JWT token

## Headers

- `tenant-id` string

## Request body

- LoginRequest — Request body for user authentication
  - `email` string, required — User email address
  - `password` string, required — User password

## Response `200`

Authentication successful

- LoginResponse — Response containing authentication tokens after successful login
  - `accessToken` string, required — JWT access token
  - `expiresIn` integer, required — Token expiration time in seconds

## Other responses

- `400` — Bad request - Email and password are required
- `401` — Authentication failed - Invalid credentials
- `500` — Internal server error

---

[API](https://skmtc.net/certifyos/apis/certify-api-layer.md) · [All operations](https://skmtc.net/certifyos/apis/certify-api-layer/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/certifyos/certify-api-layer/revisions/3d27e9019c7b/schema)
