Get catch-all statistics
Get catch-all statistics. View request and response details for this Samva email API endpoint.
GET
Returns catch-all receiving counters for a domain, adding an aggregated breakdown when after or before bounds a range: after inclusive, before exclusive.
apiKeyheader
x-api-key<token>domainId*stringMatch
^dom_[0-9a-hjkmnp-tv-z]{16,24}$after?stringbefore?stringSuccess
application/json- response
domain*stringisCatchAllEnabled*booleancatchAllEmailCount*integerRange
0 <= value <= 9007199254740991catchAllLastEmailAt*string|nulltimeRange?|nullimport { createClient } from "samva";const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });const result = await samva.email.getCatchAllStats({ "domainId": "example"});Example Response
{ "domain": "string", "isCatchAllEnabled": true, "catchAllEmailCount": 0, "catchAllLastEmailAt": "string", "timeRange": { "emailsReceived": 0, "firstEmail": "string", "lastEmail": "string", "avgPerDay": 0 }}Related documentation
Get catch-all configuration
Returns the catch-all receiving configuration for a domain, including its webhook endpoint, unknown-address mailbox (null means drop), and email counts.
Get custom tracking status
Returns the custom tracking state for a sending domain: lifecycle status, the required DNS records, certificate and CAA readiness, and any scheduled teardown.