{ "success": true, "data": { "id": "key_abc123", "name": "Production API", "key": "bsk_live_abc123def456ghi789jkl012mno345pqr678stu901", "prefix": "bsk_live_abc1", "scopes": ["members:read", "webhooks:read"], "rateLimit": 1000, "expiresAt": null, "createdAt": "2024-01-15T10:00:00Z" }, "message": "API key created successfully. Save it now - you won't be able to see it again!"}
{ "success": true, "data": { "id": "key_abc123", "name": "Production API", "key": "bsk_live_abc123def456ghi789jkl012mno345pqr678stu901", "prefix": "bsk_live_abc1", "scopes": ["members:read", "webhooks:read"], "rateLimit": 1000, "expiresAt": null, "createdAt": "2024-01-15T10:00:00Z" }, "message": "API key created successfully. Save it now - you won't be able to see it again!"}
Creates a new API key for the organization. The full key value is returned only once in this response. Store it securely — it cannot be retrieved again.
Auth
Requires a valid Bearer token. User must be a member of the organization.
Path Parameters
string
required
Organization identifier.
Request Body
string
required
Descriptive name for the API key. Between 1 and 100 characters.
string[]
Array of permission scopes to restrict what the key can access. If omitted or empty, the key has
full access to all organization resources.
number
Maximum requests per minute for this key. Minimum value of 1.
string
ISO 8601 date-time for when the key should expire. If omitted, the key does not expire.
Response
boolean
Always true on success.
object
Show data properties
string
API key identifier.
string
Key name.
string
The full API key value. Only shown once.
string
Key prefix for future identification.
string[]
Assigned permission scopes.
number | null
Requests per minute limit.
string | null
ISO 8601 expiration timestamp.
string
ISO 8601 creation timestamp.
string
Reminder to save the key.
{ "success": true, "data": { "id": "key_abc123", "name": "Production API", "key": "bsk_live_abc123def456ghi789jkl012mno345pqr678stu901", "prefix": "bsk_live_abc1", "scopes": ["members:read", "webhooks:read"], "rateLimit": 1000, "expiresAt": null, "createdAt": "2024-01-15T10:00:00Z" }, "message": "API key created successfully. Save it now - you won't be able to see it again!"}
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"BunShip Documentation","colors":{"primary":"#5046E5","light":"#818CF8","dark":"#4338CA"},"favicon":"/favicon.svg","logo":{"light":"https://mintcdn.com/bunship-1adb1bed/_L9cNr9Z5HSSMJp_/logo/light.png?fit=max\u0026auto=format\u0026n=_L9cNr9Z5HSSMJp_\u0026q=85\u0026s=a1d9ed4ce3104941688283860ada0ba1","dark":"https://mintcdn.com/bunship-1adb1bed/_L9cNr9Z5HSSMJp_/logo/dark.png?fit=max\u0026auto=format\u0026n=_L9cNr9Z5HSSMJp_\u0026q=85\u0026s=93d4857a80597fe097ddd368145515a1"},"api":{"mdx":{"server":"https://api.bunship.com","auth":{"method":"bearer","name":null}}},"navbar":{"links":[{"label":"Support","href":"mailto:support@bunship.com"}],"primary":{"type":"button","label":"Get Started","href":"https://bunship.com"}},"footer":{"socials":{"x":"https://x.com/bunshipdev","github":"https://github.com/mayhemds/bunship"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"GitHub","href":"https://github.com/mayhemds/bunship","icon":"github"},{"anchor":"Website","href":"https://bunship.com","icon":"globe"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"bunship-1adb1bed","hasAudioNarration":false,"actualSubdomain":"bunship-1adb1bed","customDomains":["docs.bunship.com"],"gitSource":{"type":"github","owner":"mayhemds","repo":"bunship-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae9477668675ea9cfd2bfaa:success","clientVersion":"0.0.4342","searchFilterCounts":[{"language":"default","tag":"API Reference","count":42},{"language":"default","tag":"Documentation","count":23},{"language":"default","tag":"Pro","count":18},{"language":"default","tag":"Auth","count":8},{"language":"default","tag":"Webhooks","count":6},{"language":"default","tag":"Features","count":6},{"language":"default","tag":"Billing","count":5},{"language":"default","tag":"Organizations","count":5},{"language":"default","tag":"Customization","count":5},{"language":"default","tag":"Deployment","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":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":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/api-keys/create","slug":"/api-reference/api-keys/create","pageMetadata":{"title":"Create API Key","api":"POST /api/v1/organizations/{orgId}/api-keys","description":"Create a new API key for the organization","href":"/api-reference/api-keys/create","hidden":false},"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 a new API key for the organization\"\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={code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Note,ParamField,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Creates a new API key for the organization. The full key value is returned `,_jsx(_components.strong,{children:`only once`}),` in this response. Store it securely — it cannot be retrieved again.`]}),`\n`,_jsx(Heading,{level:`2`,id:`auth`,children:`Auth`}),`\n`,_jsx(Note,{children:`Requires a valid Bearer token. User must be a member of the organization.`}),`\n`,_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path Parameters`}),`\n`,_jsx(ParamField,{path:`orgId`,type:`string`,required:true,id:`param-org-id`,children:_jsx(_components.p,{children:`Organization identifier.`})}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`name`,type:`string`,required:true,id:`param-name`,children:_jsx(_components.p,{children:`Descriptive name for the API key. Between 1 and 100 characters.`})}),`\n`,_jsx(ParamField,{body:`scopes`,type:`string[]`,id:`param-scopes`,children:_jsx(_components.p,{children:`Array of permission scopes to restrict what the key can access. If omitted or empty, the key has\nfull access to all organization resources.`})}),`\n`,_jsx(ParamField,{body:`rateLimit`,type:`number`,id:`param-rate-limit`,children:_jsx(_components.p,{children:`Maximum requests per minute for this key. Minimum value of 1.`})}),`\n`,_jsx(ParamField,{body:`expiresAt`,type:`string`,id:`param-expires-at`,children:_jsx(_components.p,{children:`ISO 8601 date-time for when the key should expire. If omitted, the key does not expire.`})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`success`,type:`boolean`,id:`param-success`,children:_jsxs(_components.p,{children:[`Always `,_jsx(_components.code,{children:`true`}),` on success.`]})}),`\n`,_jsx(ResponseField,{name:`data`,type:`object`,id:`param-data`,children:_jsxs(Expandable,{title:`data properties`,children:[_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id`,children:_jsx(_components.p,{children:`API key identifier.`})}),_jsx(ResponseField,{name:`name`,type:`string`,id:`param-name-1`,children:_jsx(_components.p,{children:`Key name.`})}),_jsx(ResponseField,{name:`key`,type:`string`,id:`param-key`,children:_jsxs(_components.p,{children:[`The full API key value. `,_jsx(_components.strong,{children:`Only shown once.`})]})}),_jsx(ResponseField,{name:`prefix`,type:`string`,id:`param-prefix`,children:_jsx(_components.p,{children:`Key prefix for future identification.`})}),_jsx(ResponseField,{name:`scopes`,type:`string[]`,id:`param-scopes-1`,children:_jsx(_components.p,{children:`Assigned permission scopes.`})}),_jsx(ResponseField,{name:`rateLimit`,type:`number | null`,id:`param-rate-limit-1`,children:_jsx(_components.p,{children:`Requests per minute limit.`})}),_jsx(ResponseField,{name:`expiresAt`,type:`string | null`,id:`param-expires-at-1`,children:_jsx(_components.p,{children:`ISO 8601 expiration timestamp.`})}),_jsx(ResponseField,{name:`createdAt`,type:`string`,id:`param-created-at`,children:_jsx(_components.p,{children:`ISO 8601 creation timestamp.`})})]})}),`\n`,_jsx(ResponseField,{name:`message`,type:`string`,id:`param-message`,children:_jsx(_components.p,{children:`Reminder to save the key.`})}),`\n`,`\n`,_jsx(Heading,{level:`2`,id:`example`,children:`Example`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,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:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.bunship.com/api/v1/organizations/org_cld2abc123def456/api-keys`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer eyJhbGciOiJIUzI1NiIs...\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"name\": \"Production API\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"scopes\": [\"members:read\", \"webhooks:read\"],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"rateLimit\": 1000`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create API Key","api":"POST /api/v1/organizations/{orgId}/api-keys","description":"Create a new API key for the organization","href":"/api-reference/api-keys/create","hidden":false}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Note,ParamField,ResponseExample,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Creates a new API key for the organization. The full key value is returned `,_jsx(_components.strong,{children:`only once`}),` in this response. Store it securely — it cannot be retrieved again.`]}),`\n`,_jsx(Heading,{level:`2`,id:`auth`,children:`Auth`}),`\n`,_jsx(Note,{children:`Requires a valid Bearer token. User must be a member of the organization.`}),`\n`,_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path Parameters`}),`\n`,_jsx(ParamField,{path:`orgId`,type:`string`,required:true,id:`param-org-id`,children:_jsx(_components.p,{children:`Organization identifier.`})}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`name`,type:`string`,required:true,id:`param-name`,children:_jsx(_components.p,{children:`Descriptive name for the API key. Between 1 and 100 characters.`})}),`\n`,_jsx(ParamField,{body:`scopes`,type:`string[]`,id:`param-scopes`,children:_jsx(_components.p,{children:`Array of permission scopes to restrict what the key can access. If omitted or empty, the key has\nfull access to all organization resources.`})}),`\n`,_jsx(ParamField,{body:`rateLimit`,type:`number`,id:`param-rate-limit`,children:_jsx(_components.p,{children:`Maximum requests per minute for this key. Minimum value of 1.`})}),`\n`,_jsx(ParamField,{body:`expiresAt`,type:`string`,id:`param-expires-at`,children:_jsx(_components.p,{children:`ISO 8601 date-time for when the key should expire. If omitted, the key does not expire.`})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`success`,type:`boolean`,id:`param-success`,children:_jsxs(_components.p,{children:[`Always `,_jsx(_components.code,{children:`true`}),` on success.`]})}),`\n`,_jsx(ResponseField,{name:`data`,type:`object`,id:`param-data`,children:_jsxs(Expandable,{title:`data properties`,children:[_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id`,children:_jsx(_components.p,{children:`API key identifier.`})}),_jsx(ResponseField,{name:`name`,type:`string`,id:`param-name-1`,children:_jsx(_components.p,{children:`Key name.`})}),_jsx(ResponseField,{name:`key`,type:`string`,id:`param-key`,children:_jsxs(_components.p,{children:[`The full API key value. `,_jsx(_components.strong,{children:`Only shown once.`})]})}),_jsx(ResponseField,{name:`prefix`,type:`string`,id:`param-prefix`,children:_jsx(_components.p,{children:`Key prefix for future identification.`})}),_jsx(ResponseField,{name:`scopes`,type:`string[]`,id:`param-scopes-1`,children:_jsx(_components.p,{children:`Assigned permission scopes.`})}),_jsx(ResponseField,{name:`rateLimit`,type:`number | null`,id:`param-rate-limit-1`,children:_jsx(_components.p,{children:`Requests per minute limit.`})}),_jsx(ResponseField,{name:`expiresAt`,type:`string | null`,id:`param-expires-at-1`,children:_jsx(_components.p,{children:`ISO 8601 expiration timestamp.`})}),_jsx(ResponseField,{name:`createdAt`,type:`string`,id:`param-created-at`,children:_jsx(_components.p,{children:`ISO 8601 creation timestamp.`})})]})}),`\n`,_jsx(ResponseField,{name:`message`,type:`string`,id:`param-message`,children:_jsx(_components.p,{children:`Reminder to save the key.`})}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`200`,numberOfLines:`14`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`14`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"key_abc123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Production API\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"bsk_live_abc123def456ghi789jkl012mno345pqr678stu901\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prefix\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"bsk_live_abc1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"scopes\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"members:read\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"webhooks:read\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"rateLimit\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"expiresAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"createdAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-01-15T10:00:00Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"API key created successfully. Save it now - you won't be able to see it again!\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),`\n`,_jsx(Heading,{level:`2`,id:`example`,children:`Example`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,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:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.bunship.com/api/v1/organizations/org_cld2abc123def456/api-keys`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer eyJhbGciOiJIUzI1NiIs...\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"name\": \"Production API\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"scopes\": [\"members:read\", \"webhooks:read\"],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"rateLimit\": 1000`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create API Key","api":"POST /api/v1/organizations/{orgId}/api-keys","description":"Create a new API key for the organization","href":"/api-reference/api-keys/create","hidden":false}}}},"mdxExtracts":{"tableOfContents":[{"title":"Auth","slug":"auth","depth":2,"children":[]},{"title":"Path Parameters","slug":"path-parameters","depth":2,"children":[]},{"title":"Request Body","slug":"request-body","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"Example","slug":"example","depth":2,"children":[]}],"codeExamples":{"response":{"type":"ResponseExample","children":[{"filename":"200","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"14\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"success\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"data\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"key_abc123\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Production API\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"key\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"bsk_live_abc123def456ghi789jkl012mno345pqr678stu901\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"prefix\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"bsk_live_abc1\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"scopes\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"members:read\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"webhooks:read\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"rateLimit\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1000\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"expiresAt\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"createdAt\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2024-01-15T10:00:00Z\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"API key created successfully. Save it now - you won't be able to see it again!\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Create API Key","path":"/api/v1/organizations/{orgId}/api-keys","servers":[{"url":"https://api.bunship.com"}],"method":"post","request":{"security":[{"title":"Bearer Auth","parameters":{"header":{"Authorization":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token."}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{},"cookie":{},"path":{"orgId":{"schema":[{"type":"string","description":"Organization identifier.","required":true}]}}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"name":[{"type":"string","description":"Descriptive name for the API key. Between 1 and 100 characters.","required":true}],"scopes":[{"type":"array","items":[{"type":"string"}],"description":"Array of permission scopes to restrict what the key can access. If omitted or empty, the key has full access to all organization resources."}],"rateLimit":[{"type":"number","description":"Maximum requests per minute for this key. Minimum value of 1."}],"expiresAt":[{"type":"string","description":"ISO 8601 date-time for when the key should expire. If omitted, the key does not expire."}]}}],"examples":{"example":{"value":{"name":"\u003cstring>","scopes":["\u003cstring>"],"rateLimit":123,"expiresAt":"\u003cstring>"}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"success":[{"type":"boolean","description":"Always `true` on success."}],"data":[{"type":"object","properties":{"id":[{"type":"string","description":"API key identifier."}],"name":[{"type":"string","description":"Key name."}],"key":[{"type":"string","description":"The full API key value. Only shown once."}],"prefix":[{"type":"string","description":"Key prefix for future identification."}],"scopes":[{"type":"array","items":[{"type":"string"}],"description":"Assigned permission scopes."}],"rateLimit":[{"type":"object","properties":{},"description":"Requests per minute limit."}],"expiresAt":[{"type":"object","properties":{},"description":"ISO 8601 expiration timestamp."}],"createdAt":[{"type":"string","description":"ISO 8601 creation timestamp."}]}}],"message":[{"type":"string","description":"Reminder to save the key."}]}}],"examples":{"example":{"value":{"success":true,"data":{"id":"\u003cstring>","name":"\u003cstring>","key":"\u003cstring>","prefix":"\u003cstring>","scopes":["\u003cstring>"],"rateLimit":{},"expiresAt":{},"createdAt":"\u003cstring>"},"message":"\u003cstring>"}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"bunship-1adb1bed","siteName":"BunShip Documentation","title":"Create API Key - BunShip Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-02-10T07:59:58.849Z","originalFileLocation":"api-reference/api-keys/create.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 a new API key for the organization\">\u003cmeta data-mint-head name=\"application-name\" content=\"BunShip 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/bunship-1adb1bed/7Nn2Tps7c3RRYXRB/_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/bunship-1adb1bed/7Nn2Tps7c3RRYXRB/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/bunship-1adb1bed/7Nn2Tps7c3RRYXRB/_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/bunship-1adb1bed/7Nn2Tps7c3RRYXRB/_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/bunship-1adb1bed/7Nn2Tps7c3RRYXRB/_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/bunship-1adb1bed/7Nn2Tps7c3RRYXRB/_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/bunship-1adb1bed/7Nn2Tps7c3RRYXRB/_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/bunship-1adb1bed/7Nn2Tps7c3RRYXRB/_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/bunship-1adb1bed/7Nn2Tps7c3RRYXRB/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create API Key - BunShip Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a new API key for the organization\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"BunShip Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.bunship.com/api-reference/api-keys/create\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://bunship-1adb1bed.mintlify.site/_mintlify/api/og/v2?division=API+Keys\u0026amp;title=Create+API+Key\u0026amp;description=Create+a+new+API+key+for+the+organization\u0026amp;theme=63c2c9aed08d6ba4a141468f\u0026amp;signature=e4abf5a7d124f62d4dc06f9510521d2f61e34af3d4cc84b0d01c83d1532cb9cc\">\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 API Key - BunShip Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a new API key for the organization\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://bunship-1adb1bed.mintlify.site/_mintlify/api/og/v2?division=API+Keys\u0026amp;title=Create+API+Key\u0026amp;description=Create+a+new+API+key+for+the+organization\u0026amp;theme=63c2c9aed08d6ba4a141468f\u0026amp;signature=e4abf5a7d124f62d4dc06f9510521d2f61e34af3d4cc84b0d01c83d1532cb9cc\">\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/bunship-1adb1bed/7Nn2Tps7c3RRYXRB/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"BunShip Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5046E5\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.bunship.com/api-reference/api-keys/create\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/api-keys/create.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.bunship.com/#organization\",\"name\":\"BunShip Documentation\",\"url\":\"https://docs.bunship.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/bunship-1adb1bed/_L9cNr9Z5HSSMJp_/logo/light.png?fit=max\u0026auto=format\u0026n=_L9cNr9Z5HSSMJp_\u0026q=85\u0026s=a1d9ed4ce3104941688283860ada0ba1\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.bunship.com#website\",\"name\":\"BunShip Documentation\",\"url\":\"https://docs.bunship.com\",\"publisher\":{\"@id\":\"https://docs.bunship.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.bunship.com/api-reference/api-keys/create#webpage\",\"url\":\"https://docs.bunship.com/api-reference/api-keys/create\",\"name\":\"Create API Key\",\"description\":\"Create a new API key for the organization\",\"dateModified\":\"2026-02-10T07:59:58.849Z\",\"isPartOf\":{\"@id\":\"https://docs.bunship.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.bunship.com/api-reference/api-keys/create#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.bunship.com/api-reference/api-keys/create#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Keys\",\"item\":\"https://docs.bunship.com/api-reference/api-keys/list\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create API Key\",\"item\":\"https://docs.bunship.com/api-reference/api-keys/create\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.bunship.com/api-reference/api-keys/create#apireference\",\"headline\":\"Create API Key\",\"name\":\"Create API Key\",\"description\":\"Create a new API key for the organization\",\"url\":\"https://docs.bunship.com/api-reference/api-keys/create\",\"mainEntityOfPage\":{\"@id\":\"https://docs.bunship.com/api-reference/api-keys/create#webpage\"},\"dateModified\":\"2026-02-10T07:59:58.849Z\",\"publisher\":{\"@id\":\"https://docs.bunship.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.bunship.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"BunShip Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"BunShip Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/api-keys/create.md","siteName":"BunShip Documentation","nav":{"global":{"anchors":[{"anchor":"GitHub","href":"https://github.com/mayhemds/bunship","icon":"github"},{"anchor":"Website","href":"https://bunship.com","icon":"globe"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/introduction","hidden":false},{"title":"Authentication","href":"/api-reference/authentication","hidden":false}]},{"group":"Auth","pages":[{"title":"Register","api":"POST /api/v1/auth/register","href":"/api-reference/auth/register","hidden":false},{"title":"Login","api":"POST /api/v1/auth/login","href":"/api-reference/auth/login","hidden":false},{"title":"Refresh Token","api":"POST /api/v1/auth/refresh","href":"/api-reference/auth/refresh","hidden":false},{"title":"Logout","api":"POST /api/v1/auth/logout","href":"/api-reference/auth/logout","hidden":false},{"title":"Forgot Password","api":"POST /api/v1/auth/forgot-password","href":"/api-reference/auth/forgot-password","hidden":false},{"title":"Reset Password","api":"POST /api/v1/auth/reset-password","href":"/api-reference/auth/reset-password","hidden":false},{"title":"Verify Email","api":"GET /api/v1/auth/verify-email/{token}","href":"/api-reference/auth/verify-email","hidden":false},{"title":"Two-Factor Authentication","href":"/api-reference/auth/two-factor","hidden":false}]},{"group":"Users","pages":[{"title":"Get Current User","api":"GET /api/v1/users/me","href":"/api-reference/users/get-current","hidden":false},{"title":"Update Profile","api":"PATCH /api/v1/users/me","href":"/api-reference/users/update-profile","hidden":false},{"title":"Change Password","api":"PUT /api/v1/users/me/password","href":"/api-reference/users/change-password","hidden":false},{"title":"Sessions","href":"/api-reference/users/sessions","hidden":false}]},{"group":"Organizations","pages":[{"title":"List Organizations","api":"GET /api/v1/users/me/organizations","href":"/api-reference/organizations/list","hidden":false},{"title":"Create Organization","api":"POST /api/v1/organizations","href":"/api-reference/organizations/create","hidden":false},{"title":"Get Organization","api":"GET /api/v1/organizations/{orgId}","href":"/api-reference/organizations/get","hidden":false},{"title":"Update Organization","api":"PATCH /api/v1/organizations/{orgId}","href":"/api-reference/organizations/update","hidden":false},{"title":"Delete Organization","api":"DELETE /api/v1/organizations/{orgId}","href":"/api-reference/organizations/delete","hidden":false}]},{"group":"Members","pages":[{"title":"List Members","api":"GET /api/v1/organizations/{orgId}/members","href":"/api-reference/members/list","hidden":false},{"title":"Update Member Role","api":"PATCH /api/v1/organizations/{orgId}/members/{memberId}","href":"/api-reference/members/update-role","hidden":false},{"title":"Remove Member","api":"DELETE /api/v1/organizations/{orgId}/members/{memberId}","href":"/api-reference/members/remove","hidden":false}]},{"group":"Invitations","pages":[{"title":"List Invitations","api":"GET /api/v1/organizations/{orgId}/invitations","href":"/api-reference/invitations/list","hidden":false},{"title":"Send Invitation","api":"POST /api/v1/organizations/{orgId}/invitations","href":"/api-reference/invitations/send","hidden":false},{"title":"Cancel Invitation","api":"DELETE /api/v1/organizations/{orgId}/invitations/{invitationId}","href":"/api-reference/invitations/cancel","hidden":false},{"title":"Accept Invitation","api":"POST /api/v1/invitations/{token}/accept","href":"/api-reference/invitations/accept","hidden":false}]},{"group":"Billing","pages":[{"title":"Get Subscription","api":"GET /api/v1/organizations/{orgId}/billing","href":"/api-reference/billing/get-subscription","hidden":false},{"title":"Create Checkout Session","api":"POST /api/v1/organizations/{orgId}/billing/checkout","href":"/api-reference/billing/create-checkout","hidden":false},{"title":"Billing Portal","api":"GET /api/v1/organizations/{orgId}/billing/portal","href":"/api-reference/billing/portal","hidden":false},{"title":"Cancel Subscription","api":"POST /api/v1/organizations/{orgId}/billing/cancel","href":"/api-reference/billing/cancel","hidden":false},{"title":"List Invoices","api":"GET /api/v1/organizations/{orgId}/billing/invoices","href":"/api-reference/billing/invoices","hidden":false}]},{"group":"Webhooks","pages":[{"title":"List Webhook Endpoints","api":"GET /api/v1/organizations/{orgId}/webhooks","href":"/api-reference/webhooks/list","hidden":false},{"title":"Create Webhook Endpoint","api":"POST /api/v1/organizations/{orgId}/webhooks","href":"/api-reference/webhooks/create","hidden":false},{"title":"Update Webhook Endpoint","api":"PATCH /api/v1/organizations/{orgId}/webhooks/{id}","href":"/api-reference/webhooks/update","hidden":false},{"title":"Delete Webhook Endpoint","api":"DELETE /api/v1/organizations/{orgId}/webhooks/{id}","href":"/api-reference/webhooks/delete","hidden":false},{"title":"Send Test Event","api":"POST /api/v1/organizations/{orgId}/webhooks/{id}/test","href":"/api-reference/webhooks/test","hidden":false},{"title":"List Deliveries","api":"GET /api/v1/organizations/{orgId}/webhooks/{id}/deliveries","href":"/api-reference/webhooks/deliveries","hidden":false}]},{"group":"API Keys","pages":[{"title":"List API Keys","api":"GET /api/v1/organizations/{orgId}/api-keys","description":"Get all API keys for the organization","href":"/api-reference/api-keys/list","hidden":false},{"title":"Create API Key","api":"POST /api/v1/organizations/{orgId}/api-keys","href":"/api-reference/api-keys/create","hidden":false},{"title":"Revoke API Key","api":"DELETE /api/v1/organizations/{orgId}/api-keys/{id}","description":"Permanently revoke an API key","href":"/api-reference/api-keys/revoke","hidden":false}]}]},{"tab":"Pro","pages":[{"title":"Pro","href":"/pro"}]}]},"basePath":"","title":"Create API Key - BunShip Documentation","deploymentId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","buildId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-CyAr6xD1.js","snippetPresets-BSqedH3o.js","utils-DXfQSZU_.js","style-to-object-BY3JEAdk.js","utils-DiMyLQC-.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-DvPCxzT8.js","conditional-requirements-CFM0id0Q.js","cloneDeep-dx7iM-7h.js","_Uint8Array-DpQIK2Aw.js","isObject-FP1Yky1u.js","ApiExamples-B2sy5qvP.js","usePlaygroundInputsStore-BDc5FJKB.js","shallow-DxZq5uhD.js","isEqual-Bl_IuwU4.js","CodeSnippets-D1UoeS-I.js","CodeSnippet-C87it1Zg.js","use-playground-group-access-DyECiQ2v.js","Page-wigwbDGe.js","api-description-markdown-DHZIfeWZ.js","DynamicMarkdown-D8KwOkxZ.js","SectionHeading-uish4Ed2.js","MethodPill-DR7O5MCP.js","getPastedJson-D2WQib0m.js","Check2Icon-CUuzblYS.js","axios-CsQoIw0U.js"]}