Get MetaData

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

info

{api-base-url} can be obtained from the MirrorFly console.

HTTP request#

curl -X GET "https://{api-base-url}/api/v1/users/getMetaData?userId=xxxx"
-H "accept: */*"
-H "Authorization: AuthToken"

Request Params#

ParamDataTypeRequiredDescription
userIdStringNoUser id whose metadata to be fetched. Otherwise, logged-in user metadata will be fetched

Responses#

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

{
"status": 200,
"data": {
"metaData": {
// metadata key/value if any set
},
"message": "Data Retrieved Successfully"
}
}

Error#

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"
}