Fetch All Messages Quantum Fabric Engagement Services API
The Fetch All Messages from Quantum Fabric Engagement Services API fetches all the push messages details.To retrieve details of all the push messages, you need to pass any one of the following input parameters in the request payload.
- ksId
- deviceId
- appId
- ufId
- status
- lastUpdatedDate
NOTE: The parameters 'status' and 'lastUpdatedDate' have been added in the Kony Fabric V8 SP4 Fixpack 3 release.
URL
The HTTP URL for Fetch All Messages from Quantum Fabric Engagement Services API is:
http://<host or ip>:<port>/api/v1/messages/fetch
Method
POST
Header
The payload request header includes Content-Type as application/json
Input Parameters
The following fields are the input parameters:
Sample Request
with ksId
{
"ksid" :"4927837196689866160",
"startElement":"0",
"elementsPerPage":"20"
}
with appId and ufId
{
"ufid": "thomas.smith@kony.com",
"appId" :"20096-6548262167",
"startElement":"0",
"elementsPerPage":"20"
}
with ksid and ufid
{
"ufid": "thomassmith@gmail.com",
"ksid" :"9217144992113196746",
"startElement":"0",
"elementsPerPage":"20"
}
with deviceId and appId
{
"deviceId": "223457",
"appId" :"20096-6548262167",
"startElement":"0",
"elementsPerPage":"20"
}
with deviceId and ksid
{
"deviceId": "923456XQYL",
"ksid" :"9217144992113196746",
"startElement":"0",
"elementsPerPage":"20"
}
Sample Responses
{
"totalMessages": 17,
"openedMessages": 2,
"messages": [{
"fetchId": "8730726796796876572",
"content": "Buy Books from Online Library",
"status": "Opened"
}, {
"fetchId": "8730564132072234972",
"content": "Now Available on eBay",
"status": "Opened"
}, {
"fetchId": "8730343249524239270",
"content": "sample rich push data",
"status": "Submitted"
}, {
"fetchId": "8730184974108753828",
"content": "sample rich push data",
"status": "Submitted"
}, {
"fetchId": "8689616362135506601",
"content": "Not Applicable (Silent Push)",
"status": "Submitted"
}, {
"fetchId": "9143081420051015760",
"content": "Not Applicable (Silent Push)",
"status": "Submitted"
}, {
"fetchId": "9143081301531260482",
"content": "Not Applicable (Silent Push)",
"status": "Submitted"
}, {
"fetchId": "9143056187523324660",
"content": "Not Applicable (Silent Push)",
"status": "Submitted"
}, {
"fetchId": "9143056051113229898",
"content": "Not Applicable (Silent Push)",
"status": "Submitted"
}, {
"fetchId": "9125925276853714728",
"content": "ShopcluesSummer Sale 2016 promotion temp...",
"status": "Submitted"
}, {
"fetchId": "9086262523026928421",
"content": "Not Applicable (Silent Push)",
"status": "Submitted"
}, {
"fetchId": "9086262367207226326",
"content": "Not Applicable (Silent Push)",
"status": "Submitted"
}, {
"fetchId": "9086215994124008341",
"content": "Not Applicable (Silent Push)",
"status": "Submitted"
}, {
"fetchId": "9086215883663162402",
"content": "Not Applicable (Silent Push)",
"status": "Submitted"
}, {
"fetchId": "9086190166284400476",
"content": "Not Applicable (Silent Push)",
"status": "Submitted"
}, {
"fetchId": "9086165405274834586",
"content": "Not Applicable (Silent Push)",
"status": "Submitted"
}, {
"fetchId": "9086165171770195685",
"content": "Not Applicable (Silent Push)",
"status": "Submitted"
}],
"submittedMessages": 15
}
Sample Request and Sample Response
From V8 SP4 FP3 onwards, the sample requests and sample responses of the Fetch All Messages API are as follows:
Parameters | Sample Request | Sample Response |
---|---|---|
ksid, lastUpdatedDate, status | { |
{ |
ksid, lastUpdatedDate | { |
{ |
ksid, status | { |
{ |
ksid, ufid, status, lastUpdatedDate | { |
{ |
ksid, ufid, lastUpdatedDate | { |
{ |
ksid, ufid, status |
{ |
{ |
ufid, appId, status, lastUpdatedDate | { |
{ |
ufid, appId, lastUpdatedDate | { |
{ |
ufid, appId, status | { |
{ |
deviceId, appId, status, lastUpdatedDate | { |
{ |
deviceId, appId, status | { |
{ |
deviceId, appId, lastUpdatedDate | { |
{ |
Response Status
Code | Description |
---|---|
Status 200 | Request queued |
Status 400 | Invalid request format |
Status 401 | Unauthorized request |
Status 500 | Server failure to process request |