OAuth clients need no key. Everything else — scripts, CI, self-hosted agents — uses an API
key created under Settings → API keys and sent as a bearer token:
Authorization: Bearer <your_api_key>
Scopes
A key carries only the scopes you grant it. A route that forgets to declare a scope stays
session-only rather than falling open to every key, so a key never reaches more than it was
given.
Scope
Grants
Tools
data:schema
Table and column names, types, and your notes. No data.
data:schema without data:read is a genuinely useful combination: an agent can learn the
shape of your database and answer questions about it without ever reading a row.
docs:publish is the widest of these in effect. Published documentation is served to
every agent querying that database, so a key with it can change how everyone’s queries get
written. Grant it deliberately.
Handling keys
Keys are stored hashed. TeamDuo cannot show you one again after it’s created.
Treat a key as equivalent to the access its scopes allow across every exposed datasource
the owning account can reach.
Revoke and reissue rather than sharing one between systems — the audit ledger records
which key ran a query, and that’s only useful if a key means one thing.
Calling the REST API directly
Most of TeamDuo’s REST API is session-only and refuses a key outright, regardless of its
scopes. Only five endpoints accept one — see the REST API overview
for which, and for full request and response shapes.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"TeamDuo","description":"The governed MCP gateway for your data. Connect a database, document it once, and let any AI agent query it safely.","colors":{"primary":"#5A8BFF","light":"#2ECBD4","dark":"#5A8BFF"},"logo":{"light":"https://mintcdn.com/teamduo/pHZeAilIkCsKxws9/logo/light.svg?fit=max\u0026auto=format\u0026n=pHZeAilIkCsKxws9\u0026q=85\u0026s=9fe83c23ad4b0cd9d038fa1ac23255a1","dark":"https://mintcdn.com/teamduo/pHZeAilIkCsKxws9/logo/dark.svg?fit=max\u0026auto=format\u0026n=pHZeAilIkCsKxws9\u0026q=85\u0026s=6cc3fcd94a8735e6a590f8d98f779a70"},"favicon":"https://mintcdn.com/teamduo/6r4tUiiS1p4VnIL-/favicon.svg?fit=max\u0026auto=format\u0026n=6r4tUiiS1p4VnIL-\u0026q=85\u0026s=1df4b735a99cd5fe23a750a5b9f6e9fa","navbar":{"links":[{"href":"https://www.teamduo.ai","label":"teamduo.ai"},{"href":"mailto:support@teamduo.ai","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.teamduo.ai"}},"footer":{"socials":{"github":"https://github.com/devduoai","website":"https://www.teamduo.ai"}},"seo":{"indexing":"all"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"teamduo","hasAudioNarration":false,"actualSubdomain":"teamduo","customDomains":["docs.teamduo.ai"],"gitSource":{"type":"github","owner":"devduoai","repo":"teamduo-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6aea226273eeffdaf5815bbb:success","clientVersion":"0.0.4410","searchFilterCounts":[{"language":"default","tag":"Reference","count":9},{"language":"default","tag":"Documentation","count":9},{"language":"default","tag":"Guides","count":6},{"language":"default","tag":"Endpoints","count":5},{"language":"default","tag":"Get started","count":3},{"language":"default","tag":"MCP","count":3},{"language":"default","tag":"REST API","count":1}]},"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":"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":[]}
{"page":{"pagePath":"reference/api-keys","slug":"/reference/api-keys","pageMetadata":{"title":"API keys and scopes","description":"Reaching the connector without a browser session.","href":"/reference/api-keys"},"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: \"Reaching the connector without a browser session.\"\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`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`OAuth clients need no key. Everything else — scripts, CI, self-hosted agents — uses an API\nkey created under `,_jsx(_components.strong,{children:`Settings → API keys`}),` and sent as a bearer token:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Authorization: Bearer \u003cyour_api_key>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`scopes`,children:`Scopes`}),`\n`,_jsx(_components.p,{children:`A key carries only the scopes you grant it. A route that forgets to declare a scope stays\nsession-only rather than falling open to every key, so a key never reaches more than it was\ngiven.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Scope`}),_jsx(_components.th,{children:`Grants`}),_jsx(_components.th,{children:`Tools`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data:schema`})}),_jsxs(_components.td,{children:[`Table and column names, types, and your notes. `,_jsx(_components.strong,{children:`No data.`})]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`list_teams`}),`, `,_jsx(_components.code,{children:`list_datasources`}),`, `,_jsx(_components.code,{children:`describe_datasource`}),`, `,_jsx(_components.code,{children:`search_docs`}),`, `,_jsx(_components.code,{children:`list_artifacts`}),`, `,_jsx(_components.code,{children:`get_artifact`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data:read`})}),_jsx(_components.td,{children:`Rows from exposed tables`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`run_query`}),`, `,_jsx(_components.code,{children:`run_find`}),`, `,_jsx(_components.code,{children:`run_aggregate`}),`, `,_jsx(_components.code,{children:`sample_rows`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`docs:write`})}),_jsx(_components.td,{children:`Draft documentation for review`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`document_finding`}),`, `,_jsx(_components.code,{children:`write_documentation`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`docs:publish`})}),_jsx(_components.td,{children:`Publish documentation to every agent on the database`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`publish_documentation`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`artifacts:write`})}),_jsx(_components.td,{children:`Create, change, and delete dashboards`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`publish_artifact`}),`, `,_jsx(_components.code,{children:`update_artifact`}),`, `,_jsx(_components.code,{children:`delete_artifact`}),`, `,_jsx(_components.code,{children:`get_artifact_template`})]})]})]})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`data:schema`}),` without `,_jsx(_components.code,{children:`data:read`}),` is a genuinely useful combination: an agent can learn the\nshape of your database and answer questions about it without ever reading a row.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`docs:publish`}),` is the widest of these in effect. Published documentation is served to\nevery agent querying that database, so a key with it can change how everyone’s queries get\nwritten. Grant it deliberately.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`handling-keys`,children:`Handling keys`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Keys are stored hashed. TeamDuo cannot show you one again after it’s created.`}),`\n`,_jsx(_components.li,{children:`Treat a key as equivalent to the access its scopes allow across every exposed datasource\nthe owning account can reach.`}),`\n`,_jsx(_components.li,{children:`Revoke and reissue rather than sharing one between systems — the audit ledger records\nwhich key ran a query, and that’s only useful if a key means one thing.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`calling-the-rest-api-directly`,children:`Calling the REST API directly`}),`\n`,_jsxs(_components.p,{children:[`Most of TeamDuo’s REST API is session-only and refuses a key outright, regardless of its\nscopes. Only five endpoints accept one — see the `,_jsx(_components.a,{href:`/api-reference/introduction`,children:`REST API overview`}),`\nfor which, and for full request and response shapes.`]})]})}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":"API keys and scopes","description":"Reaching the connector without a browser session.","href":"/reference/api-keys"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Scopes","slug":"scopes","depth":2,"children":[]},{"title":"Handling keys","slug":"handling-keys","depth":2,"children":[]},{"title":"Calling the REST API directly","slug":"calling-the-rest-api-directly","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"teamduo","siteName":"TeamDuo","title":"API keys and scopes - TeamDuo","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-20T02:51:22.896Z","originalFileLocation":"reference/api-keys.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=\"Reaching the connector without a browser session.\">\u003cmeta data-mint-head name=\"application-name\" content=\"TeamDuo\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/teamduo/CSvffj2duLsE_Jti/_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/teamduo/CSvffj2duLsE_Jti/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/teamduo/CSvffj2duLsE_Jti/_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/teamduo/CSvffj2duLsE_Jti/_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/teamduo/CSvffj2duLsE_Jti/_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/teamduo/CSvffj2duLsE_Jti/_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/teamduo/CSvffj2duLsE_Jti/_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/teamduo/CSvffj2duLsE_Jti/_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/teamduo/CSvffj2duLsE_Jti/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"API keys and scopes - TeamDuo\">\u003cmeta data-mint-head property=\"og:description\" content=\"Reaching the connector without a browser session.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"TeamDuo\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.teamduo.ai/reference/api-keys\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://teamduo.mintlify.site/_mintlify/api/og/v2?division=MCP\u0026amp;title=API+keys+and+scopes\u0026amp;description=Reaching+the+connector+without+a+browser+session.\u0026amp;theme=c1ebbe7f8f39cc10f550b1b4\u0026amp;signature=9a240f8d8ff12542b119f3c245b8c57a368cc33327b02121967bcc9822525648\">\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=\"API keys and scopes - TeamDuo\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Reaching the connector without a browser session.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://teamduo.mintlify.site/_mintlify/api/og/v2?division=MCP\u0026amp;title=API+keys+and+scopes\u0026amp;description=Reaching+the+connector+without+a+browser+session.\u0026amp;theme=c1ebbe7f8f39cc10f550b1b4\u0026amp;signature=9a240f8d8ff12542b119f3c245b8c57a368cc33327b02121967bcc9822525648\">\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/teamduo/CSvffj2duLsE_Jti/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"TeamDuo\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5A8BFF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.teamduo.ai/reference/api-keys\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/reference/api-keys.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.teamduo.ai/#organization\",\"name\":\"TeamDuo\",\"url\":\"https://docs.teamduo.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/teamduo/pHZeAilIkCsKxws9/logo/light.svg?fit=max\u0026auto=format\u0026n=pHZeAilIkCsKxws9\u0026q=85\u0026s=9fe83c23ad4b0cd9d038fa1ac23255a1\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.teamduo.ai#website\",\"name\":\"TeamDuo\",\"url\":\"https://docs.teamduo.ai\",\"publisher\":{\"@id\":\"https://docs.teamduo.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.teamduo.ai/reference/api-keys#webpage\",\"url\":\"https://docs.teamduo.ai/reference/api-keys\",\"name\":\"API keys and scopes\",\"description\":\"Reaching the connector without a browser session.\",\"dateModified\":\"2026-08-20T02:51:22.896Z\",\"isPartOf\":{\"@id\":\"https://docs.teamduo.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.teamduo.ai/reference/api-keys#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.teamduo.ai/reference/api-keys#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"MCP\",\"item\":\"https://docs.teamduo.ai/reference/mcp-tools\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"API keys and scopes\",\"item\":\"https://docs.teamduo.ai/reference/api-keys\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.teamduo.ai/reference/api-keys#article\",\"headline\":\"API keys and scopes\",\"name\":\"API keys and scopes\",\"description\":\"Reaching the connector without a browser session.\",\"url\":\"https://docs.teamduo.ai/reference/api-keys\",\"mainEntityOfPage\":{\"@id\":\"https://docs.teamduo.ai/reference/api-keys#webpage\"},\"dateModified\":\"2026-08-20T02:51:22.896Z\",\"publisher\":{\"@id\":\"https://docs.teamduo.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.teamduo.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"TeamDuo\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"TeamDuo\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/reference/api-keys.md","siteName":"TeamDuo","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"Reference","groups":[{"group":"MCP","pages":[{"title":"MCP tools","description":"Every tool an agent can call, and what each one needs.","href":"/reference/mcp-tools"},{"title":"API keys and scopes","href":"/reference/api-keys"},{"title":"Security model","description":"How read-only access is enforced, and where the limits are.","href":"/reference/security"}]},{"group":"REST API","pages":[{"title":"REST API overview","href":"/api-reference/introduction"}]},{"group":"Endpoints","pages":[{"title":"Get the current user","deprecated":null,"version":null,"openapi":"/openapi.json get /users/me","href":"/api-reference/account/get-the-current-user"},{"title":"List your teams","deprecated":null,"version":null,"openapi":"/openapi.json get /teams","href":"/api-reference/teams/list-your-teams"},{"title":"List a team's datasources","deprecated":null,"version":null,"openapi":"/openapi.json get /teams/{teamId}/datasources","href":"/api-reference/datasources/list-a-teams-datasources"},{"title":"Describe a datasource","deprecated":null,"version":null,"openapi":"/openapi.json get /teams/{teamId}/datasources/{id}/schema","href":"/api-reference/datasources/describe-a-datasource"},{"title":"Run a read-only query","deprecated":null,"version":null,"openapi":"/openapi.json post /teams/{teamId}/datasources/{id}/query","href":"/api-reference/datasources/run-a-read-only-query"}]}]}]},"basePath":"","title":"API keys and scopes - TeamDuo","deploymentId":"dpl_3VZr4zL4q2wbintGwWjSCGUgnuP7","buildId":"dpl_3VZr4zL4q2wbintGwWjSCGUgnuP7","dynamics":[],"chunks":[]}