User Login
POST
/auth/login
The User Login endpoint authenticates a user's credentials and returns an access token and refresh token for subsequent API requests. A partner would call this endpoint when a user attempts to log in to their account, providing their email address and password. The endpoint verifies the user's credentials and returns their profile information and authentication tokens.
Types inferred from examples. This endpoint came from a Postman collection, which declares no schema — field types are read from the example values and no field is marked required.
Request body
| Field | Type | Description |
|---|---|---|
| stringemail | The user's email address. | |
| password | string | The user's password. |
Response 200
| Field | Type | Description |
|---|---|---|
| status | string | The user's status. |
| data | object | An object containing additional user data. |
| username | stringemail | The user's username. |
| phoneNumber | string | The user's phone number. |
| firstName | string | The user's first name. |
| lastName | string | The user's last name. |
| partnerCode | string | The user's partner code. |
| realmRoles | array<string> | An array of the user's realm roles. |
| realmRoles[] | string | A single realm role of the user. |
| accessToken | string | The user's access token. |
| emailVerified | boolean | Whether the user's email is verified. |
| refreshToken | string | The user's refresh token. |
| expiresIn | integer | The expiration time of the user's access token in seconds. |
| refreshExpiresIn | integer | The expiration time of the user's refresh token in seconds. |
| active | boolean | Whether the user is active. |
Errors
| Status | Meaning |
|---|---|
| 401 | 401 |