This section contains resources related to the Messaging
. The endpoints in this section enables you to interact with the messaging data collected by the app. Through the API you can create as well as retrieve messaging data.
For more information please refer to Getting Started With Messaging
Here is the list of endpoints for Messaging
.
POST $BASE_URL/v1/messaging/{bucketId}
GET $BASE_URL/v1/messaging_history/{bucketId}
Sends a new Message
according to rules set in Konso App. A new message can be sent using the endpoint:
POST $BASE_URL/v1/messaging/{bucketId}
The request object contains an instance of an object that is to be sent to create a new Message
entry. The object is transferred as part of the request's body.
The attributes refers to elements that makes up the request object:
POST $BASE_URL/v1/messaging/{bucketId}
{
"plainBase64Body":null,
"htmlBase64Body":"PGgxPkhlbGxvPC9oMT4=",
"env":"DEV",
"recipients":["test@konso.io"],
"subject":"test subject",
"delay":0,
"messageType":1,
"tags":null,
"appName":"MyTestApp",
"correlationId":null,
"tags": ["test", "mvp"]
}
Returns messaging history entries matching the query filter. Messaging history entries can be queried using the endpoint:
GET $BASE_URL/v1/messaging_history/{bucketId}
Lists and filters messaging history entries. Entries are kept in our storage according to retention days setting.
The attributes refers to elements that makes up the filter parameters:
timeStamp
field, the value is Unix epoch.timeStamp
field, the value is Unix epoch.correlationId
specified.term
in subject property.
GET $BASE_URL/v1/messaging_history/{bucketId}
?fromDate=1619636000
&toDate=1619637000
&name=GET
&correlationId=
&appName=testApp
&tags=tag1
&tags=tag2
&sort=2
&from=0
&to=100