---
title: "Login with an existing user"
method: POST
path: "/auth/login"
tags: ["auth"]
---

# Login with an existing user

`POST /auth/login`

## Request body

- LoginRequest
  - `username` string, required
  - `password` string, required
  - `permissions` string[], required
  - `application` string — A human readable application name

## Response `200`

Succesfully signed in

- LoginResponse
  - `username` string
  - `key` string — API key for the user, to be used in X-Api-Key header

## Other responses

- `401` — Username or password incorrect

---

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