This operation creates a new API key for a principal.
When authenticated with a principal API key, the new key is created for the authenticated principal. When authenticated with a service credential, principal_id is required.
Use scopes to restrict what the key can access. The default scope ["*"] grants full access. Individual scopes use the format resource:action where action is read, write, or status. For example: ["wallet:read", "wallet:write"].
Supply expires_at to set an expiry time. If omitted, the key does not expire.
The raw API key value is only returned once in the response. Store it securely — it cannot be retrieved again.
The display name for this API key. Max 255 characters.
Maximum string length: 255
principal_id
string<uuid> | null
The ID of the principal to create the API key for. Required when using service credential authentication; ignored when using principal API key authentication.
scopes
string[]
The access scopes for this key. Use ["*"] for full access, or restrict with resource:action format (for example, ["wallet:read", "wallet:write"]). Possible actions: read, write, status.
expires_at
string<date-time> | null
The expiry timestamp for this key, in ISO 8601 format. If omitted, the key does not expire.
Response
Already exists (idempotent). Successful Response
result
ApiKeyCreateResultPublic · object
required
Create API key result payload without delegation internals.
Show child attributes
success
boolean
default:true
suggestion
string
default:""
message
string
default:""
meta
PaginationMeta · object | null
Pagination metadata for list responses.
Supports both legacy offset-based and cursor-based pagination.
Cursor fields (has_more, after, before) are populated for
cursor-paginated endpoints. Legacy fields (offset, limit) are
populated when the caller uses the deprecated offset parameter.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Cobo Agentic Wallet","colors":{"primary":"#1F32D6","light":"#1F32D6","dark":"#1F32D6"},"logo":{"light":"https://mintcdn.com/agent-wallet-manual/NNmNUU0KRwsRQQLC/products/agentic-wallet/manual/logo/light.svg?fit=max\u0026auto=format\u0026n=NNmNUU0KRwsRQQLC\u0026q=85\u0026s=ff7a7c1c88a71bc9c553ffcaafcd99d3","dark":"https://mintcdn.com/agent-wallet-manual/NNmNUU0KRwsRQQLC/products/agentic-wallet/manual/logo/dark.svg?fit=max\u0026auto=format\u0026n=NNmNUU0KRwsRQQLC\u0026q=85\u0026s=951305701adc54e705f557f43319e08f","href":"https://agenticwallet.cobo.com/"},"favicon":"https://mintcdn.com/agent-wallet-manual/sQQQ2OLxLa9K7SVD/products/agentic-wallet/manual/favicon.svg?fit=max\u0026auto=format\u0026n=sQQQ2OLxLa9K7SVD\u0026q=85\u0026s=51778f498673269bcc92d601820e08a7","api":{"playground":{"display":"interactive"},"examples":{"languages":["python","bash"]}},"navbar":{"links":[{"href":"https://pypi.org/project/cobo-agentic-wallet/","label":"PyPI"}],"primary":{"type":"github","href":"https://github.com/CoboGlobal/cobo-agentic-wallet"}},"contextual":{"options":["copy","view","assistant","claude","mcp"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"agent-wallet-manual","hasAudioNarration":false,"actualSubdomain":"agent-wallet-manual","customDomains":[],"gitSource":{"type":"github","owner":"coboglobal","repo":"cobo-agentic-wallet-manual","deployBranch":"master","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae94465575e7a57c12daf12","clientVersion":"0.0.4377","searchFilterCounts":[{"language":"default","tag":"Reference","count":64},{"language":"default","tag":"API reference","count":61},{"language":"default","tag":"For Agent Developers","count":23},{"language":"default","tag":"Wallets","count":13},{"language":"default","tag":"Transactions","count":11},{"language":"default","tag":"How-to","count":10},{"language":"default","tag":"Learn","count":10},{"language":"default","tag":"Overview","count":10},{"language":"default","tag":"Pacts","count":10},{"language":"default","tag":"Security \u0026 Controls","count":10}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/products/agentic-wallet/manual","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"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}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","content":".icon{display:inline;height:30px;margin-top:0px;margin-bottom:0px}.screenshot_full_screen{border:1px solid transparent;border-radius:10px;border-color:#EDEEF3;width:auto;height:auto;display:block;margin:auto}.screenshot_nav_bar{border:1px solid transparent;border-radius:10px;border-color:#EDEEF3;width:180px;height:auto;display:block;margin:auto}.screenshot_modal{border:1px solid transparent;border-radius:10px;border-color:#EDEEF3;width:450px;height:auto;display:block;margin:auto}"}]}
{"page":{"pagePath":"products/agentic-wallet/manual/reference/create-api-key","slug":"/products/agentic-wallet/manual/reference/create-api-key","pageMetadata":{"openapi":"post /api/v1/api-keys","title":"Create API key","description":"This operation creates a new API key for a principal.\n\nWhen authenticated with a principal API key, the new key is created for the authenticated principal. When authenticated with a service credential, `principal_id` is required.\n\nUse `scopes` to restrict what the key can access. The default scope `[\"*\"]` grants full access. Individual scopes use the format `resource:action` where action is `read`, `write`, or `status`. For example: `[\"wallet:read\", \"wallet:write\"]`.\n\nSupply `expires_at` to set an expiry time. If omitted, the key does not expire.\n\n\u003cNote>The raw API key value is only returned once in the response. Store it securely — it cannot be retrieved again.\u003c/Note>","href":"/products/agentic-wallet/manual/reference/create-api-key"},"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 code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n }, {Note} = _components;\n if (!Note) _missingMdxReference(\"Note\", true);\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"This operation creates a new API key for a principal.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"When authenticated with a principal API key, the new key is created for the authenticated principal. When authenticated with a service credential, \", _jsx(_components.code, {\n children: \"principal_id\"\n }), \" is required.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Use \", _jsx(_components.code, {\n children: \"scopes\"\n }), \" to restrict what the key can access. The default scope \", _jsx(_components.code, {\n children: \"[\\\"*\\\"]\"\n }), \" grants full access. Individual scopes use the format \", _jsx(_components.code, {\n children: \"resource:action\"\n }), \" where action is \", _jsx(_components.code, {\n children: \"read\"\n }), \", \", _jsx(_components.code, {\n children: \"write\"\n }), \", or \", _jsx(_components.code, {\n children: \"status\"\n }), \". For example: \", _jsx(_components.code, {\n children: \"[\\\"wallet:read\\\", \\\"wallet:write\\\"]\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Supply \", _jsx(_components.code, {\n children: \"expires_at\"\n }), \" to set an expiry time. If omitted, the key does not expire.\"]\n }), \"\\n\", _jsx(Note, {\n children: \"The raw API key value is only returned once in the response. Store it securely — it cannot be retrieved again.\"\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};\nfunction _missingMdxReference(id, component) {\n throw new Error(\"Expected \" + (component ? \"component\" : \"object\") + \" `\" + id + \"` to be defined: you likely forgot to import, pass, or provide it.\");\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":{"openapi":"post /api/v1/api-keys","title":"Create API key","description":"This operation creates a new API key for a principal.\n\nWhen authenticated with a principal API key, the new key is created for the authenticated principal. When authenticated with a service credential, `principal_id` is required.\n\nUse `scopes` to restrict what the key can access. The default scope `[\"*\"]` grants full access. Individual scopes use the format `resource:action` where action is `read`, `write`, or `status`. For example: `[\"wallet:read\", \"wallet:write\"]`.\n\nSupply `expires_at` to set an expiry time. If omitted, the key does not expire.\n\n\u003cNote>The raw API key value is only returned once in the response. Store it securely — it cannot be retrieved again.\u003c/Note>","href":"/products/agentic-wallet/manual/reference/create-api-key"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Identity"],"summary":"Create API key","description":"This operation creates a new API key for a principal.\n\nWhen authenticated with a principal API key, the new key is created for the authenticated principal. When authenticated with a service credential, `principal_id` is required.\n\nUse `scopes` to restrict what the key can access. The default scope `[\"*\"]` grants full access. Individual scopes use the format `resource:action` where action is `read`, `write`, or `status`. For example: `[\"wallet:read\", \"wallet:write\"]`.\n\nSupply `expires_at` to set an expiry time. If omitted, the key does not expire.\n\n\u003cNote>The raw API key value is only returned once in the response. Store it securely — it cannot be retrieved again.\u003c/Note>","operationId":"create_api_key","parameters":["27a66fe8-3e97-434a-9dc5-4237639f2c69","56d499cd-a972-4885-95bd-44349979e915"],"requestBody":"67ad8011-0a08-4540-9cac-a90b7d77f233","responses":{"200":"99b0811c-7d7b-441e-8809-4d52bfb78b39","201":"979747cc-7eef-4d29-a7b4-3653b4b130bc","422":"ffddc68c-56b0-4310-a3f3-0802991c7782"},"method":"post","type":"path","servers":[],"security":[],"path":"/api/v1/api-keys","baseUrlOptions":[],"title":"Create API key","codeSamples":[],"requestExampleLanguages":["python","bash"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"27a66fe8-3e97-434a-9dc5-4237639f2c69":{"name":"X-API-Key","in":"header","required":false,"schema":{"oneOf":[{"title":"X-Api-Key","type":"string","uniqueKey":"oneOf.0","typeLabel":"string"},{"title":"X-Api-Key","type":"null","uniqueKey":"oneOf.1","typeLabel":"null"}],"isRequired":false,"uniqueKey":"","typeLabel":"string | null"}},"56d499cd-a972-4885-95bd-44349979e915":{"name":"X-Assistant-Service-Key","in":"header","required":false,"schema":{"oneOf":[{"title":"X-Assistant-Service-Key","type":"string","uniqueKey":"oneOf.0","typeLabel":"string"},{"title":"X-Assistant-Service-Key","type":"null","uniqueKey":"oneOf.1","typeLabel":"null"}],"isRequired":false,"uniqueKey":"","typeLabel":"string | null"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"name":{"type":"string","maxLength":255,"title":"Name","description":"The display name for this API key. Max 255 characters.","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"principal_id":{"oneOf":[{"title":"Principal Id","description":"The ID of the principal to create the API key for. Required when using service credential authentication; ignored when using principal API key authentication.","type":"string","format":"uuid","uniqueKey":"principal_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"title":"Principal Id","description":"The ID of the principal to create the API key for. Required when using service credential authentication; ignored when using principal API key authentication.","type":"null","format":"uuid","uniqueKey":"principal_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"principal_id","typeLabel":"string\u003cuuid> | null"},"scopes":{"items":{"type":"string","uniqueKey":"scopes.items.[INDEX]","typeLabel":"string"},"type":"array","title":"Scopes","description":"The access scopes for this key. Use `[\"*\"]` for full access, or restrict with `resource:action` format (for example, `[\"wallet:read\", \"wallet:write\"]`). Possible actions: `read`, `write`, `status`.","uniqueKey":"scopes","typeLabel":"string[]"},"expires_at":{"oneOf":[{"title":"Expires At","description":"The expiry timestamp for this key, in ISO 8601 format. If omitted, the key does not expire.","type":"string","format":"date-time","uniqueKey":"expires_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"title":"Expires At","description":"The expiry timestamp for this key, in ISO 8601 format. If omitted, the key does not expire.","type":"null","format":"date-time","uniqueKey":"expires_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"expires_at","typeLabel":"string\u003cdate-time> | null"}},"type":"object","required":["name"],"title":"ApiKeyCreate","description":"Request payload for creating an API key.","uniqueKey":"","typeLabel":"ApiKeyCreate · object"},"examples":{"Example":{"title":"Example","value":{"name":"\u003cstring>","principal_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","scopes":["\u003cstring>"],"expires_at":"2023-11-07T05:31:56Z"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"99b0811c-7d7b-441e-8809-4d52bfb78b39":{"description":"Already exists (idempotent). Successful Response","content":{"application/json":{"schema":{"properties":{"result":{"properties":{"api_key":{"properties":{"id":{"type":"string","format":"uuid","title":"Id","description":"The API key ID.","isRequired":true,"uniqueKey":"result.api_key.id","typeLabel":"string\u003cuuid>"},"principal_id":{"type":"string","format":"uuid","title":"Principal Id","description":"The ID of the principal this key belongs to.","isRequired":true,"uniqueKey":"result.api_key.principal_id","typeLabel":"string\u003cuuid>"},"name":{"type":"string","title":"Name","description":"The display name of this API key.","isRequired":true,"uniqueKey":"result.api_key.name","typeLabel":"string"},"key_prefix":{"type":"string","title":"Key Prefix","description":"The first few characters of the API key, for identification purposes.","isRequired":true,"uniqueKey":"result.api_key.key_prefix","typeLabel":"string"},"scopes":{"items":{"type":"string","uniqueKey":"result.api_key.scopes.items.[INDEX]","typeLabel":"string"},"type":"array","title":"Scopes","description":"The access scopes granted to this key.","isRequired":true,"uniqueKey":"result.api_key.scopes","typeLabel":"string[]"},"expires_at":{"oneOf":[{"title":"Expires At","description":"The expiry timestamp for this key, in ISO 8601 format. Null if no expiry.","type":"string","format":"date-time","isRequired":true,"uniqueKey":"result.api_key.expires_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"title":"Expires At","description":"The expiry timestamp for this key, in ISO 8601 format. Null if no expiry.","type":"null","format":"date-time","isRequired":true,"uniqueKey":"result.api_key.expires_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"result.api_key.expires_at","typeLabel":"string\u003cdate-time> | null"},"last_used_at":{"oneOf":[{"title":"Last Used At","description":"The timestamp when this key was last used, in ISO 8601 format. Null if never used.","type":"string","format":"date-time","isRequired":true,"uniqueKey":"result.api_key.last_used_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"title":"Last Used At","description":"The timestamp when this key was last used, in ISO 8601 format. Null if never used.","type":"null","format":"date-time","isRequired":true,"uniqueKey":"result.api_key.last_used_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"result.api_key.last_used_at","typeLabel":"string\u003cdate-time> | null"},"is_revoked":{"type":"boolean","title":"Is Revoked","description":"Whether this key has been revoked. `true`: revoked. `false`: active.","isRequired":true,"uniqueKey":"result.api_key.is_revoked","typeLabel":"boolean"},"revoked_at":{"oneOf":[{"title":"Revoked At","description":"The timestamp when this key was revoked, in ISO 8601 format. Null if not revoked.","type":"string","format":"date-time","isRequired":true,"uniqueKey":"result.api_key.revoked_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"title":"Revoked At","description":"The timestamp when this key was revoked, in ISO 8601 format. Null if not revoked.","type":"null","format":"date-time","isRequired":true,"uniqueKey":"result.api_key.revoked_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"result.api_key.revoked_at","typeLabel":"string\u003cdate-time> | null"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"The timestamp when the key was created, in ISO 8601 format.","isRequired":true,"uniqueKey":"result.api_key.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","title":"Updated At","description":"The timestamp when the key was last updated, in ISO 8601 format.","isRequired":true,"uniqueKey":"result.api_key.updated_at","typeLabel":"string\u003cdate-time>"},"pact_id":{"oneOf":[{"title":"Pact Id","description":"Optional pact binding for this key. When set, requests made with this key are executed within the context of the specified pact.","type":"string","format":"uuid","uniqueKey":"result.api_key.pact_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"title":"Pact Id","description":"Optional pact binding for this key. When set, requests made with this key are executed within the context of the specified pact.","type":"null","format":"uuid","uniqueKey":"result.api_key.pact_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.api_key.pact_id","typeLabel":"string\u003cuuid> | null"}},"type":"object","required":["id","principal_id","name","key_prefix","scopes","expires_at","last_used_at","is_revoked","revoked_at","created_at","updated_at"],"title":"ApiKeyPublicRead","description":"Public API key response payload without delegation internals.","isRequired":true,"uniqueKey":"result.api_key","typeLabel":"ApiKeyPublicRead · object"},"raw_key":{"type":"string","title":"Raw Key","description":"The plaintext API key. Returned only once at creation time — store it securely as it cannot be retrieved again.","isRequired":true,"uniqueKey":"result.raw_key","typeLabel":"string"}},"type":"object","required":["api_key","raw_key"],"title":"ApiKeyCreateResultPublic","description":"Create API key result payload without delegation internals.","isRequired":true,"uniqueKey":"result","typeLabel":"ApiKeyCreateResultPublic · object"},"success":{"type":"boolean","title":"Success","default":true,"uniqueKey":"success","typeLabel":"boolean"},"suggestion":{"type":"string","title":"Suggestion","default":"","uniqueKey":"suggestion","typeLabel":"string"},"message":{"type":"string","title":"Message","default":"","uniqueKey":"message","typeLabel":"string"},"meta":{"oneOf":[{"properties":{"total":{"oneOf":[{"title":"Total","type":"integer","uniqueKey":"meta.oneOf.0.total.oneOf.0","typeLabel":"integer"},{"title":"Total","type":"null","uniqueKey":"meta.oneOf.0.total.oneOf.1","typeLabel":"null"}],"uniqueKey":"meta.oneOf.0.total","typeLabel":"integer | null"},"offset":{"oneOf":[{"title":"Offset","type":"integer","uniqueKey":"meta.oneOf.0.offset.oneOf.0","typeLabel":"integer"},{"title":"Offset","type":"null","uniqueKey":"meta.oneOf.0.offset.oneOf.1","typeLabel":"null"}],"uniqueKey":"meta.oneOf.0.offset","typeLabel":"integer | null"},"limit":{"oneOf":[{"title":"Limit","type":"integer","uniqueKey":"meta.oneOf.0.limit.oneOf.0","typeLabel":"integer"},{"title":"Limit","type":"null","uniqueKey":"meta.oneOf.0.limit.oneOf.1","typeLabel":"null"}],"uniqueKey":"meta.oneOf.0.limit","typeLabel":"integer | null"},"has_more":{"oneOf":[{"title":"Has More","type":"boolean","uniqueKey":"meta.oneOf.0.has_more.oneOf.0","typeLabel":"boolean"},{"title":"Has More","type":"null","uniqueKey":"meta.oneOf.0.has_more.oneOf.1","typeLabel":"null"}],"uniqueKey":"meta.oneOf.0.has_more","typeLabel":"boolean | null"},"after":{"oneOf":[{"title":"After","type":"string","uniqueKey":"meta.oneOf.0.after.oneOf.0","typeLabel":"string"},{"title":"After","type":"null","uniqueKey":"meta.oneOf.0.after.oneOf.1","typeLabel":"null"}],"uniqueKey":"meta.oneOf.0.after","typeLabel":"string | null"},"before":{"oneOf":[{"title":"Before","type":"string","uniqueKey":"meta.oneOf.0.before.oneOf.0","typeLabel":"string"},{"title":"Before","type":"null","uniqueKey":"meta.oneOf.0.before.oneOf.1","typeLabel":"null"}],"uniqueKey":"meta.oneOf.0.before","typeLabel":"string | null"}},"type":"object","title":"PaginationMeta","description":"Pagination metadata for list responses.\n\nSupports both legacy offset-based and cursor-based pagination.\nCursor fields (``has_more``, ``after``, ``before``) are populated for\ncursor-paginated endpoints. Legacy fields (``offset``, ``limit``) are\npopulated when the caller uses the deprecated ``offset`` parameter.","uniqueKey":"meta.oneOf.0","typeLabel":"PaginationMeta · object"},{"properties":{"total":{"oneOf":[{"title":"Total","type":"integer"},{"title":"Total","type":"null"}]},"offset":{"oneOf":[{"title":"Offset","type":"integer"},{"title":"Offset","type":"null"}]},"limit":{"oneOf":[{"title":"Limit","type":"integer"},{"title":"Limit","type":"null"}]},"has_more":{"oneOf":[{"title":"Has More","type":"boolean"},{"title":"Has More","type":"null"}]},"after":{"oneOf":[{"title":"After","type":"string"},{"title":"After","type":"null"}]},"before":{"oneOf":[{"title":"Before","type":"string"},{"title":"Before","type":"null"}]}},"type":"null","title":"PaginationMeta","description":"Pagination metadata for list responses.\n\nSupports both legacy offset-based and cursor-based pagination.\nCursor fields (``has_more``, ``after``, ``before``) are populated for\ncursor-paginated endpoints. Legacy fields (``offset``, ``limit``) are\npopulated when the caller uses the deprecated ``offset`` parameter.","uniqueKey":"meta.oneOf.1","typeLabel":"null"}],"uniqueKey":"meta","typeLabel":"PaginationMeta · object | null"}},"type":"object","required":["result"],"title":"StandardResponse[ApiKeyCreateResultPublic]","uniqueKey":"","typeLabel":"StandardResponse[ApiKeyCreateResultPublic] · object"},"examples":{"Example":{"title":"Example","value":{"result":{"api_key":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","principal_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","name":"\u003cstring>","key_prefix":"\u003cstring>","scopes":["\u003cstring>"],"expires_at":"2023-11-07T05:31:56Z","last_used_at":"2023-11-07T05:31:56Z","is_revoked":true,"revoked_at":"2023-11-07T05:31:56Z","created_at":"2023-11-07T05:31:56Z","updated_at":"2023-11-07T05:31:56Z","pact_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"raw_key":"\u003cstring>"},"success":true,"suggestion":"","message":"","meta":{"total":123,"offset":123,"limit":123,"has_more":true,"after":"\u003cstring>","before":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"979747cc-7eef-4d29-a7b4-3653b4b130bc":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"result":{"properties":{"api_key":{"properties":{"id":{"type":"string","format":"uuid","title":"Id","description":"The API key ID.","isRequired":true,"uniqueKey":"result.api_key.id","typeLabel":"string\u003cuuid>"},"principal_id":{"type":"string","format":"uuid","title":"Principal Id","description":"The ID of the principal this key belongs to.","isRequired":true,"uniqueKey":"result.api_key.principal_id","typeLabel":"string\u003cuuid>"},"name":{"type":"string","title":"Name","description":"The display name of this API key.","isRequired":true,"uniqueKey":"result.api_key.name","typeLabel":"string"},"key_prefix":{"type":"string","title":"Key Prefix","description":"The first few characters of the API key, for identification purposes.","isRequired":true,"uniqueKey":"result.api_key.key_prefix","typeLabel":"string"},"scopes":{"items":{"type":"string","uniqueKey":"result.api_key.scopes.items.[INDEX]","typeLabel":"string"},"type":"array","title":"Scopes","description":"The access scopes granted to this key.","isRequired":true,"uniqueKey":"result.api_key.scopes","typeLabel":"string[]"},"expires_at":{"oneOf":[{"title":"Expires At","description":"The expiry timestamp for this key, in ISO 8601 format. Null if no expiry.","type":"string","format":"date-time","isRequired":true,"uniqueKey":"result.api_key.expires_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"title":"Expires At","description":"The expiry timestamp for this key, in ISO 8601 format. Null if no expiry.","type":"null","format":"date-time","isRequired":true,"uniqueKey":"result.api_key.expires_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"result.api_key.expires_at","typeLabel":"string\u003cdate-time> | null"},"last_used_at":{"oneOf":[{"title":"Last Used At","description":"The timestamp when this key was last used, in ISO 8601 format. Null if never used.","type":"string","format":"date-time","isRequired":true,"uniqueKey":"result.api_key.last_used_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"title":"Last Used At","description":"The timestamp when this key was last used, in ISO 8601 format. Null if never used.","type":"null","format":"date-time","isRequired":true,"uniqueKey":"result.api_key.last_used_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"result.api_key.last_used_at","typeLabel":"string\u003cdate-time> | null"},"is_revoked":{"type":"boolean","title":"Is Revoked","description":"Whether this key has been revoked. `true`: revoked. `false`: active.","isRequired":true,"uniqueKey":"result.api_key.is_revoked","typeLabel":"boolean"},"revoked_at":{"oneOf":[{"title":"Revoked At","description":"The timestamp when this key was revoked, in ISO 8601 format. Null if not revoked.","type":"string","format":"date-time","isRequired":true,"uniqueKey":"result.api_key.revoked_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"title":"Revoked At","description":"The timestamp when this key was revoked, in ISO 8601 format. Null if not revoked.","type":"null","format":"date-time","isRequired":true,"uniqueKey":"result.api_key.revoked_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"result.api_key.revoked_at","typeLabel":"string\u003cdate-time> | null"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"The timestamp when the key was created, in ISO 8601 format.","isRequired":true,"uniqueKey":"result.api_key.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","title":"Updated At","description":"The timestamp when the key was last updated, in ISO 8601 format.","isRequired":true,"uniqueKey":"result.api_key.updated_at","typeLabel":"string\u003cdate-time>"},"pact_id":{"oneOf":[{"title":"Pact Id","description":"Optional pact binding for this key. When set, requests made with this key are executed within the context of the specified pact.","type":"string","format":"uuid","uniqueKey":"result.api_key.pact_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"title":"Pact Id","description":"Optional pact binding for this key. When set, requests made with this key are executed within the context of the specified pact.","type":"null","format":"uuid","uniqueKey":"result.api_key.pact_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.api_key.pact_id","typeLabel":"string\u003cuuid> | null"}},"type":"object","required":["id","principal_id","name","key_prefix","scopes","expires_at","last_used_at","is_revoked","revoked_at","created_at","updated_at"],"title":"ApiKeyPublicRead","description":"Public API key response payload without delegation internals.","isRequired":true,"uniqueKey":"result.api_key","typeLabel":"ApiKeyPublicRead · object"},"raw_key":{"type":"string","title":"Raw Key","description":"The plaintext API key. Returned only once at creation time — store it securely as it cannot be retrieved again.","isRequired":true,"uniqueKey":"result.raw_key","typeLabel":"string"}},"type":"object","required":["api_key","raw_key"],"title":"ApiKeyCreateResultPublic","description":"Create API key result payload without delegation internals.","isRequired":true,"uniqueKey":"result","typeLabel":"ApiKeyCreateResultPublic · object"},"success":{"type":"boolean","title":"Success","default":true,"uniqueKey":"success","typeLabel":"boolean"},"suggestion":{"type":"string","title":"Suggestion","default":"","uniqueKey":"suggestion","typeLabel":"string"},"message":{"type":"string","title":"Message","default":"","uniqueKey":"message","typeLabel":"string"},"meta":{"oneOf":[{"properties":{"total":{"oneOf":[{"title":"Total","type":"integer","uniqueKey":"meta.oneOf.0.total.oneOf.0","typeLabel":"integer"},{"title":"Total","type":"null","uniqueKey":"meta.oneOf.0.total.oneOf.1","typeLabel":"null"}],"uniqueKey":"meta.oneOf.0.total","typeLabel":"integer | null"},"offset":{"oneOf":[{"title":"Offset","type":"integer","uniqueKey":"meta.oneOf.0.offset.oneOf.0","typeLabel":"integer"},{"title":"Offset","type":"null","uniqueKey":"meta.oneOf.0.offset.oneOf.1","typeLabel":"null"}],"uniqueKey":"meta.oneOf.0.offset","typeLabel":"integer | null"},"limit":{"oneOf":[{"title":"Limit","type":"integer","uniqueKey":"meta.oneOf.0.limit.oneOf.0","typeLabel":"integer"},{"title":"Limit","type":"null","uniqueKey":"meta.oneOf.0.limit.oneOf.1","typeLabel":"null"}],"uniqueKey":"meta.oneOf.0.limit","typeLabel":"integer | null"},"has_more":{"oneOf":[{"title":"Has More","type":"boolean","uniqueKey":"meta.oneOf.0.has_more.oneOf.0","typeLabel":"boolean"},{"title":"Has More","type":"null","uniqueKey":"meta.oneOf.0.has_more.oneOf.1","typeLabel":"null"}],"uniqueKey":"meta.oneOf.0.has_more","typeLabel":"boolean | null"},"after":{"oneOf":[{"title":"After","type":"string","uniqueKey":"meta.oneOf.0.after.oneOf.0","typeLabel":"string"},{"title":"After","type":"null","uniqueKey":"meta.oneOf.0.after.oneOf.1","typeLabel":"null"}],"uniqueKey":"meta.oneOf.0.after","typeLabel":"string | null"},"before":{"oneOf":[{"title":"Before","type":"string","uniqueKey":"meta.oneOf.0.before.oneOf.0","typeLabel":"string"},{"title":"Before","type":"null","uniqueKey":"meta.oneOf.0.before.oneOf.1","typeLabel":"null"}],"uniqueKey":"meta.oneOf.0.before","typeLabel":"string | null"}},"type":"object","title":"PaginationMeta","description":"Pagination metadata for list responses.\n\nSupports both legacy offset-based and cursor-based pagination.\nCursor fields (``has_more``, ``after``, ``before``) are populated for\ncursor-paginated endpoints. Legacy fields (``offset``, ``limit``) are\npopulated when the caller uses the deprecated ``offset`` parameter.","uniqueKey":"meta.oneOf.0","typeLabel":"PaginationMeta · object"},{"properties":{"total":{"oneOf":[{"title":"Total","type":"integer"},{"title":"Total","type":"null"}]},"offset":{"oneOf":[{"title":"Offset","type":"integer"},{"title":"Offset","type":"null"}]},"limit":{"oneOf":[{"title":"Limit","type":"integer"},{"title":"Limit","type":"null"}]},"has_more":{"oneOf":[{"title":"Has More","type":"boolean"},{"title":"Has More","type":"null"}]},"after":{"oneOf":[{"title":"After","type":"string"},{"title":"After","type":"null"}]},"before":{"oneOf":[{"title":"Before","type":"string"},{"title":"Before","type":"null"}]}},"type":"null","title":"PaginationMeta","description":"Pagination metadata for list responses.\n\nSupports both legacy offset-based and cursor-based pagination.\nCursor fields (``has_more``, ``after``, ``before``) are populated for\ncursor-paginated endpoints. Legacy fields (``offset``, ``limit``) are\npopulated when the caller uses the deprecated ``offset`` parameter.","uniqueKey":"meta.oneOf.1","typeLabel":"null"}],"uniqueKey":"meta","typeLabel":"PaginationMeta · object | null"}},"type":"object","required":["result"],"title":"StandardResponse[ApiKeyCreateResultPublic]","uniqueKey":"","typeLabel":"StandardResponse[ApiKeyCreateResultPublic] · object"},"examples":{"Example":{"title":"Example","value":{"result":{"api_key":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","principal_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","name":"\u003cstring>","key_prefix":"\u003cstring>","scopes":["\u003cstring>"],"expires_at":"2023-11-07T05:31:56Z","last_used_at":"2023-11-07T05:31:56Z","is_revoked":true,"revoked_at":"2023-11-07T05:31:56Z","created_at":"2023-11-07T05:31:56Z","updated_at":"2023-11-07T05:31:56Z","pact_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"raw_key":"\u003cstring>"},"success":true,"suggestion":"","message":"","meta":{"total":123,"offset":123,"limit":123,"has_more":true,"after":"\u003cstring>","before":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"ffddc68c-56b0-4310-a3f3-0802991c7782":{"description":"Validation Error","content":{"application/json":{"schema":{"title":"WrappedValidationError","type":"object","required":["success","error"],"properties":{"success":{"type":"boolean","const":false,"default":false,"title":"Success","isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"object","title":"Error","required":["detail"],"properties":{"detail":{"type":"array","title":"Detail","items":{"properties":{"loc":{"items":{"oneOf":[{"type":"string","uniqueKey":"error.detail.items.[INDEX].loc.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"integer","uniqueKey":"error.detail.items.[INDEX].loc.items.[INDEX].oneOf.1","typeLabel":"integer"}],"uniqueKey":"error.detail.items.[INDEX].loc.items.[INDEX]","typeLabel":"string | integer"},"type":"array","title":"Location","isRequired":true,"uniqueKey":"error.detail.items.[INDEX].loc","typeLabel":"(string | integer)[]"},"msg":{"type":"string","title":"Message","isRequired":true,"uniqueKey":"error.detail.items.[INDEX].msg","typeLabel":"string"},"type":{"type":"string","title":"Error Type","isRequired":true,"uniqueKey":"error.detail.items.[INDEX].type","typeLabel":"string"},"input":{"oneOf":[{"title":"Input"}],"uniqueKey":"error.detail.items.[INDEX].input","typeLabel":"any"},"ctx":{"type":"object","title":"Context","uniqueKey":"error.detail.items.[INDEX].ctx","typeLabel":"Context · object"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError","uniqueKey":"error.detail.items.[INDEX]","typeLabel":"ValidationError · object"},"isRequired":true,"uniqueKey":"error.detail","typeLabel":"ValidationError · object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"Error · object"}},"uniqueKey":"","typeLabel":"WrappedValidationError · object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"detail":[{"loc":["\u003cstring>"],"msg":"\u003cstring>","type":"\u003cstring>","input":"\u003cunknown>","ctx":{}}]}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{},"servers":{}},"originalFileLocation":"products/agentic-wallet/manual/openapi.json"},"subdomain":"agent-wallet-manual","siteName":"Cobo Agentic Wallet","title":"Create API key - Cobo Agentic Wallet","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-03T02:18:19.190Z","originalFileLocation":"products/agentic-wallet/manual/reference/create-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=\"This operation creates a new API key for a principal. When authenticated with a principal API key, the new key is created for the authenticated principal. When authenticated with a service credential, principal_id is required. Use scopes to restrict what the key can access. The default scope [\u0026quot;*\u0026quot;] grants full access. Individual scopes use the format resource:action where action is read, write, or status. For example: [\u0026quot;wallet:read\u0026quot;, \u0026quot;wallet:write\u0026quot;]. Supply expires_at to set an expiry time. If omitted, the key does not expire. The raw API key value is only returned once in the response. Store it securely — it cannot be retrieved again.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Cobo Agentic Wallet\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/agent-wallet-manual/U8EG1aN13-phUo4z/_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/agent-wallet-manual/U8EG1aN13-phUo4z/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/agent-wallet-manual/U8EG1aN13-phUo4z/_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/agent-wallet-manual/U8EG1aN13-phUo4z/_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/agent-wallet-manual/U8EG1aN13-phUo4z/_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/agent-wallet-manual/U8EG1aN13-phUo4z/_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/agent-wallet-manual/U8EG1aN13-phUo4z/_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/agent-wallet-manual/U8EG1aN13-phUo4z/_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/agent-wallet-manual/U8EG1aN13-phUo4z/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create API key - Cobo Agentic Wallet\">\u003cmeta data-mint-head property=\"og:description\" content=\"This operation creates a new API key for a principal. When authenticated with a principal API key, the new key is created for the authenticated principal. When authenticated with a service credential, principal_id is required. Use scopes to restrict what the key can access. The default scope [\u0026quot;*\u0026quot;] grants full access. Individual scopes use the format resource:action where action is read, write, or status. For example: [\u0026quot;wallet:read\u0026quot;, \u0026quot;wallet:write\u0026quot;]. Supply expires_at to set an expiry time. If omitted, the key does not expire. The raw API key value is only returned once in the response. Store it securely — it cannot be retrieved again.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Cobo Agentic Wallet\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://agent-wallet-manual.mintlify.app/products/agentic-wallet/manual/reference/create-api-key\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://agent-wallet-manual.mintlify.site/_mintlify/api/og/v2?division=Identity\u0026amp;title=Create+API+key\u0026amp;description=This+operation+creates+a+new+API+key+for+a+principal.%0A%0AWhen+authenticated+with+a+principal+API+key%2C+the+new+key+is+created+for+the+authenticated+principal.+When\u0026amp;theme=97b0a8ee4a6acad46a8f001b\u0026amp;signature=bd4f8ef18af1daeb43801057d76c385d595a0a7f6d5109630721001215911750\">\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 - Cobo Agentic Wallet\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"This operation creates a new API key for a principal. When authenticated with a principal API key, the new key is created for the authenticated principal. When authenticated with a service credential, principal_id is required. Use scopes to restrict what the key can access. The default scope [\u0026quot;*\u0026quot;] grants full access. Individual scopes use the format resource:action where action is read, write, or status. For example: [\u0026quot;wallet:read\u0026quot;, \u0026quot;wallet:write\u0026quot;]. Supply expires_at to set an expiry time. If omitted, the key does not expire. The raw API key value is only returned once in the response. Store it securely — it cannot be retrieved again.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://agent-wallet-manual.mintlify.site/_mintlify/api/og/v2?division=Identity\u0026amp;title=Create+API+key\u0026amp;description=This+operation+creates+a+new+API+key+for+a+principal.%0A%0AWhen+authenticated+with+a+principal+API+key%2C+the+new+key+is+created+for+the+authenticated+principal.+When\u0026amp;theme=97b0a8ee4a6acad46a8f001b\u0026amp;signature=bd4f8ef18af1daeb43801057d76c385d595a0a7f6d5109630721001215911750\">\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/agent-wallet-manual/U8EG1aN13-phUo4z/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Cobo Agentic Wallet\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1F32D6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://agent-wallet-manual.mintlify.app/products/agentic-wallet/manual/reference/create-api-key\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/products/agentic-wallet/manual/reference/create-api-key.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://agent-wallet-manual.mintlify.app/#organization\",\"name\":\"Cobo Agentic Wallet\",\"url\":\"https://agent-wallet-manual.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/agent-wallet-manual/NNmNUU0KRwsRQQLC/products/agentic-wallet/manual/logo/light.svg?fit=max\u0026auto=format\u0026n=NNmNUU0KRwsRQQLC\u0026q=85\u0026s=ff7a7c1c88a71bc9c553ffcaafcd99d3\"}},{\"@type\":\"WebSite\",\"@id\":\"https://agent-wallet-manual.mintlify.app#website\",\"name\":\"Cobo Agentic Wallet\",\"url\":\"https://agent-wallet-manual.mintlify.app\",\"publisher\":{\"@id\":\"https://agent-wallet-manual.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://agent-wallet-manual.mintlify.app/products/agentic-wallet/manual/reference/create-api-key#webpage\",\"url\":\"https://agent-wallet-manual.mintlify.app/products/agentic-wallet/manual/reference/create-api-key\",\"name\":\"Create API key\",\"description\":\"This operation creates a new API key for a principal. When authenticated with a principal API key, the new key is created for the authenticated principal. When authenticated with a service credential, principal_id is required. Use scopes to restrict what the key can access. The default scope [\\\"*\\\"] grants full access. Individual scopes use the format resource:action where action is read, write, or status. For example: [\\\"wallet:read\\\", \\\"wallet:write\\\"]. Supply expires_at to set an expiry time. If omitted, the key does not expire. The raw API key value is only returned once in the response. Store it securely — it cannot be retrieved again.\",\"dateModified\":\"2026-11-03T02:18:19.190Z\",\"isPartOf\":{\"@id\":\"https://agent-wallet-manual.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://agent-wallet-manual.mintlify.app/products/agentic-wallet/manual/reference/create-api-key#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://agent-wallet-manual.mintlify.app/products/agentic-wallet/manual/reference/create-api-key#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API reference\",\"item\":\"https://agent-wallet-manual.mintlify.app/products/agentic-wallet/manual/reference/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Identity\",\"item\":\"https://agent-wallet-manual.mintlify.app/products/agentic-wallet/manual/reference/provision-agent\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Create API key\",\"item\":\"https://agent-wallet-manual.mintlify.app/products/agentic-wallet/manual/reference/create-api-key\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://agent-wallet-manual.mintlify.app/products/agentic-wallet/manual/reference/create-api-key#apireference\",\"headline\":\"Create API key\",\"name\":\"Create API key\",\"description\":\"This operation creates a new API key for a principal. When authenticated with a principal API key, the new key is created for the authenticated principal. When authenticated with a service credential, principal_id is required. Use scopes to restrict what the key can access. The default scope [\\\"*\\\"] grants full access. Individual scopes use the format resource:action where action is read, write, or status. For example: [\\\"wallet:read\\\", \\\"wallet:write\\\"]. Supply expires_at to set an expiry time. If omitted, the key does not expire. The raw API key value is only returned once in the response. Store it securely — it cannot be retrieved again.\",\"url\":\"https://agent-wallet-manual.mintlify.app/products/agentic-wallet/manual/reference/create-api-key\",\"mainEntityOfPage\":{\"@id\":\"https://agent-wallet-manual.mintlify.app/products/agentic-wallet/manual/reference/create-api-key#webpage\"},\"dateModified\":\"2026-11-03T02:18:19.190Z\",\"publisher\":{\"@id\":\"https://agent-wallet-manual.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://agent-wallet-manual.mintlify.app#website\"}}]}\u003c/script>","agentPointerHref":"/products/agentic-wallet/manual/reference/create-api-key.md","siteName":"Cobo Agentic Wallet","nav":{"global":null,"tabs":[{"tab":"Start Here","pages":[{"title":"Start Here","href":"/products/agentic-wallet/manual/start-here/introduction"}]},{"tab":"For Agent Owners","pages":[{"title":"For Agent Owners","href":"/products/agentic-wallet/manual/owners/features"}]},{"tab":"For Agent Developers","pages":[{"title":"For Agent Developers","href":"/products/agentic-wallet/manual/developer/quickstart-overview"}]},{"tab":"Security \u0026 Controls","pages":[{"title":"Security \u0026 Controls","href":"/products/agentic-wallet/manual/security/overview"}]},{"tab":"Reference","groups":[{"group":"General","pages":[{"title":"Supported chains","href":"/products/agentic-wallet/manual/reference/supported-chains"},{"title":"Pact policies and completion conditions","href":"/products/agentic-wallet/manual/reference/pact-policies"}]},{"group":"CLI","pages":[{"title":"CLI","icon":"terminal","sidebarTitle":"CLI Reference","href":"/products/agentic-wallet/manual/reference/cli"}]},{"group":"API reference","pages":[{"title":"Overview","href":"/products/agentic-wallet/manual/reference/overview"},{"group":"Identity","pages":[{"openapi":"post /api/v1/principals/provision","title":"Provision agent","href":"/products/agentic-wallet/manual/reference/provision-agent"},{"openapi":"get /api/v1/principals/{agent_id}/status","title":"Get agent status","href":"/products/agentic-wallet/manual/reference/get-agent-status"},{"openapi":"get /api/v1/principals/agents","title":"List my agents","href":"/products/agentic-wallet/manual/reference/list-my-agents"},{"openapi":"patch /api/v1/principals/{principal_id}","title":"Update principal","description":"This operation updates the display name of a principal. A principal can update its own name, or a human principal can update the name of an agent it owns.","href":"/products/agentic-wallet/manual/reference/update-principal"},{"openapi":"post /api/v1/api-keys","title":"Create API key","href":"/products/agentic-wallet/manual/reference/create-api-key"},{"openapi":"get /api/v1/api-keys","title":"List API keys","description":"This operation retrieves all API keys for the authenticated principal. Requires principal API key authentication. Use cursor-based pagination with `after`/`before`.","href":"/products/agentic-wallet/manual/reference/list-api-keys"},{"openapi":"delete /api/v1/api-keys/{api_key_id}","title":"Revoke API key","href":"/products/agentic-wallet/manual/reference/revoke-api-key"}]},{"group":"Wallets","pages":[{"openapi":"post /api/v1/wallets","title":"Create wallet","href":"/products/agentic-wallet/manual/reference/create-wallet"},{"openapi":"get /api/v1/wallets","title":"List all wallets","href":"/products/agentic-wallet/manual/reference/list-wallets"},{"openapi":"get /api/v1/wallets/{wallet_uuid}","title":"Get wallet","href":"/products/agentic-wallet/manual/reference/get-wallet"},{"openapi":"patch /api/v1/wallets/{wallet_uuid}","title":"Update wallet","href":"/products/agentic-wallet/manual/reference/update-wallet"},{"openapi":"post /api/v1/wallets/{wallet_uuid}/reshare","title":"Initiate wallet reshare","href":"/products/agentic-wallet/manual/reference/wallet-reshare"},{"openapi":"post /api/v1/wallets/{wallet_uuid}/tss/callback","title":"Report TSS request callback","href":"/products/agentic-wallet/manual/reference/wallet-tss-callback"},{"openapi":"post /api/v1/wallets/{wallet_uuid}/addresses","title":"Create wallet address","href":"/products/agentic-wallet/manual/reference/create-wallet-address"},{"openapi":"get /api/v1/wallets/{wallet_uuid}/addresses","title":"List wallet addresses","href":"/products/agentic-wallet/manual/reference/list-wallet-addresses"},{"openapi":"get /api/v1/wallets/{wallet_uuid}/node-status","title":"Get node status","href":"/products/agentic-wallet/manual/reference/get-wallet-node-status"},{"openapi":"get /api/v1/wallets/pairs/info/{wallet_uuid}","title":"Get pair info by wallet","href":"/products/agentic-wallet/manual/reference/get-pair-info-by-wallet"},{"openapi":"get /api/v1/wallets/pairs/{token}","title":"Get pair info by token","href":"/products/agentic-wallet/manual/reference/get-pair-info"},{"openapi":"post /api/v1/wallets/pairs/initiate","title":"Initiate wallet pairing (or restore code)","href":"/products/agentic-wallet/manual/reference/initiate-wallet-pair"},{"openapi":"post /api/v1/wallets/pairs/confirm","title":"Confirm wallet pairing","href":"/products/agentic-wallet/manual/reference/confirm-wallet-pair"}]},{"group":"Balance","pages":[{"openapi":"get /api/v1/wallets/balances","title":"List token balances","href":"/products/agentic-wallet/manual/reference/list-balances"}]},{"group":"Transactions","pages":[{"openapi":"get /api/v1/wallets/recent-addresses","title":"List recent addresses for current user","href":"/products/agentic-wallet/manual/reference/list-recent-addresses-by-user"},{"openapi":"post /api/v1/wallets/{wallet_uuid}/transfer","title":"Transfer tokens","href":"/products/agentic-wallet/manual/reference/transfer-tokens"},{"openapi":"post /api/v1/wallets/{wallet_uuid}/estimate-transfer-fee","title":"Estimate transfer fee","href":"/products/agentic-wallet/manual/reference/estimate-transfer-fee"},{"openapi":"post /api/v1/wallets/{wallet_uuid}/contract-call","title":"Call contract","href":"/products/agentic-wallet/manual/reference/contract-call"},{"openapi":"post /api/v1/wallets/{wallet_uuid}/estimate-contract-call-fee","title":"Estimate contract call fee","href":"/products/agentic-wallet/manual/reference/estimate-contract-call-fee"},{"openapi":"post /api/v1/wallets/{wallet_uuid}/message-sign","title":"Sign a message","href":"/products/agentic-wallet/manual/reference/message-sign"},{"openapi":"get /api/v1/wallets/{wallet_uuid}/recent-addresses","title":"List recent addresses","href":"/products/agentic-wallet/manual/reference/list-recent-addresses"},{"openapi":"post /api/v1/wallets/{wallet_uuid}/transactions/{transaction_uuid}/drop","title":"Drop transaction","href":"/products/agentic-wallet/manual/reference/drop-transaction"},{"openapi":"post /api/v1/wallets/{wallet_uuid}/transactions/{transaction_uuid}/speedup","title":"Speed up transaction","href":"/products/agentic-wallet/manual/reference/speedup-transaction"},{"openapi":"post /api/v1/wallets/webhook","title":"Handle WaaS webhook","href":"/products/agentic-wallet/manual/reference/handle-waas-webhook"},{"openapi":"post /api/v1/wallets/{wallet_uuid}/payment","title":"Create payment","href":"/products/agentic-wallet/manual/reference/payment"}]},{"group":"Transaction records","pages":[{"openapi":"get /api/v1/wallets/transactions","title":"List transaction records","href":"/products/agentic-wallet/manual/reference/list-user-transactions"},{"openapi":"get /api/v1/wallets/{wallet_uuid}/transactions/by-request-id/{request_id}","title":"Get transaction record by request id","href":"/products/agentic-wallet/manual/reference/get-user-transaction-by-request-id"},{"openapi":"get /api/v1/wallets/transactions/{record_uuid}","title":"Get transaction record by record id","href":"/products/agentic-wallet/manual/reference/get-user-transaction-by-uuid"},{"openapi":"get /api/v1/wallets/{wallet_uuid}/transactions/{record_uuid}","title":"Get transaction record","href":"/products/agentic-wallet/manual/reference/get-user-transaction"}]},{"group":"Pacts","pages":[{"openapi":"post /api/v1/pacts/submit","title":"Submit pact for approval","href":"/products/agentic-wallet/manual/reference/submit-pact"},{"openapi":"get /api/v1/pacts","title":"List pacts","href":"/products/agentic-wallet/manual/reference/list-pacts"},{"openapi":"get /api/v1/wallets/{wallet_id}/pacts/stats","title":"Get wallet pact statistics","href":"/products/agentic-wallet/manual/reference/get-wallet-pact-stats"},{"openapi":"get /api/v1/wallets/{wallet_id}/pacts/history","title":"Get wallet pact history","href":"/products/agentic-wallet/manual/reference/get-wallet-pact-history"},{"openapi":"get /api/v1/pacts/{pact_id}","title":"Get pact detail","href":"/products/agentic-wallet/manual/reference/get-pact"},{"openapi":"post /api/v1/pacts/{pact_id}/revoke","title":"Revoke active pact","href":"/products/agentic-wallet/manual/reference/revoke-pact"},{"openapi":"post /api/v1/pacts/{pact_id}/withdraw","title":"Withdraw pending pact","href":"/products/agentic-wallet/manual/reference/withdraw-pact"},{"openapi":"patch /api/v1/pacts/{pact_id}/completion-conditions","title":"Update completion conditions","href":"/products/agentic-wallet/manual/reference/update-completion-conditions"},{"openapi":"patch /api/v1/pacts/{pact_id}/policies","title":"Update pact policies","href":"/products/agentic-wallet/manual/reference/update-policies"},{"openapi":"get /api/v1/pacts/{pact_id}/events","title":"List pact events","href":"/products/agentic-wallet/manual/reference/list-pact-events"}]},{"group":"Pending operations","pages":[{"openapi":"get /api/v1/pending-operations","title":"List pending operations","href":"/products/agentic-wallet/manual/reference/list-pending-operations"},{"openapi":"get /api/v1/pending-operations/{pending_operation_id}","title":"Get pending operation","href":"/products/agentic-wallet/manual/reference/get-pending-operation"},{"openapi":"post /api/v1/pending-operations/{pending_operation_id}/approve","title":"Approve pending operation","href":"/products/agentic-wallet/manual/reference/approve-pending-operation"},{"openapi":"post /api/v1/pending-operations/{pending_operation_id}/reject","title":"Reject pending operation","href":"/products/agentic-wallet/manual/reference/reject-pending-operation"}]},{"group":"Audit","pages":[{"openapi":"get /api/v1/audit-logs","title":"List audit logs","href":"/products/agentic-wallet/manual/reference/list-audit-logs"}]},{"group":"Metadata","pages":[{"openapi":"get /api/v1/metadata/chains","title":"List supported chains","href":"/products/agentic-wallet/manual/reference/list-chains"},{"openapi":"get /api/v1/metadata/assets","title":"List supported assets","href":"/products/agentic-wallet/manual/reference/list-assets"},{"openapi":"get /api/v1/metadata/tokens/search","title":"Search tokens by symbol","href":"/products/agentic-wallet/manual/reference/search-tokens"},{"openapi":"get /api/v1/metadata/chains/{chain_id}/info","title":"Get chain info","href":"/products/agentic-wallet/manual/reference/get-chain-info-by-chain-id"},{"openapi":"post /api/v1/metadata/eth-call","title":"Call a view/pure function on an EVM contract","href":"/products/agentic-wallet/manual/reference/eth-call"}]},{"group":"Coin price","pages":[{"openapi":"get /api/v1/coin-price","title":"Get coin prices","href":"/products/agentic-wallet/manual/reference/get-asset-coin-prices"}]},{"group":"Faucet","pages":[{"openapi":"post /api/v1/faucet/deposit","title":"Request faucet deposit","href":"/products/agentic-wallet/manual/reference/deposit"},{"openapi":"get /api/v1/faucet/tokens","title":"List faucet tokens","href":"/products/agentic-wallet/manual/reference/list-tokens"}]},{"group":"Recipes","pages":[{"openapi":"post /api/v1/recipes/search","title":"Search recipes","href":"/products/agentic-wallet/manual/reference/search-recipes"}]}]}]},{"tab":"Learn","pages":[{"title":"Learn","href":"/products/agentic-wallet/manual/learn/overview"}]}]},"basePath":"","title":"Create API key - Cobo Agentic Wallet","deploymentId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","buildId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-C6Z1vAfX.js","snippetPresets-Bjd6OXRM.js","utils-QL6OhUyF.js","style-to-object-BY3JEAdk.js","utils-Dsq-HLeF.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-CEYfmkoV.js","conditional-requirements-CFM0id0Q.js","cloneDeep-CHgPjMM8.js","_Uint8Array-IXRJ_ueo.js","isObject-FP1Yky1u.js","ApiExamples-pq4ns9YA.js","usePlaygroundInputsStore-D-gnigmo.js","shallow-DIfWGPrf.js","isEqual-DDFuixlH.js","CodeSnippets-8g5rilZj.js","CodeSnippet-C_J7pouP.js","use-playground-group-access-bkOyfPao.js","Page-B_smDgrp.js","api-description-markdown-DtcP2u3s.js","DynamicMarkdown-DOefW1_8.js","SectionHeading-Cg4lfWZw.js","MethodPill-BnqygvYm.js","getPastedJson-BGXYEZ3P.js","Check2Icon-BBeO3TOS.js","axios-CsQoIw0U.js","Markdown-D5IqLG6A.js","AssistantPageLink-_S2h4i6W.js","dist-DzZqOeCq.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}