import os
import sys
import mailchannels
if not os.environ.get("MAILCHANNELS_API_KEY"):
sys.exit("Set MAILCHANNELS_API_KEY before running")
# Retrieve processed, delivered, and dropped counts for the first week of January 2026.
response = mailchannels.Metrics.volume(
start_time="2026-01-01T00:00:00Z",
end_time="2026-01-07T23:59:59Z",
)
print(response)
<?php
require_once __DIR__ . '/vendor/autoload.php';
use MailChannels\Client;
$api_key = getenv('MAILCHANNELS_API_KEY') or exit("Error: MAILCHANNELS_API_KEY is not set\n");
$client = new Client(apiKey: $api_key);
// Retrieve processed, delivered, and dropped counts for the first week of January 2026.
$response = $client->metrics->volume(
startTime: '2026-01-01T00:00:00Z',
endTime: '2026-01-07T23:59:59Z',
);
print_r($response->toArray());
curl --request GET \
--url https://api.mailchannels.net/tx/v1/metrics/volume \
--header 'X-Api-Key: <x-api-key>'
Retrieve volume metrics for messages sent from your account,
including counts of processed, delivered and dropped events.
Supports optional filters for time range and campaign ID.
import os
import sys
import mailchannels
if not os.environ.get("MAILCHANNELS_API_KEY"):
sys.exit("Set MAILCHANNELS_API_KEY before running")
# Retrieve processed, delivered, and dropped counts for the first week of January 2026.
response = mailchannels.Metrics.volume(
start_time="2026-01-01T00:00:00Z",
end_time="2026-01-07T23:59:59Z",
)
print(response)
<?php
require_once __DIR__ . '/vendor/autoload.php';
use MailChannels\Client;
$api_key = getenv('MAILCHANNELS_API_KEY') or exit("Error: MAILCHANNELS_API_KEY is not set\n");
$client = new Client(apiKey: $api_key);
// Retrieve processed, delivered, and dropped counts for the first week of January 2026.
$response = $client->metrics->volume(
startTime: '2026-01-01T00:00:00Z',
endTime: '2026-01-07T23:59:59Z',
);
print_r($response->toArray());
curl --request GET \
--url https://api.mailchannels.net/tx/v1/metrics/volume \
--header 'X-Api-Key: <x-api-key>'
The beginning of the time range for retrieving message volume metrics (inclusive).
Formats: YYYY-MM-DD or YYYY-MM-DDTHH:MM:SSZ.
Defaults to one month ago if not provided.
The end of the time range for retrieving message volume metrics (exclusive).
Formats: YYYY-MM-DD or YYYY-MM-DDTHH:MM:SSZ.
Defaults to the current time if not provided.
The beginning of the time range for retrieving message volume metrics (inclusive).
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"MailChannels","description":"MailChannels email platform documentation — Email API, Outbound Filtering, and Inbound Filtering.","colors":{"primary":"#1E3A5F","light":"#6BA3D0","dark":"#1E3A5F"},"logo":{"light":"https://mintcdn.com/mailchannelscorporation/82jCZhYczGMlrqqs/images/MC_Logo_Full_Color_Light_Background_RGB_clearspace.png?fit=max\u0026auto=format\u0026n=82jCZhYczGMlrqqs\u0026q=85\u0026s=edceff94929b18cb41691d3277e58baa","dark":"https://mintcdn.com/mailchannelscorporation/82jCZhYczGMlrqqs/images/MC_Logo_Full_Color_Dark_Background_RGB_clearspace.png?fit=max\u0026auto=format\u0026n=82jCZhYczGMlrqqs\u0026q=85\u0026s=9f8675d2f6f8fc2af622c2db79440a45"},"favicon":{"light":"https://media.brand.dev/1905386c-3c6f-4c57-84d6-872e7dd5f936.png","dark":"https://media.brand.dev/1905386c-3c6f-4c57-84d6-872e7dd5f936.png"},"api":{"examples":{"languages":["javascript","python","php","curl"],"autogenerate":true}},"appearance":{"default":"system"},"background":{"decoration":"gradient","color":{"light":"#FFFFFF","dark":"#12131A"}},"navbar":{"links":[{"href":"https://status.mailchannels.net/","label":"System Status"},{"href":"https://support.mailchannels.com/hc/en-us/requests/new","label":"Support"}],"primary":{"type":"button","label":"Log in","href":"https://dash.mailchannels.com"}},"footer":{"socials":{"website":"https://mailchannels.com"},"links":[{"header":"For developers","items":[{"label":"Email API OpenAPI spec","href":"https://docs.mailchannels.com/email-api/api-reference/openapi.yaml"},{"label":"Official SDKs","href":"https://docs.mailchannels.com/email-api/official-libraries"},{"label":"Pricing and free plan","href":"https://docs.mailchannels.com/email-api/billing/pricing"}]},{"header":"For AI agents","items":[{"label":"llms.txt","href":"https://docs.mailchannels.com/llms.txt"},{"label":"llms-full.txt","href":"https://docs.mailchannels.com/llms-full.txt"}]}]},"seo":{"metatags":{"canonical":"https://docs.mailchannels.com"}},"fonts":{"heading":{"family":"Roboto","weight":600},"body":{"family":"Roboto","weight":400}},"icons":{"library":"fontawesome"},"styling":{"eyebrows":"breadcrumbs","latex":false},"contextual":{"options":["copy","view","assistant","chatgpt","claude","mcp","cursor","vscode"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"mailchannelscorporation","hasAudioNarration":false,"actualSubdomain":"mailchannelscorporation","customDomains":["docs.mailchannels.com"],"gitSource":{"type":"github","owner":"mailchannels","repo":"mc-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aee2ebc53bbcb625325dd19","clientVersion":"0.0.4087","searchFilterCounts":[{"language":"default","tag":"Email API","count":106},{"language":"default","tag":"API Reference","count":80},{"language":"default","tag":"Outbound Filtering","count":61},{"language":"default","tag":"Inbound Filtering","count":46},{"language":"default","tag":"Get Started","count":39},{"language":"default","tag":"Mail Server Setup","count":20},{"language":"default","tag":"Troubleshooting","count":15},{"language":"default","tag":"Sub-accounts","count":15},{"language":"default","tag":"Configuration","count":13},{"language":"default","tag":"Billing \u0026 Account Management","count":11}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"support@mailchannels.com","showHelpButton":true}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":":root{--mc-logo-width: 14rem;--mc-logo-clearspace-height: 7.375rem;--mc-navbar-tabs-height: 3rem;--mc-navbar-height: calc(var(--mc-logo-clearspace-height) + var(--mc-navbar-tabs-height))}:is(h1,h2,h3,h4,h5,h6),[data-component-part=\"card-title\"]{font-family:Roboto, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif;font-weight:700;letter-spacing:0}:is(p,li,td,th),[data-component-part=\"card-content\"]{font-family:Roboto, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif}toc-item>a{position:relative;padding-left:1rem!important}toc-item[data-active-deepest]>a::before{content:\"\";position:absolute;left:0;top:50%;width:0.75rem;height:0.75rem;transform:translateY(-50%);background-color:currentColor;-webkit-mask:url(\"data:image/svg+xml;utf8,\u003csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'>\u003cpolyline points='9 18 15 12 9 6'/>\u003c/svg>\") no-repeat center / contain;mask:url(\"data:image/svg+xml;utf8,\u003csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'>\u003cpolyline points='9 18 15 12 9 6'/>\u003c/svg>\") no-repeat center / contain;pointer-events:none}.nav-tabs-item,#sidebar li[data-active=\"true\"]>a{text-shadow:none!important}#navbar{min-height:var(--mc-navbar-height)!important}#sidebar{top:var(--mc-navbar-height)!important;height:calc(100vh - var(--mc-navbar-height))!important}#navbar>.max-w-8xl>div>.relative,#navbar .h-16{height:var(--mc-logo-clearspace-height)!important}#navbar .h-full{height:100%!important}#navbar a[href=\"/\"] img,#navbar a[href=\"/\"] svg,#sidebar a[href=\"/\"] img,#sidebar a[href=\"/\"] svg{width:var(--mc-logo-width)!important;max-width:var(--mc-logo-width)!important;height:auto!important;max-height:none!important;object-fit:contain!important}#search-bar-entry,#assistant-entry,li.navbar-link>:is(a,button){border-radius:9999px!important;height:2.25rem!important;padding:0 1rem!important}[data-component-part=\"products-selector-trigger\"]{background-color:rgb(var(--background-light));border-radius:0.75rem!important;height:2.25rem!important;padding:0 0.75rem!important;transition:background-color 0.15s ease-out, box-shadow 0.15s ease-out!important;.dark \u0026 {\n background-color: rgb(var(--background-dark));\n }}.nav-dropdown-products-selector-item-icon{background:rgb(var(--primary));color:#ffffff!important;border-radius:0.375rem!important;aspect-ratio:1;svg {\n background-color: #ffffff;\n }}[data-component-part=\"products-selector-trigger\"]{position:relative;--icon-left-offset: 0.05rem;\u0026::before{content:\"\";position:absolute;top:50%;left:calc(0.5rem - var(--icon-left-offset));transform:translateY(-50%);width:1.5rem;height:1.5rem;border-radius:0.5rem;background:rgb(var(--primary));pointer-events:none}svg:not(:last-child) {\n position: relative;\n z-index: 1;\n filter: brightness(0) invert(1);\n margin-right: 0.25rem;\n margin-left: calc(-1 * var(--icon-left-offset));\n }}#search-bar-entry,#assistant-entry{transition:opacity 0.15s ease-out;body:has(#custom-homepage-assistant-entry) \u0026 {\n opacity: 0;\n pointer-events: none;\n }}#topbar-cta-button{padding:0!important;height:auto!important;\u0026,*,>*{border-radius:9999px!important}> :is(a, button, div, span) {\n height: 2.25rem !important;\n padding: 0 1rem !important;\n display: inline-flex !important;\n align-items: center !important;\n gap: 0.375rem !important;\n overflow: hidden !important;\n transition: background-color 0.15s ease-out !important;\n }}#topbar-cta-button>:is(a,button) span{background-color:rgb(var(--primary-dark))!important;font-weight:600}.dark #topbar-cta-button>:is(a,button) span{background-color:rgb(var(--primary-light))!important}.dark #topbar-cta-button>:is(a,button) :is(span,svg,svg *){color:rgb(var(--primary))!important}.dark #topbar-cta-button>:is(a,button) svg{stroke:currentColor!important}ul:is(:has(>#topbar-cta-button),:has(>li.navbar-link)){gap:0.25rem!important;> li + li {\n margin-left: 0.125rem !important;\n }}[data-popular-search]{border-radius:0.375rem!important;font-family:Roboto, sans-serif;letter-spacing:0!important}.card{border-radius:0.5rem!important;box-shadow:none!important}[data-component-part=\"card-icon\"]{color:#36A048}[data-component-part=\"card-icon\"] svg{stroke:#36A048;background-color:#36A048;stroke-width:1;stroke-linecap:round!important;stroke-linejoin:round!important}.card [data-component-part=\"card-icon\"]{background:rgba(54, 160, 72, 0.08);border-radius:0.5rem!important;display:grid!important;place-items:center!important;width:2.25rem!important;height:2.25rem!important}code{border-radius:0.375rem!important}.columns.suggested-articles{gap:1.5rem 2rem}"}],"page":{"pagePath":"api-reference/metrics/retrieve-volume-metrics","slug":"/api-reference/metrics/retrieve-volume-metrics","pageMetadata":{"title":"Retrieve Volume Metrics","description":"Retrieve volume metrics for messages sent from your account,\nincluding counts of processed, delivered and dropped events.\nSupports optional filters for time range and campaign ID.\n","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml get /metrics/volume","href":"/api-reference/metrics/retrieve-volume-metrics","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Retrieve volume metrics for messages sent from your account,\\nincluding counts of processed, delivered and dropped events.\\nSupports optional filters for time range and campaign ID.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Retrieve Volume Metrics","description":"Retrieve volume metrics for messages sent from your account,\nincluding counts of processed, delivered and dropped events.\nSupports optional filters for time range and campaign ID.\n","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml get /metrics/volume","href":"/api-reference/metrics/retrieve-volume-metrics","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/mailchannelscorporation/eaffec8e65cd9c3a/search.js"],"openApiReferenceData":{"operation":{"description":"Retrieve volume metrics for messages sent from your account,\nincluding counts of processed, delivered and dropped events.\nSupports optional filters for time range and campaign ID.\n","parameters":["581c7512-0a0c-471d-8f1a-168cf560ca98","69b94536-31ac-4d4e-9256-8e95a8adf152","1333d065-3ea5-4e78-8fef-8e7e80043c1a","5e22a801-6e33-4792-8432-e034317a720f","08c68e20-d1fa-41af-90eb-bf54b5b97828"],"responses":{"200":"16a6f7ec-b185-46e7-89fc-b33916ef4c00","400":"4f1c0ee0-595b-4cf3-91e3-71c732d2dc74","500":"c0096b8d-d4fb-4372-93d9-e2b36f572a50"},"summary":"Retrieve Volume Metrics","tags":["Metrics"],"x-codeSamples":[{"label":"Node.js","lang":"javascript","source":"import { MailChannels } from \"mailchannels-sdk\";\n\nconst { MAILCHANNELS_API_KEY } = process.env;\nif (!MAILCHANNELS_API_KEY) throw new Error(\"Set MAILCHANNELS_API_KEY before running\");\n\nconst mailchannels = new MailChannels(MAILCHANNELS_API_KEY);\n\nconst { data, error } = await mailchannels.metrics.volume({\n startTime: \"2026-01-01T00:00:00Z\",\n endTime: \"2026-01-07T23:59:59Z\",\n});\n\nif (error) {\n console.error(\"Get volume metrics failed:\", error);\n process.exit(1);\n}\nconsole.log(data);"},{"label":"Python","lang":"python","source":"import os\nimport sys\n\nimport mailchannels\n\nif not os.environ.get(\"MAILCHANNELS_API_KEY\"):\n sys.exit(\"Set MAILCHANNELS_API_KEY before running\")\n\n# Retrieve processed, delivered, and dropped counts for the first week of January 2026.\nresponse = mailchannels.Metrics.volume(\n start_time=\"2026-01-01T00:00:00Z\",\n end_time=\"2026-01-07T23:59:59Z\",\n)\n\nprint(response)"},{"label":"PHP","lang":"php","source":"\u003c?php\n\nrequire_once __DIR__ . '/vendor/autoload.php';\n\nuse MailChannels\\Client;\n\n$api_key = getenv('MAILCHANNELS_API_KEY') or exit(\"Error: MAILCHANNELS_API_KEY is not set\\n\");\n\n$client = new Client(apiKey: $api_key);\n\n// Retrieve processed, delivered, and dropped counts for the first week of January 2026.\n$response = $client->metrics->volume(\n startTime: '2026-01-01T00:00:00Z',\n endTime: '2026-01-07T23:59:59Z',\n);\n\nprint_r($response->toArray());"}],"method":"get","type":"path","servers":["1e26a32e-ba39-4568-a0dc-d133bdf1b202"],"security":[],"path":"/metrics/volume","baseUrlOptions":["https://api.mailchannels.net/tx/v1"],"title":"Retrieve Volume Metrics","codeSamples":[{"label":"Node.js","lang":"javascript","source":"import { MailChannels } from \"mailchannels-sdk\";\n\nconst { MAILCHANNELS_API_KEY } = process.env;\nif (!MAILCHANNELS_API_KEY) throw new Error(\"Set MAILCHANNELS_API_KEY before running\");\n\nconst mailchannels = new MailChannels(MAILCHANNELS_API_KEY);\n\nconst { data, error } = await mailchannels.metrics.volume({\n startTime: \"2026-01-01T00:00:00Z\",\n endTime: \"2026-01-07T23:59:59Z\",\n});\n\nif (error) {\n console.error(\"Get volume metrics failed:\", error);\n process.exit(1);\n}\nconsole.log(data);"},{"label":"Python","lang":"python","source":"import os\nimport sys\n\nimport mailchannels\n\nif not os.environ.get(\"MAILCHANNELS_API_KEY\"):\n sys.exit(\"Set MAILCHANNELS_API_KEY before running\")\n\n# Retrieve processed, delivered, and dropped counts for the first week of January 2026.\nresponse = mailchannels.Metrics.volume(\n start_time=\"2026-01-01T00:00:00Z\",\n end_time=\"2026-01-07T23:59:59Z\",\n)\n\nprint(response)"},{"label":"PHP","lang":"php","source":"\u003c?php\n\nrequire_once __DIR__ . '/vendor/autoload.php';\n\nuse MailChannels\\Client;\n\n$api_key = getenv('MAILCHANNELS_API_KEY') or exit(\"Error: MAILCHANNELS_API_KEY is not set\\n\");\n\n$client = new Client(apiKey: $api_key);\n\n// Retrieve processed, delivered, and dropped counts for the first week of January 2026.\n$response = $client->metrics->volume(\n startTime: '2026-01-01T00:00:00Z',\n endTime: '2026-01-07T23:59:59Z',\n);\n\nprint_r($response->toArray());"}],"requestExampleLanguages":["javascript","python","php","bash"],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{"581c7512-0a0c-471d-8f1a-168cf560ca98":{"description":"The beginning of the time range for retrieving message volume metrics (inclusive).\nFormats: YYYY-MM-DD or YYYY-MM-DDTHH:MM:SSZ.\nDefaults to one month ago if not provided.\n","example":"2025-05-26","in":"query","name":"start_time","required":false,"schema":{"type":"string","isRequired":false,"description":"The beginning of the time range for retrieving message volume metrics (inclusive).\nFormats: YYYY-MM-DD or YYYY-MM-DDTHH:MM:SSZ.\nDefaults to one month ago if not provided.\n","uniqueKey":"","typeLabel":"string"}},"69b94536-31ac-4d4e-9256-8e95a8adf152":{"description":"The end of the time range for retrieving message volume metrics (exclusive).\nFormats: YYYY-MM-DD or YYYY-MM-DDTHH:MM:SSZ.\nDefaults to the current time if not provided.\n","example":"2025-05-31T15:16:17Z","in":"query","name":"end_time","required":false,"schema":{"type":"string","isRequired":false,"description":"The end of the time range for retrieving message volume metrics (exclusive).\nFormats: YYYY-MM-DD or YYYY-MM-DDTHH:MM:SSZ.\nDefaults to the current time if not provided.\n","uniqueKey":"","typeLabel":"string"}},"1333d065-3ea5-4e78-8fef-8e7e80043c1a":{"description":"The ID of the campaign to filter metrics by.\nIf not provided, metrics for all campaigns will be returned.\n","in":"query","name":"campaign_id","required":false,"schema":{"type":"string","isRequired":false,"description":"The ID of the campaign to filter metrics by.\nIf not provided, metrics for all campaigns will be returned.\n","uniqueKey":"","typeLabel":"string"}},"5e22a801-6e33-4792-8432-e034317a720f":{"description":"The interval for aggregating metrics data. Allowed values:\n - hour: Hourly breakdown\n - day: Daily breakdown (default)\n - week: Weekly breakdown\n - month: Monthly breakdown\n","in":"query","name":"interval","required":false,"schema":{"default":"day","enum":["hour","day","week","month"],"type":"string","isRequired":false,"description":"The interval for aggregating metrics data. Allowed values:\n - hour: Hourly breakdown\n - day: Daily breakdown (default)\n - week: Weekly breakdown\n - month: Monthly breakdown\n","uniqueKey":"","typeLabel":"enum\u003cstring>"}},"08c68e20-d1fa-41af-90eb-bf54b5b97828":{"in":"header","name":"X-Api-Key","required":true,"schema":{"type":"string","isRequired":true,"uniqueKey":"","typeLabel":"string"}}},"responses":{"16a6f7ec-b185-46e7-89fc-b33916ef4c00":{"content":{"application/json":{"schema":{"properties":{"buckets":{"description":"A series of metrics aggregations bucketed by time interval (e.g. hour, day)","properties":{"delivered":{"items":{"description":"Represents a time-based bucket for aggregating metrics data.\nEach bucket corresponds to a specific time interval, with the `period_start` indicating the beginning of that interval.\nThe `count` field represents the number of events or occurrences that fall within that time period.\n","properties":{"count":{"description":"The number of events or occurrences aggregated within this time period.","minimum":0,"type":"integer","isRequired":true,"uniqueKey":"buckets.delivered.items.[INDEX].count","typeLabel":"integer"},"period_start":{"description":"The starting date and time of the time period this bucket represents.","format":"date-time","type":"string","isRequired":true,"uniqueKey":"buckets.delivered.items.[INDEX].period_start","typeLabel":"string\u003cdate-time>"}},"required":["period_start","count"],"type":"object","uniqueKey":"buckets.delivered.items.[INDEX]","typeLabel":"object"},"type":"array","isRequired":true,"uniqueKey":"buckets.delivered","typeLabel":"object[]"},"dropped":{"items":{"description":"Represents a time-based bucket for aggregating metrics data.\nEach bucket corresponds to a specific time interval, with the `period_start` indicating the beginning of that interval.\nThe `count` field represents the number of events or occurrences that fall within that time period.\n","properties":{"count":{"description":"The number of events or occurrences aggregated within this time period.","minimum":0,"type":"integer","isRequired":true,"uniqueKey":"buckets.dropped.items.[INDEX].count","typeLabel":"integer"},"period_start":{"description":"The starting date and time of the time period this bucket represents.","format":"date-time","type":"string","isRequired":true,"uniqueKey":"buckets.dropped.items.[INDEX].period_start","typeLabel":"string\u003cdate-time>"}},"required":["period_start","count"],"type":"object","uniqueKey":"buckets.dropped.items.[INDEX]","typeLabel":"object"},"type":"array","isRequired":true,"uniqueKey":"buckets.dropped","typeLabel":"object[]"},"processed":{"items":{"description":"Represents a time-based bucket for aggregating metrics data.\nEach bucket corresponds to a specific time interval, with the `period_start` indicating the beginning of that interval.\nThe `count` field represents the number of events or occurrences that fall within that time period.\n","properties":{"count":{"description":"The number of events or occurrences aggregated within this time period.","minimum":0,"type":"integer","isRequired":true,"uniqueKey":"buckets.processed.items.[INDEX].count","typeLabel":"integer"},"period_start":{"description":"The starting date and time of the time period this bucket represents.","format":"date-time","type":"string","isRequired":true,"uniqueKey":"buckets.processed.items.[INDEX].period_start","typeLabel":"string\u003cdate-time>"}},"required":["period_start","count"],"type":"object","uniqueKey":"buckets.processed.items.[INDEX]","typeLabel":"object"},"type":"array","isRequired":true,"uniqueKey":"buckets.processed","typeLabel":"object[]"}},"required":["processed","delivered","dropped"],"type":"object","isRequired":true,"uniqueKey":"buckets","typeLabel":"object"},"delivered":{"description":"Count of messages delivered during the specified time range.\n","minimum":0,"type":"integer","isRequired":true,"uniqueKey":"delivered","typeLabel":"integer"},"dropped":{"description":"Count of messages dropped during the specified time range.\n","minimum":0,"type":"integer","isRequired":true,"uniqueKey":"dropped","typeLabel":"integer"},"processed":{"description":"Count of messages processed during the specified time range.\n","minimum":0,"type":"integer","isRequired":true,"uniqueKey":"processed","typeLabel":"integer"},"end_time":{"description":"The end of the time range for retrieving message volume metrics (exclusive).\n","format":"date-time","type":"string","uniqueKey":"end_time","typeLabel":"string\u003cdate-time>"},"start_time":{"description":"The beginning of the time range for retrieving message volume metrics (inclusive).\n","format":"date-time","type":"string","uniqueKey":"start_time","typeLabel":"string\u003cdate-time>"}},"required":["processed","delivered","dropped","buckets"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"buckets":{"delivered":[{"count":1,"period_start":"2023-11-07T05:31:56Z"}],"dropped":[{"count":1,"period_start":"2023-11-07T05:31:56Z"}],"processed":[{"count":1,"period_start":"2023-11-07T05:31:56Z"}]},"delivered":1,"dropped":1,"processed":1,"end_time":"2023-11-07T05:31:56Z","start_time":"2023-11-07T05:31:56Z"}}},"exampleType":"generated"}},"description":"Successfully retrieved volume metrics\n","exampleType":"generated"},"4f1c0ee0-595b-4cf3-91e3-71c732d2dc74":{"content":{"application/json":{"schema":{"properties":{"errors":{"description":"This is an array error objects that provide machine and human readable descriptions of the errors.\n","items":{"type":"string","uniqueKey":"errors.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"errors","typeLabel":"string[]"}},"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"errors":["\u003cstring>"]}}},"exampleType":"generated"}},"description":"Bad Request","exampleType":"generated"},"c0096b8d-d4fb-4372-93d9-e2b36f572a50":{"description":"Internal Server Error","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{},"servers":{"1e26a32e-ba39-4568-a0dc-d133bdf1b202":{"url":"https://api.mailchannels.net/tx/v1"}}},"originalFileLocation":"email-api/api-reference/openapi.yaml"},"subdomain":"mailchannelscorporation","siteName":"MailChannels","title":"Retrieve Volume Metrics - MailChannels","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-26T18:19:58.388Z","originalFileLocation":"api-reference/metrics/retrieve-volume-metrics.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Retrieve volume metrics for messages sent from your account, including counts of processed, delivered and dropped events. Supports optional filters for time range and campaign ID.\">\u003cmeta data-mint-head name=\"application-name\" content=\"MailChannels\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://media.brand.dev/1905386c-3c6f-4c57-84d6-872e7dd5f936.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://media.brand.dev/1905386c-3c6f-4c57-84d6-872e7dd5f936.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://media.brand.dev/1905386c-3c6f-4c57-84d6-872e7dd5f936.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/png\" href=\"https://media.brand.dev/1905386c-3c6f-4c57-84d6-872e7dd5f936.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://media.brand.dev/1905386c-3c6f-4c57-84d6-872e7dd5f936.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://media.brand.dev/1905386c-3c6f-4c57-84d6-872e7dd5f936.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/png\" href=\"https://media.brand.dev/1905386c-3c6f-4c57-84d6-872e7dd5f936.png\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Retrieve Volume Metrics - MailChannels\">\u003cmeta data-mint-head property=\"og:description\" content=\"Retrieve volume metrics for messages sent from your account, including counts of processed, delivered and dropped events. Supports optional filters for time range and campaign ID.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"MailChannels\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.mailchannels.com/api-reference/metrics/retrieve-volume-metrics\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://mailchannelscorporation.mintlify.site/_mintlify/api/og/v2?division=Metrics\u0026amp;title=Retrieve+Volume+Metrics\u0026amp;description=Retrieve+volume+metrics+for+messages+sent+from+your+account%2C%0Aincluding+counts+of+processed%2C+delivered+and+dropped+events.%0ASupports+optional+filters+for+time+ran\u0026amp;theme=06ed90d9d16f3e705ce8c66b\u0026amp;signature=e39e72ca4e226c009d5ebee0d283bc2c226c795b89d8c675fae5c01bfb1f3790\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Retrieve Volume Metrics - MailChannels\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Retrieve volume metrics for messages sent from your account, including counts of processed, delivered and dropped events. Supports optional filters for time range and campaign ID.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://mailchannelscorporation.mintlify.site/_mintlify/api/og/v2?division=Metrics\u0026amp;title=Retrieve+Volume+Metrics\u0026amp;description=Retrieve+volume+metrics+for+messages+sent+from+your+account%2C%0Aincluding+counts+of+processed%2C+delivered+and+dropped+events.%0ASupports+optional+filters+for+time+ran\u0026amp;theme=06ed90d9d16f3e705ce8c66b\u0026amp;signature=e39e72ca4e226c009d5ebee0d283bc2c226c795b89d8c675fae5c01bfb1f3790\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/mailchannelscorporation/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"MailChannels\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1E3A5F\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.mailchannels.com/api-reference/metrics/retrieve-volume-metrics\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/metrics/retrieve-volume-metrics.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.mailchannels.com/#organization\",\"name\":\"MailChannels\",\"url\":\"https://docs.mailchannels.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/mailchannelscorporation/82jCZhYczGMlrqqs/images/MC_Logo_Full_Color_Light_Background_RGB_clearspace.png?fit=max\u0026auto=format\u0026n=82jCZhYczGMlrqqs\u0026q=85\u0026s=edceff94929b18cb41691d3277e58baa\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.mailchannels.com#website\",\"name\":\"MailChannels\",\"url\":\"https://docs.mailchannels.com\",\"publisher\":{\"@id\":\"https://docs.mailchannels.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.mailchannels.com/api-reference/metrics/retrieve-volume-metrics#webpage\",\"url\":\"https://docs.mailchannels.com/api-reference/metrics/retrieve-volume-metrics\",\"name\":\"Retrieve Volume Metrics\",\"description\":\"Retrieve volume metrics for messages sent from your account, including counts of processed, delivered and dropped events. Supports optional filters for time range and campaign ID.\",\"dateModified\":\"2026-10-26T18:19:58.388Z\",\"isPartOf\":{\"@id\":\"https://docs.mailchannels.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.mailchannels.com/api-reference/metrics/retrieve-volume-metrics#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.mailchannels.com/api-reference/metrics/retrieve-volume-metrics#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Reference\",\"item\":\"https://docs.mailchannels.com/email-api/api-reference-introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Metrics\",\"item\":\"https://docs.mailchannels.com/api-reference/metrics/retrieve-engagement-metrics\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Retrieve Volume Metrics\",\"item\":\"https://docs.mailchannels.com/api-reference/metrics/retrieve-volume-metrics\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.mailchannels.com/api-reference/metrics/retrieve-volume-metrics#apireference\",\"headline\":\"Retrieve Volume Metrics\",\"name\":\"Retrieve Volume Metrics\",\"description\":\"Retrieve volume metrics for messages sent from your account, including counts of processed, delivered and dropped events. Supports optional filters for time range and campaign ID.\",\"url\":\"https://docs.mailchannels.com/api-reference/metrics/retrieve-volume-metrics\",\"mainEntityOfPage\":{\"@id\":\"https://docs.mailchannels.com/api-reference/metrics/retrieve-volume-metrics#webpage\"},\"dateModified\":\"2026-10-26T18:19:58.388Z\",\"publisher\":{\"@id\":\"https://docs.mailchannels.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.mailchannels.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"MailChannels\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"MailChannels","nav":{"global":null,"tabs":[{"tab":"Email API","groups":[{"group":"Get Started","pages":[{"title":"MailChannels Email API: transactional email for platforms","sidebarTitle":"Overview","href":"/email-api/overview"},{"title":"Email API vs SMTP","sidebarTitle":"Email API vs SMTP","href":"/email-api/email-api-vs-smtp"},{"group":"Quickstart","expanded":true,"pages":[{"title":"cURL quickstart","sidebarTitle":"cURL","icon":"envelope","href":"/email-api/curl/quickstart"},{"title":"Node.js quickstart","sidebarTitle":"Node.js","icon":"envelope","href":"/email-api/javascript/quickstart"},{"title":"Python quickstart","sidebarTitle":"Python","icon":"envelope","href":"/email-api/python/quickstart"},{"title":"PHP quickstart","sidebarTitle":"PHP","icon":"envelope","href":"/email-api/php/quickstart"}]},{"group":"SDKs \u0026 libraries","pages":[{"title":"Official libraries","sidebarTitle":"Official libraries","href":"/email-api/official-libraries"},{"title":"Laravel","sidebarTitle":"Laravel","href":"/email-api/laravel"},{"title":"Symfony","sidebarTitle":"Symfony","href":"/email-api/symfony"},{"title":"Nodemailer","sidebarTitle":"Nodemailer","href":"/email-api/nodemailer"},{"title":"Nuxt community integration","sidebarTitle":"Nuxt","href":"/email-api/integrations/nuxt"}]},{"title":"Local development","sidebarTitle":"Local development","href":"/email-api/local-development"},{"title":"MailChannels Email API: pricing, plans, and limits","sidebarTitle":"Pricing and limits","href":"/email-api/billing/pricing"}]},{"group":"API Reference","expanded":false,"pages":[{"title":"Introduction","sidebarTitle":"Introduction","href":"/email-api/api-reference-introduction"},{"group":"DKIM","pages":[{"title":"DKIM, SPF \u0026 Domain Lockdown Check","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml post /check-domain","href":"/api-reference/dkim/dkim-spf-\u0026-domain-lockdown-check"},{"title":"Retrieve DKIM Keys","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml get /domains/{domain}/dkim-keys","href":"/api-reference/dkim/retrieve-dkim-keys"},{"title":"Create DKIM Key Pair","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml post /domains/{domain}/dkim-keys","href":"/api-reference/dkim/create-dkim-key-pair"},{"title":"Update DKIM Key Status","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml patch /domains/{domain}/dkim-keys/{selector}","href":"/api-reference/dkim/update-dkim-key-status"},{"title":"Rotate DKIM Key Pair","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml post /domains/{domain}/dkim-keys/{selector}/rotate","href":"/api-reference/dkim/rotate-dkim-key-pair"}]},{"group":"Custom Tracking","pages":[{"title":"Retrieve Custom Tracking Domains","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml get /custom-tracking-domains","href":"/api-reference/custom-tracking/retrieve-custom-tracking-domains"},{"title":"Register Custom Tracking Domain","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml post /custom-tracking-domains","href":"/api-reference/custom-tracking/register-custom-tracking-domain"},{"title":"Delete Custom Tracking Domain","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml delete /custom-tracking-domains/{hostname}/{scope}","href":"/api-reference/custom-tracking/delete-custom-tracking-domain"},{"title":"Update Custom Tracking Domain","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml patch /custom-tracking-domains/{hostname}/{scope}","href":"/api-reference/custom-tracking/update-custom-tracking-domain"}]},{"group":"Metrics","pages":[{"title":"Retrieve Engagement Metrics","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml get /metrics/engagement","href":"/api-reference/metrics/retrieve-engagement-metrics"},{"title":"Retrieve Performance Metrics","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml get /metrics/performance","href":"/api-reference/metrics/retrieve-performance-metrics"},{"title":"Retrieve Recipient Behaviour Metrics","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml get /metrics/recipient-behaviour","href":"/api-reference/metrics/retrieve-recipient-behaviour-metrics"},{"title":"Retrieve Sender Metrics","description":"Retrieves a list of senders, either sub-accounts or campaigns, with their associated message metrics.\nSorted by total # of sent messages (processed + dropped)\nSupports optional filter for time range, and optional settings for limit, offset, and sort order.\nNote: senders without any messages in the given time range will not be included in the results.\nThe default time range is from one month ago to now, and the default sort order is descending.\n","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml get /metrics/senders/{sender_type}","href":"/api-reference/metrics/retrieve-sender-metrics"},{"title":"Retrieve Volume Metrics","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml get /metrics/volume","href":"/api-reference/metrics/retrieve-volume-metrics"}]},{"group":"Send","pages":[{"title":"Send an Email","description":"Sends an email message to one or more recipients.\n\n**Click Tracking Notes:**\nOnly links (`\u003ca>` tags) meeting all of the following conditions are processed for click tracking:\n- The URL is non-empty.\n- The URL starts with \"http\" or \"https\".\n- The link does not have a clicktracking attribute set to 'off'.\n","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml post /send","href":"/api-reference/send/send-an-email"},{"title":"Send an Email Asynchronously","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml post /send-async","href":"/api-reference/send/send-an-email-asynchronously"}]},{"group":"Sub-accounts","pages":[{"title":"Retrieve Sub-accounts","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml get /sub-account","href":"/api-reference/sub-accounts/retrieve-sub-accounts"},{"title":"Create Sub-account","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml post /sub-account","href":"/api-reference/sub-accounts/create-sub-account"},{"title":"Delete Sub-account","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml delete /sub-account/{handle}","href":"/api-reference/sub-accounts/delete-sub-account"},{"title":"Activate Sub-account","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml post /sub-account/{handle}/activate","href":"/api-reference/sub-accounts/activate-sub-account"},{"title":"Retrieve Sub-account API Keys","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml get /sub-account/{handle}/api-key","href":"/api-reference/sub-accounts/retrieve-sub-account-api-keys"},{"title":"Create Sub-account API Key","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml post /sub-account/{handle}/api-key","href":"/api-reference/sub-accounts/create-sub-account-api-key"},{"title":"Delete Sub-account API Key","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml delete /sub-account/{handle}/api-key/{id}","href":"/api-reference/sub-accounts/delete-sub-account-api-key"},{"title":"Retrieve Sub-account Limit","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml get /sub-account/{handle}/limit","href":"/api-reference/sub-accounts/retrieve-sub-account-limit"},{"title":"Set Sub-account Limit","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml put /sub-account/{handle}/limit","href":"/api-reference/sub-accounts/set-sub-account-limit"},{"title":"Delete Sub-account Limit","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml delete /sub-account/{handle}/limit","href":"/api-reference/sub-accounts/delete-sub-account-limit"},{"title":"Retrieve Sub-account SMTP Passwords","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml get /sub-account/{handle}/smtp-password","href":"/api-reference/sub-accounts/retrieve-sub-account-smtp-passwords"},{"title":"Create Sub-account SMTP Password","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml post /sub-account/{handle}/smtp-password","href":"/api-reference/sub-accounts/create-sub-account-smtp-password"},{"title":"Delete Sub-account SMTP Password","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml delete /sub-account/{handle}/smtp-password/{id}","href":"/api-reference/sub-accounts/delete-sub-account-smtp-password"},{"title":"Suspend Sub-account","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml post /sub-account/{handle}/suspend","href":"/api-reference/sub-accounts/suspend-sub-account"},{"title":"Retrieve Sub-account Usage Stats","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml get /sub-account/{handle}/usage","href":"/api-reference/sub-accounts/retrieve-sub-account-usage-stats"}]},{"group":"Suppression","pages":[{"title":"Retrieve Suppression List","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml get /suppression-list","href":"/api-reference/suppression/retrieve-suppression-list"},{"title":"Create Suppression Entries","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml post /suppression-list","href":"/api-reference/suppression/create-suppression-entries"},{"title":"Delete Suppression Entry","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml delete /suppression-list/recipients/{recipient}","href":"/api-reference/suppression/delete-suppression-entry"}]},{"group":"Usage","pages":[{"title":"Retrieve Usage Stats","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml get /usage","href":"/api-reference/usage/retrieve-usage-stats"}]},{"group":"Webhooks","pages":[{"title":"Retrieve Customer Webhooks","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml get /webhook","href":"/api-reference/webhooks/retrieve-customer-webhooks"},{"title":"Enroll for Webhook Notifications","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml post /webhook","href":"/api-reference/webhooks/enroll-for-webhook-notifications"},{"title":"Delete Customer Webhooks","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml delete /webhook","href":"/api-reference/webhooks/delete-customer-webhooks"},{"title":"Retrieve Webhook Batches","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml get /webhook-batch","href":"/api-reference/webhooks/retrieve-webhook-batches"},{"title":"Resend Events","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml post /webhook-batch/{batch_id}/resend","href":"/api-reference/webhooks/resend-events"},{"title":"Retrieve Webhook Signing Key","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml get /webhook/public-key","href":"/api-reference/webhooks/retrieve-webhook-signing-key"},{"title":"Validate Enrolled Webhook","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml post /webhook/validate","href":"/api-reference/webhooks/validate-enrolled-webhook"}]}]},{"group":"Authentication \u0026 Account Setup","pages":[{"title":"Authentication","sidebarTitle":"Authentication","href":"/email-api/authentication"},{"title":"Security","sidebarTitle":"Security","href":"/email-api/security"},{"title":"Domain Lockdown","sidebarTitle":"Domain Lockdown","href":"/email-api/domain-lockdown"}]},{"group":"Sending Email","pages":[{"title":"Send vs send async","sidebarTitle":"Send vs send async","href":"/email-api/send-vs-send-async"},{"title":"How emails are structured","sidebarTitle":"Email structure","href":"/email-api/how-emails-are-structured"},{"title":"Content types","sidebarTitle":"Content types","href":"/email-api/content-types"},{"title":"Attachments","sidebarTitle":"Attachments","href":"/email-api/attachments"},{"title":"Custom headers","sidebarTitle":"Custom headers","href":"/email-api/custom-headers"},{"title":"Templates","sidebarTitle":"Templates","href":"/email-api/templates"},{"title":"Sending via SMTP","sidebarTitle":"SMTP sending","href":"/email-api/smtp-sending"},{"title":"Custom tracking","sidebarTitle":"Custom tracking","href":"/email-api/custom-tracking"},{"title":"Inbound email and replies","sidebarTitle":"Inbound email and replies","href":"/email-api/inbound-email-replies"}]},{"group":"Email Authentication","pages":[{"title":"SPF, DKIM, and DMARC","sidebarTitle":"SPF, DKIM, and DMARC","href":"/email-api/spf-dkim-dmarc"},{"title":"DKIM signing and key management","sidebarTitle":"DKIM signing and key management","href":"/email-api/configuring-dkim"}]},{"group":"Webhooks \u0026 Delivery Events","pages":[{"title":"Webhooks","sidebarTitle":"Webhooks","href":"/email-api/webhooks"},{"title":"Event types","sidebarTitle":"Event types","href":"/email-api/webhook-event-types"},{"title":"JSON schema for webhooks","sidebarTitle":"JSON schema","href":"/email-api/webhook-schema"},{"title":"Webhook retries and delivery behavior","sidebarTitle":"Retries and delivery behavior","href":"/email-api/webhook-retries"},{"title":"Handling hard-bounced events","sidebarTitle":"Hard-bounced events","href":"/email-api/hard-bounced-events"},{"title":"Handling soft-bounced events","sidebarTitle":"Soft-bounced events","href":"/email-api/soft-bounced-events"},{"title":"Handling complained events","sidebarTitle":"Complained events","href":"/email-api/complained-events"},{"title":"Handling unsubscribed events","sidebarTitle":"Unsubscribed events","href":"/email-api/unsubscribed-events"}]},{"group":"Platform \u0026 Multi-tenant","pages":[{"title":"Multi-tenancy overview","sidebarTitle":"Multi-tenancy","href":"/email-api/multi-tenancy"},{"title":"Creating a sub-account","sidebarTitle":"Create","href":"/email-api/sub-accounts-create"},{"title":"Authenticating a sub-account","sidebarTitle":"Authenticate","href":"/email-api/sub-accounts-authentication"},{"title":"Sub-account sending limits","sidebarTitle":"Limits","href":"/email-api/sub-accounts-limits"}]},{"group":"Reputation and Abuse Control","pages":[{"title":"Reputation and abuse control","sidebarTitle":"Overview","href":"/email-api/reputation-abuse-control"},{"title":"Sending policies and best practices","sidebarTitle":"Sending policies","href":"/email-api/sending-policies"}]},{"group":"Metrics \u0026 Monitoring","pages":[{"title":"Metrics","sidebarTitle":"Overview","href":"/email-api/metrics"},{"title":"Engagement metrics","sidebarTitle":"Engagement","href":"/email-api/metrics-engagement"},{"title":"Performance metrics","sidebarTitle":"Performance","href":"/email-api/metrics-performance"},{"title":"Volume metrics","sidebarTitle":"Volume","href":"/email-api/metrics-volume"},{"title":"Recipient behavior metrics","sidebarTitle":"Recipient behavior","href":"/email-api/metrics-recipient-behavior"},{"title":"Sender breakdown metrics","sidebarTitle":"Sender breakdown","href":"/email-api/metrics-senders"}]},{"group":"Operate in production","pages":[{"title":"Troubleshooting","sidebarTitle":"Troubleshooting","href":"/email-api/troubleshooting"},{"title":"Errors","sidebarTitle":"Errors","href":"/email-api/errors"},{"title":"Debug a sent message","sidebarTitle":"Debug a sent message","href":"/email-api/debug-sent-message"},{"title":"Suppressions and unsubscribe handling","sidebarTitle":"Suppressions and unsubscribes","href":"/email-api/suppressions-unsubscribes"},{"title":"Managing suppressions","sidebarTitle":"Managing suppressions","href":"/email-api/suppression-api-actions"},{"title":"Unsubscribe","sidebarTitle":"Unsubscribe","href":"/email-api/unsubscribe"}]},{"group":"Migration guides","pages":[{"title":"Migration Center","sidebarTitle":"Overview","href":"/email-api/migration-center/overview"},{"title":"Migrate from SendGrid to MailChannels Email API","sidebarTitle":"SendGrid","href":"/email-api/migration-center/migrate-from-sendgrid"},{"title":"Migrate from Mailgun to MailChannels Email API","sidebarTitle":"Mailgun","href":"/email-api/migration-center/migrate-from-mailgun"},{"title":"Migrate from Mailjet to MailChannels Email API","sidebarTitle":"Mailjet","href":"/email-api/migration-center/migrate-from-mailjet"},{"title":"Migrate from Brevo to MailChannels Email API","sidebarTitle":"Brevo","href":"/email-api/migration-center/migrate-from-brevo"},{"title":"Migrate from Postmark to MailChannels Email API","sidebarTitle":"Postmark","href":"/email-api/migration-center/migrate-from-postmark"},{"title":"Migrate from Amazon SES to MailChannels Email API","sidebarTitle":"Amazon SES","href":"/email-api/migration-center/migrate-from-amazon-ses"},{"title":"Migrate from Resend to MailChannels Email API","sidebarTitle":"Resend","href":"/email-api/migration-center/migrate-from-resend"}]},{"group":"Integrations","pages":[{"title":"Send governed emails automatically with MailChannels + Zapier","sidebarTitle":"Zapier integration","href":"/email-api/integrations/zapier"}]},{"group":"For AI Agents","pages":[{"title":"Send email from OpenClaw agents using MailChannels","sidebarTitle":"OpenClaw integration","href":"/email-api/openclaw"}]}]},{"tab":"Outbound Filtering","pages":[{"title":"Outbound Filtering","href":"/outbound/overview"}]},{"tab":"Inbound Filtering","pages":[{"title":"Inbound Filtering","href":"/inbound/overview"}]},{"tab":"Plugins","pages":[{"title":"Plugins","href":"/plugins/whmcs/overview"}]}]},"basePath":"","title":"Retrieve Volume Metrics - MailChannels","buildId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","deploymentId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CBsVopKK.js","utils-DZAk68jJ.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-D32AYZrP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-D_A5_cny.js","snippetPresets-xNRfS9th.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BIB25-tq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CydJ4w4j.js","shallow-CYPBeQSG.js","getApiPlaygroundDisplay-A5xJVBOu.js","CodeSnippet-BVRTgi3m.js","CodeSnippets-DjD6BSlt.js","Page-Dr40SSJq.js","getPastedJson-D4V4JyrR.js","icon-uhcnG22T.js","MethodPill-CM-ZQdGH.js","DuplicateIcon-B_WnOiNf.js","createIcon-CJsb8utt.js","DynamicMarkdown-D-2HDKEp.js","SectionHeading-KP5xmMgQ.js","axios-vUo_bRtp.js","Markdown-D_k0dg6k.js","clsx-DK3K4Z1S.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-DE3EVdvd.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-fN9H9n9g.js"]}