OAuth 2.0 Bearer Token authenticates requests on behalf of your developer App. As this method is specific to the App, it does not involve any users. This method is typically for developers that need read-only access to public information. This authentication method requires for you to pass a Bearer Token with your request, which you can generate within the Keys and tokens section of your developer Apps. Here is an example of what a request looks like with a fake Bearer Token:
API calls using app-only authentication are rate limited per endpoint at the App level.To use this method, you’ll need a Bearer Token, which you can generate by passing your API Key and Secret through the POST oauth2/token endpoint, or by generating it in the “keys and token” section of your App settings in the Developer Console.If you’d like to revoke a Bearer Token, you can use the POST oauth2/invalidate_token endpoint, or click where it says “revoke” next to the Bearer Token in the “keys and tokens” section of your App settings.
OAuth 2.0 Authorization Code Flow with PKCE allows you to authenticate on behalf of another user with more control over an application’s scopes and improves authorization flows across multiple devices. In other words, developers building applications for people on X will have more control over the information their App requests from its users, so that you only have to ask your end-users for the data and information you need.This modern authorization protocol will allow you to present your end-users with a more streamlined consent flow for authorizing your app, which only displays the specific scopes you have requested from them. Not only does this reduce your data burden, but it may also lead to increased trust from end-users.
⌘I
{"docsConfig":{"theme":"luma","$schema":"https://mintlify.com/docs.json","name":"X","colors":{"primary":"#0D0D0D","light":"#B2B2B2","dark":"#0D0D0D"},"logo":{"light":"https://mintcdn.com/x-preview/CX6FNhUUR8mtNZ97/logo/light.svg?fit=max\u0026auto=format\u0026n=CX6FNhUUR8mtNZ97\u0026q=85\u0026s=b2e6f2ff399e1bc5cd0c588f9644983d","dark":"https://mintcdn.com/x-preview/CX6FNhUUR8mtNZ97/logo/dark.svg?fit=max\u0026auto=format\u0026n=CX6FNhUUR8mtNZ97\u0026q=85\u0026s=d7b8656c2bcee6e9d5c947f6419e8b82"},"favicon":"https://mintcdn.com/x-preview/s_D1jGy1nLdDmXkd/favicon.png?fit=max\u0026auto=format\u0026n=s_D1jGy1nLdDmXkd\u0026q=85\u0026s=80ae09fccb5fee6b52fc4f31c15ac2f7","appearance":{"default":"dark","strict":true},"background":{"color":{"light":"#FFFFFF","dark":"#000000"}},"navbar":{"links":[{"href":"/support","label":"Support"}],"primary":{"type":"button","label":"Developer Console","href":"https://developer.x.com/en/portal/petition/essential/basic-info"}},"footer":{"socials":{"x":"https://x.com/xdevelopers","github":"https://github.com/xdevplatform"},"links":[{"header":"Resources","items":[{"label":"Status","href":"https://developer.x.com/status"},{"label":"Incidents","href":"/incidents"}]},{"header":"Legal","items":[{"label":"Terms of Service","href":"https://x.com/en/tos"},{"label":"Privacy Policy","href":"https://x.com/en/privacy"},{"label":"Cookies","href":"https://help.x.com/en/rules-and-policies/x-cookies"},{"label":"Developer Terms","href":"https://docs.x.com/developer-terms"}]}]},"seo":{"metatags":{"canonical":"https://docs.x.com","og:site_name":"X Developer Platform","og:type":"website","og:locale":"en_US","twitter:card":"summary_large_image","twitter:site":"@xdevelopers","description":"Build, analyze, and innovate with X's real-time global data and APIs. Access comprehensive API documentation, SDKs, tutorials, and developer tools.","author":"X Developer Platform","language":"en","robots":"index, follow","googlebot":"index, follow","og:image":"https://docs.x.com/images/og-default.png","og:image:width":"1200","og:image:height":"630","twitter:image":"https://docs.x.com/images/og-default.png"},"indexing":"all"},"fonts":{"family":"Chirp","weight":400,"source":"fonts/chirp-regular-web.woff2","format":"woff2"},"contextual":{"options":["copy","view",{"title":"Open in Grok","description":"Ask questions about this page","icon":"/logo/grok.svg","href":{"base":"https://grok.com","query":[{"key":"q","value":"Read from https://docs.x.com$path so I can ask questions about it."}]}}],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Developer Console","icon":"https://mintlify.s3.us-west-1.amazonaws.com/x-preview/icons/xds/icon-console.svg","href":"https://developer.x.com/en/portal/petition/essential/basic-info"},{"anchor":"Forums","icon":"https://mintlify.s3.us-west-1.amazonaws.com/x-preview/icons/xds/icon-chat.svg","href":"https://devcommunity.x.com"},{"anchor":"GitHub","icon":"github","href":"https://github.com/xdevplatform"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"x-preview","hasAudioNarration":false,"actualSubdomain":"x-preview","customDomains":["docs.x.com"],"gitSource":{"type":"github","owner":"xdevplatform","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae916c4e6fd30e73c6247ad","collectionId":"288264bf-3a67-4bb6-a7cd-052b9905a71e","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae916c4e6fd30e73c6247ad"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae94198ea27a989437e81c0","clientVersion":"0.0.4045","searchFilterCounts":[{"language":"default","tag":"API Reference","count":695},{"language":"default","tag":"X API","count":355},{"language":"default","tag":"TypeScript XDK","count":315},{"language":"default","tag":"Interfaces","count":284},{"language":"default","tag":"Misc","count":281},{"language":"default","tag":"General","count":260},{"language":"default","tag":"Documentation","count":157},{"language":"default","tag":"Guides","count":81},{"language":"default","tag":"Posts","count":77},{"language":"default","tag":"Python XDK","count":67}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","href":"/_mintlify/custom/x-preview/9ac9ff4335261041/style.css"}],"page":{"pagePath":"fundamentals/authentication/oauth-2-0/overview","slug":"/fundamentals/authentication/oauth-2-0/overview","pageMetadata":{"title":"OAuth 2.0","sidebarTitle":"Overview","keywords":["OAuth 2.0","OAuth 2.0 authentication","OAuth 2.0 PKCE","Bearer token","app-only auth","OAuth 2.0 flow","authorization code"],"description":"OAuth 2.0 Bearer Token authenticates requests on behalf of your developer App. As this method is specific to the App, it does not involve any users.","href":"/fundamentals/authentication/oauth-2-0/overview"},"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: \"OAuth 2.0 Bearer Token authenticates requests on behalf of your developer App. As this method is specific to the App, it does not involve any users.\"\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`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Heading}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`3`,id:`bearer-token-also-known-as-app-only`,children:`Bearer Token (also known as app-only)`}),`\n`,_jsxs(_components.p,{children:[`OAuth 2.0 Bearer Token authenticates requests on behalf of your `,_jsx(_components.a,{href:`/resources/fundamentals/developer-apps`,children:`developer App`}),`. As this method is specific to the App, it does not involve any users. This method is typically for developers that need read-only access to public information.\\xA0`]}),`\n`,_jsx(_components.p,{children:`This authentication method requires for you to pass a Bearer Token with your request, which you can generate within the Keys and tokens section of your developer Apps. Here is an example of what a request looks like with a fake Bearer Token:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,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:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`curl `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.x.com/2/tweets?ids=1261326399320715264,1278347468690915330\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`-H `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Authorization: Bearer AAAAAAAAAAAAAAAAAAAAAFnz2wAAAAAAxTmQbp%2BIHDtAhTBbyNJon%2BA72K4%3DeIaigY0QBrv6Rp8KZQQLOTpo9ubw5Jt?WRE8avbi\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`API calls using app-only authentication are `,_jsx(_components.a,{href:`/resources/fundamentals/rate-limits`,children:`rate limited`}),` per endpoint at the App level.`]}),`\n`,_jsxs(_components.p,{children:[`To use this method, you’ll need a Bearer Token, which you can generate by passing your API Key and Secret through the\\xA0`,_jsx(_components.a,{href:`/resources/fundamentals/authentication/api-reference#post-oauth2-token`,children:`POST oauth2/token`}),`\\xA0endpoint, or by generating it in the “keys and token” section of your App settings in the `,_jsx(_components.a,{href:`/resources/fundamentals/developer-portal`,children:`Developer Console`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`If you’d like to revoke a Bearer Token, you can use the\\xA0`,_jsx(_components.a,{href:`/resources/fundamentals/authentication/api-reference#post-oauth2-invalidate-token`,children:`POST oauth2/invalidate_token`}),`\\xA0endpoint, or click where it says “revoke” next to the Bearer Token in the “keys and tokens” section of your App settings.`]}),`\n`,_jsx(Heading,{level:`3`,id:`oauth-2-0-authorization-code-flow-with-pkce`,children:`OAuth 2.0\\xA0Authorization Code Flow with PKCE`}),`\n`,_jsx(_components.p,{children:`OAuth 2.0\\xA0Authorization Code Flow with PKCE allows you to authenticate on behalf of another user with more control over an application’s scopes and improves authorization flows across multiple devices. In other words, developers building applications for people on X will have more control over the information their App requests from its users, so that you only have to ask your end-users for the data and information you need.`}),`\n`,_jsx(_components.p,{children:`This modern authorization protocol will allow you to present your end-users with a more streamlined consent flow for authorizing your app, which only displays the specific scopes you have requested from them. Not only does this reduce your data burden, but it may also lead to increased trust from end-users.`})]})}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":"OAuth 2.0","sidebarTitle":"Overview","keywords":["OAuth 2.0","OAuth 2.0 authentication","OAuth 2.0 PKCE","Bearer token","app-only auth","OAuth 2.0 flow","authorization code"],"description":"OAuth 2.0 Bearer Token authenticates requests on behalf of your developer App. As this method is specific to the App, it does not involve any users.","href":"/fundamentals/authentication/oauth-2-0/overview"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Bearer Token (also known as app-only)","slug":"bearer-token-also-known-as-app-only","depth":3,"children":[]},{"title":"OAuth 2.0 Authorization Code Flow with PKCE","slug":"oauth-2-0-authorization-code-flow-with-pkce","depth":3,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/x-preview/381ffe7e9b15b180/widgets.js","/_mintlify/custom/x-preview/6a1f299520abeae4/sliders.js","/_mintlify/custom/x-preview/c7d32b76ae276d29/xds-motion.js","/_mintlify/custom/x-preview/4e9cd7891e98068a/tmp/gen_prompts.js"],"subdomain":"x-preview","siteName":"X","title":"OAuth 2.0 - X","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-06-09T23:39:48.515Z","originalFileLocation":"fundamentals/authentication/oauth-2-0/overview.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"dark\";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=\"dark\"}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=\"OAuth 2.0 Bearer Token authenticates requests on behalf of your developer App. As this method is specific to the App, it does not involve any users.\">\u003cmeta data-mint-head name=\"application-name\" content=\"X\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"robots\" content=\"index, follow\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/x-preview/FsnFMtl8dbNRWPu8/_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/x-preview/FsnFMtl8dbNRWPu8/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/x-preview/FsnFMtl8dbNRWPu8/_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/x-preview/FsnFMtl8dbNRWPu8/_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/x-preview/FsnFMtl8dbNRWPu8/_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/x-preview/FsnFMtl8dbNRWPu8/_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/x-preview/FsnFMtl8dbNRWPu8/_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/x-preview/FsnFMtl8dbNRWPu8/_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/x-preview/FsnFMtl8dbNRWPu8/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"OAuth 2.0 - X\">\u003cmeta data-mint-head property=\"og:description\" content=\"OAuth 2.0 Bearer Token authenticates requests on behalf of your developer App. As this method is specific to the App, it does not involve any users.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"X Developer Platform\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.x.com/fundamentals/authentication/oauth-2-0/overview\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://docs.x.com/images/og-default.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=\"OAuth 2.0 - X\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"OAuth 2.0 Bearer Token authenticates requests on behalf of your developer App. As this method is specific to the App, it does not involve any users.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://docs.x.com/images/og-default.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=\"/mintlify-assets/_mintlify/favicons/x-preview/FsnFMtl8dbNRWPu8/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"X\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0D0D0D\">\u003cmeta data-mint-head name=\"og:locale\" content=\"en_US\">\u003cmeta data-mint-head name=\"author\" content=\"X Developer Platform\">\u003cmeta data-mint-head name=\"language\" content=\"en\">\u003cmeta data-mint-head name=\"googlebot\" content=\"index, follow\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.x.com/fundamentals/authentication/oauth-2-0/overview\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/fundamentals/authentication/oauth-2-0/overview.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.x.com/#organization\",\"name\":\"X\",\"url\":\"https://docs.x.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/x-preview/CX6FNhUUR8mtNZ97/logo/light.svg?fit=max\u0026auto=format\u0026n=CX6FNhUUR8mtNZ97\u0026q=85\u0026s=b2e6f2ff399e1bc5cd0c588f9644983d\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.x.com#website\",\"name\":\"X\",\"url\":\"https://docs.x.com\",\"publisher\":{\"@id\":\"https://docs.x.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.x.com/fundamentals/authentication/oauth-2-0/overview#webpage\",\"url\":\"https://docs.x.com/fundamentals/authentication/oauth-2-0/overview\",\"name\":\"OAuth 2.0\",\"description\":\"OAuth 2.0 Bearer Token authenticates requests on behalf of your developer App. As this method is specific to the App, it does not involve any users.\",\"dateModified\":\"2026-06-09T23:39:48.515Z\",\"isPartOf\":{\"@id\":\"https://docs.x.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.x.com/fundamentals/authentication/oauth-2-0/overview#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.x.com/fundamentals/authentication/oauth-2-0/overview#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Fundamentals\",\"item\":\"https://docs.x.com/fundamentals/developer-apps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Authentication\",\"item\":\"https://docs.x.com/fundamentals/authentication/overview\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"OAuth 2.0\",\"item\":\"https://docs.x.com/fundamentals/authentication/oauth-2-0/overview\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.x.com/fundamentals/authentication/oauth-2-0/overview#article\",\"headline\":\"OAuth 2.0\",\"name\":\"OAuth 2.0\",\"description\":\"OAuth 2.0 Bearer Token authenticates requests on behalf of your developer App. As this method is specific to the App, it does not involve any users.\",\"url\":\"https://docs.x.com/fundamentals/authentication/oauth-2-0/overview\",\"mainEntityOfPage\":{\"@id\":\"https://docs.x.com/fundamentals/authentication/oauth-2-0/overview#webpage\"},\"image\":\"https://docs.x.com/images/og-default.png\",\"dateModified\":\"2026-06-09T23:39:48.515Z\",\"keywords\":\"OAuth 2.0, OAuth 2.0 authentication, OAuth 2.0 PKCE, Bearer token, app-only auth, OAuth 2.0 flow, authorization code\",\"publisher\":{\"@id\":\"https://docs.x.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.x.com#website\"}}]}\u003c/script>","siteName":"X","nav":{"global":{"anchors":[{"anchor":"Developer Console","icon":"https://mintlify.s3.us-west-1.amazonaws.com/x-preview/icons/xds/icon-console.svg","href":"https://developer.x.com/en/portal/petition/essential/basic-info"},{"anchor":"Forums","icon":"https://mintlify.s3.us-west-1.amazonaws.com/x-preview/icons/xds/icon-chat.svg","href":"https://devcommunity.x.com"},{"anchor":"GitHub","icon":"github","href":"https://github.com/xdevplatform"}]},"products":[{"product":"X API","tabs":[{"tab":"Documentation","groups":[{"group":"Getting Started","pages":[{"title":"X Developer Platform","sidebarTitle":"Overview","mode":"wide","icon":"house","href":"/overview"},{"title":"Developer Guidelines","sidebarTitle":"Developer Guidelines","icon":"scale-balanced","href":"/developer-guidelines"},{"title":"What to Build","sidebarTitle":"What to Build","icon":"lightbulb","href":"/what-to-build"},{"title":"Make Your First Request","sidebarTitle":"Make Your First Request","icon":"rocket","href":"/make-your-first-request"},{"group":"Tools \u0026 Libraries","icon":"/icons/xds/icon-wrench.svg","pages":[{"title":"Tools \u0026 Libraries","sidebarTitle":"Overview","href":"/tools-and-libraries"},{"title":"xurl — curl-style command line client for the X API","sidebarTitle":"CLI (xurl)","href":"/tools/xurl"},{"group":"SDKs (XDKs)","pages":[{"title":"Python XDK","sidebarTitle":"Python","href":"/tools/python-xdk"},{"title":"TypeScript XDK","sidebarTitle":"TypeScript","href":"/tools/typescript-xdk"}]}]},{"group":"Agent Resources","icon":"/icons/xds/icon-ai-agents.svg","pages":[{"title":"Agent Resources","sidebarTitle":"Overview","href":"/tools/ai"},{"title":"llms.txt \u0026 llms-full.txt","sidebarTitle":"llms.txt","href":"/tools/llms-txt"},{"title":"skill.md","sidebarTitle":"skill.md","href":"/tools/skill-md"},{"title":"MCP servers for the X API and X developer docs","sidebarTitle":"MCP","href":"/tools/mcp"}]}]},{"group":"Products","pages":[{"group":"X API","expanded":true,"pages":[{"group":"Pay-per-use","pages":[{"title":"X API","sidebarTitle":"Introduction","mode":"wide","href":"/x-api/introduction"},{"title":"X API pay-per-usage pricing and credits","sidebarTitle":"Pricing","href":"/x-api/getting-started/pricing"},{"title":"Free credit incentives for X API pay-per-use accounts","sidebarTitle":"Free credits","href":"/x-api/getting-started/free-credits"},{"title":"Getting Access","sidebarTitle":"Getting Access","href":"/x-api/getting-started/getting-access"}]},{"group":"Enterprise","pages":[{"title":"X Enterprise API introduction and product overview","sidebarTitle":"Introduction","mode":"wide","href":"/enterprise-api/introduction"},{"title":"Enterprise API pricing and custom plans","sidebarTitle":"Pricing","href":"/enterprise-api/getting-started/pricing"},{"title":"Getting enterprise access","sidebarTitle":"Getting access","href":"/enterprise-api/getting-started/getting-access"}]}]}]},{"group":"Fundamentals","pages":[{"title":"Apps","sidebarTitle":"Apps","icon":"cube","href":"/fundamentals/developer-apps"},{"title":"Developer Console","sidebarTitle":"Developer Console","icon":"grid-2","href":"/fundamentals/developer-portal"},{"group":"Authentication","icon":"/icons/xds/icon-key.svg","pages":[{"title":"Authentication","sidebarTitle":"Overview","href":"/fundamentals/authentication/overview"},{"group":"Guides","pages":[{"title":"Log in with X","href":"/fundamentals/authentication/guides/log-in-with-x"},{"title":"Best practices","href":"/fundamentals/authentication/guides/authentication-best-practices"},{"title":"Connection to X API using TLS","sidebarTitle":"TLS","href":"/fundamentals/authentication/guides/tls"},{"title":"X API v2 authentication mapping","sidebarTitle":"Endpoint mapping","href":"/fundamentals/authentication/guides/v2-authentication-mapping"}]},{"group":"OAuth 1.0a","pages":[{"title":"API Key and Secret","sidebarTitle":"API Key and Secret","href":"/fundamentals/authentication/oauth-1-0a/api-key-and-secret"},{"title":"Obtaining Access Tokens using 3-legged OAuth flow","sidebarTitle":"User Access Tokens (3-legged OAuth flow)","href":"/fundamentals/authentication/oauth-1-0a/obtaining-user-access-tokens"},{"title":"Authorizing a request","sidebarTitle":"Authorizing a request","href":"/fundamentals/authentication/oauth-1-0a/authorizing-a-request"},{"title":"OAuth Echo","sidebarTitle":"OAuth Echo","href":"/fundamentals/authentication/oauth-1-0a/oauth-echo"},{"title":"PIN-based authorization","sidebarTitle":"PIN-based OAuth","href":"/fundamentals/authentication/oauth-1-0a/pin-based-oauth"},{"title":"Creating a signature","sidebarTitle":"Creating a signature","href":"/fundamentals/authentication/oauth-1-0a/creating-a-signature"},{"title":"Percent encoding parameters","description":"Apply RFC 3986 percent encoding to OAuth 1.0a parameters for X API requests, with rules for reserved characters and worked URL encoding examples.","sidebarTitle":"Percent encoding parameters","href":"/fundamentals/authentication/oauth-1-0a/percent-encoding-parameters"}]},{"group":"OAuth 2.0","pages":[{"title":"OAuth 2.0","sidebarTitle":"Overview","href":"/fundamentals/authentication/oauth-2-0/overview"},{"title":"App only authentication and OAuth 2.0 Bearer Token","sidebarTitle":"OAuth 2.0 App-Only (Bearer Token)","description":"Authenticate X API requests with OAuth 2.0 App-Only Bearer Tokens for server-to-server, read-only access to public data without a user context.","href":"/fundamentals/authentication/oauth-2-0/application-only"},{"title":"Using and generating an app-only Bearer Token","sidebarTitle":"Generating and using app-only Bearer Tokens","href":"/fundamentals/authentication/oauth-2-0/bearer-tokens"},{"title":"OAuth 2.0 Authorization Code Flow with PKCE","sidebarTitle":"OAuth 2.0 Authorization Code Flow with PKCE","href":"/fundamentals/authentication/oauth-2-0/authorization-code"},{"title":"OAuth 2.0 Authorization Code Flow with PKCE","sidebarTitle":"OAuth 2.0 Making requests on behalf of users","href":"/fundamentals/authentication/oauth-2-0/user-access-token"},{"title":"Migrate from OAuth 1.0a to OAuth 2.0","sidebarTitle":"Migrating from OAuth 1.0a","href":"/fundamentals/authentication/oauth-2-0/oauth-1-0a-token-exchange"}]},{"title":"Basic authentication","sidebarTitle":"Basic authentication","href":"/fundamentals/authentication/basic-auth"},{"title":"OAuth FAQ","sidebarTitle":"FAQ","href":"/fundamentals/authentication/faq"},{"title":"OAuth API reference index","sidebarTitle":"API reference","href":"/fundamentals/authentication/api-reference"}]},{"title":"Counting Characters","sidebarTitle":"Counting Characters","icon":"text-size","href":"/fundamentals/counting-characters"},{"title":"Rate Limits","sidebarTitle":"Rate Limits","icon":"gauge-high","href":"/fundamentals/rate-limits"},{"title":"X IDs","sidebarTitle":"X IDs","icon":"fingerprint","href":"/fundamentals/x-ids"},{"title":"Security","sidebarTitle":"Security","icon":"shield-halved","href":"/fundamentals/security"}]},{"group":"Partners \u0026 Customers","pages":[{"title":"X Official Partner","sidebarTitle":"Partner Directory","href":"/enterprise/partner-directory"},{"title":"Enterprise data customers","sidebarTitle":"Customer Directory","href":"/enterprise/customer-directory"},{"title":"Success Stories","mode":"wide","href":"/success-stories"},{"group":"Request Access","pages":[{"title":"Enterprise Access Form","href":"/forms/enterprise-api-interest"},{"title":"Ads API Access Form","href":"/forms/ads-api-access"},{"title":"Livestream API Access Form","href":"/forms/livestream-api-access"},{"title":"Government End User Request Form","href":"/forms/government-end-user-request"}]}]},{"group":"Resources","pages":[{"title":"Tutorials","mode":"wide","icon":"link","href":"/tutorials"},{"title":"List your app on the Exhibit","sidebarTitle":"Exhibit","icon":"grid-2","href":"/exhibit"},{"title":"Subscribe to developer news","sidebarTitle":"Newsletter","mode":"wide","icon":"envelope","href":"/newsletter"},{"title":"X Developer Platform Livestreams","sidebarTitle":"Livestreams","mode":"wide","icon":"video","href":"/livestreams"},{"title":"Billing support form","sidebarTitle":"Billing Support","icon":"headset","href":"/forms/billing-support"},{"title":"Policies and agreements","sidebarTitle":"Developer Terms","mode":"wide","icon":"gavel","href":"/developer-terms"}]}]},{"tab":"API Reference","dropdowns":[{"dropdown":"General","icon":"https://mintlify.s3.us-west-1.amazonaws.com/x-preview/icons/xds/icon-brackets.svg","groups":[{"group":"Overview","pages":[{"title":"X API Overview","sidebarTitle":"Overview","icon":"house","mode":"wide","href":"/x-api/overview"},{"group":"Fundamentals","pages":[{"group":"Data Dictionary","icon":"/icons/xds/icon-book.svg","pages":[{"title":"X API v2 data dictionary: Post, User, Space fields","sidebarTitle":"Overview","href":"/x-api/fundamentals/data-dictionary"},{"title":"Data Dictionary Reference","sidebarTitle":"Reference","href":"/x-api/fundamentals/data-dictionary/reference"}]},{"title":"Fields","sidebarTitle":"Fields","href":"/x-api/fundamentals/fields"},{"title":"Expansions","sidebarTitle":"Expansions","href":"/x-api/fundamentals/expansions"},{"title":"Post Annotations","sidebarTitle":"Annotations","href":"/x-api/fundamentals/post-annotations"},{"title":"Metrics","sidebarTitle":"Metrics","href":"/x-api/fundamentals/metrics"},{"title":"Conversation ID","sidebarTitle":"Conversation ID","href":"/x-api/fundamentals/conversation-id"},{"title":"Pagination","sidebarTitle":"Pagination","href":"/x-api/fundamentals/pagination"},{"title":"Versioning","sidebarTitle":"Versioning","href":"/x-api/fundamentals/versioning"},{"title":"API Consistency","sidebarTitle":"Consistency","href":"/x-api/fundamentals/consistency"},{"title":"X API Rate Limits","sidebarTitle":"Rate Limits","href":"/x-api/fundamentals/rate-limits"},{"title":"Usage and Billing","sidebarTitle":"Usage \u0026 Billing","href":"/x-api/fundamentals/post-cap"},{"title":"Edit Posts","sidebarTitle":"Edit Posts","href":"/x-api/fundamentals/edit-posts"},{"title":"Response Codes \u0026 Errors","sidebarTitle":"Response Codes","href":"/x-api/fundamentals/response-codes-and-errors"},{"group":"Streaming","pages":[{"title":"Consuming streaming data","sidebarTitle":"Consuming streaming data","href":"/x-api/fundamentals/consuming-streaming-data"},{"title":"Handling disconnections","sidebarTitle":"Handling disconnections","href":"/x-api/fundamentals/handling-disconnections"},{"title":"Handling high-volume capacity","sidebarTitle":"High volume capacity","href":"/x-api/fundamentals/high-volume-capacity"},{"title":"Recovery and redundancy","sidebarTitle":"Recovery and redundancy","href":"/x-api/fundamentals/recovery-and-redundancy"}]}]}]},{"group":"Posts","pages":[{"group":"Search","pages":[{"title":"Search Posts","sidebarTitle":"Introduction","href":"/x-api/posts/search/introduction"},{"group":"Guides","pages":[{"group":"Quickstart","pages":[{"title":"Recent Search Quickstart","sidebarTitle":"Recent Search","href":"/x-api/posts/search/quickstart/recent-search"},{"title":"Full-Archive Search Quickstart","sidebarTitle":"Full-Archive Search","href":"/x-api/posts/search/quickstart/full-archive-search"}]},{"group":"Integration guide","pages":[{"title":"Integration Guide","sidebarTitle":"Overview","href":"/x-api/posts/search/integrate/overview"},{"title":"Build a query","sidebarTitle":"Build a query","href":"/x-api/posts/search/integrate/build-a-query"},{"title":"Search Operators","sidebarTitle":"Operators","href":"/x-api/posts/search/integrate/operators"},{"title":"Pagination","sidebarTitle":"Pagination","href":"/x-api/posts/search/integrate/paginate"}]}]},{"openapi":"get /2/tweets/search/all","title":"Search All Posts","href":"/x-api/posts/search-all-posts"},{"openapi":"get /2/tweets/search/recent","title":"Search Recent Posts","href":"/x-api/posts/search-recent-posts"}]},{"group":"Post Counts","pages":[{"title":"Post Counts","sidebarTitle":"Introduction","href":"/x-api/posts/counts/introduction"},{"group":"Guides","pages":[{"group":"Quickstart","pages":[{"title":"Recent Post Counts","sidebarTitle":"Recent Post Counts","href":"/x-api/posts/counts/quickstart/recent-tweet-counts"},{"title":"Full-Archive Post Counts","sidebarTitle":"Full-Archive Post Counts","href":"/x-api/posts/counts/quickstart/full-archive-tweet-counts"}]},{"group":"Integration guide","pages":[{"title":"Overview","sidebarTitle":"Overview","href":"/x-api/posts/counts/integrate/overview"},{"title":"Build a query","sidebarTitle":"Build a query","href":"/x-api/posts/counts/integrate/build-a-query"}]}]},{"openapi":"get /2/tweets/counts/all","title":"Get Count of All Posts","href":"/x-api/posts/get-count-of-all-posts"},{"openapi":"get /2/tweets/counts/recent","title":"Get Count of Recent Posts","href":"/x-api/posts/get-count-of-recent-posts"}]},{"group":"Filtered Stream","pages":[{"title":"Filtered Stream","sidebarTitle":"Introduction","href":"/x-api/posts/filtered-stream/introduction"},{"group":"Guides","pages":[{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/x-api/posts/filtered-stream/quickstart"},{"group":"Integration guide","pages":[{"title":"Build a rule","sidebarTitle":"Build a rule","href":"/x-api/posts/filtered-stream/integrate/build-a-rule"},{"title":"Filtered Stream Operators","sidebarTitle":"Operators","href":"/x-api/posts/filtered-stream/integrate/operators"},{"title":"Matching Posts to Rules","sidebarTitle":"Matching Posts to Rules","href":"/x-api/posts/filtered-stream/integrate/matching-returned-tweets"},{"title":"Consuming streaming data","sidebarTitle":"Consuming streaming data","href":"/x-api/fundamentals/consuming-streaming-data"},{"title":"Handling disconnections","sidebarTitle":"Handling disconnections","href":"/x-api/fundamentals/handling-disconnections"},{"title":"Handling high-volume capacity","sidebarTitle":"High volume capacity","href":"/x-api/fundamentals/high-volume-capacity"},{"title":"Recovery and redundancy","sidebarTitle":"Recovery and redundancy","href":"/x-api/fundamentals/recovery-and-redundancy"}]}]},{"openapi":"get /2/tweets/search/stream","title":"Stream Filtered Posts","href":"/x-api/stream/stream-filtered-posts"},{"openapi":"get /2/tweets/search/stream/rules","title":"Get Stream Rules","href":"/x-api/stream/get-stream-rules"},{"openapi":"get /2/tweets/search/stream/rules/counts","title":"Get Stream Rule Counts","href":"/x-api/stream/get-stream-rule-counts"},{"openapi":"post /2/tweets/search/stream/rules","title":"Update Stream Rules","href":"/x-api/stream/update-stream-rules"}]},{"group":"Timelines","pages":[{"title":"Timelines","sidebarTitle":"Introduction","href":"/x-api/posts/timelines/introduction"},{"group":"Guides","pages":[{"group":"Quickstart","pages":[{"title":"Home Timeline Quickstart","sidebarTitle":"Home Timeline","href":"/x-api/posts/timelines/quickstart/reverse-chron-quickstart"},{"title":"User Mentions Timeline","sidebarTitle":"User Mentions","href":"/x-api/posts/timelines/quickstart/user-mention-quickstart"}]},{"title":"Integration Guide","sidebarTitle":"Integration Guide","href":"/x-api/posts/timelines/integrate"}]},{"openapi":"get /2/users/{id}/tweets","title":"Get Posts","href":"/x-api/users/get-posts"},{"openapi":"get /2/users/{id}/mentions","title":"Get Mentions","href":"/x-api/users/get-mentions"},{"openapi":"get /2/users/{id}/timelines/reverse_chronological","title":"Get Timeline","href":"/x-api/users/get-timeline"}]},{"group":"Post Lookup","pages":[{"title":"Post Lookup","sidebarTitle":"Introduction","href":"/x-api/posts/lookup/introduction"},{"group":"Guides","pages":[{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/x-api/posts/lookup/quickstart"},{"title":"Integration Guide","sidebarTitle":"Integration Guide","href":"/x-api/posts/lookup/integrate"}]},{"openapi":"get /2/tweets","title":"Get Posts by IDs","href":"/x-api/posts/get-posts-by-ids"},{"openapi":"get /2/tweets/{id}","title":"Get Post by ID","href":"/x-api/posts/get-post-by-id"}]},{"group":"Bookmarks","pages":[{"title":"Bookmarks","sidebarTitle":"Introduction","href":"/x-api/posts/bookmarks/introduction"},{"group":"Guides","pages":[{"group":"Quickstart","pages":[{"title":"Bookmarks Lookup","sidebarTitle":"Bookmarks Lookup","href":"/x-api/posts/bookmarks/quickstart/bookmarks-lookup"},{"title":"Manage Bookmarks","sidebarTitle":"Manage Bookmarks","href":"/x-api/posts/bookmarks/quickstart/manage-bookmarks"}]},{"title":"Integration guide","sidebarTitle":"Integration guide","href":"/x-api/posts/bookmarks/integrate"}]},{"group":"Bookmark Folders","pages":[{"openapi":"get /2/users/{id}/bookmarks/folders","title":"Get Bookmark Folders","href":"/x-api/users/get-bookmark-folders"},{"openapi":"get /2/users/{id}/bookmarks/folders/{folder_id}","title":"Get Bookmarks by Folder ID","href":"/x-api/bookmarks/get-bookmarks-by-folder-id"}]},{"openapi":"get /2/users/{id}/bookmarks","title":"Get Bookmarks","href":"/x-api/users/get-bookmarks"},{"openapi":"post /2/users/{id}/bookmarks","title":"Create Bookmark","href":"/x-api/users/create-bookmark"},{"openapi":"delete /2/users/{id}/bookmarks/{tweet_id}","title":"Delete Bookmark","href":"/x-api/users/delete-bookmark"}]},{"group":"Manage Posts","pages":[{"title":"Manage Posts on the X API v2","sidebarTitle":"Introduction","href":"/x-api/posts/manage-tweets/introduction"},{"group":"Guides","pages":[{"title":"X API v2 manage Posts quickstart","sidebarTitle":"Quickstart","href":"/x-api/posts/manage-tweets/quickstart"},{"title":"Integration guide","sidebarTitle":"Integration guide","href":"/x-api/posts/manage-tweets/integrate"}]},{"openapi":"post /2/tweets","title":"Create or Edit Post","href":"/x-api/posts/create-post"},{"openapi":"delete /2/tweets/{id}","title":"Delete Post","href":"/x-api/posts/delete-post"}]},{"group":"Reposts","pages":[{"title":"Retweets","sidebarTitle":"Introduction","href":"/x-api/posts/retweets/introduction"},{"group":"Guides","pages":[{"group":"Quickstart","pages":[{"title":"Retweets Lookup","sidebarTitle":"Retweets Lookup","href":"/x-api/posts/retweets/quickstart/retweets-lookup"},{"title":"Manage Retweets","sidebarTitle":"Manage Retweets","href":"/x-api/posts/retweets/quickstart/manage-retweets"},{"title":"Retweets of Me","sidebarTitle":"Retweets of Me","href":"/x-api/posts/retweets/quickstart/retweets-of-me"}]},{"title":"Integration guide","sidebarTitle":"Integration guide","href":"/x-api/posts/retweets/integrate"}]},{"openapi":"get /2/tweets/{id}/retweeted_by","title":"Get Reposted By","href":"/x-api/posts/get-reposted-by"},{"openapi":"post /2/users/{id}/retweets","title":"Repost Post","href":"/x-api/users/repost-post"},{"openapi":"delete /2/users/{id}/retweets/{source_tweet_id}","title":"Unrepost Post","href":"/x-api/users/unrepost-post"},{"openapi":"get /2/tweets/{id}/retweets","title":"Get Reposts","href":"/x-api/posts/get-reposts"},{"openapi":"get /2/users/reposts_of_me","title":"Get Reposts of Me","href":"/x-api/users/get-reposts-of-me"}]},{"group":"Quotes","pages":[{"title":"Quote Posts","sidebarTitle":"Introduction","href":"/x-api/posts/quote-tweets/introduction"},{"group":"Guides","pages":[{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/x-api/posts/quote-tweets/quickstart"}]},{"openapi":"get /2/tweets/{id}/quote_tweets","title":"Get Quoted Posts","href":"/x-api/posts/get-quoted-posts"}]},{"group":"Hide replies","pages":[{"title":"Hide Replies","sidebarTitle":"Introduction","href":"/x-api/posts/hide-replies/introduction"},{"group":"Guides","pages":[{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/x-api/posts/hide-replies/quickstart"},{"group":"Integration guide","pages":[{"title":"Manage replies by topic","sidebarTitle":"Manage replies by topic","href":"/x-api/posts/hide-replies/integrate/manage-replies-by-topic"},{"title":"Manage replies in real time with Grok","sidebarTitle":"Manage replies in real time","href":"/x-api/posts/hide-replies/integrate/manage-replies-in-realtime"}]}]},{"openapi":"put /2/tweets/{tweet_id}/hidden","title":"Hide Reply","href":"/x-api/posts/hide-reply"}]}]},{"group":"Articles","pages":[{"title":"Articles endpoints for long-form Posts on the X API","sidebarTitle":"Introduction","href":"/x-api/articles/introduction"},{"openapi":"post /2/articles/draft","title":"Create Draft Article","href":"/x-api/articles/create-draft-article"},{"openapi":"post /2/articles/{article_id}/publish","title":"Publish Article","href":"/x-api/articles/publish-article"}]},{"group":"Users","pages":[{"group":"User Lookup","pages":[{"title":"User Lookup","sidebarTitle":"Introduction","href":"/x-api/users/lookup/introduction"},{"group":"Guides","pages":[{"group":"Quickstart","pages":[{"title":"User Lookup Quickstart","sidebarTitle":"User Lookup","href":"/x-api/users/lookup/quickstart/user-lookup"},{"title":"Authenticated User Quickstart","sidebarTitle":"Authenticated User","href":"/x-api/users/lookup/quickstart/authenticated-lookup"}]},{"title":"Integration Guide","sidebarTitle":"Integration Guide","href":"/x-api/users/lookup/integrate"}]},{"openapi":"get /2/users/{id}","title":"Get User by ID","href":"/x-api/users/get-user-by-id"},{"openapi":"get /2/users","title":"Get Users by IDs","href":"/x-api/users/get-users-by-ids"},{"openapi":"get /2/users/by","title":"Get Users by Usernames","href":"/x-api/users/get-users-by-usernames"},{"openapi":"get /2/users/by/username/{username}","title":"Get User by Username","href":"/x-api/users/get-user-by-username"},{"openapi":"get /2/users/me","title":"Get My User","href":"/x-api/users/get-my-user"}]},{"group":"Search","pages":[{"title":"User Search","sidebarTitle":"Introduction","href":"/x-api/users/search/introduction"},{"openapi":"get /2/users/search","title":"Search Users","href":"/x-api/users/search-users"}]},{"group":"Follows","pages":[{"title":"Follows","sidebarTitle":"Introduction","href":"/x-api/users/follows/introduction"},{"group":"Guides","pages":[{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/x-api/users/follows/quickstart"}]},{"openapi":"get /2/users/{id}/followers","title":"Get Followers","href":"/x-api/users/get-followers"},{"openapi":"get /2/users/{id}/following","title":"Get Following","href":"/x-api/users/get-following"},{"openapi":"post /2/users/{id}/following","title":"Follow User","href":"/x-api/users/follow-user"},{"openapi":"delete /2/users/{source_user_id}/following/{target_user_id}","title":"Unfollow User","href":"/x-api/users/unfollow-user"}]},{"group":"Mutes","pages":[{"title":"Mutes","sidebarTitle":"Introduction","href":"/x-api/users/mutes/introduction"},{"group":"Guides","pages":[{"group":"Quickstart","pages":[{"title":"Manage Mutes","sidebarTitle":"Manage Mutes","href":"/x-api/users/mutes/quickstart/manage-mutes-quickstart"},{"title":"Mutes Lookup","sidebarTitle":"Mutes Lookup","href":"/x-api/users/mutes/quickstart/mutes-lookup"}]},{"title":"Integration Guide","sidebarTitle":"Integration Guide","href":"/x-api/users/mutes/integrate"}]},{"openapi":"post /2/users/{id}/muting","title":"Mute User","href":"/x-api/users/mute-user"},{"openapi":"delete /2/users/{source_user_id}/muting/{target_user_id}","title":"Unmute User","href":"/x-api/users/unmute-user"},{"openapi":"get /2/users/{id}/muting","title":"Get Muting","href":"/x-api/users/get-muting"}]},{"group":"Blocks","pages":[{"title":"Blocks","sidebarTitle":"Introduction","href":"/x-api/users/blocks/introduction"},{"group":"Guides","pages":[{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/x-api/users/blocks/quickstart"},{"title":"Integration Guide","sidebarTitle":"Integration Guide","href":"/x-api/users/blocks/integrate"}]},{"openapi":"get /2/users/{id}/blocking","title":"Get Blocked Users","href":"/x-api/users/get-blocking"}]},{"group":"Affiliates","pages":[{"openapi":"get /2/users/{id}/affiliates","title":"Get Affiliates","href":"/x-api/users/get-affiliates"}]}]},{"group":"Direct Messages","pages":[{"group":"Manage","pages":[{"title":"Manage Direct Messages","sidebarTitle":"Introduction","href":"/x-api/direct-messages/manage/introduction"},{"group":"Guides","pages":[{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/x-api/direct-messages/manage/quickstart"},{"title":"Integration Guide","sidebarTitle":"Integration Guide","href":"/x-api/direct-messages/manage/integrate"}]},{"openapi":"post /2/dm_conversations","title":"Create DM Conversation","href":"/x-api/direct-messages/create-dm-conversation"},{"openapi":"delete /2/dm_events/{event_id}","title":"Delete DM Event","href":"/x-api/direct-messages/delete-dm-event"},{"openapi":"post /2/dm_conversations/with/{participant_id}/messages","title":"Create DM Message by Participant ID","href":"/x-api/direct-messages/create-dm-message-by-participant-id"},{"openapi":"post /2/dm_conversations/{dm_conversation_id}/messages","title":"Create DM Message by Conversation ID","href":"/x-api/direct-messages/create-dm-message-by-conversation-id"}]},{"group":"Lookup","pages":[{"title":"Direct Messages Lookup","sidebarTitle":"Introduction","href":"/x-api/direct-messages/lookup/introduction"},{"group":"Guides","pages":[{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/x-api/direct-messages/lookup/quickstart"},{"title":"Integration Guide","sidebarTitle":"Integration Guide","href":"/x-api/direct-messages/lookup/integrate"}]},{"openapi":"get /2/dm_conversations/with/{participant_id}/dm_events","title":"Get DM Events by Participant ID","href":"/x-api/direct-messages/get-dm-events-for-a-dm-conversation"},{"openapi":"get /2/dm_conversations/{id}/dm_events","title":"Get DM Events by Conversation ID","href":"/x-api/direct-messages/get-dm-events-for-a-dm-conversation-1"},{"openapi":"get /2/dm_events","title":"Get DM Events","href":"/x-api/direct-messages/get-dm-events"},{"openapi":"get /2/dm_events/{event_id}","title":"Get DM Event by ID","href":"/x-api/direct-messages/get-dm-event-by-id"},{"openapi":"get /2/dm_conversations/media/{dm_id}/{media_id}/{resource_id}","title":"Download DM Media","href":"/x-api/direct-messages/download-dm-media"}]},{"group":"Blocks","pages":[{"title":"Manage Direct Message blocks on the X API v2","sidebarTitle":"Introduction","href":"/x-api/direct-messages/blocks/introduction"},{"openapi":"post /2/users/{id}/dm/block","title":"Block DMs","href":"/x-api/users/block-dms"},{"openapi":"post /2/users/{id}/dm/unblock","title":"Unblock DMs","href":"/x-api/users/unblock-dms"}]}]},{"group":"Likes","pages":[{"title":"Likes","sidebarTitle":"Introduction","href":"/x-api/posts/likes/introduction"},{"group":"Guides","pages":[{"group":"Quickstart","pages":[{"title":"Likes Lookup","sidebarTitle":"Likes Lookup","href":"/x-api/posts/likes/quickstart/likes-lookup"},{"title":"Manage Likes","sidebarTitle":"Manage Likes","href":"/x-api/posts/likes/quickstart/manage-likes"}]}]},{"openapi":"get /2/users/{id}/liked_tweets","title":"Get Liked Posts","href":"/x-api/users/get-liked-posts"},{"openapi":"get /2/tweets/{id}/liking_users","title":"Get Liking Users","href":"/x-api/posts/get-liking-users"},{"openapi":"post /2/users/{id}/likes","title":"Like Post","href":"/x-api/users/like-post"},{"openapi":"delete /2/users/{id}/likes/{tweet_id}","title":"Unlike Post","href":"/x-api/users/unlike-post"}]},{"group":"Lists","pages":[{"group":"Lookup Lists","pages":[{"title":"List Lookup","sidebarTitle":"Introduction","href":"/x-api/lists/list-lookup/introduction"},{"group":"Guides","pages":[{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/x-api/lists/list-lookup/quickstart"},{"title":"Integration Guide","sidebarTitle":"Integration Guide","href":"/x-api/lists/list-lookup/integrate"}]},{"openapi":"get /2/lists/{id}","title":"Get List by ID","href":"/x-api/lists/get-list-by-id"},{"openapi":"get /2/users/{id}/followed_lists","title":"Get Followed Lists","href":"/x-api/users/get-followed-lists"},{"openapi":"get /2/users/{id}/owned_lists","title":"Get Owned Lists","href":"/x-api/users/get-owned-lists"}]},{"group":"Lookup List Posts","pages":[{"title":"List Posts","sidebarTitle":"Introduction","href":"/x-api/lists/list-tweets/introduction"},{"group":"Guides","pages":[{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/x-api/lists/list-tweets/quickstart"},{"title":"Integration guide","sidebarTitle":"Integration guide","href":"/x-api/lists/list-tweets/integrate"}]},{"openapi":"get /2/lists/{id}/tweets","title":"Get List Posts","href":"/x-api/lists/get-list-posts"}]},{"group":"Manage Lists","pages":[{"title":"Manage Lists","sidebarTitle":"Introduction","href":"/x-api/lists/manage-lists/introduction"},{"group":"Guides","pages":[{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/x-api/lists/manage-lists/quickstart"},{"title":"Integration guide","sidebarTitle":"Integration guide","href":"/x-api/lists/manage-lists/integrate"}]},{"openapi":"post /2/lists","title":"Create List","href":"/x-api/lists/create-list"},{"openapi":"put /2/lists/{id}","title":"Update List","href":"/x-api/lists/update-list"},{"openapi":"delete /2/lists/{id}","title":"Delete List","href":"/x-api/lists/delete-list"},{"openapi":"post /2/users/{id}/followed_lists","title":"Follow List","href":"/x-api/users/follow-list"},{"openapi":"delete /2/users/{id}/followed_lists/{list_id}","title":"Unfollow List","href":"/x-api/users/unfollow-list"}]},{"group":"List Members","pages":[{"title":"List Members","sidebarTitle":"Introduction","href":"/x-api/lists/list-members/introduction"},{"group":"Guides","pages":[{"group":"Quickstart","pages":[{"title":"List Members Overview","sidebarTitle":"Overview","href":"/x-api/lists/list-members/quickstart/overview"},{"title":"List Members Lookup","sidebarTitle":"List Members Lookup","href":"/x-api/lists/list-members/quickstart/list-members-lookup"},{"title":"Manage List Members","sidebarTitle":"Manage List Members","href":"/x-api/lists/list-members/quickstart/manage-list-members"}]},{"title":"Integration guide","sidebarTitle":"Integration guide","href":"/x-api/lists/list-members/integrate"}]},{"group":"Manage","pages":[{"openapi":"post /2/lists/{id}/members","title":"Add List Member","href":"/x-api/lists/add-list-member"},{"openapi":"delete /2/lists/{id}/members/{user_id}","title":"Remove List Member","href":"/x-api/lists/remove-list-member"}]},{"group":"Lookup","pages":[{"openapi":"get /2/users/{id}/list_memberships","title":"Get List Memberships","href":"/x-api/users/get-list-memberships"},{"openapi":"get /2/lists/{id}/followers","title":"Get List Followers","href":"/x-api/lists/get-list-followers"},{"openapi":"get /2/lists/{id}/members","title":"Get List Members","href":"/x-api/lists/get-list-members"}]}]},{"group":"Pinned Lists","pages":[{"title":"Pinned Lists","sidebarTitle":"Introduction","href":"/x-api/lists/pinned-lists/introduction"},{"group":"Guides","pages":[{"group":"Quickstart","pages":[{"title":"Pinned Lists Overview","sidebarTitle":"Overview","href":"/x-api/lists/pinned-lists/quickstart/overview"},{"title":"Pinned Lists Lookup","sidebarTitle":"Pinned Lists Lookup","href":"/x-api/lists/pinned-lists/quickstart/pinned-list-lookup"},{"title":"Manage Pinned Lists","sidebarTitle":"Manage Pinned Lists","href":"/x-api/lists/pinned-lists/quickstart/manage-pinned-lists"}]},{"title":"Integration guide","sidebarTitle":"Integration guide","href":"/x-api/lists/pinned-lists/integrate"}]},{"openapi":"get /2/users/{id}/pinned_lists","title":"Get Pinned Lists","href":"/x-api/users/get-pinned-lists"},{"openapi":"post /2/users/{id}/pinned_lists","title":"Pin List","href":"/x-api/users/pin-list"},{"openapi":"delete /2/users/{id}/pinned_lists/{list_id}","title":"Unpin List","href":"/x-api/users/unpin-list"}]}]},{"group":"Spaces","pages":[{"title":"Spaces endpoints on the X API v2","sidebarTitle":"Introduction","href":"/x-api/spaces/introduction"},{"group":"Spaces Lookup","pages":[{"title":"Spaces Lookup","sidebarTitle":"Introduction","href":"/x-api/spaces/lookup/introduction"},{"group":"Guides","pages":[{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/x-api/spaces/lookup/quickstart"}]},{"openapi":"get /2/spaces","title":"Get Spaces by IDs","href":"/x-api/spaces/get-spaces-by-ids"},{"openapi":"get /2/spaces/by/creator_ids","title":"Get Spaces by Creator IDs","href":"/x-api/spaces/get-spaces-by-creator-ids"},{"openapi":"get /2/spaces/{id}","title":"Get Space by ID","href":"/x-api/spaces/get-space-by-id"},{"openapi":"get /2/spaces/{id}/tweets","title":"Get Space Posts","href":"/x-api/spaces/get-space-posts"},{"openapi":"get /2/spaces/{id}/buyers","title":"Get Space Ticket Buyers","href":"/x-api/spaces/get-space-ticket-buyers"}]},{"group":"Search Spaces","pages":[{"title":"Spaces Search","sidebarTitle":"Introduction","href":"/x-api/spaces/search/introduction"},{"group":"Guides","pages":[{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/x-api/spaces/search/quickstart"}]},{"openapi":"get /2/spaces/search","title":"Search Spaces","href":"/x-api/spaces/search-spaces"}]}]},{"group":"Communities","pages":[{"group":"Communities Lookup","pages":[{"title":"Communities Lookup","sidebarTitle":"Introduction","href":"/x-api/communities/lookup/introduction"},{"openapi":"get /2/communities/{id}","title":"Get Community by ID","href":"/x-api/communities/get-community-by-id"}]},{"group":"Search Communities","pages":[{"title":"Communities Search","sidebarTitle":"Introduction","href":"/x-api/communities/search/introduction"},{"openapi":"get /2/communities/search","title":"Search Communities","href":"/x-api/communities/search-communities"}]}]},{"group":"Community Notes","pages":[{"title":"Community Notes API for X API v2","href":"/x-api/community-notes/introduction"},{"title":"Community Notes API quickstart for X API v2","sidebarTitle":"Quickstart","href":"/x-api/community-notes/quickstart"},{"openapi":"get /2/notes/search/posts_eligible_for_notes","title":"Search for Posts Eligible for Community Notes","href":"/x-api/community-notes/search-for-posts-eligible-for-community-notes"},{"openapi":"get /2/notes/search/notes_written","title":"Search for Community Notes Written","href":"/x-api/community-notes/search-for-community-notes-written"},{"openapi":"post /2/notes","title":"Create a Community Note","href":"/x-api/community-notes/create-a-community-note"},{"openapi":"delete /2/notes/{id}","title":"Delete a Community Note","href":"/x-api/community-notes/delete-a-community-note"},{"openapi":"post /2/notes/evaluate","title":"Evaluate a Community Note","href":"/x-api/community-notes/evaluate-a-community-note"}]},{"group":"Trends","pages":[{"group":"Trends","pages":[{"title":"Trends by WOEID","sidebarTitle":"Introduction","href":"/x-api/trends/trends-by-woeid/introduction"},{"openapi":"get /2/trends/by/woeid/{woeid}","title":"Get Trends by WOEID","href":"/x-api/trends/get-trends-by-woeid"}]},{"group":"Personalized Trends","pages":[{"title":"Personalized Trends","sidebarTitle":"Introduction","href":"/x-api/trends/personalized-trends/introduction"},{"openapi":"get /2/users/personalized_trends","title":"Get Personalized Trends","href":"/x-api/trends/get-personalized-trends"}]}]},{"group":"News","pages":[{"title":"News lookup endpoint on the X API v2","sidebarTitle":"Introduction","href":"/x-api/news/introduction"},{"openapi":"get /2/news/{id}","title":"Get News Stories by ID","href":"/x-api/news/get-news-stories-by-id"},{"openapi":"get /2/news/search","title":"Search News","href":"/x-api/news/search-news"}]},{"group":"Media","pages":[{"title":"Media upload endpoints on the X API v2","sidebarTitle":"Introduction","href":"/x-api/media/introduction"},{"group":"Upload","pages":[{"group":"Guides","pages":[{"title":"Best practices","sidebarTitle":"Best practices","href":"/x-api/media/quickstart/best-practices"},{"title":"Chunked Media Upload","sidebarTitle":"Quickstart","href":"/x-api/media/quickstart/media-upload-chunked"}]},{"openapi":"post /2/media/upload","title":"Upload Media","href":"/x-api/media/upload-media"},{"openapi":"post /2/media/upload/initialize","title":"Initialize Media Upload","href":"/x-api/media/initialize-media-upload"},{"openapi":"post /2/media/upload/{id}/append","title":"Append Media Upload","href":"/x-api/media/append-media-upload"},{"openapi":"post /2/media/upload/{id}/finalize","title":"Finalize Media Upload","href":"/x-api/media/finalize-media-upload"},{"openapi":"get /2/media/upload","title":"Get Media Upload Status","href":"/x-api/media/get-media-upload-status"}]},{"group":"Metadata","pages":[{"openapi":"post /2/media/metadata","title":"Create Media Metadata","href":"/x-api/media/create-media-metadata"},{"openapi":"post /2/media/subtitles","title":"Create Media Subtitles","href":"/x-api/media/create-media-subtitles"},{"openapi":"delete /2/media/subtitles","title":"Delete Media Subtitles","href":"/x-api/media/delete-media-subtitles"}]}]},{"group":"X Activity","pages":[{"title":"X Activity API","sidebarTitle":"Introduction","href":"/x-api/activity/introduction"},{"title":"X Activity API quickstart guide for streaming events","sidebarTitle":"Quickstart","href":"/x-api/activity/quickstart"},{"title":"X Activity API event payload examples","sidebarTitle":"Event payloads","href":"/x-api/activity/event-payloads"},{"title":"X Activity API event pricing","sidebarTitle":"Event Pricing","href":"/x-api/activity/event-pricing"},{"openapi":"get /2/activity/stream","title":"Activity Stream","href":"/x-api/activity/activity-stream"},{"openapi":"post /2/activity/subscriptions","title":"Create X Activity Subscription","href":"/x-api/activity/create-x-activity-subscription"},{"openapi":"delete /2/activity/subscriptions/{subscription_id}","title":"Delete X Activity Subscription","href":"/x-api/activity/deletes-x-activity-subscription"},{"openapi":"delete /2/activity/subscriptions","title":"Delete X Activity Subscriptions by IDs","href":"/x-api/activity/delete-x-activity-subscriptions-by-ids"},{"openapi":"get /2/activity/subscriptions","title":"Get X Activity Subscriptions","href":"/x-api/activity/get-x-activity-subscriptions"},{"openapi":"put /2/activity/subscriptions/{subscription_id}","title":"Update X Activity Subscription","href":"/x-api/activity/update-x-activity-subscription"}]},{"group":"Usage","pages":[{"title":"Usage","sidebarTitle":"Introduction","href":"/x-api/usage/introduction"},{"openapi":"get /2/usage/tweets","title":"Get Usage","href":"/x-api/usage/get-usage"},{"openapi":"get /2/usage/credits","title":"Get Usage Credits","href":"/x-api/usage/get-usage-credits"}]},{"group":"Stream Connections","pages":[{"title":"Stream Connections","sidebarTitle":"Introduction","href":"/x-api/connections/introduction"},{"openapi":"get /2/connections","title":"Get Connection History","href":"/x-api/connections/get-connection-history"},{"openapi":"delete /2/connections/{endpoint_id}","title":"Terminate Connections by Endpoint","href":"/x-api/connections/terminate-connections-by-endpoint"},{"openapi":"delete /2/connections","title":"Terminate Multiple Connections","href":"/x-api/connections/terminate-multiple-connections"},{"openapi":"delete /2/connections/all","title":"Terminate All Connections","href":"/x-api/connections/terminate-all-connections"}]},{"group":"Compliance","pages":[{"group":"Batch Compliance","pages":[{"title":"Batch Compliance","sidebarTitle":"Introduction","href":"/x-api/compliance/batch-compliance/introduction"},{"group":"Guides","pages":[{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/x-api/compliance/batch-compliance/quickstart"},{"title":"Integration guide","sidebarTitle":"Integration guide","href":"/x-api/compliance/batch-compliance/integrate"}]},{"openapi":"get /2/compliance/jobs","title":"Get Compliance Jobs","href":"/x-api/compliance/get-compliance-jobs"},{"openapi":"post /2/compliance/jobs","title":"Create Compliance Job","href":"/x-api/compliance/create-compliance-job"},{"openapi":"get /2/compliance/jobs/{id}","title":"Get Compliance Job by ID","href":"/x-api/compliance/get-compliance-job-by-id"}]},{"group":"Compliance streams","pages":[{"title":"Compliance event streams on the X API v2","sidebarTitle":"Introduction","href":"/x-api/compliance/streams/introduction"},{"openapi":"get /2/likes/compliance/stream","title":"Stream Likes Compliance Data","href":"/x-api/stream/stream-likes-compliance-data"},{"openapi":"get /2/tweets/compliance/stream","title":"Stream Posts Compliance Data","href":"/x-api/stream/stream-posts-compliance-data"},{"openapi":"get /2/users/compliance/stream","title":"Stream Users Compliance Data","href":"/x-api/stream/stream-users-compliance-data"}]}]},{"group":"Webhooks","pages":[{"title":"V2 Webhooks API","sidebarTitle":"Introduction","href":"/x-api/webhooks/introduction"},{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/x-api/webhooks/quickstart"},{"openapi":"post /2/webhooks","title":"Create Webhook","href":"/x-api/webhooks/create-webhook"},{"openapi":"delete /2/webhooks/{webhook_id}","title":"Delete Webhook","href":"/x-api/webhooks/delete-webhook"},{"openapi":"get /2/webhooks","title":"Get Webhook","href":"/x-api/webhooks/get-webhook"},{"openapi":"put /2/webhooks/{webhook_id}","title":"Validate Webhook","href":"/x-api/webhooks/validate-webhook"},{"openapi":"post /2/webhooks/replay","title":"Create Replay Job for Webhook","href":"/x-api/webhooks/create-replay-job-for-webhook"}]}]},{"dropdown":"Enterprise","icon":"https://mintlify.s3.us-west-1.amazonaws.com/x-preview/icons/xds/icon-bank.svg","groups":[{"group":"Analytics","pages":[{"openapi":"get /2/tweets/analytics","title":"Get Post Analytics","href":"/x-api/posts/get-post-analytics"},{"openapi":"get /2/media/analytics","title":"Get Media Analytics","href":"/x-api/media/get-media-analytics"}]},{"group":"Blocks","pages":[{"openapi":"post /2/users/{id}/blocking","title":"Block User","href":"/x-api/users/block-user"},{"openapi":"delete /2/users/{source_user_id}/blocking/{target_user_id}","title":"Unblock User","href":"/x-api/users/unblock-user"}]},{"group":"Volume Streams","pages":[{"title":"Volume streams (1% sampled and Decahose) on the X API v2","sidebarTitle":"Introduction","href":"/x-api/posts/volume-streams/introduction"},{"openapi":"get /2/tweets/firehose/stream","title":"Stream All Posts","href":"/x-api/stream/stream-all-posts"},{"openapi":"get /2/tweets/firehose/stream/lang/en","title":"Stream English Posts","href":"/x-api/stream/stream-english-posts"},{"openapi":"get /2/tweets/firehose/stream/lang/ja","title":"Stream Japanese Posts","href":"/x-api/stream/stream-japanese-posts"},{"openapi":"get /2/tweets/firehose/stream/lang/ko","title":"Stream Korean Posts","href":"/x-api/stream/stream-korean-posts"},{"openapi":"get /2/tweets/firehose/stream/lang/pt","title":"Stream Portuguese Posts","href":"/x-api/stream/stream-portuguese-posts"},{"openapi":"get /2/tweets/sample/stream","title":"Stream Sampled Posts","href":"/x-api/stream/stream-sampled-posts"},{"openapi":"get /2/tweets/sample10/stream","title":"Stream 10% Sampled Posts","href":"/x-api/stream/stream-10-sampled-posts"}]},{"group":"Likes Streams","pages":[{"title":"Likes Streams","sidebarTitle":"Introduction","href":"/x-api/stream/likes-streams-introduction"},{"openapi":"get /2/likes/firehose/stream","title":"Stream All Likes","href":"/x-api/stream/stream-all-likes"},{"openapi":"get /2/likes/sample10/stream","title":"Stream Sampled Likes","href":"/x-api/stream/stream-sampled-likes"}]},{"group":"Powerstream","pages":[{"title":"Powerstream low-latency streaming API on the X API v2","sidebarTitle":"Introduction","href":"/x-api/powerstream/introduction"},{"title":"Powerstream Operators","sidebarTitle":"Operators","href":"/x-api/powerstream/operators"},{"title":"Handling disconnections","sidebarTitle":"Handling disconnections","href":"/x-api/powerstream/handling-disconnections"},{"title":"Recovery and redundancy","sidebarTitle":"Recovery and redundancy","href":"/x-api/powerstream/recovery-and-redundancy"}]},{"group":"Account Activity","pages":[{"title":"Account Activity API v2 introduction and overview","sidebarTitle":"Introduction","tag":"DEPRECATED","href":"/x-api/account-activity/introduction"},{"title":"Account Activity API quickstart guide","sidebarTitle":"Quickstart","tag":"DEPRECATED","href":"/x-api/account-activity/quickstart"},{"group":"Migration guide","pages":[{"title":"Account Activity API v2 migration guide","tag":"DEPRECATED","href":"/x-api/account-activity/migrate/overview"},{"title":"Migrate from the Account Activity API to the X Activity API","sidebarTitle":"AAA to XAA migration","href":"/x-api/account-activity/migrate/aaa-to-xaa-migration"}]},{"openapi":"post /2/account_activity/webhooks/{webhook_id}/subscriptions/all","title":"Create Subscription","href":"/x-api/account-activity/create-subscription"},{"openapi":"get /2/account_activity/webhooks/{webhook_id}/subscriptions/all","title":"Validate Subscription","href":"/x-api/account-activity/validate-subscription"},{"openapi":"delete /2/account_activity/webhooks/{webhook_id}/subscriptions/{user_id}/all","title":"Delete Subscription","href":"/x-api/account-activity/delete-subscription"},{"openapi":"get /2/account_activity/webhooks/{webhook_id}/subscriptions/all/list","title":"Get Subscriptions","href":"/x-api/account-activity/get-subscriptions"},{"openapi":"get /2/account_activity/subscriptions/count","title":"Get Subscription Count","href":"/x-api/account-activity/get-subscription-count"},{"openapi":"post /2/account_activity/replay/webhooks/{webhook_id}/subscriptions/all","title":"Create Account Activity replay job","tag":"DEPRECATED","href":"/x-api/account-activity/create-replay-job"}]},{"group":"Filtered Stream Webhooks","pages":[{"title":"Filtered Stream Webhooks API","sidebarTitle":"Introduction","href":"/x-api/webhooks/stream/introduction"},{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/x-api/webhooks/stream/quickstart"},{"openapi":"post /2/tweets/search/webhooks/{webhook_id}","title":"Create Stream Link","href":"/x-api/webhooks/create-stream-link"},{"openapi":"delete /2/tweets/search/webhooks/{webhook_id}","title":"Delete Stream Link","href":"/x-api/webhooks/delete-stream-link"},{"openapi":"get /2/tweets/search/webhooks","title":"Get Stream Links","href":"/x-api/webhooks/get-stream-links"}]}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},{"product":"Chat API","pages":[{"title":"Chat API","href":"/xchat/introduction"}]},{"product":"Ads API","pages":[{"title":"Ads API","href":"/x-ads-api/introduction"}]},{"product":"Livestream API","pages":[{"title":"Livestream API","href":"/livestream-api/introduction"}]},{"product":"Enterprise","hidden":true,"pages":[{"title":"Enterprise","href":"/enterprise-api/introduction"}]},{"product":"Python XDK","hidden":true,"pages":[{"title":"Python XDK","href":"/xdks/python/overview"}]},{"product":"TypeScript XDK","hidden":true,"pages":[{"title":"TypeScript XDK","href":"/xdks/typescript/overview"}]}]},"basePath":"","title":"OAuth 2.0 - X","buildId":"dpl_36EDyZCDfRuoUD9af5CH4M1bqY2h","deploymentId":"dpl_36EDyZCDfRuoUD9af5CH4M1bqY2h","dynamics":[],"chunks":[]}