Email Analytics

Get email processing statistics over time, grouped by interval.

GET /v1/analytics/emails

Parameters

Parameter
Type
Default
Description

from

ISO 8601

30 days ago

Start of the date range

to

ISO 8601

Now

End of the date range

interval

string

day

Grouping interval: day, week, or month

status

string

Filter by status (see values below)

Status Values

Status
Description

processed

Email was received and analyzed

draft_created

A draft response was generated

filtered

Email matched a filter rule

spam_filtered

Email was detected as spam

paired

Email was matched to a thread

deduplicated

Duplicate email was skipped

Response

{
  "period": {
    "from": "2026-03-01T00:00:00.000Z",
    "to": "2026-03-12T00:00:00.000Z"
  },
  "interval": "day",
  "data": [
    {
      "date": "2026-03-01",
      "total": 45,
      "by_status": {
        "draft_created": 30,
        "processed": 10,
        "filtered": 5
      }
    },
    {
      "date": "2026-03-02",
      "total": 52,
      "by_status": {
        "draft_created": 38,
        "processed": 8,
        "filtered": 4,
        "spam_filtered": 2
      }
    }
  ]
}

Example

Last updated