Endpoint
Required Headers
Optional Headers
The system auto-resolves device information from the request body or the headers. If neither is provided and the request comes from a web client, a UUID is generated and tracked on the server.
Request Body
string
required
The user’s email address or mobile number.
string
required
The user’s password.
string
Unique token for the device. Can also be passed as the
device_token header.string
Descriptive name for the device. Can also be passed as the
device-name header.Example Request
Response
200 OK
Returns the Bearer access token and a set of user state flags. Use theaccess_token value in the Authorization: Bearer <token> header on subsequent requests.
Validation Error Responses (422)
The API returns a422 status when required fields are missing or malformed.

