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

# Login

`POST /auth/login`

Authenticate an administrator and create a local session

## Request body

- InternalHandlersAuthLoginRequest
  - `authType` 'sylve' | 'pam', required
  - `password` string, required
  - `remember` boolean
  - `username` string, required

## Response `200`

Success

- GithubComAlchemillahqSylveInternalAPIResponseInternalHandlersAuthSuccessfulLogin
  - `data` InternalHandlersAuthSuccessfulLogin
    - `basicSettings` GithubComAlchemillahqSylveInternalDbModelsBasicSettings
      - `id` integer
      - `initialized` boolean
      - `pools` string[]
      - `restarted` boolean
      - `services` GithubComAlchemillahqSylveInternalDbModelsAvailableService[]
    - `hostname` string
    - `nodeId` string
    - `token` string
  - `error` string
  - `message` string
  - `status` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `413` — Request Entity Too Large
- `429` — Too Many Requests
- `500` — Internal Server Error
- `503` — Service Unavailable

## Changes

- **2026-08-12** `9a5026bf9057` — 4 info
  - added the non-success response with the status `403`
  - added the non-success response with the status `413`
  - added the non-success response with the status `429`
  - added the non-success response with the status `503`

[Change history](https://skmtc.dev/alchemillahq/apis/sylve-api/changes/auth/login/post.md)

---

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