Profile List

Acquire live chat dashboard gives your team leader an overview of agent activity at any given time.

Profiles List API body parameter in add limit, page and filter[master]

Profiles Use

Response JSON Format


{
    "success": true,
    "error": null,
    "data": {
        "total": 1,
        "data": [
            {
                "id": 70574,
                "session_id": 70574,
                "checked_status": 0,
                "visitor_id": 70574,
                "source": null,
                "name": "",
                "email": "",
                "visitor_phone": "",
                "location_full_name": "San Francisco, California, United States",
                "ip": "",
                "country_name": "United States",
                "timezone": "America/Yakutat",
                "country_code": "USA",
                "date_updated": "2018-08-02 07:30:28",
                "city": "517",
                "browser_language": "",
                "conversion": "",
                "first_seen": null,
                "last_seen": null,
                "lead_id": 0,
                "chat_id": ,
                "recording_available": null,
                "rating": null,
                "chat_updated": "2018-08-02 07:31:02",
                "chat_created": "2018-08-02 07:30:28",
                "chat_date_created": null,
                "chat_date_updated": null,
                "ua": "Chrome,,Mac,,Desktop,,,WebKit",
                "browser_name": "Chrome",
                "browser_version": "",
                "os_name": "Mac OS",
                "os_version": "",
                "tags": "",
                "agent_name": "John Deo",
                "bg_color": "#4a1271"
            }
        ],
        "main_query_time": 0.006,
        "chat_user_query_time": 0.003,
        "notify_query_time": 0.011,
        "tag_query_time": 0.002,
        "overall_time": 0.022
    }
}

Sample Code

var qs = require("querystring");
	var http = require("http");

	var options = {
		"method": "POST",
		"hostname": [
			"app",
			"acquire",
			"io"
		],
		"path": [
			"profile",
			"lead",
			"list"
		],
		"headers": {
			"Authorization: Bearer [YOUR_API_AUTH_TOKEN]",
			"Content-Type": "application/x-www-form-urlencoded"
		}
	};

	var req = http.request(options, function (res) {
	var chunks = [];

	res.on("data", function (chunk) {
		chunks.push(chunk);
	});

	res.on("end", function () {
    var body = Buffer.concat(chunks);
		console.log(body.toString());
		});
	});

	req.write(qs.stringify({ limit: '50', page: '1', 'filter[master]': 'chathistory' }));
	req.end();

Last updated