Create and manage API keys for agent and integration access.
API keys allow tools and agents to access Miles on your behalf. The Miles skill creates a key automatically during its first approved login. You can also create and revoke keys from Settings → API Keys.
Key safety
treat API keys like passwords
do not paste keys into public repos, tickets, or chats
revoke keys you no longer use
create separate keys for separate tools when possible
When to rotate a key
Revoke a key if it was exposed, copied into the wrong place, shared with the wrong person, or used by a tool you no longer trust. A newly created key is shown only once, so copy it to the intended tool before closing the dialog.
⌘I
{"docsConfig":{"theme":"almond","$schema":"https://mintlify.com/docs.json","name":"Miles Docs","description":"Miles is an AI agent built specifically for WordPress. You can use Miles inside WordPress, start fresh in a Miles design sandbox, or connect it to a coding agent like Claude, Codex, Cursor, or OpenCode.","colors":{"primary":"#C4A882","light":"#C4A882","dark":"#C4A882"},"logo":{"light":"https://mintcdn.com/bymiles/t9YAMBFoVNNNG8N2/images/brand/miles-logo.png?fit=max\u0026auto=format\u0026n=t9YAMBFoVNNNG8N2\u0026q=85\u0026s=d6a86fa4aed1d6cff191342f0c89e9fd","dark":"https://mintcdn.com/bymiles/t9YAMBFoVNNNG8N2/images/brand/miles-logo.png?fit=max\u0026auto=format\u0026n=t9YAMBFoVNNNG8N2\u0026q=85\u0026s=d6a86fa4aed1d6cff191342f0c89e9fd"},"appearance":{"default":"dark","strict":true},"background":{"decoration":"gradient"},"navbar":{"links":[{"href":"https://app.bymiles.ai","label":"Sign in"}],"primary":{"type":"button","label":"Try Miles","href":"https://app.bymiles.ai"}},"footer":{"socials":{"github":"https://github.com/bymilesai","x":"https://x.com/bymilesai"}},"seo":{"metatags":{"canonical":"https://docs.bymiles.ai"}},"fonts":{"family":"Plus Jakarta Sans"},"icons":{"library":"lucide"},"styling":{"codeblocks":"dark","latex":false},"contextual":{"options":["copy","view","assistant"],"display":"toc"},"interaction":{"drilldown":false},"navigation":{"global":{"anchors":[{"anchor":"Introduction","href":"/"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"bymiles","hasAudioNarration":false,"actualSubdomain":"bymiles","customDomains":["docs.bymiles.ai"],"gitSource":{"type":"github","owner":"bymilesai","repo":"docs","deployBranch":"main","contentDirectory":"site","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6af1ec69ea8a9a7a26945ab6","clientVersion":"0.0.4336","searchFilterCounts":[{"language":"default","tag":"Building New Sites","count":11},{"language":"default","tag":"Reference","count":11},{"language":"default","tag":"Miles + Coding Agents","count":9},{"language":"default","tag":"Miles CLI","count":8},{"language":"default","tag":"Account \u0026 Billing","count":7},{"language":"default","tag":"Editing a Site","count":6},{"language":"default","tag":"Getting Started","count":6},{"language":"default","tag":"Using Miles Safely","count":6},{"language":"default","tag":"Plan your site","count":4},{"language":"default","tag":"Build and launch","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":true,"enableContextualStarterQuestions":true,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"support@bymiles.ai"}},"basePath":"","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":"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":"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":"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":"turbopuffer-dual-write","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}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[{"filePath":"brand.css","content":"#almond-background-color+span,#almond-background-color+span+span{background:radial-gradient(\n 49.63% 57.02% at 58.99% -7.2%,\n rgba(13, 120, 150, 0.28) 39.4%,\n rgba(0, 0, 0, 0) 100%\n ),\n radial-gradient(\n 45% 52% at 100% 28%,\n rgba(212, 165, 116, 0.14) 0%,\n rgba(212, 165, 116, 0.06) 38%,\n rgba(0, 0, 0, 0) 72%\n )!important}a.bg-primary-dark[target=\"_blank\"][href=\"https://app.bymiles.ai\"]{background:#fff!important;color:#111!important}a.bg-primary-dark[target=\"_blank\"][href=\"https://app.bymiles.ai\"] span{color:#111!important}a.bg-primary-dark[target=\"_blank\"][href=\"https://app.bymiles.ai\"]:hover{background:#f3f3f1!important}.sidebar-group-header{font-weight:700}.nav-logo{height:2.25rem!important}a.nav-anchor[href=\"/\"]>svg{display:none}a.nav-anchor[href=\"/\"]{width:100%;margin:0;padding:6px 12px 6px 16px!important;gap:0;line-height:20px}body:has(#content[data-page-title=\"Introduction\"]) a.nav-anchor[href=\"/\"]{border-radius:12px;background:rgba(196, 168, 130, 0.1);color:#dec49d!important;text-shadow:-0.2px 0 0 currentColor, 0.2px 0 0 currentColor}#header:has(+#content[data-page-title=\"Introduction\"]){display:none}#content[data-page-title=\"Introduction\"] .introduction-hero{display:flex;max-width:42rem;flex-direction:column;align-items:center;margin:3.5rem auto 4.5rem;text-align:center}#content[data-page-title=\"Introduction\"] .introduction-hero img{width:min(17rem, 80%);height:auto;margin:0}#content[data-page-title=\"Introduction\"] .introduction-hero p{max-width:38rem;margin:1.5rem auto 0;color:rgba(245, 243, 240, 0.72);font-size:1.125rem;line-height:1.6}#content[data-page-title=\"Introduction\"] .card{min-height:0;background:#000}#content[data-page-title=\"Introduction\"] .card [data-component-part=\"card-image\"]{width:100%;height:clamp(6rem, 8.5vw, 7.5rem);min-height:6rem;opacity:0.9;transition:transform 200ms ease, opacity 200ms ease}#content[data-page-title=\"Introduction\"] .card [data-component-part=\"card-icon\"]{position:absolute;top:calc(clamp(6rem, 8.5vw, 7.5rem) - 3.25rem);left:1.5rem;z-index:1;width:2.25rem!important;height:2.25rem!important}#content[data-page-title=\"Introduction\"] .card [data-component-part=\"card-icon\"]>svg{width:2.25rem!important;height:2.25rem!important}#content[data-page-title=\"Introduction\"] .card [data-component-part=\"card-content-container\"]{position:static;display:flex;min-height:0;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding:1.25rem 1.5rem;background:rgba(0, 0, 0, 0.5)}#content[data-page-title=\"Introduction\"] .card [data-component-part=\"card-title\"]{color:#f5f3f0;font-size:1.125rem;line-height:1.5rem;margin-top:0}#content[data-page-title=\"Introduction\"] .card [data-component-part=\"card-content\"]{color:rgba(245, 243, 240, 0.72);font-size:0.9375rem;line-height:1.4}#content[data-page-title=\"Introduction\"] .card:hover [data-component-part=\"card-image\"]{opacity:0.92;transform:scale(1.025)}#content[data-page-title=\"Release notes\"] [data-component-part=\"accordion-title-container\"]{display:flex;width:100%;align-items:center;gap:1rem}#content[data-page-title=\"Release notes\"] [data-component-part=\"accordion-title\"]{display:inline-flex;flex:0 0 auto;align-items:center;padding:0.25rem 0.625rem;border:1px solid rgba(196, 168, 130, 0.34);border-radius:999px;background:rgba(196, 168, 130, 0.1);color:#dec49d;font-size:0.875rem;font-weight:700;line-height:1.25rem;white-space:nowrap}#content[data-page-title=\"Release notes\"] [data-component-part=\"accordion-description\"]{flex:0 0 auto;margin-left:auto;color:rgba(245, 243, 240, 0.58);font-size:0.75rem;font-weight:500;line-height:1.25rem;white-space:nowrap}#content[data-page-title=\"Release notes\"] [data-component-part=\"accordion-content\"]>h4:first-child{margin-top:0}@media (max-width: 480px){#content[data-page-title=\"Release notes\"] [data-component-part=\"accordion-title-container\"]{gap:0.625rem}#content[data-page-title=\"Release notes\"] [data-component-part=\"accordion-title\"]{padding:0.1875rem 0.5rem;font-size:0.8125rem}}"}]}
{"page":{"pagePath":"account/api-keys","slug":"/account/api-keys","pageMetadata":{"title":"API keys","description":"Create and manage API keys for agent and integration access.","href":"/account/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 and manage API keys for agent and integration access.\"\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={li:`li`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Heading}=_components;if(!Heading)_missingMdxReference(`Heading`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`API keys allow tools and agents to access Miles on your behalf. The Miles skill creates a key automatically during its first approved login. You can also create and revoke keys from `,_jsx(_components.strong,{children:`Settings → API Keys`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`key-safety`,children:`Key safety`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`treat API keys like passwords`}),`\n`,_jsx(_components.li,{children:`do not paste keys into public repos, tickets, or chats`}),`\n`,_jsx(_components.li,{children:`revoke keys you no longer use`}),`\n`,_jsx(_components.li,{children:`create separate keys for separate tools when possible`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`when-to-rotate-a-key`,children:`When to rotate a key`}),`\n`,_jsx(_components.p,{children:`Revoke a key if it was exposed, copied into the wrong place, shared with the wrong person, or used by a tool you no longer trust. A newly created key is shown only once, so copy it to the intended tool before closing the dialog.`})]})}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":"API keys","description":"Create and manage API keys for agent and integration access.","href":"/account/api-keys"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Key safety","slug":"key-safety","depth":2,"children":[]},{"title":"When to rotate a key","slug":"when-to-rotate-a-key","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"bymiles","siteName":"Miles Docs","title":"API keys - Miles Docs","contextualStarterQuestions":[{"_id":"6a7b80729061745995d145a0","deploymentId":"6a4fbe2dd9002cb58ed9cbe4","questionText":"How do I create an API key?","status":"active","generatedBy":"contextual","path":"account/api-keys","createdAt":"2026-08-11T20:05:06.707Z","updatedAt":"2026-08-11T20:05:06.707Z","__v":0},{"_id":"6a7b80729061745995d145a2","deploymentId":"6a4fbe2dd9002cb58ed9cbe4","questionText":"How do I keep keys secure?","status":"active","generatedBy":"contextual","path":"account/api-keys","createdAt":"2026-08-11T20:05:06.707Z","updatedAt":"2026-08-11T20:05:06.707Z","__v":0},{"_id":"6a7b80729061745995d145a1","deploymentId":"6a4fbe2dd9002cb58ed9cbe4","questionText":"When should I revoke a key?","status":"active","generatedBy":"contextual","path":"account/api-keys","createdAt":"2026-08-11T20:05:06.707Z","updatedAt":"2026-08-11T20:05:06.707Z","__v":0}],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-03T02:04:21.137Z","originalFileLocation":"account/api-keys.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"dark\";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=\"dark\"}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 and manage API keys for agent and integration access.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Miles Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/bymiles/_generated/favicon/apple-touch-icon.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/bymiles/_generated/favicon/favicon-32x32.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/bymiles/_generated/favicon/favicon-16x16.png?v=3\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/bymiles/_generated/favicon/favicon.ico?v=3\">\u003cmeta data-mint-head property=\"og:title\" content=\"API keys - Miles Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create and manage API keys for agent and integration access.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Miles Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.bymiles.ai/account/api-keys\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://bymiles.mintlify.site/_mintlify/api/og/v2?division=Account+and+security\u0026amp;title=API+keys\u0026amp;description=Create+and+manage+API+keys+for+agent+and+integration+access.\u0026amp;theme=f502736226f34119b0935bef\u0026amp;signature=e276d05ee6c4700d3042eab77ea60a5e09ebba179563657be1582159407010c0\">\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 - Miles Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create and manage API keys for agent and integration access.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://bymiles.mintlify.site/_mintlify/api/og/v2?division=Account+and+security\u0026amp;title=API+keys\u0026amp;description=Create+and+manage+API+keys+for+agent+and+integration+access.\u0026amp;theme=f502736226f34119b0935bef\u0026amp;signature=e276d05ee6c4700d3042eab77ea60a5e09ebba179563657be1582159407010c0\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/bymiles/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Miles Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#C4A882\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.bymiles.ai/account/api-keys\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/account/api-keys.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.bymiles.ai/#organization\",\"name\":\"Miles Docs\",\"url\":\"https://docs.bymiles.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/bymiles/t9YAMBFoVNNNG8N2/images/brand/miles-logo.png?fit=max\u0026auto=format\u0026n=t9YAMBFoVNNNG8N2\u0026q=85\u0026s=d6a86fa4aed1d6cff191342f0c89e9fd\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.bymiles.ai#website\",\"name\":\"Miles Docs\",\"url\":\"https://docs.bymiles.ai\",\"publisher\":{\"@id\":\"https://docs.bymiles.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.bymiles.ai/account/api-keys#webpage\",\"url\":\"https://docs.bymiles.ai/account/api-keys\",\"name\":\"API keys\",\"description\":\"Create and manage API keys for agent and integration access.\",\"dateModified\":\"2026-08-03T02:04:21.137Z\",\"isPartOf\":{\"@id\":\"https://docs.bymiles.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.bymiles.ai/account/api-keys#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.bymiles.ai/account/api-keys#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Account \u0026 Billing\",\"item\":\"https://docs.bymiles.ai/account/settings\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Account and security\",\"item\":\"https://docs.bymiles.ai/account/settings\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"API keys\",\"item\":\"https://docs.bymiles.ai/account/api-keys\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.bymiles.ai/account/api-keys#article\",\"headline\":\"API keys\",\"name\":\"API keys\",\"description\":\"Create and manage API keys for agent and integration access.\",\"url\":\"https://docs.bymiles.ai/account/api-keys\",\"mainEntityOfPage\":{\"@id\":\"https://docs.bymiles.ai/account/api-keys#webpage\"},\"dateModified\":\"2026-08-03T02:04:21.137Z\",\"publisher\":{\"@id\":\"https://docs.bymiles.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.bymiles.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Miles Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Miles Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/account/api-keys.md","siteName":"Miles Docs","nav":{"global":{"anchors":[{"anchor":"Introduction","href":"/"}]},"groups":[{"group":"Getting Started","icon":"rocket","pages":[{"title":"What can Miles do?","href":"/getting-started/what-can-miles-do"},{"title":"How Miles works","href":"/getting-started/how-miles-works"},{"group":"Quick Start","expanded":true,"pages":[{"title":"In a design sandbox","href":"/getting-started/quick-start/design-sandbox"},{"title":"On a WordPress install","href":"/getting-started/quick-start/wordpress-install"},{"title":"With a coding agent","href":"/getting-started/quick-start/coding-agent"}]},{"title":"Choose how to start in WordPress","href":"/getting-started/choose-a-wordpress-path"}]},{"group":"Building New Sites","icon":"blocks","pages":[{"group":"Plan your site","expanded":false,"pages":[{"title":"Choose a starting point","href":"/building-new-sites/choose-a-starting-point"},{"title":"Choosing a theme foundation","href":"/building-new-sites/picking-a-base-theme"},{"title":"Writing a good prompt","href":"/building-new-sites/writing-a-good-prompt"},{"title":"Using existing assets","href":"/building-new-sites/using-existing-assets"}]},{"group":"Shape the design","expanded":false,"pages":[{"title":"Iterating on design directions","href":"/building-new-sites/iterating-on-design-directions"},{"title":"Making a design editable","href":"/building-new-sites/making-a-design-editable"},{"title":"Validating and iterating","href":"/building-new-sites/validating-and-iterating"}]},{"group":"Build and launch","expanded":false,"pages":[{"title":"Your Site Plan","href":"/building-new-sites/site-plan"},{"title":"Creating new pages and sections","href":"/building-new-sites/creating-pages-and-sections"},{"title":"Making sections real","href":"/building-new-sites/making-sections-real"},{"title":"Export or import a design","href":"/building-new-sites/exporting-a-site"}]}]},{"group":"Editing a Site","icon":"pencil","pages":[{"group":"Start safely","expanded":false,"pages":[{"title":"Work with your existing design","href":"/editing-a-site/starting-points"},{"title":"Site protection","href":"/editing-a-site/site-protection"}]},{"group":"Change your site","expanded":false,"pages":[{"title":"Create new pages and sections","href":"/editing-a-site/creating-pages-and-sections"},{"title":"Redesign pages and sections","href":"/editing-a-site/redesigning-pages-and-sections"},{"title":"Make small refinement edits","href":"/editing-a-site/small-refinement-edits"}]},{"group":"Extend your site","expanded":false,"pages":[{"title":"Add new functionality","href":"/editing-a-site/adding-new-functionality"}]}]},{"group":"Miles + Coding Agents","icon":"bot","pages":[{"title":"Why add Miles to your coding agent?","href":"/coding-agent/why-add-miles"},{"group":"Set up Miles","expanded":false,"pages":[{"title":"Add Miles to your coding agent","href":"/coding-agent/adding-miles"},{"title":"Authenticate Miles","href":"/coding-agent/authenticating-miles"}]},{"group":"Use Miles in your workflow","expanded":false,"pages":[{"title":"Use Miles in a project","href":"/coding-agent/working-with-your-agent"},{"title":"Use Miles with other skills","href":"/coding-agent/using-other-skills"},{"title":"Stay involved in Miles work","href":"/coding-agent/managing-agent-work"}]},{"group":"Choose your environment","expanded":false,"pages":[{"title":"Work in a design sandbox","href":"/coding-agent/working-in-a-design-sandbox"},{"title":"Use a local or remote WordPress site","href":"/coding-agent/local-wordpress-site"}]},{"group":"Get help","expanded":false,"pages":[{"title":"Troubleshooting coding-agent work","href":"/coding-agent/troubleshooting"}]}]},{"group":"Account \u0026 Billing","icon":"credit-card","pages":[{"group":"Account and security","expanded":false,"pages":[{"title":"Account settings","description":"Manage profile, authentication, and account preferences.","href":"/account/settings"},{"title":"API keys","href":"/account/api-keys"}]},{"group":"Credits and usage","expanded":false,"pages":[{"title":"Credits","description":"Understand monthly credits, top-up credits, and low-credit behavior.","href":"/account/credits"},{"title":"Usage history","href":"/account/usage"}]},{"group":"Plans and billing","expanded":false,"pages":[{"title":"Billing and invoices","href":"/account/billing"},{"title":"Plans, upgrades, and cancellation","href":"/account/plans"},{"title":"Referrals","href":"/account/referrals"}]}]},{"group":"Using Miles Safely","icon":"shield-check","pages":[{"group":"Work safely","expanded":false,"pages":[{"title":"Site protection","href":"/safety/site-protection"},{"title":"Approval cards and destructive changes","href":"/safety/approval-cards"},{"title":"Backups and reviewing AI output","href":"/safety/backups-and-review"}]},{"group":"Access and content","expanded":false,"pages":[{"title":"How Miles connects to WordPress","href":"/safety/site-access"},{"title":"Uploads and moderation","href":"/safety/uploads-and-moderation"},{"title":"External sites and screenshots","href":"/safety/external-sites"}]}]},{"group":"Reference","icon":"book-open","pages":[{"group":"Miles CLI","expanded":false,"pages":[{"title":"Miles CLI reference","mode":"wide","href":"/reference/miles-cli/overview"},{"title":"Authentication and account","href":"/reference/miles-cli/auth-and-account"},{"title":"Sites and context","href":"/reference/miles-cli/sites-and-context"},{"title":"Design and build","href":"/reference/miles-cli/design-and-build"},{"title":"Jobs and safety","href":"/reference/miles-cli/jobs-and-safety"},{"title":"WordPress and browser connection","href":"/reference/miles-cli/wordpress-and-browser"},{"title":"Files and export","href":"/reference/miles-cli/files-and-export"},{"title":"Lifecycle and compatibility","href":"/reference/miles-cli/lifecycle-and-compatibility"}]},{"title":"Glossary","href":"/reference/glossary"},{"title":"Current limitations","href":"/reference/limits"},{"title":"Troubleshooting","href":"/reference/troubleshooting"}]}]},"basePath":"","title":"API keys - Miles Docs","deploymentId":"dpl_9bQLTw9nc2h9csDGYcKwWenPcQWn","buildId":"dpl_9bQLTw9nc2h9csDGYcKwWenPcQWn","dynamics":[],"chunks":[]}