{"docsConfig":{"theme":"maple","themeVersion":2,"$schema":"https://mintlify.com/docs.json","name":"PostChamp Docs","description":"How to use PostChamp: write, design, schedule and grow on LinkedIn, plus the public API and MCP server.","colors":{"primary":"#0765ff","light":"#5b9bff","dark":"#0552d6"},"logo":{"light":"/logo/light.svg","dark":"/logo/dark.svg","href":"https://postchampai.com"},"favicon":"/favicon.svg","api":{"openapi":"api-reference/openapi.json","playground":{"display":"interactive"},"examples":{"languages":["curl","javascript","python"]}},"appearance":{"default":"system"},"navbar":{"links":[{"href":"mailto:[email protected]","label":"Support"},{"href":"https://postchampai.com","label":"postchampai.com"}],"primary":{"type":"button","label":"Open PostChamp","href":"https://app.postchampai.com"}},"footer":{"socials":{"website":"https://postchampai.com"}},"seo":{"metatags":{"og:site_name":"PostChamp Docs"},"indexing":"navigable"},"fonts":{"family":"Geist"},"icons":{"library":"lucide"},"contextual":{"options":["copy","view","chatgpt","claude","cursor","vscode"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"hasAudioNarration":false,"customDomains":[],"gitSource":{"type":"github","owner":"local","repo":"local","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"local","isBase":true},"buildId":"local","clientVersion":"0.0.4458"},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":true,"isLoggedInCli":false},"customCss":[]}
{"page":{"pagePath":"mcp/authentication","slug":"/mcp/authentication","pageMetadata":{"title":"Authentication","description":"How assistants sign in to PostChamp with OAuth 2.1, what the consent screen asks, how long tokens last and how to revoke access.","keywords":["OAuth","authentication","consent","DCR","CIMD","scope mcp","revoke","assistants"],"href":"/mcp/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 assistants sign in to PostChamp with OAuth 2.1, what the consent screen asks, how long tokens last and how to revoke access.\"\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];const Shot=({id,alt,caption})=>{const{Frame}=_provideComponents()||{};if(!Frame)_missingMdxReference(`Frame`,true);return _jsxs(Frame,{caption,children:[_jsx(`img`,{className:`mint-block dark:mint-hidden`,src:`/images/${id}.png`,alt}),_jsx(`img`,{className:`mint-hidden dark:mint-block`,src:`/images/${id}-dark.png`,alt})]})};const feature_mcp=`every plan`;const settings_assistants_url=`https://app.postchampai.com/settings/assistants`;const settings_assistants_label=`Settings → Assistants`;const mcp_cimd_fetches_per_host_per_minute=`30`;const mcp_cimd_fetches_per_ip_per_minute=`10`;const mcp_authorize_per_minute=`30`;const mcp_registrations_per_hour=`10`;const mcp_refresh_token_days=`30`;const mcp_access_token_minutes=`60`;const urls_api=`https://api.postchampai.com`;const urls_mcp=`https://api.postchampai.com/api/v1/mcp`;function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Accordion,AccordionGroup,Card,Columns,Heading,Note,Step,Steps,Table,Warning,_MdxComponentBoundary}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!AccordionGroup)_missingMdxReference(`AccordionGroup`,true);if(!Card)_missingMdxReference(`Card`,true);if(!Columns)_missingMdxReference(`Columns`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`PostChamp is its own OAuth 2.1 authorization server for assistants. There are no API keys for MCP: the assistant opens your browser, you sign in and approve, and it receives a token you can revoke at any time.`}),`\n`,_jsx(Heading,{level:`2`,id:`who-can-connect`,children:`Who can connect`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Owners and admins only.`}),` Editors, viewers and client reviewers cannot connect an assistant, and a connection stops working for a workspace when your role there drops below admin.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`A paid plan.`}),` Assistants are included on `,feature_mcp,`. A workspace without an eligible plan shows “Assistants need a paid plan.” on the consent screen and an upgrade prompt in Settings.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`An active workspace.`}),` A locked workspace shows “This workspace is locked.” and cannot be connected.`]}),`\n`]}),`\n`,_jsxs(Note,{children:[`These checks run on every tool call, not only when you connect. If your role, the plan or the workspace changes, the next call fails with `,_jsx(_components.code,{children:`forbidden`}),` or `,_jsx(_components.code,{children:`plan_limit`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`the-sign-in-flow`,children:`The sign-in flow`}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Discovery`,children:_jsxs(_components.p,{children:[`The assistant calls the MCP server without a token and gets `,_jsx(_components.code,{children:`401`}),` with a `,_jsx(_components.code,{children:`WWW-Authenticate`}),` header that names the protected resource metadata. From there it finds the authorization server.`]})}),_jsx(Step,{title:`Registration`,children:_jsx(_components.p,{children:`The assistant identifies itself with dynamic client registration or a client ID metadata document (see below).`})}),_jsx(Step,{title:`Authorization`,children:_jsx(_components.p,{children:`Your browser opens PostChamp. If you are not signed in, you sign in first. Authorization uses PKCE with S256 only.`})}),_jsx(Step,{title:`Consent`,children:_jsx(_components.p,{children:`You choose workspaces and approve. PostChamp sends the assistant back to its own redirect address with a code, and the assistant exchanges it for tokens.`})})]}),`\n`,_jsx(Heading,{level:`3`,id:`discovery-documents`,children:`Discovery documents`}),`\n`,_jsx(_components.p,{children:`These are public, served with CORS open to every origin and cached for five minutes.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Document`}),_jsx(_components.th,{children:`Where`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Protected resource metadata (main endpoint)`}),_jsxs(_components.td,{children:[_jsxs(`code`,{children:[urls_api,`/.well-known/oauth-protected-resource/api/v1/mcp`]}),` (also at `,_jsx(`code`,{children:`/.well-known/oauth-protected-resource`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Protected resource metadata (ChatGPT app)`}),_jsx(_components.td,{children:_jsxs(`code`,{children:[urls_api,`/.well-known/oauth-protected-resource/api/v1/mcp/chatgpt`]})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Authorization server metadata (RFC 8414)`}),_jsxs(_components.td,{children:[_jsx(`code`,{children:`/.well-known/oauth-authorization-server/api/auth`}),` on the app host, and `,_jsx(`code`,{children:`/.well-known/oauth-authorization-server`}),` on the API host as a fallback`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`OpenID configuration`}),_jsxs(_components.td,{children:[_jsx(`code`,{children:`/.well-known/openid-configuration`}),` on the same hosts`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`The protected resource document lists `,_jsx(_components.code,{children:`mcp`}),` as the scope, bearer tokens in the `,_jsx(_components.code,{children:`Authorization`}),` header, and the authorization server. The authorization server is the app host with `,_jsx(_components.code,{children:`/api/auth`}),` as the issuer.`]}),`\n`,_jsx(Heading,{level:`3`,id:`registering-a-client`,children:`Registering a client`}),`\n`,_jsx(_components.p,{children:`PostChamp accepts two ways for an assistant to identify itself:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Dynamic client registration.`}),` Open to public clients that use no secret (`,_jsx(_components.code,{children:`token_endpoint_auth_method: none`}),`). A registered client may hold the scopes `,_jsx(_components.code,{children:`mcp`}),` and `,_jsx(_components.code,{children:`offline_access`}),` only. Limit: `,mcp_registrations_per_hour,` registrations per IP address per hour.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Client ID metadata documents (CIMD).`}),` When the `,_jsx(_components.code,{children:`client_id`}),` is an `,_jsx(_components.code,{children:`https`}),` URL with a path, PostChamp fetches the JSON document at that URL. The `,_jsx(_components.code,{children:`client_id`}),` must equal the URL, and `,_jsx(_components.code,{children:`client_name`}),` and `,_jsx(_components.code,{children:`redirect_uris`}),` are required. The fetch is limited to public addresses, 64 KB and 5 seconds, with no redirect. Results are cached for 24 hours, or the document’s `,_jsx(_components.code,{children:`Cache-Control`}),` up to 7 days. Limits: `,mcp_cimd_fetches_per_ip_per_minute,` fetches per requesting IP and `,mcp_cimd_fetches_per_host_per_minute,` per target host per minute.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Redirect addresses must match exactly. They must be `,_jsx(_components.code,{children:`https`}),`, or `,_jsx(_components.code,{children:`http`}),` on a loopback host (any port).`]}),`\n`,_jsxs(_components.p,{children:[`Requests to the authorize endpoint are limited to `,mcp_authorize_per_minute,` per IP address per minute.`]}),`\n`,_jsx(Heading,{level:`2`,id:`the-consent-screen`,children:`The consent screen`}),`\n`,_jsx(_components.p,{children:`When an assistant asks to connect, PostChamp shows who is asking and what it can do.`}),`\n`,_jsx(_MdxComponentBoundary,{name:`Shot`,children:_jsx(Shot,{id:`mcp/consent`,alt:`The consent screen: Example assistant wants to connect to PostChamp, a list of workspaces with checkboxes, what it can do, and Approve and Cancel buttons`,caption:`1. Who is asking, and the account you are signed in as 2. Workspaces the assistant may use 3. What it can do 4. Approve`})}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Who is asking.`}),` The heading names the app. If it registered itself, the screen warns “Unverified app. Only continue if you started this connection yourself.” and shows the address it will send you back to. Apps that identify through a metadata document also show the host that publishes it. You can switch account from here.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Workspaces.`}),` Tick the workspaces the assistant may use. Workspaces you cannot connect are listed with the reason: only owners and admins can connect, assistants need a paid plan, or the workspace is locked.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`What it can do.`}),` Read your posts, voice and knowledge base. Write drafts. Schedule posts after you confirm. It never posts without asking.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Approve or Cancel.`}),` Cancel returns an `,_jsx(_components.code,{children:`access_denied`}),` error to the assistant.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`The consent link expires. If you see “This request has expired”, start the connection again from your assistant.`}),`\n`,_jsxs(_components.p,{children:[`The workspaces you tick become the assistant’s `,_jsx(_components.strong,{children:`grants`}),`. The ChatGPT app is the exception: it works with exactly one workspace and the screen shows radio buttons. See `,_jsx(_components.a,{href:`/mcp/chatgpt-app`,children:`ChatGPT app`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`scope-and-tokens`,children:`Scope and tokens`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Scope.`}),` The one MCP scope is `,_jsx(_components.code,{children:`mcp`}),`. A token without it gets `,_jsx(_components.code,{children:`403`}),` with `,_jsx(_components.code,{children:`error=\"insufficient_scope\"`}),`. `,_jsx(_components.code,{children:`offline_access`}),` is added so the assistant can refresh, and is never advertised.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Audience.`}),` Tokens carry the resource they were issued for. The main endpoint and the ChatGPT app endpoint do not accept each other’s tokens.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Lifetime.`}),` Access tokens last `,mcp_access_token_minutes,` minutes. Refresh tokens last `,mcp_refresh_token_days,` days and rotate on use.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Storage.`}),` Tokens are opaque. PostChamp stores only their SHA-256 hash and checks the token against the database on every request.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`using-several-workspaces`,children:`Using several workspaces`}),`\n`,_jsxs(_components.p,{children:[`A connection can hold more than one workspace. The assistant then passes a `,_jsx(_components.code,{children:`workspace`}),` argument on each call. See `,_jsx(_components.a,{href:`/mcp/limits-and-errors#the-workspace-argument`,children:`workspace argument`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`manage-and-revoke-connections`,children:`Manage and revoke connections`}),`\n`,_jsxs(_components.p,{children:[`Open `,_jsx(_components.a,{href:settings_assistants_url,children:settings_assistants_label}),`. It lists each connection with the assistant name, the person who connected it, its workspaces, when it was connected and when it was last used.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Edit workspaces.`}),` Change which workspaces your own connection may use. For someone else’s connection the action is `,_jsx(_components.strong,{children:`Remove workspaces`}),`: an admin can take workspaces away, but only the person who connected it can add workspaces, by connecting again.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Disconnect.`}),` The assistant stops working right away: the next request with its token fails. Drafts it made stay in your workspaces.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Owners and admins see every connection that touches workspaces they manage. If someone is removed from a workspace, their connection to it is revoked.`}),`\n`,_jsx(Warning,{children:`Removing the connector inside the assistant does not always revoke the sign-in at PostChamp. Disconnect in Settings as well.`}),`\n`,_jsx(Heading,{level:`2`,id:`per-client-tool-allowlist`,children:`Per-client tool allowlist`}),`\n`,_jsxs(_components.p,{children:[`PostChamp can restrict a registered client to a subset of tools. A tool outside the list does not appear in `,_jsx(_components.code,{children:`tools/list`}),` and calling it returns an unknown tool error. Clients without a list get every tool. This is set by PostChamp on the client record, not in the app.`]}),`\n`,_jsx(Heading,{level:`2`,id:`troubleshooting`,children:`Troubleshooting`}),`\n`,_jsxs(AccordionGroup,{children:[_jsx(Accordion,{title:`The assistant keeps asking me to sign in`,id:`the-assistant-keeps-asking-me-to-sign-in`,children:_jsx(_components.p,{children:`The token was revoked, or every workspace was removed from the connection. Reconnect the assistant and choose at least one workspace.`})}),_jsx(Accordion,{title:`Tool calls return 'Sign in to PostChamp to use this connector.'`,id:`tool-calls-return-sign-in-to-postchamp-to-use-this-connector`,children:_jsxs(_components.p,{children:[`This is the `,_jsx(_components.code,{children:`401`}),` the server sends when no valid token arrives. Re-authorize from the assistant.`]})}),_jsx(Accordion,{title:`The consent screen says I cannot connect any workspace`,id:`the-consent-screen-says-i-cannot-connect-any-workspace`,children:_jsx(_components.p,{children:`You need to be an owner or admin of a workspace on a paid plan. Ask an owner to change your role, or change the plan in Settings.`})}),_jsx(Accordion,{title:`The assistant says the client is not valid or disabled`,id:`the-assistant-says-the-client-is-not-valid-or-disabled`,children:_jsxs(_components.p,{children:[`A client that PostChamp has disabled is refused with `,_jsx(_components.code,{children:`client is disabled`}),`. Use another assistant, or contact support.`]})})]}),`\n`,_jsx(Heading,{level:`2`,id:`related`,children:`Related`}),`\n`,_jsxs(Columns,{cols:2,children:[_jsx(Card,{title:`Limits and errors`,icon:`gauge`,href:`/mcp/limits-and-errors`,children:`Rate limits and the error shape.`}),_jsx(Card,{title:`Connect a client`,icon:`plug`,href:`/mcp/clients/index`,children:`Setup guides for every client.`})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{Shot,feature_mcp,settings_assistants_url,settings_assistants_label,mcp_cimd_fetches_per_host_per_minute,mcp_cimd_fetches_per_ip_per_minute,mcp_authorize_per_minute,mcp_registrations_per_hour,mcp_refresh_token_days,mcp_access_token_minutes,urls_api,urls_mcp,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 assistants sign in to PostChamp with OAuth 2.1, what the consent screen asks, how long tokens last and how to revoke access.","keywords":["OAuth","authentication","consent","DCR","CIMD","scope mcp","revoke","assistants"],"href":"/mcp/authentication"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[2612,2631,"`every plan`,`. A wo"],[4866,4885,"`https://api.postchampai.com`,`/.well-kn"],[5178,5197,"`https://api.postchampai.com`,`/.well-kn"],[6776,6818,"`10`,` registrations"],[7550,7672,"`10`,` fetches per requesting IP and `,`30`,` per target hos"],[8003,8043,"`30`,` per IP addres"],[11118,11216,"`60`,` minutes. Refresh tokens last `,`30`,` days and rotate"],[12050,12092,"`Settings → Assistants`}),`. It lists ea"]]},"mdxExtracts":{"tableOfContents":[{"title":"Who can connect","slug":"who-can-connect","depth":2,"children":[]},{"title":"The sign-in flow","slug":"the-sign-in-flow","depth":2,"children":[{"title":"Discovery documents","slug":"discovery-documents","depth":3,"children":[]},{"title":"Registering a client","slug":"registering-a-client","depth":3,"children":[]}]},{"title":"The consent screen","slug":"the-consent-screen","depth":2,"children":[]},{"title":"Scope and tokens","slug":"scope-and-tokens","depth":2,"children":[]},{"title":"Using several workspaces","slug":"using-several-workspaces","depth":2,"children":[]},{"title":"Manage and revoke connections","slug":"manage-and-revoke-connections","depth":2,"children":[]},{"title":"Per-client tool allowlist","slug":"per-client-tool-allowlist","depth":2,"children":[]},{"title":"Troubleshooting","slug":"troubleshooting","depth":2,"children":[]},{"title":"Related","slug":"related","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"dynamicCss":".mint-block {\n display: block\n}\n.mint-hidden {\n display: none\n}\n.dark\\:mint-block:is(.dark *) {\n display: block\n}\n.dark\\:mint-hidden:is(.dark *) {\n display: none\n}","subdomain":"localhost","siteName":"PostChamp Docs","title":"Authentication - PostChamp Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"originalFileLocation":"mcp/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 assistants sign in to PostChamp with OAuth 2.1, what the consent screen asks, how long tokens last and how to revoke access.\">\u003cmeta data-mint-head name=\"application-name\" content=\"PostChamp Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/favicons/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/favicons/favicon-32x32.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/favicons/favicon-16x16.png\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/favicons/favicon.ico\">\u003cmeta data-mint-head property=\"og:title\" content=\"Authentication - PostChamp Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"How assistants sign in to PostChamp with OAuth 2.1, what the consent screen asks, how long tokens last and how to revoke access.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"PostChamp Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://local./mcp/authentication\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://docs.postchampai.com/_mintlify/og/mcp/authentication.png\">\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 - PostChamp Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"How assistants sign in to PostChamp with OAuth 2.1, what the consent screen asks, how long tokens last and how to revoke access.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://docs.postchampai.com/_mintlify/og/mcp/authentication.png\">\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=\"/favicons/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"PostChamp Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0765ff\">\u003clink data-mint-head rel=\"canonical\" href=\"https://local./mcp/authentication\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/mcp/authentication.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"PostChamp Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"PostChamp Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/mcp/authentication.md","siteName":"PostChamp Docs","nav":{"tabs":[{"tab":"Guides","icon":"book-open","pages":[{"title":"Guides","href":""}]},{"tab":"API reference","icon":"code","pages":[{"title":"API reference","href":"/api/overview"}]},{"tab":"MCP","icon":"plug","groups":[{"group":"Get started","pages":[{"title":"MCP server overview","href":"/mcp/overview"},{"title":"MCP quickstart","description":"Connect Claude to PostChamp in about two minutes, then try your first prompts. The same steps work for any MCP client.","href":"/mcp/quickstart"},{"title":"Authentication","href":"/mcp/authentication"},{"title":"Limits and errors","description":"Rate limits, the tool error shape, the preview and confirm flow for scheduling, the workspace argument and credit costs.","href":"/mcp/limits-and-errors"},{"title":"ChatGPT app","href":"/mcp/chatgpt-app"},{"title":"Agent skills","href":"/mcp/agent-skills"}]},{"group":"Connect a client","pages":[{"title":"Connect a client","href":"/mcp/clients/index"},{"title":"Claude","sidebarTitle":"Claude","href":"/mcp/clients/claude"},{"title":"Claude Code","sidebarTitle":"Claude Code","href":"/mcp/clients/claude-code"},{"title":"ChatGPT","sidebarTitle":"ChatGPT","href":"/mcp/clients/chatgpt"},{"title":"Cursor","sidebarTitle":"Cursor","href":"/mcp/clients/cursor"},{"title":"VS Code and GitHub Copilot","sidebarTitle":"VS Code and GitHub Copilot","href":"/mcp/clients/github-copilot"},{"title":"Windsurf","sidebarTitle":"Windsurf","href":"/mcp/clients/windsurf"},{"title":"Cline","sidebarTitle":"Cline","href":"/mcp/clients/cline"},{"title":"Codex","sidebarTitle":"Codex","href":"/mcp/clients/codex"},{"title":"Gemini CLI","sidebarTitle":"Gemini CLI","href":"/mcp/clients/gemini-cli"},{"title":"Zed","sidebarTitle":"Zed","href":"/mcp/clients/zed"},{"title":"Junie","sidebarTitle":"Junie","href":"/mcp/clients/junie"},{"title":"Kiro","sidebarTitle":"Kiro","href":"/mcp/clients/kiro"},{"title":"Goose","sidebarTitle":"Goose","href":"/mcp/clients/goose"},{"title":"OpenCode","sidebarTitle":"OpenCode","href":"/mcp/clients/opencode"},{"title":"Warp","sidebarTitle":"Warp","href":"/mcp/clients/warp"},{"title":"Amp","sidebarTitle":"Amp","href":"/mcp/clients/amp"},{"title":"Google Antigravity","sidebarTitle":"Google Antigravity","href":"/mcp/clients/antigravity"},{"title":"Grok","sidebarTitle":"Grok","href":"/mcp/clients/grok"},{"title":"Mistral Le Chat","sidebarTitle":"Mistral Le Chat","href":"/mcp/clients/mistral"},{"title":"Perplexity","sidebarTitle":"Perplexity","href":"/mcp/clients/perplexity"},{"title":"Raycast","sidebarTitle":"Raycast","href":"/mcp/clients/raycast"},{"title":"n8n","sidebarTitle":"n8n","href":"/mcp/clients/n8n"},{"title":"LM Studio","sidebarTitle":"LM Studio","href":"/mcp/clients/lm-studio"},{"title":"Hermes Agent","sidebarTitle":"Hermes Agent","href":"/mcp/clients/hermes-agent"},{"title":"Any MCP client","sidebarTitle":"Any MCP client","href":"/mcp/clients/any-mcp-client"}]},{"group":"Tool reference","pages":[{"title":"Tool reference","href":"/mcp/tools/index"},{"group":"Write","pages":[{"title":"generate_post","sidebarTitle":"generate_post","href":"/mcp/tools/generate-post"},{"title":"import_post","sidebarTitle":"import_post","href":"/mcp/tools/import-post"},{"title":"import_posts","sidebarTitle":"import_posts","href":"/mcp/tools/import-posts"},{"title":"get_post","sidebarTitle":"get_post","href":"/mcp/tools/get-post"},{"title":"update_post","sidebarTitle":"update_post","href":"/mcp/tools/update-post"},{"title":"delete_post","sidebarTitle":"delete_post","href":"/mcp/tools/delete-post"},{"title":"check_post_quality","sidebarTitle":"check_post_quality","href":"/mcp/tools/check-post-quality"},{"title":"set_first_comment","sidebarTitle":"set_first_comment","href":"/mcp/tools/set-first-comment"}]},{"group":"Research what works","pages":[{"title":"list_popular_posts","sidebarTitle":"list_popular_posts","href":"/mcp/tools/list-popular-posts"},{"title":"analyze_popular_posts","sidebarTitle":"analyze_popular_posts","href":"/mcp/tools/analyze-popular-posts"},{"title":"list_top_posts","sidebarTitle":"list_top_posts","href":"/mcp/tools/list-top-posts"}]},{"group":"Find people","pages":[{"title":"find_people","sidebarTitle":"find_people","href":"/mcp/tools/find-people"},{"title":"list_found_people","sidebarTitle":"list_found_people","href":"/mcp/tools/list-found-people"}]},{"group":"Images, carousels and video","pages":[{"title":"generate_image","sidebarTitle":"generate_image","href":"/mcp/tools/generate-image"},{"title":"attach_image_to_post","sidebarTitle":"attach_image_to_post","href":"/mcp/tools/attach-image-to-post"},{"title":"create_image_upload","sidebarTitle":"create_image_upload","href":"/mcp/tools/create-image-upload"},{"title":"attach_images","sidebarTitle":"attach_images","href":"/mcp/tools/attach-images"},{"title":"create_carousel","sidebarTitle":"create_carousel","href":"/mcp/tools/create-carousel"},{"title":"change_carousel","sidebarTitle":"change_carousel","href":"/mcp/tools/change-carousel"},{"title":"get_carousel","sidebarTitle":"get_carousel","href":"/mcp/tools/get-carousel"},{"title":"attach_carousel_to_post","sidebarTitle":"attach_carousel_to_post","href":"/mcp/tools/attach-carousel-to-post"},{"title":"create_pdf_upload","sidebarTitle":"create_pdf_upload","href":"/mcp/tools/create-pdf-upload"},{"title":"attach_pdf_to_post","sidebarTitle":"attach_pdf_to_post","href":"/mcp/tools/attach-pdf-to-post"},{"title":"create_video_upload","sidebarTitle":"create_video_upload","href":"/mcp/tools/create-video-upload"},{"title":"attach_video_to_post","sidebarTitle":"attach_video_to_post","href":"/mcp/tools/attach-video-to-post"}]},{"group":"Schedule","pages":[{"title":"schedule_post","sidebarTitle":"schedule_post","href":"/mcp/tools/schedule-post"},{"title":"reschedule_post","sidebarTitle":"reschedule_post","href":"/mcp/tools/reschedule-post"},{"title":"cancel_scheduled_post","sidebarTitle":"cancel_scheduled_post","href":"/mcp/tools/cancel-scheduled-post"},{"title":"schedule_posts","sidebarTitle":"schedule_posts","href":"/mcp/tools/schedule-posts"}]},{"group":"Your numbers","pages":[{"title":"get_posts_timeline","sidebarTitle":"get_posts_timeline","href":"/mcp/tools/get-posts-timeline"},{"title":"list_recent_posts","sidebarTitle":"list_recent_posts","href":"/mcp/tools/list-recent-posts"},{"title":"get_analytics_overview","sidebarTitle":"get_analytics_overview","href":"/mcp/tools/get-analytics-overview"},{"title":"get_posting_consistency","sidebarTitle":"get_posting_consistency","href":"/mcp/tools/get-posting-consistency"},{"title":"audit_linkedin","sidebarTitle":"audit_linkedin","href":"/mcp/tools/audit-linkedin"}]},{"group":"Your setup","pages":[{"title":"list_workspaces","sidebarTitle":"list_workspaces","href":"/mcp/tools/list-workspaces"},{"title":"get_voice_profile","sidebarTitle":"get_voice_profile","href":"/mcp/tools/get-voice-profile"},{"title":"get_brand_kit","sidebarTitle":"get_brand_kit","href":"/mcp/tools/get-brand-kit"},{"title":"list_content_styles","sidebarTitle":"list_content_styles","href":"/mcp/tools/list-content-styles"},{"title":"search_knowledge_base","sidebarTitle":"search_knowledge_base","href":"/mcp/tools/search-knowledge-base"},{"title":"check_credit_balance","sidebarTitle":"check_credit_balance","href":"/mcp/tools/check-credit-balance"},{"title":"get_help","sidebarTitle":"get_help","href":"/mcp/tools/get-help"},{"title":"ask_postchamp_data","sidebarTitle":"ask_postchamp_data","href":"/mcp/tools/ask-postchamp-data"}]}]}]},{"tab":"Changelog","icon":"clock","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Authentication - PostChamp Docs","buildId":"d1f31731afbf-v2-maple","dynamics":[],"chunks":[]}