Get User

GET {{URL}}/v1/users/{{UserUsername}}

You can get information to determine if a user account has been created for a specific username and to find out the role assigned to the user account.

If successful, the request returns HTTP status code 200 OK.

If not successful, the response may contain one of the following HTTP status codes:

HTTP Status CodeReason
401 UnauthorizedThe Bearer token sent with the request is not valid. Verify that you are using a valid Bearer token and try again.
404 Not FoundA user account with the username submitted in the request was not found.
500Unknown reason

If there are other errors in the response, refer to the following sources for more information: Error Codes and HTTP Status Codes.

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Authorizationstring

RESPONSES

status: OK

{"users":[{"ROLES":"ROLE_ADMIN | ROLE_USER","username":"username"}],"meta":{"api_status":"stable","version":"v2.45.1"}}