How to Authenticate with JWT
1
Call POST /auth/login with your credentials
Send your username and password as a JSON body to the login endpoint.A successful response returns a token and a summary of your account:If your credentials are incorrect, the API returns a
401:2
Extract the token from the response
Copy the value of the
token field from the response body. This is the JWT you will include in all subsequent requests.3
Include the token in protected requests
Pass the token in the
Authorization header as a Bearer token:4
Re-authenticate after 7 days
Tokens expire after 7 days. When your token expires, repeat the login call to receive a new one.
Confirming Your Identity with GET /me
After logging in, you can verify which permissions your token carries by callingGET /me. This is useful for debugging access issues before making other calls.
Token Expiry and Renewal
JWT tokens are valid for 7 days from the time they are issued. There is no refresh endpoint — when your token expires, callPOST /auth/login again with your credentials to receive a new one. Your application should handle 401 responses by re-authenticating and retrying the original request.
