Query Account Metrics
get_agentmail_metricsReturns aggregate counters for the whole account as a flat map of counter name to an array of data points. Measured live on 2026-08-24 the keys are message.received, message.received.spam, message.received.blocked, message.received.unauthenticated, message.sent, message.delivered, message.bounced, message.complained, message.rejected, message.opened and domain.verified, each an empty array on an account with no traffic — an empty array means no activity, not an error. The shape is not pinned in this spec, so read the keys actually returned rather than assuming this list is closed. This is the organization-wide view spanning every inbox in the account. Every AIsa caller shares one AgentMail account, so this reaches inboxes other callers created; the inbox-scoped twin get_agentmail_inbox_metrics is the one to use when a single inbox is meant.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | End timestamp for the query. | |
| limit | No | Limit on number of buckets to return. | |
| start | No | Start timestamp for the query. | |
| period | No | Period in number of seconds for the query. | |
| descending | No | Sort in descending order. | |
| event_types | No | List of metric event types to query. | |
| Authorization | Yes | Bearer authentication |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||