Skip to main content

Uniphore Customer Portal

Fetch Analytics for a List of Contacts

This API retrieves the analytics of multiple contacts based on the Ids passed. This is a streaming API.

Endpoint

Method: GET

URL: analytics/contacts?ids=id1,id2,…idn

Header Parameter

Authorization Bearer <Token>

Query Parameter

Parameter Name

Mandatory/

Optional

Type

Description

ids

Mandatory

string

List of contact Ids for which analytics needs to be fetched

Example Request
curl -H “Authorization: Bearer 911999706310ffbcb32981863e23ce72d5e60d7b” -XGET http://host:port/analytics/contacts?ids=1,2,3,...,n
Response and Error Codes

Code

Response

200

A stream of newline separated contact analytics documents in the format listed in the above API

401

{“reason”:”Authentication failed”}

422

{“error”: “Error while decoding response from the database”}

500

{“error”: “Internal server error”}