---
title: "Admin login"
method: POST
path: "/auth/admin/login"
tags: ["Admin User"]
---

# Admin login

`POST /auth/admin/login`

Authenticates the admin user and returns a JWT token. The username is always fixed to `admin`. No authorization header is required for this endpoint.

When the server starts, it uses `ACTIAN_VECTORAI_JWT_SECRET` if present and persists that value to `server_params.btr`. If the environment variable is absent, the server loads the previously persisted secret or generates and persists a new one automatically.

## Request body

- object
  - `password` string, required — The admin user's password.

## Response `200`

Login successful. Returns a JWT token.

- object
  - `token` string — JWT token for authenticating subsequent requests.
  - `message` string — Human-readable status message.
  - `expires_in` integer — Number of seconds until the JWT token expires.

## Other responses

- `400` — Missing or blank password.
- `401` — Invalid password.

---

[API](https://skmtc.net/actiancorp/apis/actian-vectorai-db-authentication-api.md) · [All operations](https://skmtc.net/actiancorp/apis/actian-vectorai-db-authentication-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/actiancorp/actian-vectorai-db-authentication-api/versions/1be75c43c359/schema)
