Export File

To download the requested export file 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/chat/download?fileToken=9196771000011683620362346PisrvN44HkPrCItvkgCq.zip"
-H "accept: */*"
-H "Authorization: xxxxxxxxxxxxxxxxxx"

Request Params#

ParamDataTypeRequiredDescription
fileTokenStringYesfileToken to download the file

Responses#

If successful, this action downloads data export file, in the response body as application/octet-stream.

A file with name '9196771000011683620362346PisrvN44HkPrCItvkgCq.zip' will get downloaded

Note : FileTokens obtained from this file can be downloaded from Download Media API

Error#

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

When the token passed in Headers is expired

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

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

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