Skip to main content

List the emails each rule matched, by day.

GET/api/v1/email-rule-activityemail_rules:read

Matches per rule and day: emails whose document the caller can read, and emails that filed no document. Matches on documents the caller cannot see are not counted. Without day_from and day_to the last seven days are listed; both bounds are inclusive.

Scopeemail_rules:read
AsynchronousNo
MCP toollist_email_rule_activity
Portal permissionsview_inbound_email_events
Pagingkeyset
Default orderday, email_rule_id
Sort fieldsday, email_rule_id

Parameters​

NameInTypeRequiredDescription
day_fromquerystring or nullOptionalMatches on or after this day (YYYY-MM-DD).
day_toquerystring or nullOptionalMatches on or before this day (YYYY-MM-DD).
limitqueryintegerOptionalDefault: 50; ≥ 1
cursorquerystringOptional
sortquerystringOptionalComma-separated sort fields, - for descending.
Docwize-Versionheaderstring (date)Optional
If-None-MatchheaderstringOptionalAnswers 304 when the representation is unchanged (resources that publish an ETag).

Responses​

StatusDescriptionBody
200Success.application/json object
304Not modified (If-None-Match matched the ETag).
400invalid_versionapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
410cursor_expiredapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422invalid_cursor, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

200 body​

FieldTypeRequiredDescription
itemsarray of EmailRuleActivityRequired
next_cursorstring or nullRequired
warningsarray of objectRequired

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

EmailRuleActivity​

FieldTypeRequiredDescription
countintegerRequiredEmails the rule matched that day, except those that filed a document the caller cannot read. ≥ -2147483648; ≤ 2147483647
daystring (date)Required
email_rule_activity_idstringRequired<email_rule_id>.<YYYY-MM-DD>: one entry per rule per day.
email_rule_idstringRequired