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

# Login

`POST /auth/login`

Create a new JWT token

## Request body

- InternalHandlersAuthLoginRequest
  - `authType` string
  - `password` string, required
  - `remember` boolean
  - `username` string, required

## Response `200`

Success

- InternalHandlersAuthSuccessfulLogin
  - `basicSettings` GithubComAlchemillahqSylveInternalDbModelsBasicSettings
    - `id` integer
    - `initialized` boolean
    - `pools` string[]
    - `restarted` boolean
    - `services` GithubComAlchemillahqSylveInternalDbModelsAvailableService[]
  - `clusterToken` string
  - `hostname` string
  - `nodeId` string
  - `token` string

## Other responses

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

---

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