Profile Visit History

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

Acquire Profile Visit History API body parameter in add id and header in Authorization: Bearer [YOUR_API_AUTH_TOKEN] and Content-Type application/x-www-form-urlencoded send.

Parameter

Value

Path

https://app.acquire.io/api/profile/lead/visits

Method

POST

Authorization

Bearer [YOUR_API_AUTH_TOKEN]

Content-type

application/x-www-form-urlencode

Body

Parameter

Value

id

186

Response JSON


{
    "success": true,
    "error": null,
    "data": []
}

Sample Code

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

	var options = {
		"method": "POST",
		"hostname": [
			"app",
			"acquire",
			"io" 
		],
		"path": [
			"profile",
			"lead",
			"visits"
			],
		"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({ id: '186' }));
	req.end();

Last updated