---
title: "Log in an API token."
method: POST
path: "/auth/login"
tags: ["Authentication"]
---

# Log in an API token.

`POST /auth/login`

Create a bearer token to allow connecting the API.

## Request body

- object
  - `apiKey` string — The API key generated in Settings.

## Response `200`

OK

- object
  - `token` string — A Bearer token to authenticate
  - `X-Expires-After` string — A expiration date

## Other responses

- `400` — BAD REQUEST. This is a wrong request in the client side due to invalid body or params.
- `401` — UNAUTHORIZED. The Authorization header is incorrect, not provided or the token expired.

---

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