POST
/api/auth/loginAuthenticate a user and receive a token.
Takes an organization username and password and returns a signed JWT together with the authenticated user profile. Use the token returned here for every other request, sent as a Bearer token.
Parameters
| Parameter | Type | Location | Description |
|---|---|---|---|
usernamerequired | string | body | The account username or email. |
passwordrequired | string | body | The account password. |
Request body
{ "username": "you@company.com", "password": "…" }Status codes
200Login successful — returns token and user.401Invalid credentials.