✓ Organization API Key Created Successfully⚠ Save the API key below — it will not be shown again. API Key: cko_xxxxxxxxxxxxxxxxxxxx Key Prefix: cko_xxxxxxxx Key ID: abc123-def456 Name: CI Deploy Key Scopes: deploy:use-case, workflows:trigger Created: 3/30/2026 Request ID: req-789 Saved as profile "org-api-key-ci-deploy-key" (now active)
The raw key is displayed only once at creation time. Store it securely — it cannot be retrieved later.
CLI validation error (e.g., missing --organization-id, --name, or --scopes)
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Codika Documentation","colors":{"primary":"#1E1432","light":"#A78BFA","dark":"#150E24"},"logo":{"light":"https://mintcdn.com/codik/669sNKcF-mlTUYhq/logo/light.svg?fit=max\u0026auto=format\u0026n=669sNKcF-mlTUYhq\u0026q=85\u0026s=69765419cac8524473a2c1ede193ed5f","dark":"https://mintcdn.com/codik/669sNKcF-mlTUYhq/logo/dark.svg?fit=max\u0026auto=format\u0026n=669sNKcF-mlTUYhq\u0026q=85\u0026s=ffc9cee912f475bda417cbdeb662e2d7","href":"https://codika.io"},"favicon":"https://mintcdn.com/codik/669sNKcF-mlTUYhq/favicon.svg?fit=max\u0026auto=format\u0026n=669sNKcF-mlTUYhq\u0026q=85\u0026s=92cf4f504203ddea7501896d5fa216a7","appearance":{"default":"system"},"background":{"color":{"light":"#FDFCFB","dark":"#0A0F1E"}},"navbar":{"links":[{"href":"mailto:team@codika.io","label":"Support"}],"primary":{"type":"button","label":"Get Started","href":"https://app.codika.io"}},"footer":{"socials":{"github":"https://github.com/codika-io","linkedin":"https://linkedin.com/company/codika"}},"fonts":{"heading":{"family":"Satoshi","weight":700,"source":"https://cdn.fontshare.com/wf/BNPRT3ODDLFBWCXYJT3DHQD5HQ6KXIUF/TQZKMSQ7LSXFQXBNSJKXWQR3KMBNHYXW/SATOSHI-BOLD.woff2","format":"woff2"},"body":{"family":"Geist"}},"contextual":{"options":["copy","view","claude","cursor","mcp"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/codika-io"},{"anchor":"Platform","icon":"rocket","href":"https://app.codika.io"},{"anchor":"Website","icon":"globe","href":"https://codika.io"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"codik","hasAudioNarration":false,"actualSubdomain":"codik","customDomains":["doc.codika.io"],"gitSource":{"type":"github","owner":"codika-io","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae948d5d5c3fa078e8a0d9b:success","clientVersion":"0.0.4111","searchFilterCounts":[{"language":"default","tag":"Documentation","count":29},{"language":"default","tag":"CLI Reference","count":27},{"language":"default","tag":"Operate","count":13},{"language":"default","tag":"Guides","count":11},{"language":"default","tag":"Core Concepts","count":8},{"language":"default","tag":"Dashboard Integration","count":6},{"language":"default","tag":"Setup","count":6},{"language":"default","tag":"Examples","count":5},{"language":"default","tag":"Deploy","count":5},{"language":"default","tag":"Builder System","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"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":"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":"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}],"googleFontsInlined":true},"customCss":[],"page":{"pagePath":"operations/create-organization-key","slug":"/operations/create-organization-key","pageMetadata":{"title":"Create Organization Key","description":"Create an API key for a Codika organization to enable deployments, workflow triggers, and management via CLI or API","href":"/operations/create-organization-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: \"Create an API key for a Codika organization to enable deployments, workflow triggers, and management via CLI or API\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`when-to-use`,children:`When to use`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`User needs an API key scoped to a specific organization for deployments or automation`}),`\n`,_jsx(_components.li,{children:`Setting up CI/CD credentials for a team or client workspace`}),`\n`,_jsx(_components.li,{children:`Creating keys for agents or scripts that trigger workflows within an org`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`prerequisites`,children:`Prerequisites`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`codika`}),` CLI installed and authenticated`]}),`\n`,_jsxs(_components.li,{children:[`Personal key (`,_jsx(_components.code,{children:`ckp_`}),`) or admin key (`,_jsx(_components.code,{children:`cka_`}),`) with `,_jsx(_components.code,{children:`api-keys:manage`}),` scope`]}),`\n`,_jsxs(_components.li,{children:[`Target organization must already exist (see `,_jsx(_components.a,{href:`/operations/create-organization`,children:`Create Organization`}),`)`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`command`,children:`Command`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`codika organization create-key [options]`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`options`,children:`Options`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Option`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`}),_jsx(_components.th,{children:`Default`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--organization-id \u003cid>`})}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Organization ID to create the key for`}),_jsx(_components.td,{children:`—`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--name \u003cname>`})}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Key name (for identification)`}),_jsx(_components.td,{children:`—`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--scopes \u003cscopes>`})}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Comma-separated list of scopes`}),_jsx(_components.td,{children:`—`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--description \u003cdesc>`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Key description`}),_jsx(_components.td,{children:`—`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--expires-in-days \u003cdays>`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Number of days until the key expires`}),_jsx(_components.td,{children:`No expiry`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--api-url \u003curl>`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Override API URL`}),_jsx(_components.td,{children:`—`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--api-key \u003ckey>`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Override API key`}),_jsx(_components.td,{children:`—`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--profile \u003cname>`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Use a specific profile instead of the active one`}),_jsx(_components.td,{children:`—`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--json`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`JSON output`}),_jsx(_components.td,{children:`—`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`available-scopes`,children:`Available scopes`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Scope`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`deploy:use-case`})}),_jsx(_components.td,{children:`Deploy use cases, upload documents, and read metadata`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`projects:create`})}),_jsx(_components.td,{children:`Create new projects via API`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`projects:read`})}),_jsx(_components.td,{children:`List and inspect project details`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`workflows:trigger`})}),_jsx(_components.td,{children:`Trigger workflows and poll execution status`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`executions:read`})}),_jsx(_components.td,{children:`List and read execution details`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`instances:read`})}),_jsx(_components.td,{children:`Read process instance details`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`instances:manage`})}),_jsx(_components.td,{children:`Activate, deactivate, and manage instances`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`skills:read`})}),_jsx(_components.td,{children:`Download agent skill documents`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`integrations:manage`})}),_jsx(_components.td,{children:`Create, delete, and list integrations`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`api-keys:manage`})}),_jsx(_components.td,{children:`Create, update, and manage organization API keys`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`behavior`,children:`Behavior`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Validates that the authenticated key has the `,_jsx(_components.code,{children:`api-keys:manage`}),` scope`]}),`\n`,_jsx(_components.li,{children:`Verifies the user is an admin or owner of the target organization`}),`\n`,_jsxs(_components.li,{children:[`Creates a new organization key (`,_jsx(_components.code,{children:`cko_`}),`) with the specified scopes`]}),`\n`,_jsx(_components.li,{children:`Saves the new key as a profile and sets it as active`}),`\n`,_jsx(_components.li,{children:`Returns the raw key once — it cannot be retrieved again after creation`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`examples`,children:`Examples`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`20`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`20`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Basic key creation`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`codika organization create-key \\\\`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` --organization-id `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"xwk9CcT440Vupa8soIhY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` --name `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CI Deploy Key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` --scopes `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"deploy:use-case,workflows:trigger\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# With description and expiry`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`codika organization create-key \\\\`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` --organization-id `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"xwk9CcT440Vupa8soIhY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` --name `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Agent Key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` --scopes `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"deploy:use-case,workflows:trigger,integrations:manage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` --description `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Key for autonomous agent deployments\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` --expires-`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`-days 90`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# JSON output for scripting`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`codika organization create-key \\\\`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` --organization-id `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"xwk9CcT440Vupa8soIhY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` --name `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Script Key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` --scopes `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"deploy:use-case,workflows:trigger\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \\\\`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` --json`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`output`,children:`Output`}),`\n`,_jsx(CodeBlock,{numberOfLines:`14`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`14`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`✓ Organization API Key Created Successfully`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`⚠ Save the API key below — it will not be shown again.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` API Key: cko_xxxxxxxxxxxxxxxxxxxx`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Key Prefix: cko_xxxxxxxx`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Key ID: abc123-def456`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Name: CI Deploy Key`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Scopes: deploy:use-case, workflows:trigger`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Created: 3/30/2026`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Request ID: req-789`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Saved as profile \"org-api-key-ci-deploy-key\" (now active)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`The raw key is displayed only once at creation time. Store it securely — it cannot be retrieved later.`})}),`\n`,_jsx(Heading,{level:`2`,id:`exit-codes`,children:`Exit codes`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`0`})}),_jsx(_components.td,{children:`Success`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`1`})}),_jsx(_components.td,{children:`API error (auth, network, server)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`2`})}),_jsxs(_components.td,{children:[`CLI validation error (e.g., missing `,_jsx(_components.code,{children:`--organization-id`}),`, `,_jsx(_components.code,{children:`--name`}),`, or `,_jsx(_components.code,{children:`--scopes`}),`)`]})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create Organization Key","description":"Create an API key for a Codika organization to enable deployments, workflow triggers, and management via CLI or API","href":"/operations/create-organization-key"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"When to use","slug":"when-to-use","depth":2,"children":[]},{"title":"Prerequisites","slug":"prerequisites","depth":2,"children":[]},{"title":"Command","slug":"command","depth":2,"children":[]},{"title":"Options","slug":"options","depth":2,"children":[{"title":"Available scopes","slug":"available-scopes","depth":3,"children":[]}]},{"title":"Behavior","slug":"behavior","depth":2,"children":[]},{"title":"Examples","slug":"examples","depth":2,"children":[]},{"title":"Output","slug":"output","depth":2,"children":[]},{"title":"Exit codes","slug":"exit-codes","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"codik","siteName":"Codika Documentation","title":"Create Organization Key - Codika Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-04-04T14:00:59.690Z","originalFileLocation":"operations/create-organization-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=\"Create an API key for a Codika organization to enable deployments, workflow triggers, and management via CLI or API\">\u003cmeta data-mint-head name=\"application-name\" content=\"Codika 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/codik/Ogc2dkTv2daJWNle/_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/codik/Ogc2dkTv2daJWNle/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/codik/Ogc2dkTv2daJWNle/_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/codik/Ogc2dkTv2daJWNle/_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/codik/Ogc2dkTv2daJWNle/_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/codik/Ogc2dkTv2daJWNle/_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/codik/Ogc2dkTv2daJWNle/_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/codik/Ogc2dkTv2daJWNle/_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/codik/Ogc2dkTv2daJWNle/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Organization Key - Codika Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create an API key for a Codika organization to enable deployments, workflow triggers, and management via CLI or API\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Codika Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://doc.codika.io/operations/create-organization-key\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://codik.mintlify.site/_mintlify/api/og/v2?division=Setup\u0026amp;title=Create+Organization+Key\u0026amp;description=Create+an+API+key+for+a+Codika+organization+to+enable+deployments%2C+workflow+triggers%2C+and+management+via+CLI+or+API\u0026amp;theme=a5333f6bb26c9c4d2b0efc4f\u0026amp;signature=25042345b289c8b203c5768ef15f3b9a039f111dbd101248f4b6767949882d17\">\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=\"Create Organization Key - Codika Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create an API key for a Codika organization to enable deployments, workflow triggers, and management via CLI or API\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://codik.mintlify.site/_mintlify/api/og/v2?division=Setup\u0026amp;title=Create+Organization+Key\u0026amp;description=Create+an+API+key+for+a+Codika+organization+to+enable+deployments%2C+workflow+triggers%2C+and+management+via+CLI+or+API\u0026amp;theme=a5333f6bb26c9c4d2b0efc4f\u0026amp;signature=25042345b289c8b203c5768ef15f3b9a039f111dbd101248f4b6767949882d17\">\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/codik/Ogc2dkTv2daJWNle/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Codika Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1E1432\">\u003clink data-mint-head rel=\"canonical\" href=\"https://doc.codika.io/operations/create-organization-key\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/operations/create-organization-key.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://doc.codika.io/#organization\",\"name\":\"Codika Documentation\",\"url\":\"https://doc.codika.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/codik/669sNKcF-mlTUYhq/logo/light.svg?fit=max\u0026auto=format\u0026n=669sNKcF-mlTUYhq\u0026q=85\u0026s=69765419cac8524473a2c1ede193ed5f\"}},{\"@type\":\"WebSite\",\"@id\":\"https://doc.codika.io#website\",\"name\":\"Codika Documentation\",\"url\":\"https://doc.codika.io\",\"publisher\":{\"@id\":\"https://doc.codika.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://doc.codika.io/operations/create-organization-key#webpage\",\"url\":\"https://doc.codika.io/operations/create-organization-key\",\"name\":\"Create Organization Key\",\"description\":\"Create an API key for a Codika organization to enable deployments, workflow triggers, and management via CLI or API\",\"dateModified\":\"2026-04-04T14:00:59.690Z\",\"isPartOf\":{\"@id\":\"https://doc.codika.io#website\"},\"breadcrumb\":{\"@id\":\"https://doc.codika.io/operations/create-organization-key#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://doc.codika.io/operations/create-organization-key#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Setup\",\"item\":\"https://doc.codika.io/operations/authentication\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Organization Key\",\"item\":\"https://doc.codika.io/operations/create-organization-key\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://doc.codika.io/operations/create-organization-key#article\",\"headline\":\"Create Organization Key\",\"name\":\"Create Organization Key\",\"description\":\"Create an API key for a Codika organization to enable deployments, workflow triggers, and management via CLI or API\",\"url\":\"https://doc.codika.io/operations/create-organization-key\",\"mainEntityOfPage\":{\"@id\":\"https://doc.codika.io/operations/create-organization-key#webpage\"},\"dateModified\":\"2026-04-04T14:00:59.690Z\",\"publisher\":{\"@id\":\"https://doc.codika.io/#organization\"},\"isPartOf\":{\"@id\":\"https://doc.codika.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Codika Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Codika Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/operations/create-organization-key.md","siteName":"Codika Documentation","nav":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/codika-io"},{"anchor":"Platform","icon":"rocket","href":"https://app.codika.io"},{"anchor":"Website","icon":"globe","href":"https://codika.io"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"CLI Reference","groups":[{"group":"Overview","pages":[{"title":"Operations Reference","href":"/operations/overview"}]},{"group":"Setup","pages":[{"title":"Authentication","href":"/operations/authentication"},{"title":"CLI OTP Auth","href":"/operations/cli-auth"},{"title":"Create Project","href":"/operations/create-project"},{"title":"Create Organization","description":"Create a new organization on the Codika platform with optional self-hosted n8n configuration","href":"/operations/create-organization"},{"title":"Create Organization Key","href":"/operations/create-organization-key"},{"title":"Update Organization Key","description":"Update the scopes, name, or description of an existing organization API key","href":"/operations/update-organization-key"}]},{"group":"Build","pages":[{"title":"Initialize Use Case","href":"/operations/init-use-case"},{"title":"Verify Use Case","href":"/operations/verify-use-case"}]},{"group":"Deploy","pages":[{"title":"Deploy Use Case","href":"/operations/deploy-use-case"},{"title":"Deploy Data Ingestion","href":"/operations/deploy-data-ingestion"},{"title":"Deploy Documents","href":"/operations/deploy-documents"},{"title":"Publish Use Case","href":"/operations/publish-use-case"},{"title":"Rerun Deployment","href":"/operations/rerun-deployment"}]},{"group":"Operate","pages":[{"title":"Trigger Workflow","href":"/operations/trigger-workflow"},{"title":"Fetch Use Case","href":"/operations/fetch-use-case"},{"title":"Get Execution","href":"/operations/get-execution"},{"title":"Get Instance","href":"/operations/get-instance"},{"title":"Get Project","href":"/operations/get-project"},{"title":"Activate / Deactivate Instance","href":"/operations/instance-activate"},{"title":"List Executions","href":"/operations/list-executions"},{"title":"List Instances","href":"/operations/list-instances"},{"title":"List Projects","href":"/operations/list-projects"},{"title":"Get Skills","href":"/operations/get-skills"},{"title":"Manage Integrations","href":"/operations/manage-integrations"},{"title":"Manage Project Notes","href":"/operations/manage-project-notes"},{"title":"Status","href":"/operations/status"}]}]},{"tab":"Dashboard Integration","pages":[{"title":"Dashboard Integration","href":"/dashboard/overview"}]}]},"basePath":"","title":"Create Organization Key - Codika Documentation","buildId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","deploymentId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","dynamics":[],"chunks":[]}