The starting date for the time range of the events, inclusive.
end_time
required
string
The ending date for the time range of the events, exclusive.
page_size
integer <int32>
The maximum number of events to return.
The service may return fewer than this value.
The maximum value allowed is 100; value above 100 will be coerced to 100.
page_token
string
A page token, received from a previous ListEvent call.
Provide this to retrieve a subsequent page.
event
string
The event name to filter on. When provided, only occurences of that given event will be returned
conversation_id
string
The conversation to filter on. When provided, only events for the given conversation will be returned
user_id
string
The user to filter on. When provided, only events for the given user will be returned
campaign_id
string
The campaign to filter on. When provided, only events for the given campaign will be returned
Responses
200
A successful response.
Response Schema: application/json
Array of objects (TrackingEvent)
next_page_token
string
get/v1/bots/{bot_id}/events/stream
Request samples
Node.js
Python
curl
Response samples
200
application/json
{
"events": [
{
"id": "string",
"event": "string",
"bot_id": "string",
"version": "string",
"user_id": "string",
"channel_id": "string",
"channel_type": "string",
"conversation_id": "string",
"attributes": {
"property1": "string",
"property2": "string"
},
"timestamp": "2019-08-24T14:15:22Z"
}
],
"next_page_token": "string"
}
Analytics_ListEventsWithFilters
SecuritybasicAuth
Request
path Parameters
bot_id
required
string
The ID of the bot
Request Body schema: application/json
required
end_time
required
string
The ending date for the time range of the events, exclusive.
start_time
required
string
The starting date for the time range of the events, inclusive.
version
required
string (The version of the bot (either DRAFT or LIVE))
page_size
integer <int32>
The maximum number of events to return.
The service may return fewer than this value.
The maximum value allowed is 100; value above 100 will be coerced to 100.
page_token
string
A page token, received from a previous ListEvent call.
Provide this to retrieve a subsequent page.
event
string (The event name to filter on. When provided, only occurences of that given event will be returned)
conversation_id
string (The conversation to filter on. When provided, only events for the given conversation will be returned)
user_id
string (The user to filter on. When provided, only events for the given user will be returned)
campaign_id
string (The campaign to filter on. When provided, only events for the given campaign will be returned)
Array of objects (AttributeFilter)
Responses
200
A successful response.
Response Schema: application/json
Array of objects (TrackingEvent)
next_page_token
string
post/v1/bots/{bot_id}/events/stream
Request samples
Payload
Node.js
Python
curl
application/json
{
"version": "string",
"start_time": "string",
"end_time": "string"
}
Response samples
200
application/json
{
"events": [
{
"id": "string",
"event": "string",
"bot_id": "string",
"version": "string",
"user_id": "string",
"channel_id": "string",
"channel_type": "string",
"conversation_id": "string",
"attributes": {
"property1": "string",
"property2": "string"
},
"timestamp": "2019-08-24T14:15:22Z"
}
],
"next_page_token": "string"
}
Analytics_TrackEvent
SecuritybasicAuth
Request
path Parameters
bot_id
required
string
Request Body schema: application/json
required
id
string
version
string
user_id
string
event
string
object
object (TrackEventRequestContext)
timestamp
string <date-time>
Responses
200
A successful response.
Response Schema: application/json
event_id
string
post/v1/bots/{bot_id}/events/track
Request samples
Payload
Node.js
Python
curl
application/json
{ }
Response samples
200
application/json
{
"event_id": "string"
}
Analytics_GetTeamEvents
SecuritybasicAuth
Request
path Parameters
team_id
required
string
query Parameters
start_time
required
string
The starting date for the time range of the events, inclusive.
end_time
required
string
The ending date for the time range of the events, exclusive.
user_id
string
The id of the customer
page_size
integer <int32>
The maximum number of events to return.
The service may return fewer than this value.
The maximum value allowed is 100; value above 100 will be coerced to 100.
page_token
string
A page token, received from a previous ListEvent call.
Provide this to retrieve a subsequent page.