API Key authentication. Format: dk_test_ or dk_live_
Body
application/json
Request schema for creating a new API key (POST /v1/keys).
Attributes:
name: Human-readable name for the API key (e.g., "Production API Key")
environment: Key environment - "live" for production, "test" for testing (default: "live")
name
string
required
Human-readable name for this API key
Required string length: 1 - 255
environment
enum<string>
default:live
Key environment: 'live' for production, 'test' for testing
Available options:
live,
test
Response
New API key created and old key deprecated
Response for API key rotation (POST /v1/keys/rotate).
Returns the new key and information about the deprecated old key.
The old key remains active for 7 days (grace period) to allow migration.
WARNING: The api_key field in new_key is shown only in this response.
Store it securely immediately - it cannot be retrieved again.
new_key
CreateAPIKeyResponse · object
required
The newly created API key (includes plaintext key, shown only once)
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"DocIntelll","colors":{"primary":"#2563eb","light":"#3b82f6","dark":"#4338ca"},"logo":{"light":"https://mintcdn.com/mathwerkllc/bWlWpO0IYgIfBA3d/logo/light.svg?fit=max\u0026auto=format\u0026n=bWlWpO0IYgIfBA3d\u0026q=85\u0026s=62bf8cc456e7cf525a607ea30bbcd38b","dark":"https://mintcdn.com/mathwerkllc/bWlWpO0IYgIfBA3d/logo/dark.svg?fit=max\u0026auto=format\u0026n=bWlWpO0IYgIfBA3d\u0026q=85\u0026s=091a7f16a03595cc62012ba674440976"},"favicon":"/favicon.svg","api":{"playground":{}},"navbar":{"links":[{"label":"Support","href":"mailto:support@docintell.com"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.docintell.com"}},"footer":{"socials":{"x":"https://x.com/docintell","github":"https://github.com/docintell","linkedin":"https://linkedin.com/company/docintell"}},"seo":{},"contextual":{"options":["copy","view","chatgpt","claude"]},"navigation":{"global":{"anchors":[]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"mathwerkllc","hasAudioNarration":false,"actualSubdomain":"mathwerkllc","customDomains":["docs.docintell.com"],"gitSource":{"type":"github","owner":"ged1182","repo":"doc2data","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae942f5cb5b4dc42461c2d6:success","clientVersion":"0.0.4352","searchFilterCounts":[{"language":"default","tag":"API Reference","count":36},{"language":"default","tag":"Guides","count":29},{"language":"default","tag":"webhooks","count":7},{"language":"default","tag":"jobs","count":5},{"language":"default","tag":"views","count":5},{"language":"default","tag":"SDKs \u0026 Examples","count":4},{"language":"default","tag":"api_keys","count":4},{"language":"default","tag":"documents","count":4},{"language":"default","tag":"stats","count":4},{"language":"default","tag":"Getting Started","count":3}]},"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":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"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/rotate-api-key","slug":"/api-reference/api_keys/rotate-api-key","pageMetadata":{"title":"Rotate API key","description":"Rotate your API key.\n\nCreates a new API key and deprecates the current active key.\nThe old key remains valid for 7 days (grace period) to allow migration.\n\nThis is the recommended way to rotate keys without service disruption.","deprecated":null,"version":null,"openapi":"openapi.json post /v1/keys/rotate","href":"/api-reference/api_keys/rotate-api-key","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Rotate your API key.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"Creates a new API key and deprecates the current active key.\\nThe old key remains valid for 7 days (grace period) to allow migration.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"This is the recommended way to rotate keys without service disruption.\"\n })]\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Rotate API key","description":"Rotate your API key.\n\nCreates a new API key and deprecates the current active key.\nThe old key remains valid for 7 days (grace period) to allow migration.\n\nThis is the recommended way to rotate keys without service disruption.","deprecated":null,"version":null,"openapi":"openapi.json post /v1/keys/rotate","href":"/api-reference/api_keys/rotate-api-key","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["api_keys"],"summary":"Rotate API key","description":"Rotate your API key.\n\nCreates a new API key and deprecates the current active key.\nThe old key remains valid for 7 days (grace period) to allow migration.\n\nThis is the recommended way to rotate keys without service disruption.","operationId":"rotate_api_key_v1_keys_rotate_post","requestBody":"1da768db-0219-4324-9f26-5805b5742b82","responses":{"201":"135c6464-2ecb-4f25-a72d-7a4cff5b79e1","422":"55c6e987-c559-4609-a1ce-c2091b427cca"},"method":"post","type":"path","servers":["12ef815e-604f-4de8-a441-889c2cfadd14","02038139-6fe7-4be3-9d25-8d7eca0c837a","ba612752-9560-4bdf-84ec-ad9483d7beba"],"security":["1dc92d4c-1856-49a5-8ba1-d91587c24321"],"path":"/v1/keys/rotate","baseUrlOptions":["http://localhost:8000","https://api.docintell.com","https://api-staging.docintell.com"],"title":"Rotate API key","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name","description":"Human-readable name for this API key","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"environment":{"type":"string","enum":["live","test"],"title":"Environment","description":"Key environment: 'live' for production, 'test' for testing","default":"live","uniqueKey":"environment","typeLabel":"enum\u003cstring>"}},"type":"object","required":["name"],"title":"CreateAPIKeyRequest","description":"Request schema for creating a new API key (POST /v1/keys).\n\nAttributes:\n name: Human-readable name for the API key (e.g., \"Production API Key\")\n environment: Key environment - \"live\" for production, \"test\" for testing (default: \"live\")","examples":[{"environment":"live","name":"Production API Key"}],"uniqueKey":"","typeLabel":"CreateAPIKeyRequest · object"},"examples":{"Example":{"title":"Example","value":{"environment":"live","name":"Production API Key"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"135c6464-2ecb-4f25-a72d-7a4cff5b79e1":{"description":"New API key created and old key deprecated","content":{"application/json":{"schema":{"properties":{"new_key":{"properties":{"key_id":{"type":"string","format":"uuid","title":"Key Id","description":"Unique API key identifier","isRequired":true,"uniqueKey":"new_key.key_id","typeLabel":"string\u003cuuid>"},"name":{"type":"string","title":"Name","description":"Human-readable name for this API key","isRequired":true,"uniqueKey":"new_key.name","typeLabel":"string"},"api_key":{"type":"string","title":"Api Key","description":"The actual API key (shown ONLY in this response - cannot be retrieved later)","isRequired":true,"uniqueKey":"new_key.api_key","typeLabel":"string"},"environment":{"type":"string","title":"Environment","description":"Key environment (live or test)","isRequired":true,"uniqueKey":"new_key.environment","typeLabel":"string"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"Key creation timestamp (ISO 8601)","isRequired":true,"uniqueKey":"new_key.created_at","typeLabel":"string\u003cdate-time>"}},"type":"object","required":["key_id","name","api_key","environment","created_at"],"title":"CreateAPIKeyResponse","description":"The newly created API key (includes plaintext key, shown only once)","examples":[{"api_key":"dk_live_abcdefghijklmnopqrstuvwxyz1234567890ABC","created_at":"2024-01-15T10:30:00Z","environment":"live","key_id":"550e8400-e29b-41d4-a716-446655440000","name":"Production API Key"}],"isRequired":true,"uniqueKey":"new_key","typeLabel":"CreateAPIKeyResponse · object"},"deprecated_key":{"properties":{"key_id":{"type":"string","format":"uuid","title":"Key Id","description":"Unique API key identifier","isRequired":true,"uniqueKey":"deprecated_key.key_id","typeLabel":"string\u003cuuid>"},"name":{"type":"string","title":"Name","description":"Human-readable name for this API key","isRequired":true,"uniqueKey":"deprecated_key.name","typeLabel":"string"},"key_prefix":{"type":"string","title":"Key Prefix","description":"First 8 characters of the API key (e.g., 'dk_live_')","isRequired":true,"uniqueKey":"deprecated_key.key_prefix","typeLabel":"string"},"key_suffix":{"type":"string","title":"Key Suffix","description":"Last 4 characters of the API key for masked display","isRequired":true,"uniqueKey":"deprecated_key.key_suffix","typeLabel":"string"},"environment":{"type":"string","title":"Environment","description":"Key environment (live or test)","isRequired":true,"uniqueKey":"deprecated_key.environment","typeLabel":"string"},"is_active":{"type":"boolean","title":"Is Active","description":"Whether the key is currently active","isRequired":true,"uniqueKey":"deprecated_key.is_active","typeLabel":"boolean"},"status":{"type":"string","enum":["active","deprecated","expired","revoked"],"title":"Status","description":"Current key status","isRequired":true,"uniqueKey":"deprecated_key.status","typeLabel":"enum\u003cstring>"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"Key creation timestamp (ISO 8601)","isRequired":true,"uniqueKey":"deprecated_key.created_at","typeLabel":"string\u003cdate-time>"},"last_used_at":{"oneOf":[{"type":"string","title":"Last Used At","description":"Last time the key was used (ISO 8601, null if never used)","format":"date-time","uniqueKey":"deprecated_key.last_used_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","title":"Last Used At","description":"Last time the key was used (ISO 8601, null if never used)","uniqueKey":"deprecated_key.last_used_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"deprecated_key.last_used_at","typeLabel":"string\u003cdate-time> | null"},"deprecated_at":{"oneOf":[{"type":"string","title":"Deprecated At","description":"When the key was deprecated (ISO 8601, null if not deprecated)","format":"date-time","uniqueKey":"deprecated_key.deprecated_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","title":"Deprecated At","description":"When the key was deprecated (ISO 8601, null if not deprecated)","uniqueKey":"deprecated_key.deprecated_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"deprecated_key.deprecated_at","typeLabel":"string\u003cdate-time> | null"},"grace_period_ends_at":{"oneOf":[{"type":"string","title":"Grace Period Ends At","description":"When the grace period expires (ISO 8601, null if not deprecated)","format":"date-time","uniqueKey":"deprecated_key.grace_period_ends_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","title":"Grace Period Ends At","description":"When the grace period expires (ISO 8601, null if not deprecated)","uniqueKey":"deprecated_key.grace_period_ends_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"deprecated_key.grace_period_ends_at","typeLabel":"string\u003cdate-time> | null"},"grace_period_days_remaining":{"oneOf":[{"type":"integer","title":"Grace Period Days Remaining","description":"Days remaining in grace period (null if not deprecated, 0 if expired)","uniqueKey":"deprecated_key.grace_period_days_remaining.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Grace Period Days Remaining","description":"Days remaining in grace period (null if not deprecated, 0 if expired)","uniqueKey":"deprecated_key.grace_period_days_remaining.oneOf.1","typeLabel":"null"}],"uniqueKey":"deprecated_key.grace_period_days_remaining","typeLabel":"integer | null"}},"type":"object","required":["key_id","name","key_prefix","key_suffix","environment","is_active","status","created_at"],"title":"APIKeyResponse","description":"The old key that was deprecated (with grace period information)","examples":[{"created_at":"2024-01-15T10:30:00Z","environment":"live","is_active":true,"key_id":"550e8400-e29b-41d4-a716-446655440000","key_prefix":"dk_live_","key_suffix":"xY9z","last_used_at":"2024-01-15T12:45:00Z","name":"Production API Key","status":"active"},{"created_at":"2024-01-01T10:30:00Z","deprecated_at":"2024-01-15T10:30:00Z","environment":"live","grace_period_days_remaining":5,"grace_period_ends_at":"2024-01-22T10:30:00Z","is_active":true,"key_id":"660e8400-e29b-41d4-a716-446655440001","key_prefix":"dk_live_","key_suffix":"aBc1","last_used_at":"2024-01-15T12:45:00Z","name":"Old Production Key","status":"deprecated"}],"isRequired":true,"uniqueKey":"deprecated_key","typeLabel":"APIKeyResponse · object"}},"type":"object","required":["new_key","deprecated_key"],"title":"RotateAPIKeyResponse","description":"Response for API key rotation (POST /v1/keys/rotate).\n\nReturns the new key and information about the deprecated old key.\nThe old key remains active for 7 days (grace period) to allow migration.\n\nWARNING: The api_key field in new_key is shown only in this response.\nStore it securely immediately - it cannot be retrieved again.","examples":[{"deprecated_key":{"created_at":"2024-01-01T10:30:00Z","deprecated_at":"2024-01-15T10:30:00Z","environment":"live","grace_period_days_remaining":7,"grace_period_ends_at":"2024-01-22T10:30:00Z","is_active":true,"key_id":"550e8400-e29b-41d4-a716-446655440000","key_prefix":"dk_live_","key_suffix":"xY9z","last_used_at":"2024-01-15T10:29:00Z","name":"Production API Key","status":"deprecated"},"new_key":{"api_key":"dk_live_newKeyXYZ123456789abcdefghijklmnop","created_at":"2024-01-15T10:30:00Z","environment":"live","key_id":"770e8400-e29b-41d4-a716-446655440002","name":"Production API Key"}}],"uniqueKey":"","typeLabel":"RotateAPIKeyResponse · object"},"examples":{"Example":{"title":"Example","value":{"deprecated_key":{"created_at":"2024-01-01T10:30:00Z","deprecated_at":"2024-01-15T10:30:00Z","environment":"live","grace_period_days_remaining":7,"grace_period_ends_at":"2024-01-22T10:30:00Z","is_active":true,"key_id":"550e8400-e29b-41d4-a716-446655440000","key_prefix":"dk_live_","key_suffix":"xY9z","last_used_at":"2024-01-15T10:29:00Z","name":"Production API Key","status":"deprecated"},"new_key":{"api_key":"dk_live_newKeyXYZ123456789abcdefghijklmnop","created_at":"2024-01-15T10:30:00Z","environment":"live","key_id":"770e8400-e29b-41d4-a716-446655440002","name":"Production API Key"}}}},"exampleType":"generated"}},"exampleType":"generated"},"55c6e987-c559-4609-a1ce-c2091b427cca":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"oneOf":[{"type":"string","uniqueKey":"detail.items.[INDEX].loc.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"integer","uniqueKey":"detail.items.[INDEX].loc.items.[INDEX].oneOf.1","typeLabel":"integer"}],"uniqueKey":"detail.items.[INDEX].loc.items.[INDEX]","typeLabel":"string | integer"},"type":"array","title":"Location","isRequired":true,"uniqueKey":"detail.items.[INDEX].loc","typeLabel":"(string | integer)[]"},"msg":{"type":"string","title":"Message","isRequired":true,"uniqueKey":"detail.items.[INDEX].msg","typeLabel":"string"},"type":{"type":"string","title":"Error Type","isRequired":true,"uniqueKey":"detail.items.[INDEX].type","typeLabel":"string"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError","uniqueKey":"detail.items.[INDEX]","typeLabel":"ValidationError · object"},"type":"array","title":"Detail","uniqueKey":"detail","typeLabel":"ValidationError · object[]"}},"type":"object","title":"HTTPValidationError","uniqueKey":"","typeLabel":"HTTPValidationError · object"},"examples":{"Example":{"title":"Example","value":{"detail":[{"loc":["\u003cstring>"],"msg":"\u003cstring>","type":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"1dc92d4c-1856-49a5-8ba1-d91587c24321":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"API Key authentication. Format: dk_test_\u003ckey> or dk_live_\u003ckey>","scopes":[]}}},"servers":{"12ef815e-604f-4de8-a441-889c2cfadd14":{"url":"http://localhost:8000","description":"Local development"},"02038139-6fe7-4be3-9d25-8d7eca0c837a":{"url":"https://api.docintell.com","description":"Production API"},"ba612752-9560-4bdf-84ec-ad9483d7beba":{"url":"https://api-staging.docintell.com","description":"Staging environment"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"API Key authentication. Format: dk_test_\u003ckey> or dk_live_\u003ckey>","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"API Key authentication. Format: dk_test_\u003ckey> or dk_live_\u003ckey>","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"openapi.json"},"subdomain":"mathwerkllc","siteName":"DocIntelll","title":"Rotate API key - DocIntelll","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2025-12-14T23:24:04.636Z","originalFileLocation":"api-reference/api_keys/rotate-api-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=\"Rotate your API key. Creates a new API key and deprecates the current active key. The old key remains valid for 7 days (grace period) to allow migration. This is the recommended way to rotate keys without service disruption.\">\u003cmeta data-mint-head name=\"application-name\" content=\"DocIntelll\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/mathwerkllc/C30PPlZdMUTYYcr4/_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/mathwerkllc/C30PPlZdMUTYYcr4/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/mathwerkllc/C30PPlZdMUTYYcr4/_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/mathwerkllc/C30PPlZdMUTYYcr4/_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/mathwerkllc/C30PPlZdMUTYYcr4/_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/mathwerkllc/C30PPlZdMUTYYcr4/_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/mathwerkllc/C30PPlZdMUTYYcr4/_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/mathwerkllc/C30PPlZdMUTYYcr4/_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/mathwerkllc/C30PPlZdMUTYYcr4/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Rotate API key - DocIntelll\">\u003cmeta data-mint-head property=\"og:description\" content=\"Rotate your API key. Creates a new API key and deprecates the current active key. The old key remains valid for 7 days (grace period) to allow migration. This is the recommended way to rotate keys without service disruption.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"DocIntelll\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.docintell.com/api-reference/api_keys/rotate-api-key\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://mathwerkllc.mintlify.site/_mintlify/api/og/v2?division=api_keys\u0026amp;title=Rotate+API+key\u0026amp;description=Rotate+your+API+key.%0A%0ACreates+a+new+API+key+and+deprecates+the+current+active+key.%0AThe+old+key+remains+valid+for+7+days+%28grace+period%29+to+allow+migration.%0A%0AThis\u0026amp;theme=81b49b9b752cac9afde97b4c\u0026amp;signature=7a47fd533ee4b65d38c568108cfd788f797d1637767446c0b3e7f083f9bdad23\">\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=\"Rotate API key - DocIntelll\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Rotate your API key. Creates a new API key and deprecates the current active key. The old key remains valid for 7 days (grace period) to allow migration. This is the recommended way to rotate keys without service disruption.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://mathwerkllc.mintlify.site/_mintlify/api/og/v2?division=api_keys\u0026amp;title=Rotate+API+key\u0026amp;description=Rotate+your+API+key.%0A%0ACreates+a+new+API+key+and+deprecates+the+current+active+key.%0AThe+old+key+remains+valid+for+7+days+%28grace+period%29+to+allow+migration.%0A%0AThis\u0026amp;theme=81b49b9b752cac9afde97b4c\u0026amp;signature=7a47fd533ee4b65d38c568108cfd788f797d1637767446c0b3e7f083f9bdad23\">\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/mathwerkllc/C30PPlZdMUTYYcr4/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"DocIntelll\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2563eb\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.docintell.com/api-reference/api_keys/rotate-api-key\">\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/rotate-api-key.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.docintell.com/#organization\",\"name\":\"DocIntelll\",\"url\":\"https://docs.docintell.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/mathwerkllc/bWlWpO0IYgIfBA3d/logo/light.svg?fit=max\u0026auto=format\u0026n=bWlWpO0IYgIfBA3d\u0026q=85\u0026s=62bf8cc456e7cf525a607ea30bbcd38b\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.docintell.com#website\",\"name\":\"DocIntelll\",\"url\":\"https://docs.docintell.com\",\"publisher\":{\"@id\":\"https://docs.docintell.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.docintell.com/api-reference/api_keys/rotate-api-key#webpage\",\"url\":\"https://docs.docintell.com/api-reference/api_keys/rotate-api-key\",\"name\":\"Rotate API key\",\"description\":\"Rotate your API key. Creates a new API key and deprecates the current active key. The old key remains valid for 7 days (grace period) to allow migration. This is the recommended way to rotate keys without service disruption.\",\"dateModified\":\"2025-12-14T23:24:04.636Z\",\"isPartOf\":{\"@id\":\"https://docs.docintell.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.docintell.com/api-reference/api_keys/rotate-api-key#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.docintell.com/api-reference/api_keys/rotate-api-key#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"api_keys\",\"item\":\"https://docs.docintell.com/api-reference/api_keys/list-api-keys\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Rotate API key\",\"item\":\"https://docs.docintell.com/api-reference/api_keys/rotate-api-key\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.docintell.com/api-reference/api_keys/rotate-api-key#apireference\",\"headline\":\"Rotate API key\",\"name\":\"Rotate API key\",\"description\":\"Rotate your API key. Creates a new API key and deprecates the current active key. The old key remains valid for 7 days (grace period) to allow migration. This is the recommended way to rotate keys without service disruption.\",\"url\":\"https://docs.docintell.com/api-reference/api_keys/rotate-api-key\",\"mainEntityOfPage\":{\"@id\":\"https://docs.docintell.com/api-reference/api_keys/rotate-api-key#webpage\"},\"dateModified\":\"2025-12-14T23:24:04.636Z\",\"publisher\":{\"@id\":\"https://docs.docintell.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.docintell.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"DocIntelll\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"DocIntelll\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/api_keys/rotate-api-key.md","siteName":"DocIntelll","nav":{"global":{"anchors":[]},"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"API Reference","groups":[{"group":"API Reference","pages":[{"title":"Root","deprecated":null,"version":null,"openapi":"openapi.json get /","href":"/api-reference/root"}]},{"group":"health","pages":[{"title":"Health check","deprecated":null,"version":null,"openapi":"openapi.json get /health","href":"/api-reference/health/health-check"},{"title":"Health check (Kubernetes convention)","deprecated":null,"version":null,"openapi":"openapi.json get /healthz","href":"/api-reference/health/health-check-kubernetes-convention"}]},{"group":"api_keys","pages":[{"title":"List API keys","deprecated":null,"version":null,"openapi":"openapi.json get /v1/keys","href":"/api-reference/api_keys/list-api-keys"},{"title":"Create API key","description":"Create a new API key.\n\nThe plaintext key is returned only in this response and cannot be retrieved later.\nStore it securely immediately.","deprecated":null,"version":null,"openapi":"openapi.json post /v1/keys","href":"/api-reference/api_keys/create-api-key"},{"title":"Rotate API key","deprecated":null,"version":null,"openapi":"openapi.json post /v1/keys/rotate","href":"/api-reference/api_keys/rotate-api-key"},{"title":"Revoke API key","description":"Revoke an API key immediately.\n\nThe key cannot be used for authentication after this operation.\nThe key record is retained for audit purposes.","deprecated":null,"version":null,"openapi":"openapi.json delete /v1/keys/{key_id}","href":"/api-reference/api_keys/revoke-api-key"}]},{"group":"documents","pages":[{"title":"List all documents","deprecated":null,"version":null,"openapi":"openapi.json get /v1/documents","href":"/api-reference/documents/list-all-documents"},{"title":"Upload a document for extraction","deprecated":null,"version":null,"openapi":"openapi.json post /v1/documents","href":"/api-reference/documents/upload-a-document-for-extraction"},{"title":"Get document details","deprecated":null,"version":null,"openapi":"openapi.json get /v1/documents/{document_id}","href":"/api-reference/documents/get-document-details"},{"title":"Get extracted document data","deprecated":null,"version":null,"openapi":"openapi.json get /v1/documents/{document_id}/data","href":"/api-reference/documents/get-extracted-document-data"}]},{"group":"jobs","pages":[{"title":"Get document extraction status","deprecated":null,"version":null,"openapi":"openapi.json get /v1/documents/{document_id}/status","href":"/api-reference/jobs/get-document-extraction-status"},{"title":"List extraction jobs","deprecated":null,"version":null,"openapi":"openapi.json get /v1/jobs","href":"/api-reference/jobs/list-extraction-jobs"},{"title":"Get job details","deprecated":null,"version":null,"openapi":"openapi.json get /v1/jobs/{job_id}","href":"/api-reference/jobs/get-job-details"},{"title":"Get job extraction results","deprecated":null,"version":null,"openapi":"openapi.json get /v1/jobs/{job_id}/results","href":"/api-reference/jobs/get-job-extraction-results"},{"title":"List jobs for a document","deprecated":null,"version":null,"openapi":"openapi.json get /v1/documents/{document_id}/jobs","href":"/api-reference/jobs/list-jobs-for-a-document"}]},{"group":"document-types","pages":[{"title":"List available document types","deprecated":null,"version":null,"openapi":"openapi.json get /v1/document-types","href":"/api-reference/document-types/list-available-document-types"},{"title":"List document type categories","deprecated":null,"version":null,"openapi":"openapi.json get /v1/document-types/categories","href":"/api-reference/document-types/list-document-type-categories"},{"title":"Get document type details","deprecated":null,"version":null,"openapi":"openapi.json get /v1/document-types/{code}","href":"/api-reference/document-types/get-document-type-details"}]},{"group":"webhooks","pages":[{"title":"List webhook configurations","deprecated":null,"version":null,"openapi":"openapi.json get /v1/webhooks","href":"/api-reference/webhooks/list-webhook-configurations"},{"title":"Create webhook configuration","deprecated":null,"version":null,"openapi":"openapi.json post /v1/webhooks","href":"/api-reference/webhooks/create-webhook-configuration"},{"title":"Get webhook configuration","deprecated":null,"version":null,"openapi":"openapi.json get /v1/webhooks/{webhook_config_id}","href":"/api-reference/webhooks/get-webhook-configuration"},{"title":"Delete webhook configuration","deprecated":null,"version":null,"openapi":"openapi.json delete /v1/webhooks/{webhook_config_id}","href":"/api-reference/webhooks/delete-webhook-configuration"},{"title":"Update webhook configuration","deprecated":null,"version":null,"openapi":"openapi.json patch /v1/webhooks/{webhook_config_id}","href":"/api-reference/webhooks/update-webhook-configuration"},{"title":"Rotate webhook signing secret","deprecated":null,"version":null,"openapi":"openapi.json post /v1/webhooks/{webhook_config_id}/rotate","href":"/api-reference/webhooks/rotate-webhook-signing-secret"},{"title":"Test webhook endpoint","deprecated":null,"version":null,"openapi":"openapi.json post /v1/webhooks/{webhook_config_id}/test","href":"/api-reference/webhooks/test-webhook-endpoint"}]},{"group":"stats","pages":[{"title":"Get stats overview","deprecated":null,"version":null,"openapi":"openapi.json get /v1/stats/overview","href":"/api-reference/stats/get-stats-overview"},{"title":"Get document stats over time","deprecated":null,"version":null,"openapi":"openapi.json get /v1/stats/documents","href":"/api-reference/stats/get-document-stats-over-time"},{"title":"Get job stats over time","deprecated":null,"version":null,"openapi":"openapi.json get /v1/stats/jobs","href":"/api-reference/stats/get-job-stats-over-time"},{"title":"Get processing performance statistics","deprecated":null,"version":null,"openapi":"openapi.json get /v1/stats/processing","href":"/api-reference/stats/get-processing-performance-statistics"}]},{"group":"views","pages":[{"title":"List views","deprecated":null,"version":null,"openapi":"openapi.json get /v1/views","href":"/api-reference/views/list-views"},{"title":"Create a view","deprecated":null,"version":null,"openapi":"openapi.json post /v1/views","href":"/api-reference/views/create-a-view"},{"title":"Get view details","deprecated":null,"version":null,"openapi":"openapi.json get /v1/views/{view_id}","href":"/api-reference/views/get-view-details"},{"title":"Update a view","deprecated":null,"version":null,"openapi":"openapi.json put /v1/views/{view_id}","href":"/api-reference/views/update-a-view"},{"title":"Delete a view","deprecated":null,"version":null,"openapi":"openapi.json delete /v1/views/{view_id}","href":"/api-reference/views/delete-a-view"}]}]}]},"basePath":"","title":"Rotate API key - DocIntelll","deploymentId":"dpl_5nNsUVHqbVdUHouroPPzwztSbjmH","buildId":"dpl_5nNsUVHqbVdUHouroPPzwztSbjmH","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-B564ZPEC.js","snippetPresets-L1o8HcxD.js","utils-CztB6GTn.js","style-to-object-BY3JEAdk.js","utils-CvVTgJWk.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-DYi6_847.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DthbVJn_.js","_Uint8Array-G4MDMcnE.js","isObject-FP1Yky1u.js","ApiExamples-BnQo4SxZ.js","usePlaygroundInputsStore-Dsmj0Yg6.js","shallow-Bp_wEvgz.js","isEqual-BwXlkqOR.js","CodeSnippets-D6Fi8DmN.js","CodeSnippet-DANVAYTI.js","use-playground-group-access-DaUWE1Sg.js","Page-Cwg6gQ2F.js","api-description-markdown-DFvICuUq.js","DynamicMarkdown-DHV3eOcf.js","SectionHeading-DLRZDaDn.js","MethodPill-CgqQYk5N.js","getPastedJson-k_txzq3J.js","Check2Icon-CO8ho5Tt.js","axios-CsQoIw0U.js","Markdown-C8ZpmBko.js","AssistantPageLink-AWAGfbYY.js","dist-CAcI43Vk.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}