Organization

Email Log

GET
https://api.mercoa.com/organization/emailLog

Get log of all emails sent to this organization. Content format subject to change.

Query parameters

startDate
optional datetime
endDate
optional datetime
limit
optional integer

Number of logs to return. Limit can range between 1 and 100, and the default is 10.

startingAfter
optional string

The ID of the log to start after. If not provided, the first page of logs will be returned.

Response

This endpoint return an object.
count
integer

Total number of logs for the given start and end date 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 start and end date filters.

data
list of objects
GET
/organization/emailLog
curl -G https://api.mercoa.com/organization/emailLog \
-H "Authorization: Bearer <token>" \
-d startDate=2023-01-01T00:00:00Z \
-d endDate=2023-01-01T00:00:00Z
Response
{
"count": 0,
"hasMore": true,
"data": [
{
"id": "string",
"from": "string",
"to": "string",
"subject": "string",
"rawContent": "string",
"createdAt": "2023-01-01T00:00:00Z"
}
]
}