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

# POST /user/login

`POST /user/login`

## Request body

- LoginRequest
  - `key` string, required — Required access key
  - `recaptcha` string — ReCAPTCHA response token for the novelai.net domain. This is optional at this moment(but we will make it mandatory)

## Response `201`

Login successful.

- SuccessfulLoginResponse
  - `accessToken` string, required — Access Token to be used in the Authorization header in the format of "Bearer ${accessToken}"

## Other responses

- `400` — A validation error occured.
- `401` — Access Key is incorrect.
- `500` — An unknown error occured.

---

[API](https://skmtc.net/novelai/apis/novelai-primary-api.md) · [All operations](https://skmtc.net/novelai/apis/novelai-primary-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/novelai/novelai-primary-api/revisions/327b3674db26/schema)
