Step-by-step guide for generating Tinfoil Admin API key for administrative operations
Step 1: Access Your Dashboard
Log into your Tinfoil account and click the “Dashboard” button in the top right corner.Use the account switcher in the top right corner to select “Personal account” to create a key for your personal account, or select an organization to create an organization key. You must be an admin of the selected organization; the Admin Keys tab is hidden for other members. Membership in an organization does not prevent you from creating personal keys in your personal account.
Step 2: Navigate to the Admin Keys tab
Select “Admin Keys” in the dashboard sidebar to access the admin key management page.Admin-key creation does not require active API billing. Creating inference keys with an admin key still requires active token billing for its account.
Step 3: Name Your Admin Key
Click “Create admin key” and enter a name in the “Name” field. The dialog identifies the personal account or organization that the key will belong to.Expand “Advanced options” to restrict the key to specific actions or containers. See Scoped admin keys for details.
Step 4: Create Admin Key
Click the “Create admin key” button to generate your new admin API key.
Personal admin keys access only your personal resources. Organization admin keys access their organization’s resources, including API keys, billing data, and containers.
Do not share admin keys or expose them in browsers, client-side code, or public repositories.
Organization admin keys are automatically revoked when the creator is removed from the organization or demoted from admin.
Step 5: Copy Your Admin Key
Your new admin key appears in the list. Hover over the key and click the copy button to copy it, or the eye button to reveal the full key. Use “Edit” to rename a key and “Delete” to revoke it.
Step 6: Test Your Key (Optional)
Send a request to the Admin API with your key as a bearer token. For example, to fetch the last 24 hours of usage:
A successful response contains your usage data. Billing routes require an unscoped key; a scoped key receives 403 Forbidden here.
Admin Key Capabilities
Personal admin keys let you manage your personal inference keys, query personal usage metrics, and access personal billing data. Organization admin keys provide the corresponding organization access, plus container management. When listing organization keys, only your own keys are returned in full — keys created by other members are masked. Admin-key creation and management require a signed-in dashboard session; an admin key cannot create more admin keys.
For complete documentation of available endpoints, see the Admin API Documentation.
Was this page helpful?
{"docsConfig":{"theme":"palm","$schema":"https://mintlify.com/docs.json","name":"Tinfoil Documentation","colors":{"primary":"#000000","light":"#FFF","dark":"#10b981"},"logo":{"light":"https://mintcdn.com/tinfoil/88cp7OD3LdJ212pW/logo/light.svg?fit=max\u0026auto=format\u0026n=88cp7OD3LdJ212pW\u0026q=85\u0026s=2979401eb34211b050e60ce1bbcd9ad3","dark":"https://mintcdn.com/tinfoil/88cp7OD3LdJ212pW/logo/dark.svg?fit=max\u0026auto=format\u0026n=88cp7OD3LdJ212pW\u0026q=85\u0026s=e3bd669695ac6507f2fa7184aa7435f1"},"favicon":"https://mintcdn.com/tinfoil/42A4QeEI23muYddb/icon-green.svg?fit=max\u0026auto=format\u0026n=42A4QeEI23muYddb\u0026q=85\u0026s=71970b8af4ccdce76a53f7577219a54f","navbar":{"primary":{"type":"button","label":"Dashboard","href":"https://dash.tinfoil.sh"}},"footer":{"socials":{"github":"https://github.com/tinfoilsh","linkedin":"https://linkedin.com/company/Tinfoil","x":"https://x.com/TinfoilAI"}},"seo":{"metatags":{"og:image":"/images/social-banner.jpg"}},"styling":{"codeblocks":"dark","latex":false},"contextual":{"options":["copy","view","cursor"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"tinfoil","hasAudioNarration":false,"actualSubdomain":"tinfoil","customDomains":["docs.tinfoil.sh"],"gitSource":{"type":"github","owner":"tinfoilsh","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af6439c7867cf503f7c890b","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"default","tag":"Tinfoil Containers","count":28},{"language":"default","tag":"Configuration","count":13},{"language":"default","tag":"Guides","count":13},{"language":"default","tag":"Tinfoil SDKs","count":10},{"language":"default","tag":"Operations","count":8},{"language":"default","tag":"Model catalog","count":7},{"language":"default","tag":"Verification \u0026 Attestation","count":6},{"language":"default","tag":"Tinfoil Chat","count":5},{"language":"default","tag":"Getting Started","count":5},{"language":"default","tag":"Resources","count":5}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"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":"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":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","content":"h1,h2,h3,h4,h5,h6,.dark h1,.dark h2,.dark h3,.dark h4,.dark h5,.dark h6{text-align:left!important}.model-anchor{scroll-margin-top:6rem}.model-id-link code{cursor:pointer;transition:color 0.15s ease, background-color 0.15s ease}.model-id-link:hover code{color:#111827;background-color:#e5e7eb}.dark .model-id-link:hover code{color:#f3f4f6;background-color:#374151}[data-nav-tag=\"Beta\"],.beta-badge{color:#854d0e!important;background-color:#fef9c3!important;border:1px solid #fde047}.dark [data-nav-tag=\"Beta\"],.dark .beta-badge{color:#fde047!important;background-color:#422006!important;border-color:#a16207}.beta-badge{display:inline-block;padding:0.125rem 0.375rem;border-radius:0.375rem;font-size:0.75rem;font-weight:600;line-height:1.25;vertical-align:middle}[class*=\"heading\"],[class*=\"title\"],.markdown h1,.markdown h2,.markdown h3,.markdown h4,.markdown h5,.markdown h6{text-align:left!important}"}],"page":{"pagePath":"admin/get-admin-key","slug":"/admin/get-admin-key","pageMetadata":{"title":"Getting a Tinfoil admin key","description":"Step-by-step guide for generating Tinfoil Admin API key for administrative operations","icon":"user-lock","href":"/admin/get-admin-key"},"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: \"Step-by-step guide for generating Tinfoil Admin API key for administrative operations\"\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`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._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:`3`,id:`step-1-access-your-dashboard`,children:`Step 1: Access Your Dashboard`}),`\n`,_jsxs(_components.p,{children:[`Log into your Tinfoil account and click the `,_jsx(_components.strong,{children:`“Dashboard”`}),` button in the top right corner.`]}),`\n`,_jsxs(_components.p,{children:[`Use the account switcher in the top right corner to select `,_jsx(_components.strong,{children:`“Personal account”`}),` to create a key for your personal account, or select an organization to create an organization key. You must be an admin of the selected organization; the Admin Keys tab is hidden for other members. Membership in an organization does not prevent you from creating personal keys in your personal account.`]}),`\n`,_jsx(Heading,{level:`3`,id:`step-2-navigate-to-the-admin-keys-tab`,children:`Step 2: Navigate to the Admin Keys tab`}),`\n`,_jsxs(_components.p,{children:[`Select `,_jsx(_components.strong,{children:`“Admin Keys”`}),` in the dashboard sidebar to access the admin key management page.`]}),`\n`,_jsx(_components.p,{children:`Admin-key creation does not require active API billing. Creating inference keys with an admin key still requires active token billing for its account.`}),`\n`,_jsx(Heading,{level:`3`,id:`step-3-name-your-admin-key`,children:`Step 3: Name Your Admin Key`}),`\n`,_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`“Create admin key”`}),` and enter a name in the `,_jsx(_components.strong,{children:`“Name”`}),` field. The dialog identifies the personal account or organization that the key will belong to.`]}),`\n`,_jsxs(_components.p,{children:[`Expand `,_jsx(_components.strong,{children:`“Advanced options”`}),` to restrict the key to specific actions or containers. See `,_jsx(_components.a,{href:`/admin/admin-api#scoped-admin-keys`,children:`Scoped admin keys`}),` for details.`]}),`\n`,_jsx(Heading,{level:`3`,id:`step-4-create-admin-key`,children:`Step 4: Create Admin Key`}),`\n`,_jsxs(_components.p,{children:[`Click the `,_jsx(_components.strong,{children:`“Create admin key”`}),` button to generate your new admin API key.`]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Personal admin keys access only your personal resources. Organization admin keys access their organization’s resources, including API keys, billing data, and containers.\nDo not share admin keys or expose them in browsers, client-side code, or public repositories.\nOrganization admin keys are automatically revoked when the creator is removed from the organization or demoted from admin.`})}),`\n`,_jsx(Heading,{level:`3`,id:`step-5-copy-your-admin-key`,children:`Step 5: Copy Your Admin Key`}),`\n`,_jsxs(_components.p,{children:[`Your new admin key appears in the list. Hover over the key and click the `,_jsx(_components.strong,{children:`copy`}),` button to copy it, or the `,_jsx(_components.strong,{children:`eye`}),` button to reveal the full key. Use `,_jsx(_components.strong,{children:`“Edit”`}),` to rename a key and `,_jsx(_components.strong,{children:`“Delete”`}),` to revoke it.`]}),`\n`,_jsx(Heading,{level:`3`,id:`step-6-test-your-key-optional`,children:`Step 6: Test Your Key (Optional)`}),`\n`,_jsx(_components.p,{children:`Send a request to the Admin API with your key as a bearer token. For example, to fetch the last 24 hours of usage:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--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:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.tinfoil.sh/api/billing/usage?time=24h\"`}),_jsx(_components.span,{style:{color:`#D7BA7D`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer \u003cADMIN_KEY>\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`A successful response contains your usage data. Billing routes require an unscoped key; a scoped key receives `,_jsx(_components.code,{children:`403 Forbidden`}),` here.`]}),`\n`,_jsx(Heading,{level:`2`,id:`admin-key-capabilities`,children:`Admin Key Capabilities`}),`\n`,_jsxs(_components.p,{children:[`Personal admin keys let you manage your personal inference keys, query personal usage metrics, and access personal billing data. Organization admin keys provide the corresponding organization access, plus container management. When listing organization keys, only your own keys are returned in full — keys created by other members are masked. Admin-key creation and management require a signed-in dashboard session; an admin key cannot create more admin keys.\nFor complete documentation of available endpoints, see the `,_jsx(_components.a,{href:`/admin/admin-api`,children:`Admin API Documentation`}),`.`]})]})}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":{"codeStyling":"dark","config":{},"pageMetadata":{"title":"Getting a Tinfoil admin key","description":"Step-by-step guide for generating Tinfoil Admin API key for administrative operations","icon":"user-lock","href":"/admin/get-admin-key"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Step 1: Access Your Dashboard","slug":"step-1-access-your-dashboard","depth":3,"children":[]},{"title":"Step 2: Navigate to the Admin Keys tab","slug":"step-2-navigate-to-the-admin-keys-tab","depth":3,"children":[]},{"title":"Step 3: Name Your Admin Key","slug":"step-3-name-your-admin-key","depth":3,"children":[]},{"title":"Step 4: Create Admin Key","slug":"step-4-create-admin-key","depth":3,"children":[]},{"title":"Step 5: Copy Your Admin Key","slug":"step-5-copy-your-admin-key","depth":3,"children":[]},{"title":"Step 6: Test Your Key (Optional)","slug":"step-6-test-your-key-optional","depth":3,"children":[]},{"title":"Admin Key Capabilities","slug":"admin-key-capabilities","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"tinfoil","siteName":"Tinfoil Documentation","title":"Getting a Tinfoil admin key - Tinfoil Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-18T23:39:53.224Z","originalFileLocation":"admin/get-admin-key.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=\"Step-by-step guide for generating Tinfoil Admin API key for administrative operations\">\u003cmeta data-mint-head name=\"application-name\" content=\"Tinfoil Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/tinfoil/sNwaCdz1QwwGxW8p/_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/tinfoil/sNwaCdz1QwwGxW8p/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/tinfoil/sNwaCdz1QwwGxW8p/_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/tinfoil/sNwaCdz1QwwGxW8p/_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/tinfoil/sNwaCdz1QwwGxW8p/_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/tinfoil/sNwaCdz1QwwGxW8p/_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/tinfoil/sNwaCdz1QwwGxW8p/_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/tinfoil/sNwaCdz1QwwGxW8p/_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/tinfoil/sNwaCdz1QwwGxW8p/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Getting a Tinfoil admin key - Tinfoil Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Step-by-step guide for generating Tinfoil Admin API key for administrative operations\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Tinfoil Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.tinfoil.sh/admin/get-admin-key\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://tinfoil.mintlify.site/images/social-banner.jpg\">\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=\"Getting a Tinfoil admin key - Tinfoil Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Step-by-step guide for generating Tinfoil Admin API key for administrative operations\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://tinfoil.mintlify.site/images/social-banner.jpg\">\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/tinfoil/sNwaCdz1QwwGxW8p/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Tinfoil Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#000000\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.tinfoil.sh/admin/get-admin-key\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/admin/get-admin-key.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.tinfoil.sh/#organization\",\"name\":\"Tinfoil Documentation\",\"url\":\"https://docs.tinfoil.sh\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/tinfoil/88cp7OD3LdJ212pW/logo/light.svg?fit=max\u0026auto=format\u0026n=88cp7OD3LdJ212pW\u0026q=85\u0026s=2979401eb34211b050e60ce1bbcd9ad3\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.tinfoil.sh#website\",\"name\":\"Tinfoil Documentation\",\"url\":\"https://docs.tinfoil.sh\",\"publisher\":{\"@id\":\"https://docs.tinfoil.sh/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.tinfoil.sh/admin/get-admin-key#webpage\",\"url\":\"https://docs.tinfoil.sh/admin/get-admin-key\",\"name\":\"Getting a Tinfoil admin key\",\"description\":\"Step-by-step guide for generating Tinfoil Admin API key for administrative operations\",\"dateModified\":\"2026-09-18T23:39:53.224Z\",\"isPartOf\":{\"@id\":\"https://docs.tinfoil.sh#website\"},\"breadcrumb\":{\"@id\":\"https://docs.tinfoil.sh/admin/get-admin-key#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.tinfoil.sh/admin/get-admin-key#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Tinfoil Documentation\",\"item\":\"https://docs.tinfoil.sh\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Getting a Tinfoil admin key\",\"item\":\"https://docs.tinfoil.sh/admin/get-admin-key\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.tinfoil.sh/admin/get-admin-key#article\",\"headline\":\"Getting a Tinfoil admin key\",\"name\":\"Getting a Tinfoil admin key\",\"description\":\"Step-by-step guide for generating Tinfoil Admin API key for administrative operations\",\"url\":\"https://docs.tinfoil.sh/admin/get-admin-key\",\"mainEntityOfPage\":{\"@id\":\"https://docs.tinfoil.sh/admin/get-admin-key#webpage\"},\"image\":\"https://docs.tinfoil.sh/images/social-banner.jpg\",\"dateModified\":\"2026-09-18T23:39:53.224Z\",\"publisher\":{\"@id\":\"https://docs.tinfoil.sh/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.tinfoil.sh#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Tinfoil Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Tinfoil Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/admin/get-admin-key.md","siteName":"Tinfoil Documentation","nav":{"global":null,"groups":[{"group":"Getting Started","pages":[{"title":"Introduction","icon":"book-open","href":"/introduction"},{"title":"Feature status","icon":"list-check","href":"/resources/feature-status"},{"title":"Quickstart","icon":"rocket","href":"/quickstart"},{"title":"Getting a Tinfoil API key","icon":"key","href":"/get-api-key"},{"title":"Creating an organization","icon":"building","href":"/create-organization"}]},{"group":"Model catalog","pages":[{"title":"Overview","icon":"grid-2","href":"/models/overview"},{"title":"Chat models","icon":"comment","href":"/models/chat"},{"title":"Vision models","icon":"eye","href":"/models/vision"},{"title":"Audio models","icon":"waveform-lines","href":"/models/audio"},{"title":"Embedding models","icon":"vector-square","href":"/models/embedding"},{"title":"Decision models","icon":"scale-balanced","href":"/models/decisions"},{"title":"Safety models","icon":"shield-halved","href":"/models/safety"}]},{"group":"Tinfoil SDKs","pages":[{"title":"Overview","icon":"cubes","href":"/sdk/overview"},{"title":"Python","icon":"python","href":"/sdk/python-sdk"},{"title":"JavaScript","icon":"js","href":"/sdk/javascript-sdk"},{"title":"Go","icon":"golang","href":"/sdk/go-sdk"},{"title":"Rust","icon":"rust","href":"/sdk/rust-sdk"},{"title":"Swift","icon":"swift","href":"/sdk/swift-sdk"},{"title":"CLI","icon":"terminal","href":"/sdk/cli-sdk"},{"group":"Resources","expanded":true,"pages":[{"title":"Direct API Access","icon":"code","href":"/sdk/direct-api-access"},{"title":"Prompt caching","icon":"bolt","href":"/sdk/prompt-caching"},{"title":"Error handling","icon":"triangle-exclamation","href":"/sdk/error-handling"}]}]},{"group":"Tinfoil Chat","pages":[{"title":"Tinfoil Chat overview","icon":"message","href":"/chat/overview"},{"title":"Cloud sync \u0026 encryption","icon":"cloud-arrow-up","href":"/chat/cloud-sync"},{"title":"Chat features","icon":"sparkles","href":"/chat/features"},{"title":"Chat settings","icon":"gear","href":"/chat/settings"},{"title":"Data controls \u0026 deletion","icon":"trash","href":"/chat/data-controls"}]},{"group":"Local Proxy","pages":[{"title":"Tinfoil Proxy CLI","icon":"terminal","href":"/local-proxy/cli"},{"title":"Tinfoil Proxy app","icon":"desktop","href":"/local-proxy/app"}]},{"group":"Tinfoil Containers","pages":[{"title":"Overview","icon":"cube","href":"/containers/overview"},{"title":"Your first instance","sidebarTitle":"Quickstart","icon":"rocket","href":"/containers/quickstart"},{"group":"Configuration","pages":[{"group":"tinfoil-config.yml","pages":[{"title":"Configuration reference","sidebarTitle":"Config Reference","icon":"sliders","href":"/containers/configuration"},{"title":"Networking \u0026 routing","sidebarTitle":"Networking \u0026 routing","icon":"network-wired","href":"/containers/config-networking"},{"title":"Runtime \u0026 security","sidebarTitle":"Runtime \u0026 security","icon":"shield-keyhole","href":"/containers/config-runtime"},{"title":"Example configs","sidebarTitle":"Examples","icon":"file-code","href":"/containers/config-examples"}]},{"title":"Building your own image","sidebarTitle":"Building images","icon":"hammer","href":"/containers/building-images"},{"title":"Model weights","sidebarTitle":"Models","icon":"brain-circuit","href":"/containers/models"},{"title":"Private images","icon":"container-storage","href":"/containers/private-images"},{"title":"Secrets \u0026 environment variables","sidebarTitle":"Secrets \u0026 variables","icon":"lock","href":"/containers/secrets-and-env-vars"},{"title":"Private secrets","sidebarTitle":"Private secrets","icon":"vault","tag":"Beta","href":"/containers/private-secrets"},{"title":"Attested keys","icon":"badge-check","tag":"Beta","href":"/containers/attested-keys"},{"title":"Encrypted persistent volumes","sidebarTitle":"Persistent volumes","icon":"hard-drive","tag":"Beta","href":"/containers/encrypted-volumes"},{"title":"Automatic volume unlock","sidebarTitle":"Automatic unlock","icon":"unlock-keyhole","tag":"Beta","href":"/containers/volume-auto-unlock"},{"title":"Custom domains","icon":"globe","href":"/containers/custom-domains"}]},{"group":"Operations","pages":[{"title":"Making requests","sidebarTitle":"Making requests","icon":"paper-plane","href":"/containers/connecting"},{"title":"Attestation from containers","icon":"file-certificate","tag":"Beta","href":"/containers/attestation"},{"title":"Container projects","sidebarTitle":"Projects","icon":"folder-tree","href":"/containers/projects"},{"title":"Instance lifecycle","sidebarTitle":"Instance lifecycle","icon":"power-off","href":"/containers/lifecycle"},{"title":"Updating","icon":"arrows-rotate","href":"/containers/updates"},{"title":"Debug mode","icon":"bug","href":"/containers/debug-mode"},{"title":"Holding an update for review","sidebarTitle":"Hold for review","icon":"flask","href":"/containers/hold-for-review"},{"title":"Managing instances from the CLI","sidebarTitle":"Using the CLI","icon":"terminal","href":"/containers/cli"}]},{"group":"Tutorials","pages":[{"title":"Attested SSH","icon":"laptop-code","tag":"Beta","href":"/containers/attested-ssh"},{"title":"Persistent storage with the buckets sidecar","sidebarTitle":"Persistent storage","icon":"bucket","href":"/containers/persistent-storage"}]},{"group":"Reference","pages":[{"title":"Resource limits \u0026 quotas","sidebarTitle":"Resource limits","icon":"gauge-high","href":"/containers/limits"},{"title":"Production checklist","icon":"clipboard-check","href":"/containers/production-checklist"},{"title":"Troubleshooting","icon":"wrench","href":"/containers/troubleshooting"}]}]},{"group":"Tinfoil Bunkers","tag":"Preview","pages":[{"title":"Getting started","sidebarTitle":"Quickstart","icon":"rocket","href":"/bunkers/quickstart"},{"title":"Bunker features","sidebarTitle":"Features","icon":"toolbox","href":"/bunkers/features"},{"title":"Perimeters and access control","sidebarTitle":"Perimeters","icon":"shield-halved","href":"/bunkers/perimeters"},{"title":"Security and threat model","sidebarTitle":"Security","icon":"lock","href":"/bunkers/security"}]},{"group":"Guides","pages":[{"title":"Reasoning effort","icon":"brain","href":"/guides/reasoning"},{"title":"Web search","icon":"magnifying-glass","href":"/guides/web-search"},{"title":"MCP web-search server","icon":"plug","href":"/guides/mcp-websearch"},{"title":"Privacy filter","icon":"user-shield","href":"/guides/privacy-filter"},{"title":"Proxy encrypted requests through your backend","icon":"server","href":"/guides/proxy-server"},{"title":"Document processing","icon":"file-lines","href":"/guides/document-processing"},{"title":"Image processing","icon":"image","href":"/guides/image-processing"},{"title":"Tool calling","icon":"screwdriver-wrench","href":"/guides/tool-calling"},{"title":"Structured outputs","icon":"brackets-curly","href":"/guides/structured-outputs"},{"title":"Decision outputs","icon":"chart-simple","href":"/guides/decision-outputs"},{"title":"Verification center UI","icon":"certificate","href":"/guides/verification-center"},{"title":"Processing audio","icon":"file-audio","href":"/guides/processing-audio"},{"title":"Add customer-managed keys with passkeys","icon":"fingerprint","href":"/guides/passkey-kit"}]},{"group":"Verification \u0026 Attestation","pages":[{"title":"A primer on secure enclaves","icon":"microchip","href":"/verification/secure-enclave-primer"},{"title":"How verification works in Tinfoil","icon":"shield-check","href":"/verification/verification-in-tinfoil"},{"title":"Backend infrastructure","icon":"diagram-project","href":"/verification/attestation-architecture"},{"title":"CVM image: TCB and reproducible builds","icon":"compact-disc","href":"/verification/cvm-image"},{"title":"Attestation document specifications","icon":"file-contract","href":"/verification/predicate"},{"title":"Encrypted HTTP Body Protocol","icon":"file-shield","href":"/resources/ehbp"}]},{"group":"Tutorials","pages":[{"title":"Using coding agents with Tinfoil hosted models","icon":"robot","href":"/tutorials/coding-agents"},{"title":"Using Tinfoil with LangChain","description":"Use LangChain with Tinfoil.","icon":"link-simple","href":"/tutorials/langchain"}]},{"group":"Admin API","pages":[{"title":"Getting a Tinfoil admin key","icon":"user-lock","href":"/admin/get-admin-key"},{"title":"Admin API documentation","description":"Guide to API key, billing, and container routes available to personal and organization admin API keys","icon":"square-code","href":"/admin/admin-api"}]},{"group":"Resources","pages":[{"title":"Changelog","icon":"clock-rotate-left","href":"/resources/changelog"},{"title":"Status","icon":"heart-pulse","href":"/resources/status"}]}]},"basePath":"","title":"Getting a Tinfoil admin key - Tinfoil Documentation","buildId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","deploymentId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","dynamics":[],"chunks":[]}