Get a User

To retreive the user information based on the user id you can use the below API.


{your-domain-name} can be obtained from the MirrorFly console.

HTTP request#

curl -X GET "https://{your-domain-name}/api/v1/users/{userId}"
-H "accept: */*"
-H "Authorization: :AuthToken"

Request Params#

userIdStringYesUserid of the user which you need to retrieve the information. Request path variable


If successful, this action returns a user resource in the response body.

"status": 200,
"data": {
"nickName": "Sample user",
"profileUrl": "",
"emailId": "",
"mobileNumber": "919876543210"
"message": "Data retrieved successfully"


In the case of an error, an error object like below is returned.

When the token passed in Headers is not given or expired

"status": 401,
"message": "Token Expired"

In the case of a Bad Request, an error message is returned

"status": 400,
"message": "Error Message"