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

# POST /auth/login

`POST /auth/login`

Gets an API key from username and password

## Request body

- object
  - `password` string
  - `username` string

## Response `200`

Successful operation

- object
  - `session_token` string

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

---

[API](https://skmtc.net/notefile/apis/notehub-api.md) · [All operations](https://skmtc.net/notefile/apis/notehub-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/notefile/notehub-api/revisions/9c5b2b63a991/schema)
