GET/user/{username}

Get a user by username

Retrieves a user account by username. Supply the username path parameter to identify the account you want to retrieve.

1 parameter
usernamestringrequired
The username of the user to retrieve. Use user1 for testing.

4 status codes
200Returns the user object, including its identifier, username, name, email, password, phone number, and status.
idintegeroptional
usernamestringoptional
firstNamestringoptional
lastNamestringoptional
emailstringoptional
passwordstringoptional
phonestringoptional
userStatusintegeroptional
User Status
400Returned when the supplied username is invalid.
404Returned when no user is found for 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.