Get Open Engagements

get

/apis/customer-engagement-v1/utilities/{utilityCode}/engagements/opens

Returns a list of OPEN 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>

Request

Path Parameters
Query Parameters
  • The optional upper bound on the date range (exclusive), as an ISO-8601 formatted string (e.g. '2018-02-19T13:00:00Z').
  • A positive integer indicating the starting offset of where to begin the list of engagements.
  • The optional lower bound on the date range (inclusive) as an ISO-8601 formatted string (e.g. '2018-02-19T13:00:00Z').
Back to Top

Response

Supported Media Types
  • application/json

200 Response

Successful operation. Events matching this query returned.
Body ()
Root Schema : OpenEngagementResponse
Type: object
Show Source
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":"OPEN",
    "trackId":"accf6cf2-66c8-11e9-a923-1681be663d3e",
    "campaignId":"accf6f22-66c8-11e9-a923-1681be663d3e",
    "moduleId":"accf7256-66c8-11e9-a923-1681be663d3e",
    "emailAddress":"86e0b9e56c17cc4d12387e1949b85053fbe73bc3ce5a1188713a9d300cc6133d",
    "occurredOn":"2018-02-19T13:01:00Z",
    "utilityCustomerId":"1872099045-387109999",
    "utilityInternalId":1872099045,
    "utilityInternalId2":"18720-99045",
    "customerMultitenantId":"util-1872099045-387109999",
    "communicationMultitenantId":"util-8-e89ade"
}
Nested Schema : Page
Type: object
Show Source
  • A positive integer indicating the starting offset for the next call, to get the next page.
Nested Schema : OpenEngagement
Type: object
Show Source

400 Response

Invalid Request

403 Response

Unauthorized request
Back to Top