Accounts
Sign in (sets httpOnly session cookie)
Sign in (sets httpOnly session cookie).
Header Parameters
X-Requested-With*string
CSRF guard: must be quartermaster on every mutation.
Request Body
application/json
Email and password sign-in.
Email and password sign-in.
email*string
Email address.
Match
^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$Format
emailLength
length <= 254password*string
Password (never returned by the API).
Length
8 <= length <= 200Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/auth/login" \ -H "X-Requested-With: quartermaster" \ -H "Content-Type: application/json" \ -d '{ "email": "owner@demo.quartermaster.dev", "password": "correct-horse-battery-staple" }'{ "user": { "id": "string", "email": "string", "name": "string", "role": "OWNER", "organization": { "id": "string", "name": "string", "timezone": "string", "currency": "string" }, "operator": true }}