Never expose your API key in client-side code, public repositories, or logs.
Store keys in environment variables, not hardcoded in source files
Use secrets managers (AWS Secrets Manager, HashiCorp Vault, Vercel env vars) in production
Rotate keys immediately if you suspect compromise — generate a new key on the API Keys page
Error responses
Status
Meaning
401 Unauthorized
Key is missing, invalid, or revoked
{ "error": "Invalid API key" }
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Current API Docs","colors":{"primary":"#6494ec","light":"#6494ec","dark":"#00205c"},"logo":{"light":"https://mintcdn.com/current/jBedsMSQc9W-BrGe/images/current-wordmark-navy.svg?fit=max\u0026auto=format\u0026n=jBedsMSQc9W-BrGe\u0026q=85\u0026s=eba1002cee501f07bb8a932681de63b6","dark":"https://mintcdn.com/current/jBedsMSQc9W-BrGe/images/current-wordmark.svg?fit=max\u0026auto=format\u0026n=jBedsMSQc9W-BrGe\u0026q=85\u0026s=421f5652b8987331a6d59188911e6b7c","href":"https://docs.getcurrent.ca"},"favicon":"https://app.getcurrent.ca/favicon.ico","api":{"openapi":"openapi.yaml"},"appearance":{"default":"system"},"background":{"decoration":"gradient","color":{"dark":"#00091b"}},"navbar":{"links":[{"href":"https://calendly.com/michaelbibla/meeting","label":"Talk to Us"},{"href":"https://app.getcurrent.ca/login","label":"Get Started"}]},"fonts":{"family":"Inter","weight":400},"icons":{"library":"lucide"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"current","hasAudioNarration":false,"actualSubdomain":"current","customDomains":["docs.getcurrent.ca"],"gitSource":{"type":"github","owner":"getcurrent","repo":"current-app","deployBranch":"main","contentDirectory":"mintlify","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6b00a501ddb056ee47399d5c","clientVersion":"0.0.4270","searchFilterCounts":[{"language":"default","tag":"API Reference","count":17},{"language":"default","tag":"Guides","count":8},{"language":"default","tag":"Search","count":7},{"language":"default","tag":"Overview","count":3},{"language":"default","tag":"Concepts","count":3},{"language":"default","tag":"Businesses","count":3},{"language":"default","tag":"Business Reports","count":2},{"language":"default","tag":"Verification","count":2},{"language":"default","tag":"Changelog","count":1},{"language":"default","tag":"Releases","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"authentication","slug":"/authentication","pageMetadata":{"title":"Authentication","description":"How to authenticate API requests","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: \"How to authenticate API requests\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`All API requests require an API key. You can generate one from your `,_jsx(_components.a,{href:`https://app.getcurrent.ca/api-keys`,children:`API Keys`}),` page.`]}),`\n`,_jsxs(_components.p,{children:[`Keys follow the format `,_jsx(_components.code,{children:`cur_live_xxxxxxxxxxxx`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`authentication-methods`,children:`Authentication methods`}),`\n`,_jsx(_components.p,{children:`There are two ways to authenticate. Both are equivalent — use whichever fits your HTTP client.`}),`\n`,_jsx(Heading,{level:`3`,id:`bearer-token-recommended`,children:`Bearer token (recommended)`}),`\n`,_jsxs(_components.p,{children:[`Pass your key in the `,_jsx(_components.code,{children:`Authorization`}),` header:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`Authorization:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` Bearer`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` cur_live_xxxxxxxxxxxx`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`api-key-header`,children:`API key header`}),`\n`,_jsxs(_components.p,{children:[`Alternatively, use the `,_jsx(_components.code,{children:`X-API-Key`}),` header:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`X-API-Key:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` cur_live_xxxxxxxxxxxx`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`full-example`,children:`Full example`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Bearer token`,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.getcurrent.ca/v1/search`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer cur_live_xxxxxxxxxxxx\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"name\": \"Acme Corp\"}'`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`X-API-Key header`,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.getcurrent.ca/v1/search`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-API-Key: cur_live_xxxxxxxxxxxx\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"name\": \"Acme Corp\"}'`})]}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`security-best-practices`,children:`Security best practices`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Never expose your API key in client-side code, public repositories, or logs.`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Store keys in environment variables, not hardcoded in source files`}),`\n`,_jsx(_components.li,{children:`Use secrets managers (AWS Secrets Manager, HashiCorp Vault, Vercel env vars) in production`}),`\n`,_jsxs(_components.li,{children:[`Rotate keys immediately if you suspect compromise — generate a new key on the `,_jsx(_components.a,{href:`https://app.getcurrent.ca/api-keys`,children:`API Keys`}),` page`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`error-responses`,children:`Error responses`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`401 Unauthorized`})}),_jsx(_components.td,{children:`Key is missing, invalid, or revoked`})]})})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Invalid API key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Authentication","description":"How to authenticate API requests","href":"/authentication"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Authentication methods","slug":"authentication-methods","depth":2,"children":[{"title":"Bearer token (recommended)","slug":"bearer-token-recommended","depth":3,"children":[]},{"title":"API key header","slug":"api-key-header","depth":3,"children":[]}]},{"title":"Full example","slug":"full-example","depth":2,"children":[]},{"title":"Security best practices","slug":"security-best-practices","depth":2,"children":[]},{"title":"Error responses","slug":"error-responses","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"current","siteName":"Current API Docs","title":"Authentication - Current API Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-12T21:10:34.607Z","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=\"How to authenticate API requests\">\u003cmeta data-mint-head name=\"application-name\" content=\"Current API Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/x-icon\" sizes=\"180x180\" href=\"https://app.getcurrent.ca/favicon.ico\">\u003clink data-mint-head rel=\"icon\" type=\"image/x-icon\" sizes=\"32x32\" href=\"https://app.getcurrent.ca/favicon.ico\">\u003clink data-mint-head rel=\"icon\" type=\"image/x-icon\" sizes=\"16x16\" href=\"https://app.getcurrent.ca/favicon.ico\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://app.getcurrent.ca/favicon.ico\">\u003cmeta data-mint-head property=\"og:title\" content=\"Authentication - Current API Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"How to authenticate API requests\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Current API Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.getcurrent.ca/authentication\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://current.mintlify.site/_mintlify/api/og/v2?division=Overview\u0026amp;title=Authentication\u0026amp;description=How+to+authenticate+API+requests\u0026amp;theme=e90ec1b615802b250f55578e\u0026amp;signature=1231f2280c36f72cfca3420b4a1252c7122d56657c7f882f82d30a1a5ab20f3c\">\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 - Current API Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"How to authenticate API requests\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://current.mintlify.site/_mintlify/api/og/v2?division=Overview\u0026amp;title=Authentication\u0026amp;description=How+to+authenticate+API+requests\u0026amp;theme=e90ec1b615802b250f55578e\u0026amp;signature=1231f2280c36f72cfca3420b4a1252c7122d56657c7f882f82d30a1a5ab20f3c\">\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=\"https://mintlify.s3.us-west-1.amazonaws.com/current/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Current API Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6494ec\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.getcurrent.ca/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.getcurrent.ca/#organization\",\"name\":\"Current API Docs\",\"url\":\"https://docs.getcurrent.ca\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/current/jBedsMSQc9W-BrGe/images/current-wordmark-navy.svg?fit=max\u0026auto=format\u0026n=jBedsMSQc9W-BrGe\u0026q=85\u0026s=eba1002cee501f07bb8a932681de63b6\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.getcurrent.ca#website\",\"name\":\"Current API Docs\",\"url\":\"https://docs.getcurrent.ca\",\"publisher\":{\"@id\":\"https://docs.getcurrent.ca/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.getcurrent.ca/authentication#webpage\",\"url\":\"https://docs.getcurrent.ca/authentication\",\"name\":\"Authentication\",\"description\":\"How to authenticate API requests\",\"dateModified\":\"2026-11-12T21:10:34.607Z\",\"isPartOf\":{\"@id\":\"https://docs.getcurrent.ca#website\"},\"breadcrumb\":{\"@id\":\"https://docs.getcurrent.ca/authentication#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.getcurrent.ca/authentication#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Overview\",\"item\":\"https://docs.getcurrent.ca/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Authentication\",\"item\":\"https://docs.getcurrent.ca/authentication\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.getcurrent.ca/authentication#article\",\"headline\":\"Authentication\",\"name\":\"Authentication\",\"description\":\"How to authenticate API requests\",\"url\":\"https://docs.getcurrent.ca/authentication\",\"mainEntityOfPage\":{\"@id\":\"https://docs.getcurrent.ca/authentication#webpage\"},\"dateModified\":\"2026-11-12T21:10:34.607Z\",\"publisher\":{\"@id\":\"https://docs.getcurrent.ca/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.getcurrent.ca#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Current API Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Current API Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/authentication.md","siteName":"Current API Docs","nav":{"global":null,"groups":[{"group":"Overview","pages":[{"title":"Introduction","href":"/introduction"},{"title":"Quickstart","description":"Make your first API call in under 5 minutes","href":"/quickstart"},{"title":"Authentication","href":"/authentication"}]},{"group":"Guides","pages":[{"title":"Running a search","description":"How to search for a Canadian business and understand what comes back","href":"/guides/searching"},{"title":"Pre-filling a business","href":"/guides/prefilling"},{"title":"Business verification","href":"/guides/verification"},{"title":"Business record sync","href":"/guides/business-sync"},{"title":"Business reports","href":"/guides/business-reports"},{"title":"Regulatory registry","href":"/guides/regulatory-registry"},{"title":"Sanctions screening","href":"/guides/sanctions-screening"},{"title":"Website analysis","href":"/guides/website-analysis"}]},{"group":"Concepts","pages":[{"title":"Response structure","href":"/concepts/response-structure"},{"title":"Rate limits","href":"/concepts/rate-limits"},{"title":"Error handling","href":"/concepts/errors"}]},{"group":"API Reference","pages":[{"group":"Search","pages":[{"title":"Create Search","deprecated":null,"version":null,"openapi":"/openapi.yaml post /search","href":"/api-reference/search/create-search"},{"title":"Get search by ID","deprecated":null,"version":null,"openapi":"/openapi.yaml get /search/{id}","href":"/api-reference/search/get-search-by-id"},{"title":"Resolve a search's match","deprecated":null,"version":null,"openapi":"/openapi.yaml post /search/{id}/selection","href":"/api-reference/search/resolve-a-searchs-match"},{"title":"Get search history","deprecated":null,"version":null,"openapi":"/openapi.yaml get /search/history","href":"/api-reference/search/get-search-history"},{"title":"List searches","deprecated":null,"version":null,"openapi":"/openapi.yaml get /searches","href":"/api-reference/search/list-searches"},{"title":"Create Search","deprecated":null,"version":null,"openapi":"/openapi.yaml post /searches","href":"/api-reference/search/create-search-1"},{"title":"Get search by ID","deprecated":null,"version":null,"openapi":"/openapi.yaml get /searches/{id}","href":"/api-reference/search/get-search-by-id-1"}]},{"group":"Pre-fill","pages":[{"title":"Pre-fill Business","deprecated":null,"version":null,"sidebarTitle":"Prefill business","openapi":"/openapi.yaml post /prefill","href":"/api-reference/prefill-business"}]},{"group":"Generate PDF","pages":[{"title":"Generate PDF report","deprecated":null,"version":null,"openapi":"/openapi.yaml post /generate-pdf","href":"/api-reference/generate-pdf/generate-pdf-report"}]},{"group":"Business Reports","pages":[{"title":"Request Business Report","deprecated":null,"version":null,"openapi":"/openapi.yaml post /business-reports","href":"/api-reference/business-reports/request-business-report"},{"title":"Get Business Report by ID","deprecated":null,"version":null,"openapi":"/openapi.yaml get /business-reports/document","href":"/api-reference/business-reports/get-business-report-by-id"}]},{"group":"Verification","pages":[{"title":"Verify Business","deprecated":null,"version":null,"openapi":"/openapi.yaml post /verify","href":"/api-reference/verification/verify-business"},{"title":"Get verification result (poll)","deprecated":null,"version":null,"openapi":"/openapi.yaml get /verify/{id}","href":"/api-reference/verification/get-verification-result-poll"}]},{"group":"Sanctions","pages":[{"title":"Screen Sanctions","deprecated":null,"version":null,"openapi":"/openapi.yaml post /sanctions","href":"/api-reference/sanctions/screen-sanctions"}]},{"group":"Businesses","pages":[{"title":"List business records","deprecated":null,"version":null,"openapi":"/openapi.yaml get /businesses","href":"/api-reference/businesses/list-business-records"},{"title":"Create or update a business record (alias of POST)","deprecated":null,"version":null,"openapi":"/openapi.yaml put /businesses","href":"/api-reference/businesses/create-or-update-a-business-record-alias-of-post"},{"title":"Create or update a business record","deprecated":null,"version":null,"openapi":"/openapi.yaml post /businesses","href":"/api-reference/businesses/create-or-update-a-business-record"}]}]},{"group":"Changelog","pages":[{"title":"API Changelog","href":"/changelog"}]},{"group":"Releases","pages":[{"title":"Product Releases","href":"/releases"}]}]},"basePath":"","title":"Authentication - Current API Docs","deploymentId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","buildId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","dynamics":[],"chunks":[]}