Authentication
Login
Authenticates a browser session. Returns a complete login payload, or a two-factor checkpoint token when the account requires a second factor.
POST
/auth/loginRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/auth/login" \ -H "Content-Type: application/json" \ -d '{ "user": "admin", "password": "correct-horse-battery-staple" }'{ "data": { "complete": true, "intended": "/", "user": { "uuid": "9a8b7c6d-5e4f-4321-9876-123456789abc", "username": "admin", "email": "[email protected]", "name_first": "Admin", "name_last": "User", "language": "en", "root_admin": true, "use_totp": false, "gravatar": true, "created_at": "2026-06-29T12:00:00+00:00", "updated_at": "2026-06-29T12:00:00+00:00", "identifier": "usr_1a2b3c4d" } }}