Get Started
MirrorFly's Chat Platform API allows you to directly work with data resources related to your MirrorFly application’s chat activities. The Chat API uses standard HTTP protocols where JSON payloads are returned in response to the HTTP requests. It is internally implemented based on the RESTful principles. While the native SDKs handle many of the requests and responses at the client side, the Chat API allows for more flexibility and adds additional functionalities to your service from the server side and client side.
#
Creating Authentication TokenTo create an Authentication token you need to use the static username and password from the MirrorFly console.
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 PasswordStep 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
#
HTTP request#
Request ParamsParam | DataType | Required | Description |
---|---|---|---|
username | String | Yes | Username of the admin user obtained from the console. |
password | String | Yes | Password of the admin user obtained from the console. |
#
ResponsesIf successful, this action returns a Authentication token in the response body.
#
ErrorIn the case of an error, an error object like below is returned.
note
Authentication token received in the response is valid upto 1 hour. You need to call the API once again to generate the new token. In simple words, when the secured API’s giving the response as 401 you need to call the Create Authentication Token API to generate the new auth token and then consume the further API’s using the new token.