Authentication
App Builder API
Livechat API
Payment Gateway Plugin
Connect API
- Authentication Overview
- API Reference
- Get Profile
- List Categories
- List Available Apps
- Get App Information
- Connect Account
- Get Connected Account
- Popular Match List
- Popular Match Detail
- Get List Of Tiggers
- Trigger Detail By ID
- Get List Of Actions
- Action Detail By ID
- Create Connect With Popular Match
- List Drop Down Options
- Edit Trigger Options
- Edit Action Option
- Run Test Connect
- Turn On Connect
- Update Connect Name
- Check Connect History
- Connect List
- Turn Off Connect
- Delete Connect
Archives List
List
API handles to get list of archives.
You can refer to the sample code provided on the right side of the screen and switch to your preferred language.
API Endpoint
Access the list of archives
endpoint to get list of archives. You can fetch only 30 days data at a time. To access this API endpoint, login/signup to Appy Pie Developer account and obtain the required AccessToken Key from the Authentication section.
Request URL
POST https://livechat-gateway-cavg9c0h.uc.gateway.dev/api/v1/archives/list
Query Parameters
Parameter Name | Required | Parameter Type | Parameter Description |
---|---|---|---|
accountKey | Yes | String | This is unique(To get this key login into your Livechat account and click on My Profile icon > My Profile > Account Key) |
from_date | Yes | String | This is start date. |
to_date | Yes | String | This is end date. |
Required Parameters are mandatory to access the API endpoint.
Errors
This error section displays all the errors with details.
Following are the error codes that indicate the success or failure of an API request:
Error Code | Meaning |
---|---|
400 | Bad Request -- Your request is invalid. |
401 | Unauthorized -- Your API key is wrong. |
403 | Forbidden -- The method requested is hidden for administrators only. |
404 | Not Found -- The specified method could not be found. |
405 | Method Not Allowed -- You tried to access a method with an invalid method. |
406 | Not Acceptable -- You requested a format that is not json. |
410 | Gone -- Request has been removed from our servers. |
429 | Too Many Requests |
500 | Internal Server Error -- We had a problem with our server. Try again later. |
503 | Service Unavailable -- We are temporarily offline for maintenance. Please try again later. |
2032 | API Key is required |
2034 | Email is required |
2036 | Invalid API Key |
2038 | Provide valid API Key |
2039 | Email already exists |
2040 | Phone already exists |
2041 | Email Invalid |
To authorize, use this code:
1wget --no-check-certificate --quiet \
2 --method POST \
3 --timeout=0 \
4 --header "ACCESSTOKEN: Access Token Key" \
5 --header "Content-Type: application/json" \
6 --body-data
7 '{
8 "accountKey":"1XXXXXXXXXX8",
9 "from_date":"01/01/2021",
10 "to_date":"30/01/2021"
11 }' \
12 "https://livechat-gateway-cavg9c0h.uc.gateway.dev/api/v1/archives/list"
RESPONSE
{ "status": "success", "total": 1, "list": [ { "ownerId": "1XXXXXXXXXX1", "visitorId": "CXXXXXXXXXXXXXX1", "addedon": 1XXXXXXX7, "agent_ids": [ "1XXXXXXXXXX1" ], "agent_leave": [], "browser": "FXXXX", "country": "IN", "operating": "Mxxxx", "email": "t***@g***.c*m", "visitor_timezone": "Axxx/xxxs", "isChatend": 1, "geoDetails": { "country_code": "IXX", "country_name": "IXXX", "country_ip": "1XX.1XX.5X.2X" }, "name": "Demo Demo", "phone": "+919XXXXXXXX9", "visitor_email": "VXXXXXXXXXX2", "visitor_status": 5, "feedback_score": "", "feedback_received": "", "picktime": 1XXXXXXXX9, "completedon": 1XXXXXXXX7, "feedback_comment": "", "feedback_type": "star", "plan_name": "Premium", "source": "chat", "chat_type": 1 } ] }