---
title: "POST /api/v2/auth/login/"
method: POST
path: "/api/v2/auth/login/"
tags: ["auth"]
---

# POST /api/v2/auth/login/

`POST /api/v2/auth/login/`

## Request

- The document declares no server URL.
- Auth: one of:
  - API key in header `Authorization`
  - API key in cookie `sessionid`
  - none

Authenticate a user with username and password.

## Request body

- UserLoginRequest: Serializer for username/password login credentials.
  - `username` string, required
  - `password` string, required

## Response `200`

No response body

## Other responses

- `400`: No response body
- `401`: No response body

## Changes

- **2026-03-06** `0c39b4998d9f`: 1 info
  - removed the non-success response with the status `403`
- **2026-03-02** `a40a2668c60b`: 1 info
  - added the non-success response with the status `403`

[Operation history](https://skmtc.dev/instanssi/apis/instanssi-org/changes/api/v2/auth/login/post.md)

---

[API](https://skmtc.dev/instanssi/apis/instanssi-org.md) - [All operations](https://skmtc.dev/instanssi/apis/instanssi-org/llms.txt) - [OpenAPI document](https://skmtc.dev/instanssi/apis/instanssi-org/revisions/d45e162506aa?raw)
