API ReferenceAuth
Log in with email and password
Authenticate with email + password and return a JWT.
Public endpoint (no auth). On success returns {token, user, company}.
Legacy sha256 password hashes are transparently upgraded to bcrypt on a
successful login. Rate-limited to 5 requests/minute per IP. Returns 401
for any invalid email/password combination.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Email + password login payload.
Response Body
application/json
application/json
curl -X POST "https://example.com/auth/login" \ -H "Content-Type: application/json" \ -d '{ "email": "jane.doe@acme-health.com", "password": "<your-password>" }'nullEmpty
{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string", "input": null, "ctx": {} } ]}