{"uid":"cap_E8AMIIaUt9bjjxky8nAIq","slug":"agentmail-bba5a298","name":"AgentMail: Query Metrics","description":"Query Metrics","url":"https://x402.api.agentmail.to/v0/metrics","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"end":{"type":"string","title":"End","format":"date-time","description":"End timestamp for the query."},"limit":{"type":"integer","title":"MetricLimit","description":"Limit on number of buckets to return."},"start":{"type":"string","title":"Start","format":"date-time","description":"Start timestamp for the query."},"period":{"type":"string","title":"Period","description":"Period in number of seconds for the query."},"descending":{"type":"boolean","title":"Descending","description":"Sort in descending order."},"event_types":{"type":"array","items":{"enum":["message.sent","message.delivered","message.bounced","message.delayed","message.rejected","message.complained","message.received"],"type":"string","title":"MetricEventType","description":"Type of metric event."},"title":"MetricEventTypes","description":"List of metric event types to query."}}},"responseSchema":{"type":"object","title":"QueryMetricsResponse","description":"Metrics grouped by event type.","additionalProperties":{"type":"array","items":{"type":"object","title":"MetricBucket","required":["timestamp","count"],"properties":{"count":{"type":"integer","description":"Count of events in the bucket."},"timestamp":{"type":"string","format":"date-time","description":"Timestamp of the bucket."}}}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"proven_free","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"free","summary":"Free","primary":{"kind":"free","protocol":"x402","network":"base","amountUsd":null,"per":"call","confidence":"unknown"},"accepted":[{"kind":"free","protocol":"x402","network":"base","amountUsd":null,"per":"call","confidence":"unknown"}]},"paymentMethods":[{"uid":"pm_6-McJ26VzPGgPOHQgvmAm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Retrieves usage and performance metrics for the AgentMail organization account","exampleAgentPrompt":"Can you pull up the current usage metrics for my AgentMail account so I can see how much activity has been going through it?","exampleUseCases":null,"resultDescription":"A JSON object containing AgentMail organization-level metrics such as email volumes, API usage counts, or activity statistics for the account.","failureModes":["401 Unauthorized if authentication credentials are missing or invalid","402 Payment Required if x402 payment is not satisfied","404 Not Found if the organization or metrics endpoint is unavailable","500 Internal Server Error if the metrics service is temporarily unavailable","Empty or zero metrics if the account has no activity yet"],"whenToPreferThis":"Use this endpoint when you need a high-level summary of AgentMail activity, usage volumes, or performance statistics at the organization level. Prefer this over listing individual inboxes or threads when you want aggregate counts rather than item-level data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:44:11.566Z","isFirstParty":false}