Users

Login user (alias of /auth/login)

post/users/login

Request

  • Base URL
    https://dummyjson.com
  • URL
    https://dummyjson.com/users/login
  • Auth
    none required

Request body

usernamestring required
passwordstring required
expiresInMinsinteger

Example request

{
  "username": "emilys",
  "password": "emilyspass",
  "expiresInMins": 60
}

Response

Login success

idinteger
usernamestring
emailstring
firstNamestring
lastNamestring
genderstring
imagestring
accessTokenstring
refreshTokenstring

Example response

{
  "id": 1,
  "username": "emilys",
  "email": "emily.johnson@x.dummyjson.com",
  "firstName": "Emily",
  "lastName": "Johnson",
  "gender": "female",
  "image": "https://dummyjson.com/icon/emilys/128"
}

Changes

No recorded changes to this operation across all 1 revision of this API.