v4

latestOpenAPI 3.0.3raw.githubusercontent.com2026-06-279228.8 KB
Admin User

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.

post/auth/admin/login

Request body

passwordstring required

The admin user's password.

Response

Login successful. Returns a JWT token.

tokenstring

JWT token for authenticating subsequent requests.

messagestring

Human-readable status message.

expires_ininteger

Number of seconds until the JWT token expires.