{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Carboncopy","description":"Programmatic access to Polymarket copy-trading. Manage portfolios, follow traders, and track orders via REST API or MCP.","colors":{"primary":"#285e9f","light":"#4075aa","dark":"#285e9f"},"logo":{"light":"https://mintcdn.com/carboncopy/uOxY5QQvAG9VFLQ_/logo/light.png?fit=max\u0026auto=format\u0026n=uOxY5QQvAG9VFLQ_\u0026q=85\u0026s=ffc09e99895a9336642851d4a1a4239c","dark":"https://mintcdn.com/carboncopy/uOxY5QQvAG9VFLQ_/logo/dark.png?fit=max\u0026auto=format\u0026n=uOxY5QQvAG9VFLQ_\u0026q=85\u0026s=46ab164c05fdd0ecb41cdaefefa68e2f","href":"https://www.carboncopy.inc"},"favicon":"/favicon.png","navbar":{"links":[{"href":"mailto:support@carboncopy.inc","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://www.carboncopy.inc/portfolio"}},"footer":{"socials":{"x":"https://x.com/CarbonCopyInc","github":"https://github.com/CarbonCopyInc"}},"fonts":{"family":"Geist"},"styling":{"eyebrows":"section","codeblocks":{"theme":{"light":"github-light","dark":"github-dark"}},"latex":false},"thumbnails":{"appearance":"dark","fonts":{"family":"Playfair Display"}},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"carboncopy","hasAudioNarration":false,"actualSubdomain":"carboncopy","customDomains":["docs.carboncopy.inc"],"gitSource":{"type":"github","owner":"usehoplite","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae949b6e5b11aa510b60575:success","clientVersion":"0.0.4102","searchFilterCounts":[{"language":"default","tag":"API Reference","count":24},{"language":"default","tag":"Endpoints","count":23},{"language":"default","tag":"Follow Management","count":8},{"language":"default","tag":"Portfolio","count":8},{"language":"default","tag":"Guides","count":7},{"language":"default","tag":"Getting Started","count":5},{"language":"default","tag":"Reference","count":4},{"language":"default","tag":"Polymarket MCP","count":4},{"language":"default","tag":"Orders","count":2},{"language":"default","tag":"Trader Discovery","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[],"page":{"pagePath":"authentication","slug":"/authentication","pageMetadata":{"title":"Authentication","description":"Authenticate with the Carboncopy API using scoped API keys.","href":"/authentication"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Authenticate with the Carboncopy API using scoped API keys.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,hr:`hr`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsxs(_components.p,{children:[`All API endpoints are authenticated using `,_jsx(_components.strong,{children:`API keys`}),`. Pass your key as a Bearer token in the `,_jsx(_components.code,{children:`Authorization`}),` header.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`curl`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` https://carboncopy.inc/api/v1/portfolio`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -H`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Authorization: Bearer cc_your_key_here\"`})]}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`api-keys`,children:`API Keys`}),`\n`,_jsx(Heading,{level:`3`,id:`format`,children:`Format`}),`\n`,_jsxs(_components.p,{children:[`API keys follow the format `,_jsx(_components.code,{children:`cc_`}),` followed by 64 lowercase hexadecimal characters:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`cc_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`creating-a-key`,children:`Creating a key`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Log in to `,_jsx(_components.a,{href:`https://www.carboncopy.inc`,children:`Carboncopy`})]}),`\n`,_jsxs(_components.li,{children:[`Navigate to `,_jsx(_components.a,{href:`https://www.carboncopy.inc/settings`,children:_jsx(_components.strong,{children:`Settings → API Keys`})})]}),`\n`,_jsxs(_components.li,{children:[`Click `,_jsx(_components.strong,{children:`Create Key`}),`, choose a name and scopes`]}),`\n`,_jsxs(_components.li,{children:[`Copy the key — it’s shown `,_jsx(_components.strong,{children:`exactly once`}),` and cannot be retrieved later`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`scopes`,children:`Scopes`}),`\n`,_jsx(_components.p,{children:`Every key is issued with a set of scopes that control what it can access. Always issue keys with the minimum scopes your use-case requires.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Scope`}),_jsx(_components.th,{children:`Values`}),_jsx(_components.th,{children:`Controls`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`portfolio`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`none`}),`, `,_jsx(_components.code,{children:`read`})]}),_jsx(_components.td,{children:`View portfolio summary, history, and positions`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`traders`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`none`}),`, `,_jsx(_components.code,{children:`read`}),`, `,_jsx(_components.code,{children:`write`})]}),_jsxs(_components.td,{children:[`List/view traders (`,_jsx(_components.code,{children:`read`}),`); follow/edit/unfollow (`,_jsx(_components.code,{children:`write`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`orders`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`none`}),`, `,_jsx(_components.code,{children:`read`}),`, `,_jsx(_components.code,{children:`write`})]}),_jsxs(_components.td,{children:[`View orders (`,_jsx(_components.code,{children:`read`}),`); future order mutations (`,_jsx(_components.code,{children:`write`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`markets`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`none`}),`, `,_jsx(_components.code,{children:`read`})]}),_jsx(_components.td,{children:`Market data access (coming soon)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`account`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`none`}),`, `,_jsx(_components.code,{children:`read`})]}),_jsx(_components.td,{children:`View account information`})]})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`write`}),` scope implies `,_jsx(_components.code,{children:`read`}),` for the same resource. You don’t need to grant both.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`key-lifecycle`,children:`Key lifecycle`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Maximum `,_jsx(_components.strong,{children:`10 active keys`}),` per account.`]}),`\n`,_jsx(_components.li,{children:`Keys can have an optional expiry timestamp.`}),`\n`,_jsxs(_components.li,{children:[`Revoke a key anytime from `,_jsx(_components.a,{href:`https://www.carboncopy.inc/settings`,children:_jsx(_components.strong,{children:`Settings → API Keys`})}),`.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`security-best-practices`,children:`Security best practices`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Never commit API keys to source control. Use environment variables or a secrets manager.`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Rotate regularly`}),` — set an expiry and automate rotation in production.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Narrow scopes`}),` — monitoring bots only need `,_jsx(_components.code,{children:`portfolio:read`}),`; they don’t need `,_jsx(_components.code,{children:`traders:write`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`One key per service`}),` — easier to audit, easier to revoke if compromised.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Revoke immediately`}),` if a key is exposed.`]}),`\n`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`error-responses`,children:`Error responses`}),`\n`,_jsxs(_components.p,{children:[`If authentication fails, the API returns a `,_jsx(_components.code,{children:`401 Unauthorized`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"unauthorized\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"Invalid or missing API key.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`If you authenticate successfully but your key lacks the required scope, you’ll receive `,_jsx(_components.code,{children:`403 Forbidden`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"forbidden\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"This key does not have the required scope.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/errors`,children:`Errors`}),` for the full error reference.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":{"theme":{"light":"github-light","dark":"github-dark"}},"config":{},"pageMetadata":{"title":"Authentication","description":"Authenticate with the Carboncopy API using scoped API keys.","href":"/authentication"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Overview","slug":"overview","depth":2,"children":[]},{"title":"API Keys","slug":"api-keys","depth":2,"children":[{"title":"Format","slug":"format","depth":3,"children":[]},{"title":"Creating a key","slug":"creating-a-key","depth":3,"children":[]},{"title":"Scopes","slug":"scopes","depth":3,"children":[]},{"title":"Key lifecycle","slug":"key-lifecycle","depth":3,"children":[]},{"title":"Security best practices","slug":"security-best-practices","depth":3,"children":[]}]},{"title":"Error responses","slug":"error-responses","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"carboncopy","siteName":"Carboncopy","title":"Authentication - Carboncopy","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-03-11T21:42:36.430Z","originalFileLocation":"authentication.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=\"Authenticate with the Carboncopy API using scoped API keys.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Carboncopy\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/carboncopy/dN_zrh27RNVBTvdl/_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/carboncopy/dN_zrh27RNVBTvdl/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/carboncopy/dN_zrh27RNVBTvdl/_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/carboncopy/dN_zrh27RNVBTvdl/_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/carboncopy/dN_zrh27RNVBTvdl/_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/carboncopy/dN_zrh27RNVBTvdl/_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/carboncopy/dN_zrh27RNVBTvdl/_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/carboncopy/dN_zrh27RNVBTvdl/_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/carboncopy/dN_zrh27RNVBTvdl/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Authentication - Carboncopy\">\u003cmeta data-mint-head property=\"og:description\" content=\"Authenticate with the Carboncopy API using scoped API keys.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Carboncopy\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.carboncopy.inc/authentication\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://carboncopy.mintlify.site/_mintlify/api/og/v2?division=Getting+Started\u0026amp;title=Authentication\u0026amp;description=Authenticate+with+the+Carboncopy+API+using+scoped+API+keys.\u0026amp;theme=0f9a0f9db1196190fe99fe5e\u0026amp;signature=53286132787b02a96f7e92adb3c249479f9fb2695fa6e9c6fcb09cf5ce9aa61f\">\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=\"Authentication - Carboncopy\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Authenticate with the Carboncopy API using scoped API keys.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://carboncopy.mintlify.site/_mintlify/api/og/v2?division=Getting+Started\u0026amp;title=Authentication\u0026amp;description=Authenticate+with+the+Carboncopy+API+using+scoped+API+keys.\u0026amp;theme=0f9a0f9db1196190fe99fe5e\u0026amp;signature=53286132787b02a96f7e92adb3c249479f9fb2695fa6e9c6fcb09cf5ce9aa61f\">\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/carboncopy/dN_zrh27RNVBTvdl/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Carboncopy\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#285e9f\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.carboncopy.inc/authentication\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/authentication.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.carboncopy.inc/#organization\",\"name\":\"Carboncopy\",\"url\":\"https://docs.carboncopy.inc\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/carboncopy/uOxY5QQvAG9VFLQ_/logo/light.png?fit=max\u0026auto=format\u0026n=uOxY5QQvAG9VFLQ_\u0026q=85\u0026s=ffc09e99895a9336642851d4a1a4239c\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.carboncopy.inc#website\",\"name\":\"Carboncopy\",\"url\":\"https://docs.carboncopy.inc\",\"publisher\":{\"@id\":\"https://docs.carboncopy.inc/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.carboncopy.inc/authentication#webpage\",\"url\":\"https://docs.carboncopy.inc/authentication\",\"name\":\"Authentication\",\"description\":\"Authenticate with the Carboncopy API using scoped API keys.\",\"dateModified\":\"2026-03-11T21:42:36.430Z\",\"isPartOf\":{\"@id\":\"https://docs.carboncopy.inc#website\"},\"breadcrumb\":{\"@id\":\"https://docs.carboncopy.inc/authentication#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.carboncopy.inc/authentication#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Getting Started\",\"item\":\"https://docs.carboncopy.inc\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Authentication\",\"item\":\"https://docs.carboncopy.inc/authentication\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.carboncopy.inc/authentication#article\",\"headline\":\"Authentication\",\"name\":\"Authentication\",\"description\":\"Authenticate with the Carboncopy API using scoped API keys.\",\"url\":\"https://docs.carboncopy.inc/authentication\",\"mainEntityOfPage\":{\"@id\":\"https://docs.carboncopy.inc/authentication#webpage\"},\"dateModified\":\"2026-03-11T21:42:36.430Z\",\"publisher\":{\"@id\":\"https://docs.carboncopy.inc/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.carboncopy.inc#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Carboncopy\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Carboncopy\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/authentication.md","siteName":"Carboncopy","nav":{"global":null,"tabs":[{"tab":"Guides","icon":"book-open","groups":[{"group":"Getting Started","icon":"play","pages":[{"title":"Carboncopy API","sidebarTitle":"Introduction","href":""},{"title":"Quickstart","description":"Make your first Carboncopy API call in under 5 minutes.","href":"/quickstart"},{"title":"Authentication","href":"/authentication"}]},{"group":"Reference","icon":"book","pages":[{"title":"Rate Limits","description":"Understand Carboncopy's rate limit tiers, response headers, and how to handle 429 errors gracefully.","href":"/rate-limits"},{"title":"Errors","href":"/errors"},{"title":"Pagination","href":"/pagination"}]},{"group":"Integrations","icon":"plug","pages":[{"title":"MCP Server","href":"/mcp-server"}]}]},{"tab":"Polymarket MCP","icon":"chart-network","pages":[{"title":"Polymarket MCP","href":"/polymarket-mcp/overview"}]},{"tab":"API Reference","icon":"square-terminal","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]}]},"basePath":"","title":"Authentication - Carboncopy","buildId":"dpl_596ePT575z4qnAFksq1biRW97aLY","deploymentId":"dpl_596ePT575z4qnAFksq1biRW97aLY","dynamics":[],"chunks":[]}