Login

To login your application, you need to use the username and password from the registration response which is returned the success object.

info

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

Note : For Eazy plan & paid subscribers, the api credentials will be shown, once the customer has furnished the server configuration in the admin console.

To get the Username and Password#

Step 1: Register here to get a MirrorFly User account. Registration is subject to verification and would take up to 24 hours.

Step 2: Login to your Account

Step 3: Get the username and password from the API Credentials section

license-key

HTTP request#

curl -X POST "https://{api-base-url}/api/v1/login"
-H "accept: */*"
-H "Content-Type: application/json"
-d "{ \"username\": \"99xxxxxx11\", \"password\": \"XXXXXXXXXX\"}"

Request Params#

ParamDataTypeRequiredDescription
usernameStringYesUsername of the user provided by the admin.
passwordStringYesPassword of the user provided by the admin.

Responses#

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

{
"status": 200,
"data": {
"token": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" // auto generated
},
"message": "Data retrieved successfully"
}

Error#

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

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