---
title: "Log in"
method: POST
path: "/auth/token"
tags: ["Auth"]
---

# Log in

`POST /auth/token`

Authenticate with username and password and return an access token.

## Headers

- `user-agent` string, nullable
- `x-real-ip` string, nullable
- `x-forwarded-for` string, nullable
- `x-client-ip` string, nullable

## Cookies

- `session_id` integer, nullable

## Response `200`

Successful Response

- TokenOut
  - `access_token` string, required — Signed JWT access token to send as a Bearer credential.
  - `token_type` string, required — Token scheme to use in the Authorization header.

## Other responses

- `401` — Invalid email or password.
- `422` — Validation Error

---

[API](https://skmtc.net/neulandai/apis/neuland-ai-hub-api.md) · [All operations](https://skmtc.net/neulandai/apis/neuland-ai-hub-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/neulandai/neuland-ai-hub-api/versions/b53e89b98c2b/schema)
