---
title: "Login"
method: POST
path: "/api/v1/auth/login"
tags: ["Authentication"]
---

# Login

`POST /api/v1/auth/login`

## Request

- Base URL: `http://localhost:8080`
- URL: `http://localhost:8080/api/v1/auth/login`
- Auth: HTTP bearer

Authenticates user and returns JWT token

## Request body

- LoginRequest
  - `email` string, email, required
  - `password` string, required

## Response `200`

Login successful

## Other responses

- `401`: Invalid credentials

---

[API](https://skmtc.dev/railhook/apis/railhook-api.md) · [All operations](https://skmtc.dev/railhook/apis/railhook-api/llms.txt) · [OpenAPI document](https://skmtc.dev/railhook/apis/railhook-api/revisions/4e2c76dfc33d?raw)
