Get Complaint Engagements
get
/apis/customer-engagement-v1/utilities/{utilityCode}/engagements/complaints
Returns a list of SPAM engagement events received for the specified utility within a specified date range, or empty response if no events found.
NOTE: When startTime and endTime values are not provided, they default to one month prior and the current date and time. Including a date range is highly recommended. Data returned will be greater than or equal to (>=) startTime and less than (<) endtime. < div>
Back to Top
Back to Top
)>
Request
Path Parameters
-
utilityCode(required): string
A 3- or 4-character representation of the client code. Valid examples - "UTIL" and "util"
Query Parameters
-
endTime:
The optional upper bound on the date range (exclusive), as an ISO-8601 formatted string (e.g. '2018-02-19T13:00:00Z').
-
offset:
A positive integer indicating the starting offset of where to begin the list of engagements.
-
startTime:
The optional lower bound on the date range (inclusive) as an ISO-8601 formatted string (e.g. '2018-02-19T13:00:00Z').
Response
Supported Media Types
- application/json
200 Response
Successful operation. Events matching this query returned.
Root Schema : ComplaintEngagementResponse
Type:
Show Source
object
-
engagements:
array engagements
A list of engagement events.
-
page:
object Page
Nested Schema : engagements
Type:
array
A list of engagement events.
Show Source
Example:
{
"id":"accf6a68-66c8-11e9-a923-1681be663d3e",
"product":"HER",
"communicationEventType":"HOME_ENERGY",
"eventType":"SPAM_COMPLAINT",
"trackId":"accf6cf2-66c8-11e9-a923-1681be663d3e",
"campaignId":"accf6f22-66c8-11e9-a923-1681be663d3e",
"moduleId":"accf7256-66c8-11e9-a923-1681be663d3e",
"emailAddress":"86e0b9e56c17cc4d12387e1949b85053fbe73bc3ce5a1188713a9d300cc6133d",
"occurredOn":"2018-02-19T13:04:00Z",
"utilityCustomerId":"1872099045-387109999",
"utilityInternalId":1872099045,
"utilityInternalId2":"18720-99045",
"customerMultitenantId":"util-1872099045-387109999",
"communicationMultitenantId":"util-8-e89ade"
}
Nested Schema : Page
Type:
Show Source
object
-
next:
integer(int64)
A positive integer indicating the starting offset for the next call, to get the next page.
Nested Schema : ComplaintEngagement
Type:
Show Source
object
-
campaignId:
integer(int64)
The ID that identifies the campaign which was used for communication experience
-
communicationEventType:
string
The event type for this communication
-
communicationMultitenantId:
string
The customer's communication unique multi-tenant UUID
-
customerMultitenantId:
string
The customer???s globally unique multi-tenant UUID
-
emailAddress:
string
The customer email address for which the communication was done
-
eventType:
string
The event type of engagement: SPAM_COMPLAINT
-
id:
integer(int64)
-
occurredOn:
string(date-time)
The instant in time when the event occurred
-
product:
string
The product for which the communication was sent
-
trackId:
string
The UUID that identifies the track which was used for communication experience
-
utilityCustomerId:
string
The customer???s utility customer id
-
utilityInternalId:
string
The customer???s utility internal id
-
utilityInternalId2:
string
The customer???s secondary utility internal id
400 Response
Invalid Request
403 Response
Unauthorized request