GET/user/{username}

Get user details by username

Retrieves the user record identified by username. Use the username path parameter to select the account whose details you want to retrieve.

1 parameter
usernamestringrequired

The name of the user to retrieve.

4 status codes
200Returns the user object, including the user's account details.
emailstringoptional
firstNamestringoptional
idintegeroptional
lastNamestringoptional
passwordstringoptional
phonestringoptional
userStatusintegeroptional

User Status

usernamestringoptional
400Returned when the supplied username is invalid.
404Returned when no user is found with the supplied username.
defaultUnexpected error

Error handling

A 400 is returned when the username path parameter is invalid. A 404 is returned when no user is found for the supplied username.