API Keys are secure tokens used to authenticate requests to Orq.ai. Each key is scoped to a single project and carries a set of permissions that control what it can do.Two key types are available, chosen by the key’s owner.
Tied to a specific user account and project. Automatically revoked if the user is removed from the organization or project. Use user keys for personal use and local development.
Not tied to any individual user, with a lifecycle independent of user membership. Only workspace admins can create service account keys. Use service account keys for production systems, so access does not break when a team member leaves.
Navigate to Settings > API Keys and select Secret key. The Create new secret key sheet opens with Owned by, Name, Project, Permissions, and Expiration.
The Create new secret key sheet.
2
Choose an owner
Under Owned by, select You to create a User key, or Service account to create a key not tied to any individual user.
3
Set name and project
Enter a Name for the key and select the Project it will have access to.
4
Set permissions
Choose a permission preset. See Permissions below.
5
Set expiration (optional)
Set an Expiration date if the key should automatically become inactive after a certain date.
6
Create and copy the key
Select Create secret key. A Save your key dialog appears showing the token and its permissions summary.
The Save your key dialog appears once after creation.
Click Copy to copy the token.
The token is only shown once. Store it securely before closing this dialog. It cannot be retrieved afterwards.
To cap a key’s cost, token, or requests-per-minute usage, attach a Budget to it. Budget limits reset on the period you configure.
The API Keys management table showing all keys, their type, status, permissions, and actions.
Select the menu on any key to access the following actions:
Edit: update the name, permissions, or expiration date. The owner type cannot be changed after creation.
Duplicate: opens the creation panel pre-filled with the key’s current settings.
Delete: permanently removes the key. This cannot be undone.
A Revoked status means the key belonged to a user who was removed from the organization or project, or it has been revoked manually. Revocation is permanent.
To rotate a key, or to find where every other kind of secret is stored, see Secrets management.
Was this page helpful?
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Orq.ai Documentation","colors":{"primary":"#027f6b","light":"#00d2b5","dark":"#027f6b"},"logo":{"light":"https://mintcdn.com/orqai/OG_14djpK9Yasgfk/images/Orq_ai_Symbol_Dark.svg?fit=max\u0026auto=format\u0026n=OG_14djpK9Yasgfk\u0026q=85\u0026s=d01651850182afdbc6309808b688d470","dark":"https://mintcdn.com/orqai/BYq_L5I_ZDBWL_Pf/images/Orq_ai_Symbol_Light.svg?fit=max\u0026auto=format\u0026n=BYq_L5I_ZDBWL_Pf\u0026q=85\u0026s=3e372f93174202f20c31d2c045af92b9","href":"/ai-gateway/get-started/introduction"},"favicon":"https://mintcdn.com/orqai/rmwcfFw4PPljHRCz/favicon.svg?fit=max\u0026auto=format\u0026n=rmwcfFw4PPljHRCz\u0026q=85\u0026s=1827beca4e1fb46e074d8bda067f3fb1","api":{"openapi":"openapi.json","examples":{"languages":["curl","typescript","python"]}},"background":{"color":{"light":"#f7f6f5","dark":"#171717"}},"navbar":{"links":[],"primary":{"type":"button","label":"Get Started","href":"https://my.orq.ai/auth/signup"}},"footer":{"socials":{"github":"https://github.com/orq-ai","x":"https://x.com/orq_ai","linkedin":"https://www.linkedin.com/company/orqai","website":"https://orq.ai"}},"seo":{"metatags":{"author":"Orq.ai","og:type":"website","og:site_name":"Orq.ai Documentation","og:locale":"en_US","twitter:card":"summary_large_image","twitter:site":"@orq_ai","twitter:creator":"@orq_ai","viewport":"width=device-width, initial-scale=1.0","robots":"index, follow","language":"English"},"organization":{"id":"https://docs.orq.ai/#organization","name":"Orq.ai","legalName":"Orq.AI Holding B.V.","url":"https://orq.ai","logo":"https://docs.orq.ai/images/Orq_ai_Symbol_Dark.svg","sameAs":["https://github.com/orq-ai","https://x.com/orq_ai","https://www.linkedin.com/company/orqai/"]},"indexing":"all"},"fonts":{"heading":{"family":"ES Klarheit Kurrent Semibold","weight":600,"source":"https://framerusercontent.com/assets/HiovZWjG27S5NQhE8dyeECDMc.woff2","format":"woff2"},"body":{"family":"Inter","source":"https://cdn.jsdelivr.net/npm/@fontsource/inter@5.0.8/files/inter-latin-400-normal.woff2","format":"woff2"}},"styling":{"codeblocks":{"theme":{"light":"github-light","dark":"github-dark"}},"latex":true},"integrations":{"posthog":{"apiKey":"phc_MKGkZTCrnrBUKVqT0XxWbfDqCwik8EF2GIob0NhCU3C","apiHost":"https://eu.i.posthog.com"}},"contextual":{"options":["copy","download-spec","chatgpt","claude","view"],"display":"header"},"interaction":{"drilldown":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"orqai","hasAudioNarration":false,"actualSubdomain":"orqai","customDomains":["docs.orq.ai"],"gitSource":{"type":"github","owner":"orq-ai","repo":"orquesta-web","deployBranch":"main","contentDirectory":"documentation/mintlify","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae4a1e5c4061e91428e02a9","collectionId":"e0d2b2d2-ce6b-4897-8927-c2806ac0e47b","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae4a1e5c4061e91428e02a9"},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae4a1e5c4061e91428e02a9","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"API Reference","count":404},{"language":"default","tag":"Platform APIs","count":258},{"language":"default","tag":"Integrations","count":93},{"language":"default","tag":"Orq SDK","count":70},{"language":"default","tag":"AI Gateway","count":69},{"language":"default","tag":"Management APIs","count":68},{"language":"default","tag":"SDK Reference","count":67},{"language":"default","tag":"Cookbooks","count":34},{"language":"default","tag":"Model Providers","count":31},{"language":"default","tag":"Frameworks \u0026 SDKs","count":30}],"searchSettings":{"maxResults":15}},"assistantConfig":{"enableStarterQuestions":true,"enableContextualStarterQuestions":true,"deflection":{"enabled":true,"email":"support@orq.ai","showHelpButton":true}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","content":".nav-anchor img{border-radius:50%}.ig-root{scroll-margin-top:6rem}.ig-search{width:100%;padding:10px 14px 10px 38px;border-radius:8px;border:1px solid rgba(0,0,0,.15);font-size:14px;outline:0;margin-bottom:20px;background:0 0;box-sizing:border-box;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%23999' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m21 21-4.35-4.35M17 11A6 6 0 1 1 5 11a6 6 0 0 1 12 0Z'/%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:12px center}.dark .ig-search{border-color:rgba(255,255,255,.15)}.ig-search:focus{border-color:#027f6b}.ig-tabs{display:flex;border-bottom:1px solid rgba(0,0,0,.1);margin-bottom:20px;gap:0}.dark .ig-tabs{border-bottom-color:rgba(255,255,255,.1)}.ig-tab{padding:8px 16px;background:0 0;border:0;border-bottom:2px solid transparent;margin-bottom:-1px;cursor:pointer;font-size:14px;font-weight:500;color:#888;white-space:nowrap}.ig-tab:hover{color:#027f6b}.dark .ig-tab:hover{color:#677f78}.ig-tab-active{border-bottom-color:#027f6b!important;color:#027f6b!important}.dark .ig-tab-active{border-bottom-color:#677f78!important;color:#677f78!important}.ig-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}@media (max-width:768px){.ig-grid{grid-template-columns:repeat(3,1fr)}}@media (max-width:480px){.ig-grid{grid-template-columns:repeat(2,1fr)}}.ig-card{display:flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid rgba(0,0,0,.1);border-radius:6px;text-decoration:none!important;color:inherit!important;font-size:14px;font-weight:500;transition:background .12s,border-color .12s}.ig-card:hover{background:rgba(2,127,107,.05);border-color:rgba(2,127,107,.25)}.dark .ig-card{border-color:rgba(255,255,255,.1)}.dark .ig-card:hover{background:rgba(103,127,120,.1);border-color:rgba(103,127,120,.3)}.ig-card-icon{width:20px;height:20px;object-fit:contain;flex-shrink:0}.ig-tab-count{display:inline-flex;align-items:center;justify-content:center;margin-left:6px;padding:0 5px;min-width:18px;height:18px;border-radius:9px;font-size:11px;font-weight:600;background:rgba(0,0,0,.08);color:inherit}.dark .ig-tab-count{background:rgba(255,255,255,.12)}.ig-tab-active .ig-tab-count{background:rgba(2,127,107,.15)}.dark .ig-tab-active .ig-tab-count{background:rgba(103,127,120,.25)}.ig-empty{text-align:center;padding:48px 24px;color:#999;font-size:14px;grid-column:1/-1}kbd.key,kbd.key *{color:#fff!important}kbd.key{background:#242424;border-radius:5px;padding:2px 8px;font-size:.85em;display:inline-flex;align-items:center;gap:6px;border:1px solid #3a3a3a;font-family:inherit;white-space:nowrap}#sidebar-content .flex-1:has(>svg.flex-shrink-0){flex:none!important}#sidebar-content{width:16rem!important;min-width:16rem!important}@media (min-width:1024px){.lg\\:pl-56{padding-left:16rem!important}}.topbar-right-container nav[aria-label=Main] .navbar-link a,.topbar-right-container nav[aria-label=Main] .navbar-link a:hover{background-color:transparent!important}@media (min-width:1024px){.topbar-right-container nav[aria-label=Main] ul{gap:1rem!important}.topbar-right-container nav[aria-label=Main] .navbar-link a{padding-left:0!important;padding-right:0!important}#page-title{font-size:2rem!important;line-height:1.2!important}}.nav-tabs-item:has(a[href^='/reference']){display:none!important}#navbar .nav-tabs-item[href='/ai-studio/integrations/overview']{position:relative}#navbar .nav-tabs-item[href='/ai-studio/integrations/overview']::before{content:'';position:absolute;top:50%;left:-12px;transform:translateY(-50%);height:55%;width:1px;background:rgba(0,0,0,.15)}.dark #navbar .nav-tabs-item[href='/ai-studio/integrations/overview']::before{background:rgba(255,255,255,.15)}@media (min-width:1280px){#content-container{padding-left:3rem!important;padding-right:2rem!important}#content-side-layout{max-width:20rem!important}#content-area{width:calc(100% - 20rem)!important}}.md-export-list{display:none}"}],"page":{"pagePath":"ai-studio/organization/api-keys","slug":"/ai-studio/organization/api-keys","pageMetadata":{"title":"API Keys","sidebarTitle":"API Keys","description":"Create and manage project-scoped Orq.ai API keys, choosing user or service account keys with granular permissions for secure API access.","href":"/ai-studio/organization/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 project-scoped Orq.ai API keys, choosing user or service account keys with granular permissions for secure API 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={a:`a`,code:`code`,li:`li`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Accordion,Frame,Heading,Icon,Info,OptimizedImage,Step,Steps,Table,Warning}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Icon)_missingMdxReference(`Icon`,true);if(!Info)_missingMdxReference(`Info`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`what-are-api-keys`,children:`What are API Keys`}),`\n`,_jsxs(_components.p,{children:[`API Keys are secure tokens used to authenticate requests to `,_jsx(_components.strong,{children:`Orq.ai`}),`. Each key is scoped to a single project and carries a set of permissions that control what it can do.`]}),`\n`,_jsx(_components.p,{children:`Two key types are available, chosen by the key’s owner.`}),`\n`,_jsx(Heading,{level:`3`,id:`user-keys`,children:`User keys`}),`\n`,_jsx(_components.p,{children:`Tied to a specific user account and project. Automatically revoked if the user is removed from the organization or project. Use user keys for personal use and local development.`}),`\n`,_jsx(Heading,{level:`3`,id:`service-account-keys`,children:`Service account keys`}),`\n`,_jsx(_components.p,{children:`Not tied to any individual user, with a lifecycle independent of user membership. Only workspace admins can create service account keys. Use service account keys for production systems, so access does not break when a team member leaves.`}),`\n`,_jsx(Heading,{level:`2`,id:`viewing-api-keys`,children:`Viewing API Keys`}),`\n`,_jsxs(_components.p,{children:[`Navigate to `,_jsx(_components.strong,{children:`Settings > API Keys`}),` to see all keys across projects.`]}),`\n`,_jsx(_components.p,{children:`The table shows the following columns:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Created`})}),_jsx(_components.td,{children:`Date the key was created`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Name`})}),_jsx(_components.td,{children:`Key label`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Project`})}),_jsx(_components.td,{children:`The project the key can reach`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Type`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`User`}),` or `,_jsx(_components.code,{children:`Service`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Status`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`Active`}),`, `,_jsx(_components.code,{children:`Disabled`}),`, or `,_jsx(_components.code,{children:`Revoked`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Permissions`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`All`}),`, `,_jsx(_components.code,{children:`Read only`}),`, or `,_jsx(_components.code,{children:`Restricted`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Expiration`})}),_jsxs(_components.td,{children:[`When the key stops authenticating, or `,_jsx(_components.code,{children:`No expiration`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Created by`})}),_jsx(_components.td,{children:`User who created the key`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Use the `,_jsx(`kbd`,{children:_jsx(Icon,{icon:`bars-filter`})}),` menu to filter by `,_jsxs(`kbd`,{children:[_jsx(Icon,{icon:`user`}),` Type`]}),` or `,_jsxs(`kbd`,{children:[_jsx(Icon,{icon:`shield-slash`}),` Permissions`]}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`creating-an-api-key`,children:`Creating an API Key`}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`Open the creation panel`,children:[_jsxs(_components.p,{children:[`Navigate to `,_jsx(_components.strong,{children:`Settings > API Keys`}),` and select `,_jsxs(`kbd`,{className:`key`,children:[_jsx(Icon,{icon:`plus`}),` Secret key`]}),`. The `,_jsx(_components.strong,{children:`Create new secret key`}),` sheet opens with `,_jsx(_components.strong,{children:`Owned by`}),`, `,_jsx(_components.strong,{children:`Name`}),`, `,_jsx(_components.strong,{children:`Project`}),`, `,_jsx(_components.strong,{children:`Permissions`}),`, and `,_jsx(_components.strong,{children:`Expiration`}),`.`]}),_jsx(Frame,{caption:`The Create new secret key sheet.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/orqai/R0k7lBBcZmk-Dpwq/images/api-key-creation-413.png?fit=max\u0026auto=format\u0026n=R0k7lBBcZmk-Dpwq\u0026q=85\u0026s=ad7ad2097878c0883899e1fdce2400b6`,alt:`Create new secret key sheet showing Owned by You and Service account, Name, Project, the Permissions presets All, Restricted, and Read only, and an Expiration field defaulting to Never expires.`,\"data-og-width\":`815`,width:`815`,\"data-og-height\":`746`,height:`746`,\"data-path\":`images/api-key-creation-413.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/R0k7lBBcZmk-Dpwq/images/api-key-creation-413.png?w=280\u0026fit=max\u0026auto=format\u0026n=R0k7lBBcZmk-Dpwq\u0026q=85\u0026s=d4f5d4d4c31a71c72fb6db2122d3b14c 280w, https://mintcdn.com/orqai/R0k7lBBcZmk-Dpwq/images/api-key-creation-413.png?w=560\u0026fit=max\u0026auto=format\u0026n=R0k7lBBcZmk-Dpwq\u0026q=85\u0026s=93080f8f52bdf97a6cfc85702eabbd6b 560w, https://mintcdn.com/orqai/R0k7lBBcZmk-Dpwq/images/api-key-creation-413.png?w=840\u0026fit=max\u0026auto=format\u0026n=R0k7lBBcZmk-Dpwq\u0026q=85\u0026s=fffbe0bd6d332a267f9f159323480a98 840w, https://mintcdn.com/orqai/R0k7lBBcZmk-Dpwq/images/api-key-creation-413.png?w=1100\u0026fit=max\u0026auto=format\u0026n=R0k7lBBcZmk-Dpwq\u0026q=85\u0026s=a27a7728537bfcd0c9c71d463a0597ef 1100w, https://mintcdn.com/orqai/R0k7lBBcZmk-Dpwq/images/api-key-creation-413.png?w=1650\u0026fit=max\u0026auto=format\u0026n=R0k7lBBcZmk-Dpwq\u0026q=85\u0026s=ec6515da8d2f751b3e5476657e2eebde 1650w, https://mintcdn.com/orqai/R0k7lBBcZmk-Dpwq/images/api-key-creation-413.png?w=2500\u0026fit=max\u0026auto=format\u0026n=R0k7lBBcZmk-Dpwq\u0026q=85\u0026s=32b63d6c29d7d480b87ce6099408f292 2500w`})})]}),_jsx(Step,{title:`Choose an owner`,children:_jsxs(_components.p,{children:[`Under `,_jsx(_components.strong,{children:`Owned by`}),`, select `,_jsx(`kbd`,{children:`You`}),` to create a User key, or `,_jsx(`kbd`,{children:`Service account`}),` to create a key not tied to any individual user.`]})}),_jsx(Step,{title:`Set name and project`,children:_jsxs(_components.p,{children:[`Enter a `,_jsx(_components.strong,{children:`Name`}),` for the key and select the `,_jsx(_components.a,{href:`/ai-studio/get-started/projects`,children:_jsx(_components.strong,{children:`Project`})}),` it will have access to.`]})}),_jsx(Step,{title:`Set permissions`,children:_jsxs(_components.p,{children:[`Choose a permission preset. See `,_jsx(_components.a,{href:`#permissions`,children:`Permissions`}),` below.`]})}),_jsx(Step,{title:`Set expiration (optional)`,children:_jsxs(_components.p,{children:[`Set an `,_jsx(_components.strong,{children:`Expiration`}),` date if the key should automatically become inactive after a certain date.`]})}),_jsxs(Step,{title:`Create and copy the key`,children:[_jsxs(_components.p,{children:[`Select `,_jsx(_components.strong,{children:`Create secret key`}),`. A `,_jsx(_components.strong,{children:`Save your key`}),` dialog appears showing the token and its permissions summary.`]}),_jsx(Frame,{caption:`The Save your key dialog appears once after creation.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/orqai/R0k7lBBcZmk-Dpwq/images/api-key-save-413.png?fit=max\u0026auto=format\u0026n=R0k7lBBcZmk-Dpwq\u0026q=85\u0026s=c4105ef4543788f38feca118433d03bc`,alt:`Save your key dialog showing the API key token with a Copy button and a Permissions summary reading Read and write API resources.`,\"data-og-width\":`817`,width:`817`,\"data-og-height\":`409`,height:`409`,\"data-path\":`images/api-key-save-413.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/R0k7lBBcZmk-Dpwq/images/api-key-save-413.png?w=280\u0026fit=max\u0026auto=format\u0026n=R0k7lBBcZmk-Dpwq\u0026q=85\u0026s=9b4ff117277aa22a0a867bab708f323e 280w, https://mintcdn.com/orqai/R0k7lBBcZmk-Dpwq/images/api-key-save-413.png?w=560\u0026fit=max\u0026auto=format\u0026n=R0k7lBBcZmk-Dpwq\u0026q=85\u0026s=8b7b462c1540ac28059a86793b6db4c4 560w, https://mintcdn.com/orqai/R0k7lBBcZmk-Dpwq/images/api-key-save-413.png?w=840\u0026fit=max\u0026auto=format\u0026n=R0k7lBBcZmk-Dpwq\u0026q=85\u0026s=263e897c5b950ff57d4d63a26443a7c8 840w, https://mintcdn.com/orqai/R0k7lBBcZmk-Dpwq/images/api-key-save-413.png?w=1100\u0026fit=max\u0026auto=format\u0026n=R0k7lBBcZmk-Dpwq\u0026q=85\u0026s=64b00cd1038d48a003e19cf3a9efbcd1 1100w, https://mintcdn.com/orqai/R0k7lBBcZmk-Dpwq/images/api-key-save-413.png?w=1650\u0026fit=max\u0026auto=format\u0026n=R0k7lBBcZmk-Dpwq\u0026q=85\u0026s=a695b1bd3ba19681a5a3f36435f3b469 1650w, https://mintcdn.com/orqai/R0k7lBBcZmk-Dpwq/images/api-key-save-413.png?w=2500\u0026fit=max\u0026auto=format\u0026n=R0k7lBBcZmk-Dpwq\u0026q=85\u0026s=e42228f89c27ae2e7327a832ec3a0180 2500w`})}),_jsxs(_components.p,{children:[`Click `,_jsxs(`kbd`,{children:[_jsx(Icon,{icon:`copy`}),` Copy`]}),` to copy the token.`]}),_jsx(Warning,{children:_jsx(_components.p,{children:`The token is only shown once. Store it securely before closing this dialog. It cannot be retrieved afterwards.`})})]})]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`To cap a key’s `,_jsx(_components.strong,{children:`cost`}),`, `,_jsx(_components.strong,{children:`token`}),`, or `,_jsx(_components.strong,{children:`requests-per-minute`}),` usage, attach a `,_jsx(_components.a,{href:`/ai-gateway/budgets`,children:`Budget`}),` to it. Budget limits reset on the period you configure.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`permissions`,children:`Permissions`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Preset`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`All`})}),_jsx(_components.td,{children:`Read and write access to all API resources`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Read only`})}),_jsx(_components.td,{children:`Read access to all API resources`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Restricted`})}),_jsx(_components.td,{children:`Custom per-resource access`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`With `,_jsx(_components.strong,{children:`Restricted`}),`, set the permission for each resource individually: `,_jsx(Icon,{icon:`shield-slash`}),` `,_jsx(_components.strong,{children:`None`}),`, `,_jsx(Icon,{icon:`book-open`}),` `,_jsx(_components.strong,{children:`Read`}),`, or `,_jsx(Icon,{icon:`pen`}),` `,_jsx(_components.strong,{children:`Write`}),`.`]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Write`}),` permission automatically includes `,_jsx(_components.strong,{children:`Read`}),` where Read is available for the endpoint.`]})}),`\n`,_jsx(Accordion,{title:`Restricted permission resources`,id:`restricted-permission-resources`,children:_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Resource`}),_jsxs(_components.th,{style:{textAlign:`center`},children:[_jsx(Icon,{icon:`shield-slash`}),` None`]}),_jsxs(_components.th,{style:{textAlign:`center`},children:[_jsx(Icon,{icon:`book-open`}),` Read`]}),_jsxs(_components.th,{style:{textAlign:`center`},children:[_jsx(Icon,{icon:`pen`}),` Write`]})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Agent schedules`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Agents`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Annotations`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Chunking`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Datasets`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Deployments`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Evaluators`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Feedback`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Files`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Guardrail rules`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Human evaluations`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Identities`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Knowledge bases`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Memory stores`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Policies`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Projects`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Prompts`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Reporting`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`}})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Routing rules`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Skills`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Tools`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Gateway`})}),_jsx(_components.td,{style:{textAlign:`center`}}),_jsx(_components.td,{style:{textAlign:`center`}}),_jsx(_components.td,{style:{textAlign:`center`}})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Chat completions`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`}}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Embeddings`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`}}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Images`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`}}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Models`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`}})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Moderations`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`}}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`OCR`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`}}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Rerank`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`}}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Responses`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Speech`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`}}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Transcriptions`}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`}),_jsx(_components.td,{style:{textAlign:`center`}}),_jsx(_components.td,{style:{textAlign:`center`},children:`✓`})]})]})]})}),`\n`,_jsx(Heading,{level:`2`,id:`managing-keys`,children:`Managing Keys`}),`\n`,_jsx(Frame,{caption:`The API Keys management table showing all keys, their type, status, permissions, and actions.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/orqai/R0k7lBBcZmk-Dpwq/images/api-key-list-413.png?fit=max\u0026auto=format\u0026n=R0k7lBBcZmk-Dpwq\u0026q=85\u0026s=7c6f3bc230d5aec446f674efd10761d7`,alt:`API Keys management table listing keys with columns for name, type, status, permissions, and created by.`,\"data-og-width\":`1424`,width:`1424`,\"data-og-height\":`610`,height:`610`,\"data-path\":`images/api-key-list-413.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/R0k7lBBcZmk-Dpwq/images/api-key-list-413.png?w=280\u0026fit=max\u0026auto=format\u0026n=R0k7lBBcZmk-Dpwq\u0026q=85\u0026s=e21c9808dccb69601ce9ddd0ab8e1bdb 280w, https://mintcdn.com/orqai/R0k7lBBcZmk-Dpwq/images/api-key-list-413.png?w=560\u0026fit=max\u0026auto=format\u0026n=R0k7lBBcZmk-Dpwq\u0026q=85\u0026s=5e81c9d549538574ddbfd93e46055abe 560w, https://mintcdn.com/orqai/R0k7lBBcZmk-Dpwq/images/api-key-list-413.png?w=840\u0026fit=max\u0026auto=format\u0026n=R0k7lBBcZmk-Dpwq\u0026q=85\u0026s=9534bea3b79d234f387053b50a580589 840w, https://mintcdn.com/orqai/R0k7lBBcZmk-Dpwq/images/api-key-list-413.png?w=1100\u0026fit=max\u0026auto=format\u0026n=R0k7lBBcZmk-Dpwq\u0026q=85\u0026s=0a3b6bdfe6fd736285808626c1d52c50 1100w, https://mintcdn.com/orqai/R0k7lBBcZmk-Dpwq/images/api-key-list-413.png?w=1650\u0026fit=max\u0026auto=format\u0026n=R0k7lBBcZmk-Dpwq\u0026q=85\u0026s=6580405bc5ae435730fda94a35656d0e 1650w, https://mintcdn.com/orqai/R0k7lBBcZmk-Dpwq/images/api-key-list-413.png?w=2500\u0026fit=max\u0026auto=format\u0026n=R0k7lBBcZmk-Dpwq\u0026q=85\u0026s=c41dd946c7a6db1c017d55eceff246ab 2500w`})}),`\n`,_jsxs(_components.p,{children:[`Select the `,_jsx(`kbd`,{children:_jsx(Icon,{icon:`ellipsis`})}),` menu on any key to access the following actions:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsxs(`kbd`,{children:[_jsx(Icon,{icon:`pen`}),` Edit`]}),`: update the name, permissions, or expiration date. The owner type cannot be changed after creation.`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(`kbd`,{children:[_jsx(Icon,{icon:`copy`}),` Duplicate`]}),`: opens the creation panel pre-filled with the key’s current settings.`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(`kbd`,{children:[_jsx(Icon,{icon:`trash`,color:`red`}),` `,_jsx(`span`,{style:{color:`red`},children:`Delete`})]}),`: permanently removes the key. This cannot be undone.`]}),`\n`]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`A `,_jsx(_components.strong,{children:`Revoked`}),` status means the key belonged to a user who was removed from the organization or project, or it has been revoked manually. Revocation is permanent.`]})}),`\n`,_jsxs(_components.p,{children:[`To rotate a key, or to find where every other kind of secret is stored, see `,_jsx(_components.a,{href:`/ai-studio/organization/secrets`,children:`Secrets management`}),`.`]})]})}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":{"theme":{"light":"github-light","dark":"github-dark"}},"config":{},"pageMetadata":{"title":"API Keys","sidebarTitle":"API Keys","description":"Create and manage project-scoped Orq.ai API keys, choosing user or service account keys with granular permissions for secure API access.","href":"/ai-studio/organization/api-keys"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"What are API Keys","slug":"what-are-api-keys","depth":2,"children":[{"title":"User keys","slug":"user-keys","depth":3,"children":[]},{"title":"Service account keys","slug":"service-account-keys","depth":3,"children":[]}]},{"title":"Viewing API Keys","slug":"viewing-api-keys","depth":2,"children":[]},{"title":"Creating an API Key","slug":"creating-an-api-key","depth":2,"children":[]},{"title":"Permissions","slug":"permissions","depth":2,"children":[]},{"title":"Managing Keys","slug":"managing-keys","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/orqai/19ee3574279bbaa0/gtm.js","/_mintlify/custom/orqai/1f1a49b99957b631/commonroom-signals.js"],"subdomain":"orqai","siteName":"Orq.ai Documentation","title":"API Keys - Orq.ai Documentation","contextualStarterQuestions":[{"_id":"6ad9154ba1dcf4479d38f7d2","deploymentId":"68c9bcd7a1b07562da8b036b","questionText":"When should I use service keys?","status":"active","generatedBy":"contextual","path":"ai-studio/organization/api-keys","createdAt":"2026-10-21T19:40:59.865Z","updatedAt":"2026-10-21T19:40:59.865Z","__v":0},{"_id":"6ad9154ba1dcf4479d38f7d0","deploymentId":"68c9bcd7a1b07562da8b036b","questionText":"What are API key types?","status":"active","generatedBy":"contextual","path":"ai-studio/organization/api-keys","createdAt":"2026-10-21T19:40:59.864Z","updatedAt":"2026-10-21T19:40:59.864Z","__v":0},{"_id":"6ad9154ba1dcf4479d38f7d1","deploymentId":"68c9bcd7a1b07562da8b036b","questionText":"How do I create an API key?","status":"active","generatedBy":"contextual","path":"ai-studio/organization/api-keys","createdAt":"2026-10-21T19:40:59.864Z","updatedAt":"2026-10-21T19:40:59.864Z","__v":0}],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-21T19:40:50.648Z","originalFileLocation":"ai-studio/organization/api-keys.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Create and manage project-scoped Orq.ai API keys, choosing user or service account keys with granular permissions for secure API access.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Orq.ai Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"robots\" content=\"index, follow\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/orqai/5zquLIiRlftT1q7X/_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/orqai/5zquLIiRlftT1q7X/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/orqai/5zquLIiRlftT1q7X/_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/orqai/5zquLIiRlftT1q7X/_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/orqai/5zquLIiRlftT1q7X/_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/orqai/5zquLIiRlftT1q7X/_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/orqai/5zquLIiRlftT1q7X/_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/orqai/5zquLIiRlftT1q7X/_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/orqai/5zquLIiRlftT1q7X/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"API Keys - Orq.ai Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create and manage project-scoped Orq.ai API keys, choosing user or service account keys with granular permissions for secure API access.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Orq.ai Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.orq.ai/ai-studio/organization/api-keys\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://orqai.mintlify.app/_mintlify/api/og/v2?division=Identity+%26+Access\u0026amp;title=API+Keys\u0026amp;description=Create+and+manage+project-scoped+Orq.ai+API+keys%2C+choosing+user+or+service+account+keys+with+granular+permissions+for+secure+API+access.\u0026amp;theme=0116d0baa6ba6403f431e631\u0026amp;signature=718d327690f11a35f5f91f59b2bbaf2260d31ad7187d4345db51ac599a5a94d2\">\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 - Orq.ai Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create and manage project-scoped Orq.ai API keys, choosing user or service account keys with granular permissions for secure API access.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://orqai.mintlify.app/_mintlify/api/og/v2?division=Identity+%26+Access\u0026amp;title=API+Keys\u0026amp;description=Create+and+manage+project-scoped+Orq.ai+API+keys%2C+choosing+user+or+service+account+keys+with+granular+permissions+for+secure+API+access.\u0026amp;theme=0116d0baa6ba6403f431e631\u0026amp;signature=718d327690f11a35f5f91f59b2bbaf2260d31ad7187d4345db51ac599a5a94d2\">\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/orqai/5zquLIiRlftT1q7X/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Orq.ai Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#027f6b\">\u003cmeta data-mint-head name=\"og:locale\" content=\"en_US\">\u003cmeta data-mint-head name=\"author\" content=\"Orq.ai\">\u003cmeta data-mint-head name=\"twitter:creator\" content=\"@orq_ai\">\u003cmeta data-mint-head name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\u003cmeta data-mint-head name=\"language\" content=\"English\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.orq.ai/ai-studio/organization/api-keys\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/ai-studio/organization/api-keys.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.orq.ai/#organization\",\"name\":\"Orq.ai\",\"legalName\":\"Orq.AI Holding B.V.\",\"url\":\"https://orq.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://docs.orq.ai/images/Orq_ai_Symbol_Dark.svg\"},\"sameAs\":[\"https://github.com/orq-ai\",\"https://x.com/orq_ai\",\"https://www.linkedin.com/company/orqai/\"]},{\"@type\":\"WebSite\",\"@id\":\"https://docs.orq.ai#website\",\"name\":\"Orq.ai Documentation\",\"url\":\"https://docs.orq.ai\",\"publisher\":{\"@id\":\"https://docs.orq.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.orq.ai/ai-studio/organization/api-keys#webpage\",\"url\":\"https://docs.orq.ai/ai-studio/organization/api-keys\",\"name\":\"API Keys\",\"description\":\"Create and manage project-scoped Orq.ai API keys, choosing user or service account keys with granular permissions for secure API access.\",\"dateModified\":\"2026-10-21T19:40:50.648Z\",\"isPartOf\":{\"@id\":\"https://docs.orq.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.orq.ai/ai-studio/organization/api-keys#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.orq.ai/ai-studio/organization/api-keys#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Identity \u0026 Access\",\"item\":\"https://docs.orq.ai/ai-studio/organization/members-teams\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"API Keys\",\"item\":\"https://docs.orq.ai/ai-studio/organization/api-keys\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.orq.ai/ai-studio/organization/api-keys#article\",\"headline\":\"API Keys\",\"name\":\"API Keys\",\"description\":\"Create and manage project-scoped Orq.ai API keys, choosing user or service account keys with granular permissions for secure API access.\",\"url\":\"https://docs.orq.ai/ai-studio/organization/api-keys\",\"mainEntityOfPage\":{\"@id\":\"https://docs.orq.ai/ai-studio/organization/api-keys#webpage\"},\"dateModified\":\"2026-10-21T19:40:50.648Z\",\"publisher\":{\"@id\":\"https://docs.orq.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.orq.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Orq.ai Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Orq.ai Documentation","nav":{"global":null,"tabs":[{"tab":"AI Gateway","pages":[{"title":"AI Gateway","href":"/ai-gateway/get-started/introduction"}]},{"tab":"AI Observability","pages":[{"title":"AI Observability","href":"/ai-studio/observability/quickstart"}]},{"tab":"Managed agents","pages":[{"title":"Managed agents","href":"/ai-studio/ai-engineering/quickstart"}]},{"tab":"Administration","groups":[{"group":"Workspace \u0026 Projects","icon":"building","pages":[{"title":"General Settings","href":"/ai-studio/organization/workspace-settings"},{"title":"Projects in Orq.ai","sidebarTitle":"Projects","href":"/ai-studio/get-started/projects"},{"title":"Favorites","sidebarTitle":"Favorites","href":"/ai-studio/get-started/favorites"},{"title":"Customize the sidebar","sidebarTitle":"Sidebar","href":"/ai-studio/get-started/sidebar"},{"title":"Tabs","sidebarTitle":"Tabs","href":"/ai-studio/get-started/tabs"},{"title":"Chat","sidebarTitle":"Using Chat","href":"/ai-studio/ai-chat/using-chat"}]},{"group":"Identity \u0026 Access","icon":"users-gear","pages":[{"title":"Members and teams","sidebarTitle":"Members and Teams","description":"Manage team members, roles, and project access in Orq.ai. Configure Admin, Developer, and Researcher roles and organize members into teams.","href":"/ai-studio/organization/members-teams"},{"title":"API Keys","sidebarTitle":"API Keys","href":"/ai-studio/organization/api-keys"},{"title":"Management Keys","sidebarTitle":"Management Keys","description":"Create workspace-scoped management keys in Orq.ai to authenticate admin operations on API keys, budgets, projects, and workspace settings.","href":"/ai-studio/organization/management-keys"},{"title":"Workspace Audit Logs","sidebarTitle":"Audit Logs","href":"/ai-studio/organization/audit-logs"},{"title":"Enterprise SSO authentication","sidebarTitle":"Single Sign-On","tag":"Enterprise","href":"/ai-studio/organization/sso"},{"title":"Workload federation","sidebarTitle":"Workload federation","tag":"Enterprise","href":"/ai-studio/organization/workload-federation"},{"title":"Environments for dev, staging, and production","sidebarTitle":"Environments","href":"/ai-studio/organization/environments"},{"title":"Webhooks for real-time notifications","sidebarTitle":"Webhooks","href":"/ai-studio/organization/webhooks"}]},{"group":"Billing \u0026 Usage","icon":"wallet","pages":[{"title":"Pricing","url":"https://orq.ai/pricing","href":"/pricing"},{"title":"Billing and credits","sidebarTitle":"Billing \u0026 Credits","href":"/ai-studio/organization/billing-usage"},{"title":"Budgets","sidebarTitle":"Budgets","href":"/ai-gateway/budgets"}]},{"group":"Security \u0026 Compliance","icon":"shield-halved","pages":[{"title":"Secrets management","sidebarTitle":"Secrets","href":"/ai-studio/organization/secrets"},{"title":"Workspace security controls","sidebarTitle":"Workspace Security","href":"/ai-studio/organization/workspace-security"},{"title":"Data compliance and privacy","sidebarTitle":"Data Compliance","href":"/ai-studio/organization/data-compliance"},{"title":"Data retention","sidebarTitle":"Data Retention","href":"/ai-studio/organization/data-retention"},{"title":"Plugins","sidebarTitle":"Plugins","href":"/ai-gateway/features/plugins/overview"},{"title":"Trust center and compliance","sidebarTitle":"Trust Center","href":"/enterprise/trust"},{"title":"Governing Shadow AI","sidebarTitle":"Shadow AI","href":"/enterprise/shadow-ai"}]},{"group":"Support","icon":"clipboard-check","pages":[{"title":"Status and support","sidebarTitle":"Status \u0026 Support","href":"/status-and-support"}]},{"group":"Enterprise Deployment","icon":"cloud","pages":[{"title":"Deployment Options","href":"/enterprise/deployment-options"},{"title":"VPC deployment on AWS or Azure","sidebarTitle":"VPC Deployment","href":"/enterprise/vpc-deployment"},{"title":"On-premise deployment requirements","sidebarTitle":"On-Prem Requirements","href":"/enterprise/on-prem-requirements"},{"title":"Agent sandbox for on-premise","sidebarTitle":"Agent Sandbox","href":"/enterprise/agent-sandbox"}]}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/ai-studio/integrations/overview"}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/reference/client-libraries"}]},{"tab":"Cookbooks","hidden":true,"pages":[{"title":"Cookbooks","href":"/ai-studio/cookbooks/cookbooks"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog/release-4-17"}]}]},"basePath":"","title":"API Keys - Orq.ai Documentation","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-DXXFP6nH.js","DynamicMarkdown-B54_zNBF.js","zoom-image-lightbox-BG6oD64b.js","lightbox-handle-r17bVUz3.js"]}