EntityEmail Log

Get all entity users

GET
Get entity users

Path parameters

entityIdstringRequired

Query parameters

startDatedatetimeOptional
endDatedatetimeOptional
limitintegerOptional
Number of logs to return. Limit can range between 1 and 100, and the default is 10.
startingAfterstringOptional
The ID of the log to start after. If not provided, the first page of logs will be returned.
searchstringOptional
Search for logs by email address or subject

Response

This endpoint returns an object
count
integer
Total number of logs for the given filters. This value is not limited by the limit parameter. It is provided so that you can determine how many pages of results are available.
hasMore
boolean
True if there are more logs available for the given filters.
data
list of objects
GET
1curl -G https://api.mercoa.com/entity/:entityId/emailLogs \
2 -H "Authorization: Bearer <token>" \
3 --data-urlencode startDate=2023-01-01T00:00:00Z \
4 --data-urlencode endDate=2023-01-01T00:00:00Z
200
Retrieved
1{
2 "count": 0,
3 "hasMore": true,
4 "data": [
5 {
6 "id": "string",
7 "subject": "string",
8 "from": "string",
9 "to": "string",
10 "htmlBody": "string",
11 "textBody": "string",
12 "createdAt": "2023-01-01T00:00:00Z",
13 "invoiceId": "string"
14 }
15 ]
16}