Query metrics
GET
https://myagentmail.com/v1/metricsFor agents View as Markdown
Returns counts (sent, received, bounced) and resource totals (inboxes, domains) for a time window. Workspace master keys are locked to their own workspace; tenant master keys can scope with query params.
Query parameters
fromstring | ISO-8601 or epoch seconds/ms. Defaults to 30 days ago. |
tostring | ISO-8601 or epoch seconds/ms. Defaults to now. |
workspacestring | |
inboxstring |
Responses
200application/jsonOK
windowobject | |
fromstring | format: date-time |
tostring | format: date-time |
scopeobject | |
tenantIdstring | format: uuid |
workspaceIdstring | format: uuid |
inboxIdstring | format: uuid |
countsobject | |
sentinteger | |
receivedinteger | |
bouncedinteger | |
resourcesobject | |
inboxesinteger | |
domainsinteger |
Authentication
Send your API key in the X-API-Key header (or Authorization: Bearer <key>). Any prefix accepted by this endpoint — tk_, wk_, ak_, or sa_ — is documented in the key prefix table.