Skip to main content
POST
/
auth
/
admin
/
login
Admin login
curl -X POST http://localhost:50052/auth/admin/login \
  -H "Content-Type: application/json" \
  -H 'Authorization: Bearer <admin-jwt-or-access-token>' \
  -d '{
    "password": "MyNewSecurePwd!2"
  }'
{
  "token": "<jwt-token>",
  "message": "Login successful",
  "expires_in": 3600
}

Body

application/json
password
string
required

The admin user's password.

Response

Login successful. Returns a JWT token.

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.