Two ways to authenticate
Bitrus supports two authentication mechanisms. Human users (Client Operators) sign in with email and password. Programmatic clients (Client Agents) authenticate with a detached signature. Both flows return the same JWT bearer token; all subsequent API calls authenticate via that token.
Password login
For users issued an email and password by Bitrus (Employees, Employee Managers, Client Operators).
Signed request login
Send {user_id, timestamp} as JSON body and a detached signature in the X-Signature header. The server canonicalises the body via JSON with sorted keys and the separators (',', ':'), then verifies the signature against the agent's pre-registered public key. The timestamp must be within 5 seconds of the server clock to prevent replay.
Using the JWT
Both flows return the same shape. Attach it to subsequent requests via the standard Authorization header.