Keys follow the format tor_ + base64url-encoded random bytes.
Key types
Workspace key
Created from the authenticated Torpedo dashboard. Can send from any verified domain in the workspace.
Domain-scoped key
Created from the authenticated Torpedo dashboard with a domain selected. Can only send from that specific domain. Use these for multi-tenant setups or to isolate sending by domain.
Test key
A test key lets you try the API on yourself before you send to real users. Create one from
Send a test → Create test key on the dashboard or the API keys page.
It starts with tor_test_ and expires 24 hours after it’s created.
It belongs to the person who created it, and can only send to that person’s own email address and
verified phone number. Sending anywhere else returns 403 (422 for Verify).
Test emails go out from no-reply@torpedo.co.mz and test SMS from the platform sender, so leave out
from, or set it to that sender.
Each workspace gets 10 test emails, 5 test SMS and 20 test verifications. After that,
requests return 429 with code TEST_QUOTA_EXCEEDED. Test sends don’t use your trial or credits.
Test keys can’t send email batches.
Verify also accepts sandbox numbers with a test key. They
simulate delivery and failure without sending anything.
Getting your key
Keys are returned once only at creation time and cannot be retrieved again. If you lose a key:
Revoke it from the dashboard or with DELETE /api/v1/auth/keys/{id}
Create a new one from the dashboard
Security best practices
Never expose API keys in client-side code, public repositories, or browser environments. Keys
grant full send access on behalf of your domain.
Store keys in environment variables (TORPEDO_API_KEY)
Use domain-scoped keys when possible — limits blast radius if a key leaks
Rotate keys periodically using the revoke + create flow
Set up webhooks to monitor for unexpected sending activity
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Torpedo","colors":{"primary":"#F01849","light":"#F01849","dark":"#F01849"},"logo":{"light":"https://mintcdn.com/torpedo/5D3zWxy0woBnBMfT/logo/light.svg?fit=max\u0026auto=format\u0026n=5D3zWxy0woBnBMfT\u0026q=85\u0026s=b5f27ac442b9a15dcb04dd30c9936723","dark":"https://mintcdn.com/torpedo/KyYyOtq94owr4vub/logo/dark.svg?fit=max\u0026auto=format\u0026n=KyYyOtq94owr4vub\u0026q=85\u0026s=ace4f52302084424c6b11d68c579820f"},"favicon":"https://mintcdn.com/torpedo/5D3zWxy0woBnBMfT/logo/light.svg?fit=max\u0026auto=format\u0026n=5D3zWxy0woBnBMfT\u0026q=85\u0026s=b5f27ac442b9a15dcb04dd30c9936723","api":{"openapi":"openapi.yaml","mdx":{"auth":{"method":"key","name":"X-API-Key"},"server":"https://api.torpedo.co.mz"}},"background":{},"navbar":{"links":[{"href":"https://torpedo.co.mz","label":"Dashboard"}],"primary":{"type":"button","label":"Get started","href":"https://torpedo.co.mz/signup"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"torpedo","hasAudioNarration":false,"actualSubdomain":"torpedo","customDomains":["torpedo.co.mz"],"gitSource":{"type":"github","owner":"eliotovele","repo":"torpedo","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6acf794d240b3e779c8161b6","clientVersion":"0.0.4304","searchFilterCounts":[{"language":"default","tag":"API Reference","count":28},{"language":"default","tag":"Documentation","count":15},{"language":"default","tag":"Verify","count":7},{"language":"default","tag":"Getting started","count":5},{"language":"default","tag":"Email","count":5},{"language":"default","tag":"SMS","count":5},{"language":"default","tag":"Domains","count":5},{"language":"default","tag":"Emails","count":4},{"language":"default","tag":"Webhooks","count":4},{"language":"default","tag":"SDKs","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"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":"site-roles","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":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"authentication","slug":"/authentication","pageMetadata":{"title":"Authentication","description":"How API key authentication works in Torpedo","href":"/authentication"},"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: \"How API key authentication works in Torpedo\"\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`,hr:`hr`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`api-keys`,children:`API keys`}),`\n`,_jsxs(_components.p,{children:[`All public developer API requests require an API key passed in the `,_jsx(_components.code,{children:`X-API-Key`}),` header.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.torpedo.co.mz/api/v1/emails`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-API-Key: tor_your_key_here\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Keys follow the format `,_jsx(_components.code,{children:`tor_`}),` + base64url-encoded random bytes.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`key-types`,children:`Key types`}),`\n`,_jsx(Heading,{level:`3`,id:`workspace-key`,children:`Workspace key`}),`\n`,_jsxs(_components.p,{children:[`Created from the authenticated Torpedo dashboard. Can send from `,_jsx(_components.strong,{children:`any`}),` verified domain in the workspace.`]}),`\n`,_jsx(Heading,{level:`3`,id:`domain-scoped-key`,children:`Domain-scoped key`}),`\n`,_jsx(_components.p,{children:`Created from the authenticated Torpedo dashboard with a domain selected. Can only send from that specific domain. Use these for multi-tenant setups or to isolate sending by domain.`}),`\n`,_jsx(Heading,{level:`3`,id:`test-key`,children:`Test key`}),`\n`,_jsxs(_components.p,{children:[`A test key lets you try the API on yourself before you send to real users. Create one from\n`,_jsx(_components.strong,{children:`Send a test → Create test key`}),` on the dashboard or the `,_jsx(_components.strong,{children:`API keys`}),` page.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`It starts with `,_jsx(_components.code,{children:`tor_test_`}),` and expires `,_jsx(_components.strong,{children:`24 hours`}),` after it’s created.`]}),`\n`,_jsxs(_components.li,{children:[`It belongs to the person who created it, and can only send to that person’s own email address and\nverified phone number. Sending anywhere else returns `,_jsx(_components.code,{children:`403`}),` (`,_jsx(_components.code,{children:`422`}),` for Verify).`]}),`\n`,_jsxs(_components.li,{children:[`Test emails go out from `,_jsx(_components.code,{children:`no-reply@torpedo.co.mz`}),` and test SMS from the platform sender, so leave out\n`,_jsx(_components.code,{children:`from`}),`, or set it to that sender.`]}),`\n`,_jsxs(_components.li,{children:[`Each workspace gets `,_jsx(_components.strong,{children:`10`}),` test emails, `,_jsx(_components.strong,{children:`5`}),` test SMS and `,_jsx(_components.strong,{children:`20`}),` test verifications. After that,\nrequests return `,_jsx(_components.code,{children:`429`}),` with code `,_jsx(_components.code,{children:`TEST_QUOTA_EXCEEDED`}),`. Test sends don’t use your trial or credits.`]}),`\n`,_jsx(_components.li,{children:`Test keys can’t send email batches.`}),`\n`,_jsxs(_components.li,{children:[`Verify also accepts `,_jsx(_components.a,{href:`/guides/whatsapp-verify#testing`,children:`sandbox numbers`}),` with a test key. They\nsimulate delivery and failure without sending anything.`]}),`\n`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`getting-your-key`,children:`Getting your key`}),`\n`,_jsxs(_components.p,{children:[`Keys are returned `,_jsx(_components.strong,{children:`once only`}),` at creation time and cannot be retrieved again. If you lose a key:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Revoke it from the dashboard or with `,_jsx(_components.code,{children:`DELETE /api/v1/auth/keys/{id}`})]}),`\n`,_jsx(_components.li,{children:`Create a new one from the dashboard`}),`\n`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`security-best-practices`,children:`Security best practices`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Never expose API keys in client-side code, public repositories, or browser environments. Keys\ngrant full send access on behalf of your domain.`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Store keys in environment variables (`,_jsx(_components.code,{children:`TORPEDO_API_KEY`}),`)`]}),`\n`,_jsx(_components.li,{children:`Use domain-scoped keys when possible — limits blast radius if a key leaks`}),`\n`,_jsx(_components.li,{children:`Rotate keys periodically using the revoke + create flow`}),`\n`,_jsx(_components.li,{children:`Set up webhooks to monitor for unexpected sending activity`}),`\n`]})]})}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":"Authentication","description":"How API key authentication works in Torpedo","href":"/authentication"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"API keys","slug":"api-keys","depth":2,"children":[]},{"title":"Key types","slug":"key-types","depth":2,"children":[{"title":"Workspace key","slug":"workspace-key","depth":3,"children":[]},{"title":"Domain-scoped key","slug":"domain-scoped-key","depth":3,"children":[]},{"title":"Test key","slug":"test-key","depth":3,"children":[]}]},{"title":"Getting your key","slug":"getting-your-key","depth":2,"children":[]},{"title":"Security best practices","slug":"security-best-practices","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"torpedo","siteName":"Torpedo","title":"Authentication - Torpedo","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-14T12:37:30.727Z","originalFileLocation":"authentication.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=\"How API key authentication works in Torpedo\">\u003cmeta data-mint-head name=\"application-name\" content=\"Torpedo\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/torpedo/sv4o5Ikpfo_0n2jD/_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=\"/docs/mintlify-assets/_mintlify/favicons/torpedo/sv4o5Ikpfo_0n2jD/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/torpedo/sv4o5Ikpfo_0n2jD/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/torpedo/sv4o5Ikpfo_0n2jD/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/torpedo/sv4o5Ikpfo_0n2jD/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/torpedo/sv4o5Ikpfo_0n2jD/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/torpedo/sv4o5Ikpfo_0n2jD/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/torpedo/sv4o5Ikpfo_0n2jD/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/torpedo/sv4o5Ikpfo_0n2jD/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Authentication - Torpedo\">\u003cmeta data-mint-head property=\"og:description\" content=\"How API key authentication works in Torpedo\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Torpedo\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://torpedo.co.mz/docs/authentication\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://torpedo.mintlify.site/docs/_mintlify/api/og/v2?division=Getting+started\u0026amp;title=Authentication\u0026amp;description=How+API+key+authentication+works+in+Torpedo\u0026amp;theme=71e11f4875eb412a8d1d3afa\u0026amp;signature=f66bc38c8997e1044504c85ae4f10f5df8dcb3701dfbec4f9e17bdeac144a996\">\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=\"Authentication - Torpedo\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"How API key authentication works in Torpedo\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://torpedo.mintlify.site/docs/_mintlify/api/og/v2?division=Getting+started\u0026amp;title=Authentication\u0026amp;description=How+API+key+authentication+works+in+Torpedo\u0026amp;theme=71e11f4875eb412a8d1d3afa\u0026amp;signature=f66bc38c8997e1044504c85ae4f10f5df8dcb3701dfbec4f9e17bdeac144a996\">\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=\"/docs/mintlify-assets/_mintlify/favicons/torpedo/sv4o5Ikpfo_0n2jD/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Torpedo\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#F01849\">\u003clink data-mint-head rel=\"canonical\" href=\"https://torpedo.co.mz/docs/authentication\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/authentication.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://torpedo.co.mz/#organization\",\"name\":\"Torpedo\",\"url\":\"https://torpedo.co.mz\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/torpedo/5D3zWxy0woBnBMfT/logo/light.svg?fit=max\u0026auto=format\u0026n=5D3zWxy0woBnBMfT\u0026q=85\u0026s=b5f27ac442b9a15dcb04dd30c9936723\"}},{\"@type\":\"WebSite\",\"@id\":\"https://torpedo.co.mz/docs#website\",\"name\":\"Torpedo\",\"url\":\"https://torpedo.co.mz/docs\",\"publisher\":{\"@id\":\"https://torpedo.co.mz/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://torpedo.co.mz/docs/authentication#webpage\",\"url\":\"https://torpedo.co.mz/docs/authentication\",\"name\":\"Authentication\",\"description\":\"How API key authentication works in Torpedo\",\"dateModified\":\"2026-10-14T12:37:30.727Z\",\"isPartOf\":{\"@id\":\"https://torpedo.co.mz/docs#website\"},\"breadcrumb\":{\"@id\":\"https://torpedo.co.mz/docs/authentication#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://torpedo.co.mz/docs/authentication#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Getting started\",\"item\":\"https://torpedo.co.mz/docs/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Authentication\",\"item\":\"https://torpedo.co.mz/docs/authentication\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://torpedo.co.mz/docs/authentication#article\",\"headline\":\"Authentication\",\"name\":\"Authentication\",\"description\":\"How API key authentication works in Torpedo\",\"url\":\"https://torpedo.co.mz/docs/authentication\",\"mainEntityOfPage\":{\"@id\":\"https://torpedo.co.mz/docs/authentication#webpage\"},\"dateModified\":\"2026-10-14T12:37:30.727Z\",\"publisher\":{\"@id\":\"https://torpedo.co.mz/#organization\"},\"isPartOf\":{\"@id\":\"https://torpedo.co.mz/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Torpedo\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Torpedo\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/authentication.md","siteName":"Torpedo","nav":{"global":null,"tabs":[{"tab":"Documentation","groups":[{"group":"Getting started","pages":[{"title":"Introduction","href":"/introduction"},{"title":"Quickstart","description":"Send your first email in under 5 minutes","href":"/quickstart"},{"title":"Authentication","href":"/authentication"},{"title":"Errors","description":"Error response format and HTTP status codes","href":"/errors"},{"title":"MCP server","href":"/mcp-server"}]},{"group":"SDKs","pages":[{"title":"TypeScript SDK","href":"/guides/typescript-sdk"},{"title":"Java SDK","href":"/guides/java-sdk"}]},{"group":"Email","pages":[{"title":"Verify a domain","href":"/guides/verify-domain"},{"title":"Send an email","href":"/guides/send-email"},{"title":"Send emails in batch","href":"/guides/batch-emails"},{"title":"Webhooks","href":"/guides/webhooks"},{"title":"Manage suppressions","href":"/guides/manage-suppressions"}]},{"group":"SMS","pages":[{"title":"Send an SMS","href":"/guides/send-sms"},{"title":"SMS credits","href":"/guides/sms-credits"}]},{"group":"WhatsApp","pages":[{"title":"Verify phone numbers on WhatsApp","href":"/guides/whatsapp-verify"}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/api-keys/list-api-keys"}]}]},"basePath":"","title":"Authentication - Torpedo","deploymentId":"dpl_9NURmhhAnEA2MBJSAbn1GXd2czCa","buildId":"dpl_9NURmhhAnEA2MBJSAbn1GXd2czCa","dynamics":[],"chunks":[]}