Every key can be configured with one of two scopes:
All domains (default): the key can operate across all verified domains in the workspace.
Specific domains: the key is restricted to an allowlist of workspace domains.
Domain scope is enforced for operations that use a sender domain, including /v1/send and SMTP sends. If a key is scoped to specific domains, the sender domain must be in that key’s allowlist.Creating a domain through POST /v1/domains requires an all-domain secret key. A domain-scoped secret key can retrieve, verify, or delete domains in its allowlist. An all-domain secret key can delete any domain owned by its workspace.
SMTP authentication uses secret keys. You can use any active sk_ key, including scoped keys. Scoped secret keys can only send from allowed domains. See SMTP.To send through the API with the same credentials, see Send Email API.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"MailGlyph Docs","description":"MailGlyph - Fast, Reliable Email Delivery for Your App","colors":{"primary":"#525252","light":"#525252","dark":"#a3a3a3"},"logo":{"light":"https://mintcdn.com/mailrify/AbpSXvJVWBv3j1Fq/images/mailglyph-b.png?fit=max\u0026auto=format\u0026n=AbpSXvJVWBv3j1Fq\u0026q=85\u0026s=d88b9d3e09e63c09b1b17930ffb1731d","dark":"https://mintcdn.com/mailrify/AbpSXvJVWBv3j1Fq/images/mailglyph-w.png?fit=max\u0026auto=format\u0026n=AbpSXvJVWBv3j1Fq\u0026q=85\u0026s=df148fc44aa285f7d62cfa4d4db3a2ff"},"favicon":"https://mintcdn.com/mailrify/AbpSXvJVWBv3j1Fq/images/favicon.svg?fit=max\u0026auto=format\u0026n=AbpSXvJVWBv3j1Fq\u0026q=85\u0026s=eb6fa465784b82943d79fe911560fdde","api":{"openapi":"openapi.json","playground":{"proxy":false},"examples":{"prefill":true},"mdx":{"auth":{"method":"bearer","name":"Authorization"},"server":"https://api.mailglyph.com"}},"navbar":{"links":[{"href":"https://app.mailglyph.com/auth/login","label":"Sign In"}],"primary":{"type":"button","label":"Get Started","href":"https://app.mailglyph.com/auth/signup"}},"icons":{"library":"lucide"},"contextual":{"options":["copy","chatgpt","claude","mcp","add-mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"mailrify","hasAudioNarration":false,"actualSubdomain":"mailrify","customDomains":["docs.mailglyph.com"],"gitSource":{"type":"github","owner":"mailglyph","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a96da8d8dcb4068c2f0df0d","collectionId":"4d75d310-2820-4a64-8e62-9cf2394cda3f","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6a96da8d8dcb4068c2f0df0d"},"entitlements":{},"buildId":"6a96da8d8dcb4068c2f0df0d","clientVersion":"0.0.3966","searchFilterCounts":[{"language":"default","tag":"API Reference","count":50},{"language":"default","tag":"SDKs","count":36},{"language":"default","tag":"Documentation","count":19},{"language":"default","tag":"Email Validation","count":9},{"language":"default","tag":"Concepts","count":9},{"language":"default","tag":"Guides","count":9},{"language":"default","tag":"Go","count":9},{"language":"default","tag":"Node.js","count":9},{"language":"default","tag":"PHP","count":9},{"language":"default","tag":"Python","count":9}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"hasChatPermissions":false,"hasWebMcpPermissions":false,"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":"editor-v7-file-tree","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":"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":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","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":"editor-nav-generations","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":"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":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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}],"isAtlas":false,"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"html.dark a[class*=\"bg-primary/10\"][class*=\"dark:bg-primary-light/10\"]{background-color:rgba(229,229,229,.18)!important;color:#e5e5e5!important;text-shadow:none!important}html.dark a[class*=\"bg-primary/10\"][class*=\"dark:bg-primary-light/10\"] svg{background-color:#e5e5e5!important;opacity:1}ul.toc a{color:#737373!important}ul.toc a:hover{color:#262626!important}ul.toc a[class*=text-primary]{color:#0a0a0a!important;font-weight:500!important}html.dark ul.toc a{color:#ababab!important}html.dark ul.toc a:hover{color:#e5e5e5!important}html.dark ul.toc a[class*=text-primary]{color:#f5f5f5!important;border-color:#d4d4d4!important}nav.text-sm a[href*=\"/auth/login\"]{color:#404040!important;font-weight:600!important;letter-spacing:.01em}nav.text-sm a[href*=\"/auth/login\"]:hover{color:#171717!important}html.dark nav.text-sm a[href*=\"/auth/login\"]{color:#d4d4d4!important}html.dark nav.text-sm a[href*=\"/auth/login\"]:hover{color:#f5f5f5!important}nav.text-sm a[href*=\"/auth/signup\"]{border-radius:.75rem!important}nav.text-sm a[href*=\"/auth/signup\"]>span.absolute{background-color:#0a0a0a!important;border-radius:.75rem!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.04);transition:background-color .2s ease,transform .2s ease}nav.text-sm a[href*=\"/auth/signup\"]:hover>span.absolute{background-color:#262626!important}"}],"page":{"pagePath":"guides/api-keys","slug":"/guides/api-keys","pageMetadata":{"title":"API Keys","description":"Create, scope, rotate, and revoke API key sets for your workspace","icon":"key","href":"/guides/api-keys"},"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: \"Create, scope, rotate, and revoke API key sets for your workspace\"\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,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Warning}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`MailGlyph supports multiple API key sets per workspace. Each key set contains:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Private key`}),` with `,_jsx(_components.code,{children:`pk_`}),` prefix (for `,_jsx(_components.code,{children:`/v1/track`}),`)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Secret key`}),` with `,_jsx(_components.code,{children:`sk_`}),` prefix (for server-side/private endpoints)`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Use separate key sets for different services so you can rotate or revoke access without affecting everything else.`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Never expose `,_jsx(_components.code,{children:`sk_`}),` keys in browser code, mobile apps, or public repositories.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`domain-scope`,children:`Domain scope`}),`\n`,_jsx(_components.p,{children:`Every key can be configured with one of two scopes:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`All domains (default)`}),`: the key can operate across all verified domains in the workspace.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Specific domains`}),`: the key is restricted to an allowlist of workspace domains.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Domain scope is enforced for operations that use a sender domain, including `,_jsx(_components.code,{children:`/v1/send`}),` and SMTP sends. If a key is scoped to specific domains, the sender domain must be in that key’s allowlist.`]}),`\n`,_jsxs(_components.p,{children:[`Creating a domain through `,_jsx(_components.code,{children:`POST /v1/domains`}),` requires an all-domain secret key. A domain-scoped secret key can retrieve, verify, or delete domains in its allowlist. An all-domain secret key can delete any domain owned by its workspace.`]}),`\n`,_jsx(Heading,{level:`2`,id:`managing-keys-in-the-dashboard`,children:`Managing keys in the dashboard`}),`\n`,_jsxs(_components.p,{children:[`From `,_jsx(_components.a,{href:`https://app.mailglyph.com/api-keys`,children:_jsx(_components.strong,{children:`API Keys`})}),` in the workspace dashboard, you can:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Create new keys`}),`\n`,_jsx(_components.li,{children:`Set key name and domain scope`}),`\n`,_jsx(_components.li,{children:`Edit name and domain scope`}),`\n`,_jsx(_components.li,{children:`Revoke individual keys`}),`\n`]}),`\n`,_jsx(_components.p,{children:`When a key is revoked, it stops authenticating immediately.`}),`\n`,_jsx(Heading,{level:`2`,id:`rotation-and-incident-response`,children:`Rotation and incident response`}),`\n`,_jsx(_components.p,{children:`If you suspect a key leak:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Revoke the affected key.`}),`\n`,_jsx(_components.li,{children:`Create a replacement key with the minimum required scope.`}),`\n`,_jsx(_components.li,{children:`Roll out the new key to your services.`}),`\n`]}),`\n`,_jsx(_components.p,{children:`Create and revoke keys as needed to rotate credentials without changing unrelated integrations.`}),`\n`,_jsx(Heading,{level:`2`,id:`smtp-notes`,children:`SMTP notes`}),`\n`,_jsxs(_components.p,{children:[`SMTP authentication uses secret keys. You can use any active `,_jsx(_components.code,{children:`sk_`}),` key, including scoped keys. Scoped secret keys can only send from allowed domains. See `,_jsx(_components.a,{href:`/guides/smtp`,children:`SMTP`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`To send through the API with the same credentials, see `,_jsx(_components.a,{href:`/api-reference/public-api/sendEmail`,children:`Send Email API`}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"API Keys","description":"Create, scope, rotate, and revoke API key sets for your workspace","icon":"key","href":"/guides/api-keys"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Domain scope","slug":"domain-scope","depth":2,"children":[]},{"title":"Managing keys in the dashboard","slug":"managing-keys-in-the-dashboard","depth":2,"children":[]},{"title":"Rotation and incident response","slug":"rotation-and-incident-response","depth":2,"children":[]},{"title":"SMTP notes","slug":"smtp-notes","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"mailrify","siteName":"MailGlyph Docs","title":"API Keys - MailGlyph Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-01T14:01:37.179Z","originalFileLocation":"guides/api-keys.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=\"Create, scope, rotate, and revoke API key sets for your workspace\">\u003cmeta data-mint-head name=\"application-name\" content=\"MailGlyph Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/mailrify/wtF-GmJJSLcHkeW8/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/mailrify/wtF-GmJJSLcHkeW8/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/mailrify/wtF-GmJJSLcHkeW8/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/mailrify/wtF-GmJJSLcHkeW8/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/mailrify/wtF-GmJJSLcHkeW8/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/mailrify/wtF-GmJJSLcHkeW8/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/mailrify/wtF-GmJJSLcHkeW8/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/mailrify/wtF-GmJJSLcHkeW8/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/mailrify/wtF-GmJJSLcHkeW8/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"API Keys - MailGlyph Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create, scope, rotate, and revoke API key sets for your workspace\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"MailGlyph Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.mailglyph.com/guides/api-keys\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://mailrify.mintlify.app/_mintlify/api/og/v2?division=Guides\u0026amp;title=API+Keys\u0026amp;description=Create%2C+scope%2C+rotate%2C+and+revoke+API+key+sets+for+your+workspace\u0026amp;theme=99b846a7794b8125ab92320b\u0026amp;signature=b6f89b027841191bc3e924a7c6c3c2ca742bbf8c2c0d50434e807f2beeea030b\">\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=\"API Keys - MailGlyph Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create, scope, rotate, and revoke API key sets for your workspace\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://mailrify.mintlify.app/_mintlify/api/og/v2?division=Guides\u0026amp;title=API+Keys\u0026amp;description=Create%2C+scope%2C+rotate%2C+and+revoke+API+key+sets+for+your+workspace\u0026amp;theme=99b846a7794b8125ab92320b\u0026amp;signature=b6f89b027841191bc3e924a7c6c3c2ca742bbf8c2c0d50434e807f2beeea030b\">\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=\"/mintlify-assets/_mintlify/favicons/mailrify/wtF-GmJJSLcHkeW8/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"MailGlyph Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#525252\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.mailglyph.com/guides/api-keys\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/guides/api-keys.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.mailglyph.com/#organization\",\"name\":\"MailGlyph Docs\",\"url\":\"https://docs.mailglyph.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/mailrify/AbpSXvJVWBv3j1Fq/images/mailglyph-b.png?fit=max\u0026auto=format\u0026n=AbpSXvJVWBv3j1Fq\u0026q=85\u0026s=d88b9d3e09e63c09b1b17930ffb1731d\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.mailglyph.com#website\",\"name\":\"MailGlyph Docs\",\"url\":\"https://docs.mailglyph.com\",\"publisher\":{\"@id\":\"https://docs.mailglyph.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.mailglyph.com/guides/api-keys#webpage\",\"url\":\"https://docs.mailglyph.com/guides/api-keys\",\"name\":\"API Keys\",\"description\":\"Create, scope, rotate, and revoke API key sets for your workspace\",\"dateModified\":\"2026-09-01T14:01:37.179Z\",\"isPartOf\":{\"@id\":\"https://docs.mailglyph.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.mailglyph.com/guides/api-keys#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.mailglyph.com/guides/api-keys#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Documentation\",\"item\":\"https://docs.mailglyph.com/index\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Guides\",\"item\":\"https://docs.mailglyph.com/guides/list-hygiene\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"API Keys\",\"item\":\"https://docs.mailglyph.com/guides/api-keys\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.mailglyph.com/guides/api-keys#article\",\"headline\":\"API Keys\",\"name\":\"API Keys\",\"description\":\"Create, scope, rotate, and revoke API key sets for your workspace\",\"url\":\"https://docs.mailglyph.com/guides/api-keys\",\"mainEntityOfPage\":{\"@id\":\"https://docs.mailglyph.com/guides/api-keys#webpage\"},\"dateModified\":\"2026-09-01T14:01:37.179Z\",\"publisher\":{\"@id\":\"https://docs.mailglyph.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.mailglyph.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"MailGlyph Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"MailGlyph Docs","nav":{"global":null,"groups":[{"group":"Documentation","pages":[{"title":"Introduction","href":"/index"},{"group":"Concepts","pages":[{"title":"Contacts","icon":"users","href":"/concepts/contacts"},{"title":"Events","icon":"activity","href":"/concepts/events"},{"title":"Segments","icon":"layers","href":"/concepts/segments"},{"title":"Workflows","icon":"workflow","href":"/concepts/workflows"},{"title":"Campaigns","icon":"megaphone","href":"/concepts/campaigns"},{"title":"Transactional Emails","icon":"send","href":"/concepts/transactional-emails"},{"title":"Templates","icon":"file-text","href":"/concepts/templates"},{"title":"Billing","icon":"credit-card","href":"/concepts/billing"},{"title":"Team members","icon":"users","href":"/concepts/team-members"}]},{"group":"Guides","pages":[{"title":"List Hygiene","icon":"shield-check","href":"/guides/list-hygiene"},{"title":"Email Validation","icon":"badge-check","href":"/guides/email-validation"},{"title":"Verifying domains","icon":"globe","href":"/guides/verifying-domains"},{"title":"Receiving emails","icon":"inbox","href":"/guides/receiving-emails"},{"title":"SMTP","icon":"mail","href":"/guides/smtp"},{"title":"Tracking","description":"Configure click and open tracking for your emails.","icon":"activity","href":"/guides/tracking"},{"title":"API Keys","icon":"key","href":"/guides/api-keys"},{"title":"Localization","description":"Support for multiple languages and regions","icon":"languages","href":"/guides/localization"},{"title":"Webhooks","icon":"webhook","href":"/guides/webhooks"}]}]},{"group":"SDKs","pages":[{"group":"Node.js","pages":[{"title":"Overview","href":"/sdks/nodejs/overview"},{"title":"Emails","href":"/sdks/nodejs/emails"},{"title":"Email Validation","href":"/sdks/nodejs/email-validation"},{"title":"Events","href":"/sdks/nodejs/events"},{"title":"Contacts","href":"/sdks/nodejs/contacts"},{"title":"Segments","href":"/sdks/nodejs/segments"},{"title":"Campaigns","href":"/sdks/nodejs/campaigns"},{"title":"Templates","href":"/sdks/nodejs/templates"},{"title":"Errors","href":"/sdks/nodejs/errors"}]},{"group":"Go","pages":[{"title":"Overview","href":"/sdks/go/overview"},{"title":"Emails","href":"/sdks/go/emails"},{"title":"Email Validation","href":"/sdks/go/email-validation"},{"title":"Events","href":"/sdks/go/events"},{"title":"Contacts","href":"/sdks/go/contacts"},{"title":"Segments","href":"/sdks/go/segments"},{"title":"Campaigns","href":"/sdks/go/campaigns"},{"title":"Templates","href":"/sdks/go/templates"},{"title":"Errors","href":"/sdks/go/errors"}]},{"group":"Python","pages":[{"title":"Overview","href":"/sdks/python/overview"},{"title":"Emails","href":"/sdks/python/emails"},{"title":"Email Validation","href":"/sdks/python/email-validation"},{"title":"Events","href":"/sdks/python/events"},{"title":"Contacts","href":"/sdks/python/contacts"},{"title":"Segments","href":"/sdks/python/segments"},{"title":"Campaigns","href":"/sdks/python/campaigns"},{"title":"Templates","href":"/sdks/python/templates"},{"title":"Errors","href":"/sdks/python/errors"}]},{"group":"PHP","pages":[{"title":"Overview","href":"/sdks/php/overview"},{"title":"Emails","href":"/sdks/php/emails"},{"title":"Email Validation","href":"/sdks/php/email-validation"},{"title":"Events","href":"/sdks/php/events"},{"title":"Contacts","href":"/sdks/php/contacts"},{"title":"Segments","href":"/sdks/php/segments"},{"title":"Campaigns","href":"/sdks/php/campaigns"},{"title":"Templates","href":"/sdks/php/templates"},{"title":"Errors","href":"/sdks/php/errors"}]}]},{"group":"API Reference","pages":[{"title":"API Reference","sidebarTitle":"Introduction","href":"/api-reference/overview"},{"group":"Emails","pages":[{"title":"Send transactional email","openapi":"openapi.json POST /v1/send","href":"/api-reference/public-api/sendEmail"}]},{"group":"Domains","pages":[{"title":"Create or find sending domain","openapi":"openapi.json POST /v1/domains","href":"/api-reference/domains/createDomain"},{"title":"Get sending domain","openapi":"openapi.json GET /v1/domains/{id}","href":"/api-reference/domains/getDomain"},{"title":"Delete Domain","openapi":"openapi.json DELETE /v1/domains/{id}","href":"/api-reference/domains/deleteDomain"},{"title":"Verify sending domain","openapi":"openapi.json POST /v1/domains/{id}/verify","href":"/api-reference/domains/verifyDomain"}]},{"group":"Email Validation","pages":[{"title":"Validate email address","openapi":"openapi.json POST /v1/verify","href":"/api-reference/verifications/verifyEmail"},{"title":"Create bulk email validation","openapi":"openapi.json POST /v1/verify/files","href":"/api-reference/verifications/createBulkEmailValidation"},{"title":"List bulk email validations","openapi":"openapi.json GET /v1/verify/files","href":"/api-reference/verifications/listBulkEmailValidations"},{"title":"Get bulk email validation","openapi":"openapi.json GET /v1/verify/files/{jobId}","href":"/api-reference/verifications/getBulkEmailValidation"},{"title":"Continue bulk email validation","openapi":"openapi.json POST /v1/verify/files/{jobId}/continue","href":"/api-reference/verifications/continueBulkEmailValidation"},{"title":"Download bulk email validation results","openapi":"openapi.json GET /v1/verify/files/{jobId}/download","href":"/api-reference/verifications/downloadBulkEmailValidationResults"},{"title":"Delete bulk email validation","openapi":"openapi.json DELETE /v1/verify/files/{jobId}","href":"/api-reference/verifications/deleteBulkEmailValidation"},{"title":"Get email validation credit usage","openapi":"openapi.json GET /v1/verification-credits","href":"/api-reference/verifications/getVerificationCredits"},{"title":"List email validation credit ledger","openapi":"openapi.json GET /v1/verification-credits/ledger","href":"/api-reference/verifications/listVerificationCreditLedger"}]},{"group":"Events","pages":[{"title":"Track event","openapi":"openapi.json POST /v1/track","href":"/api-reference/public-api/trackEvent"},{"title":"List events","openapi":"openapi.json GET /events","href":"/api-reference/events/listEvents"},{"title":"List event names","openapi":"openapi.json GET /events/names","href":"/api-reference/events/listEventNames"}]},{"group":"Contacts","pages":[{"title":"List contacts","openapi":"openapi.json GET /contacts","href":"/api-reference/contacts/listContacts"},{"title":"Get contact","openapi":"openapi.json GET /contacts/{id}","href":"/api-reference/contacts/getContact"},{"title":"Create or update contact","openapi":"openapi.json POST /contacts","href":"/api-reference/contacts/createContact"},{"title":"Update contact","openapi":"openapi.json PATCH /contacts/{id}","href":"/api-reference/contacts/updateContact"},{"title":"Delete contact","openapi":"openapi.json DELETE /contacts/{id}","href":"/api-reference/contacts/deleteContact"}]},{"group":"Segments","pages":[{"title":"List segments","openapi":"openapi.json GET /segments","href":"/api-reference/segments/listSegments"},{"title":"Get segment","openapi":"openapi.json GET /segments/{id}","href":"/api-reference/segments/getSegment"},{"title":"Create segment","openapi":"openapi.json POST /segments","href":"/api-reference/segments/createSegment"},{"title":"Update segment","openapi":"openapi.json PATCH /segments/{id}","href":"/api-reference/segments/updateSegment"},{"title":"Delete segment","openapi":"openapi.json DELETE /segments/{id}","href":"/api-reference/segments/deleteSegment"},{"title":"List segment contacts","openapi":"openapi.json GET /segments/{id}/contacts","href":"/api-reference/segments/segmentContacts"},{"title":"Add static segment members","openapi":"openapi.json POST /segments/{id}/members","href":"/api-reference/segments/addSegmentMembers"},{"title":"Remove static segment members","openapi":"openapi.json DELETE /segments/{id}/members","href":"/api-reference/segments/removeSegmentMembers"}]},{"group":"Templates","pages":[{"title":"List templates","openapi":"openapi.json GET /templates","href":"/api-reference/templates/listTemplates"},{"title":"Get template","openapi":"openapi.json GET /templates/{id}","href":"/api-reference/templates/getTemplate"},{"title":"Create template","openapi":"openapi.json POST /templates","href":"/api-reference/templates/createTemplate"},{"title":"Update template","openapi":"openapi.json PATCH /templates/{id}","href":"/api-reference/templates/updateTemplate"},{"title":"Delete template","openapi":"openapi.json DELETE /templates/{id}","href":"/api-reference/templates/deleteTemplate"}]},{"group":"Campaigns","pages":[{"title":"List campaigns","openapi":"openapi.json GET /campaigns","href":"/api-reference/campaigns/listCampaigns"},{"title":"Create campaign","openapi":"openapi.json POST /campaigns","href":"/api-reference/campaigns/createCampaign"},{"title":"Get campaign","openapi":"openapi.json GET /campaigns/{id}","href":"/api-reference/campaigns/getCampaign"},{"title":"Update campaign","openapi":"openapi.json PUT /campaigns/{id}","href":"/api-reference/campaigns/updateCampaign"},{"title":"Send or schedule campaign","openapi":"openapi.json POST /campaigns/{id}/send","href":"/api-reference/campaigns/sendCampaign"},{"title":"Cancel campaign","openapi":"openapi.json POST /campaigns/{id}/cancel","href":"/api-reference/campaigns/cancelCampaign"},{"title":"Send test email","openapi":"openapi.json POST /campaigns/{id}/test","href":"/api-reference/campaigns/testCampaign"},{"title":"Campaign stats","openapi":"openapi.json GET /campaigns/{id}/stats","href":"/api-reference/campaigns/campaignStats"}]},{"group":"Workflows","pages":[{"title":"List workflows","openapi":"openapi.json GET /workflows","href":"/api-reference/workflows/listWorkflows"},{"title":"Get workflow","openapi":"openapi.json GET /workflows/{id}","href":"/api-reference/workflows/getWorkflow"},{"title":"Update workflow","openapi":"openapi.json PATCH /workflows/{id}","href":"/api-reference/workflows/updateWorkflow"},{"title":"Delete workflow","openapi":"openapi.json DELETE /workflows/{id}","href":"/api-reference/workflows/deleteWorkflow"},{"title":"List workflow executions","openapi":"openapi.json GET /workflows/{id}/executions","href":"/api-reference/workflows/listWorkflowExecutions"}]},{"title":"Error Codes","href":"/api-reference/errors"}]}]},"title":"API Keys - MailGlyph Docs","buildId":"dpl_cadrRc5H9XQiJQbDFN5mcYRs2PAj","deploymentId":"dpl_cadrRc5H9XQiJQbDFN5mcYRs2PAj","dynamics":[],"chunks":[]}