CSL Pay Developers

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

  • email string
    The user's email address.
  • password string
    The user's password.

Response 201

  • status string
    The user's status.
  • data object12 fields
    An object containing additional user data.
    • username string
      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
      An array of the user's realm roles.
    • 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

StatusMeaning
401 401