Skip to main content

Insights API (1.0.0)

Download OpenAPI specification:Download

The Insights API has end points that retrieves interaction data that enables you to monitor and track the performance of your Digital Person project.

Query Daily Logs

Returns Daily Log Sessions Events data

Query daily session event logs. You may filter the data for a specific session or project.

Authorizations:
ApiKeyAuth
query Parameters
logdate
required
string

The date for which the daily events are being polled. Date entries logged YYYY-MM-DD

session
string

Limit results to specific session id

projectId
string

Limit results to sessions with the specific projectId

exclude
string

Comma-separated string containing properties to be excluded (only supports excluding 'events' currently)

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Returns Daily Log Sessions Events data with pagination

Query daily session event logs. You may filter the data for a specific session or project and paginate results

Authorizations:
ApiKeyAuth
query Parameters
logdate
required
string

The date for which the daily events are being polled. Date entries logged YYYY-MM-DD

session
string

Limit results to specific session id

projectId
string

Limit results to sessions with the specific projectId

exclude
string

Comma-separated string containing properties to be excluded (only supports excluding 'events' currently)

page
number
Default: 1

Page number to retrieve, defaults to 1

limit
number
Default: 100

Limit number of results per page, defaults to 100

Responses

Response samples

Content type
application/json
{
  • "combinedList": [
    ],
  • "meta": {
    }
}

Events Summary

Returns Org Events Summary Report

calculates analytics report for the given Org Start Date and End Date

Authorizations:
ApiKeyAuth
query Parameters
projectId
number

Project ID to retrieve from

startdate
required
string

Start Date YYYY-MM-DD

enddate
string

End Date YYYY-MM-DD

Responses

Response samples

Content type
application/json
{
  • "fromDate": "2020-05-01",
  • "toDate": "2022-05-01",
  • "totalConversation": 123,
  • "totalConversationTimeInMs": 5123.12,
  • "averageDurationInMs": 123.12,
  • "averageTurns": 5,
  • "lastConversationDate": "2020-06-01T16:48:11.934Z",
  • "lastConfigId": 1001,
  • "organizationId": 1,
  • "projects": [
    ]
}

Conversation Nodes Summary

Returns conversation nodes summary for the user's org.

calculates conversation nodes summary for the user's org based on start date and optional queries such as end date, session and project Id.

Authorizations:
ApiKeyAuth
query Parameters
projectId
required
number

Limit results to sessions with the given projectId

startdate
required
string

Start Date YYYY-MM-DD

enddate
string

End Date YYYY-MM-DD

session
string

Limit results to specific session id

format
string (ConversationNodesSummaryFormats)
Enum: "full" "graph"

Format of response data to be returned

focusedName
string
Example: focusedName=Greeting.TalkedToDHBefore.Chat_Greeting

Return a specific node data based on the node's 'Name' property.

Responses

Response samples

Content type
application/json
[
  • {
    }
]

API Token

Returns Analytics User API Token.

Retrieve an API token based on user/pass

Authorizations:
basicAuth

Responses

Response samples

Content type
application/json
{
  • "accessToken": "yeABCDEF...",
  • "expiresIn": 300,
  • "tokenType": "Bearer"
}