Get User Info by User ID

GET /users/{userId}

Retrieve the information of the user with the matching user ID.

Path parameters

  • userId integer Required

    Id of an existing user.

Responses

  • 200 application/json

    User Found

    Hide response attributes Show response attributes object
    • id integer Required

      Unique identifier for the given user.

    • firstName string Required
    • lastName string Required
    • email string(email) Required
    • dateOfBirth string(date)
    • emailVerified boolean Required

      Set to true if the user's email has been verified.

    • createDate string(date)

      The date that the user was created.

  • 404

    User Not Found

GET /users/{userId}
curl \
 --request GET 'http://localhost:3000/users/{userId}'
Response examples (200)
{
  "id": 142,
  "email": "alice.smith@gmail.com",
  "lastName": "Smith",
  "firstName": "Alice",
  "signUpDate": "2019-08-24",
  "dateOfBirth": "1997-10-31",
  "emailVerified": true
}