Insights API

Insights API is designed to provide thorough information on each user.

get
User Insights

https://insights-api.ksense.ai/api/v2/insights/user
Request
Response
Request
Query Parameters
user_id
required
string
User ID (see User ID Object page for details)
user_id_type
required
string
Type of user id: email, phone or internal_id
ds
required
string
Data Source ID
token
required
string
Access token (provided within kSense UI)
Response
200: OK
User insights
{
"status": "OK",
"expected_unsubscription_date": "2019-03-45", // a date in UTC
//when user is expected to unsubscribe from the service
"unsubscription_probability_7d": "0.45", //probability that given
//user will unsubscribe in next 7 days
"unsubscription_probability_3d": "0.33" //probability that given
//user will unsubscribe in next 3 days
}
400: Bad Request
If request is malformed (user doesn't exist or
{
"status": "ERROR",
"message": "{error description}"
}