{"command":{"effect":"read","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Retrieve account-level email metrics","properties":{"query":{"type":"object","properties":{"start_date":{"type":"string","description":"The start of the date range, as an ISO 8601 date or datetime. Must be on or before `end_date`. Defaults to 6 days before `end_date`."},"end_date":{"type":"string","description":"The end of the date range, as an ISO 8601 date or datetime. Values in the future are clamped to the current time. Defaults to now."},"timezone":{"type":"string","default":"UTC","description":"The IANA timezone (e.g. `America/New_York`) used to bucket periods when `period` is in `dimensions`."},"granularity":{"type":"string","enum":["hourly","daily","weekly","monthly"],"default":"daily","description":"The bucket size used when `period` is in `dimensions`. The date range can't produce more than 10,000 periods at the chosen granularity."},"metrics":{"type":"array","items":{"type":"string","enum":["received","delivered","complained","suppressed","bounced","bounced_transient","bounced_permanent","bounced_undetermined","opened","clicked","unsubscribed","delivery_delayed","failed","sent","unique_opened","unique_clicked","delivery_rate","open_rate","click_rate","bounce_rate","complaint_rate","unsubscribe_rate"]},"description":"List of metrics to include in the response. Defaults to all metrics. Accepts a comma-separated value, the parameter repeated, or a mix of both."},"dimensions":{"type":"array","items":{"type":"string","enum":["period","domain","email","broadcast"]},"description":"List of dimensions to break the response down by. `email` cannot be combined with `broadcast`. Defaults to `[]`, returning a single `totals` row for the whole range, with no `data`. Accepts a comma-separated value, the parameter repeated, or a mix of both."},"domain_id":{"type":"array","items":{"type":"string","format":"uuid"},"description":"List of sending domain IDs to restrict the response to, up to 100. Accepts a comma-separated value, the parameter repeated, or a mix of both."},"email_id":{"type":"array","items":{"type":"string","format":"uuid"},"description":"List of email IDs to restrict the response to, up to 100. Cannot be combined with the `broadcast` dimension or `broadcast_id`. Accepts a comma-separated value, the parameter repeated, or a mix of both."},"broadcast_id":{"type":"array","items":{"type":"string","format":"uuid"},"description":"List of broadcast IDs to restrict the response to, up to 100. Cannot be combined with the `email` dimension or `email_id`. Accepts a comma-separated value, the parameter repeated, or a mix of both."}},"required":[],"additionalProperties":false}},"required":[],"additionalProperties":false},"name":"Retrieve account-level email metrics","id":"resend.emails.metrics","example":{},"maxRequests":1,"summary":false}}