---
title: "Login; sets the shared .ditto.audio session cookie"
method: POST
path: "/v1/auth/login"
tags: ["auth"]
---

# Login; sets the shared .ditto.audio session cookie

`POST /v1/auth/login`

## Request

- Base URL: `https://api.ditto.audio` (the document declares no server; this is the origin it was published from)
- URL: `https://api.ditto.audio/v1/auth/login`
- Auth: none declared

## Request body

- LoginDto
  - `email` string, required
  - `password` string, required

## Response `200`

JWT returned + cookie set

## Other responses

- `401`: Invalid credentials
- `403`: Email not verified (code: EMAIL_NOT_VERIFIED)

---

[API](https://skmtc.dev/ditto/apis/ditto-audio-api.md) · [All operations](https://skmtc.dev/ditto/apis/ditto-audio-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ditto/apis/ditto-audio-api/revisions/30c8d7c218da?raw)
