Information that helps identify the connected account. If null, the integration does not provide this information.
Show child attributes
Example:
{ "account_id": "account_12345", "account_name": "My WMS Account" }
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Trackstar","colors":{"primary":"#7691DA","light":"#D3D665","dark":"#2E3B72"},"logo":{"light":"https://mintcdn.com/trackstar/e_R8AMY4ayyVfYRU/logo/light.svg?fit=max\u0026auto=format\u0026n=e_R8AMY4ayyVfYRU\u0026q=85\u0026s=eb832f4ffc768291fd95c4939b2ac6c2","dark":"https://mintcdn.com/trackstar/e_R8AMY4ayyVfYRU/logo/dark.svg?fit=max\u0026auto=format\u0026n=e_R8AMY4ayyVfYRU\u0026q=85\u0026s=1a2845225060cfe1d75c91a7240341a0"},"favicon":"https://mintcdn.com/trackstar/ronaGfFeKtERpohJ/favicon.png?fit=max\u0026auto=format\u0026n=ronaGfFeKtERpohJ\u0026q=85\u0026s=b3a24a0d7d7c7acc8e7394c0640eb8c6","api":{"openapi":"https://production.trackstarhq.com/openapi.json","mdx":{"server":"https://production.trackstarhq.com"}},"navbar":{"primary":{"type":"button","label":"Get an API Key","href":"https://www.trackstarhq.com/#"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/trackstarhq","website":"https://www.trackstarhq.com/"}},"integrations":{"clearbit":{"publicApiKey":"pk_1c5d72a7b03149b504c277cee5b4032a"}},"contextual":{"options":["copy","view","claude","chatgpt","cursor","vscode","mcp","add-mcp","download-spec"],"display":"header"},"markdown":{"instructions":["Trackstar is a unified REST API for WMS, cart, and carrier systems. Base URL: https://production.trackstarhq.com. There is no SDK; call the API with plain HTTP.","Send x-trackstar-api-key on every request. Endpoints scoped to one connection also need x-trackstar-access-token. Read both from environment variables and never print them.","Reads return data Trackstar has already synced from the connected system. Writes (POST, PUT, PATCH, DELETE) are forwarded to the connected system immediately.","A new connection has no data until its initial sync finishes. Wait for the connection.historical-sync-completed webhook, or poll GET /connections/{connection_id} and check historical_sync_completed.","List endpoints page with page_token and next_token (limit is capped at 1000). Repeat every filter on every page. Filters use field[operator]=value, for example created_date[gte]=2026-01-01T00:00:00Z.","Write bodies must not contain null or empty strings; omit the field instead. Call GET /integrations/{integration_type}/{integration_name}/write-info first to learn the exact fields an integration accepts.","To test without real credentials, POST /sandbox/generate-sandbox/{wms|cart|carrier} with the API key returns a sandbox access token. Start at https://docs.trackstarhq.com/how-to-guides/build-with-ai.md and install the skills with: npx skills add https://docs.trackstarhq.com"]},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Request an API Key","icon":"key","href":"https://trackstarhq.com/get-started"},{"anchor":"Login to Dashboard","icon":"browser","href":"https://dashboard.trackstarhq.com"},{"anchor":"WMS Integrations","icon":"warehouse","href":"https://trackstarhq.com/integrations/wms"},{"anchor":"Cart Integrations","icon":"cart-shopping","href":"https://trackstarhq.com/integrations/cart"},{"anchor":"Carrier Integrations","icon":"truck","href":"https://trackstarhq.com/integrations/carrier"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"trackstar","hasAudioNarration":false,"actualSubdomain":"trackstar","customDomains":["docs.trackstarhq.com"],"gitSource":{"type":"github","owner":"trackstarhq","repo":"documentation","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aee943d5172748e31651b3d","clientVersion":"0.0.4088","searchFilterCounts":[{"language":"default","tag":"Guides","count":67},{"language":"default","tag":"How-To Guides","count":58},{"language":"default","tag":"WMS API","count":55},{"language":"default","tag":"WMS API Reference","count":55},{"language":"default","tag":"Webhooks","count":48},{"language":"default","tag":"WMS","count":29},{"language":"default","tag":"Admin API","count":21},{"language":"default","tag":"Admin API Reference","count":20},{"language":"default","tag":"Orders","count":17},{"language":"default","tag":"Cart API","count":16}]},"assistantConfig":{"enableStarterQuestions":true},"basePath":"","hasChatPermissions":true,"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":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/mgmt/exchange-auth-code","slug":"/api-reference/mgmt/exchange-auth-code","pageMetadata":{"openapi":"post /link/exchange","title":"Exchange Auth Code","description":"Exchanges a temporary authorization code for a permanent access token.\nSee the [Getting Started guide](/how-to-guides/getting-started) for more details.","href":"/api-reference/mgmt/exchange-auth-code"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n a: \"a\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Exchanges a temporary authorization code for a permanent access token.\\nSee the \", _jsx(_components.a, {\n href: \"/how-to-guides/getting-started\",\n children: \"Getting Started guide\"\n }), \" for more details.\"]\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi":"post /link/exchange","title":"Exchange Auth Code","description":"Exchanges a temporary authorization code for a permanent access token.\nSee the [Getting Started guide](/how-to-guides/getting-started) for more details.","href":"/api-reference/mgmt/exchange-auth-code"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/trackstar/30b448b1cb413b03/required.js","/_mintlify/custom/trackstar/a23a6fd668fcabff/tab-dropdown.js","/_mintlify/custom/trackstar/bf284930523528a1/write-fields.js"],"openApiReferenceData":{"operation":{"parameters":["6a906c60-4cf6-437a-880d-f713e78580b8"],"responses":{"200":"b4cd2b8b-d2ad-4b83-bd00-1bbf8569d152","422":"d6a2b417-277d-4687-b1fd-1dcc74f43cfd"},"tags":["Auth"],"summary":"Exchange Auth Code","description":"Exchanges a temporary authorization code for a permanent access token.\nSee the [Getting Started guide](/how-to-guides/getting-started) for more details.","operationId":"post_POST__link_exchange","requestBody":"57e879a2-2703-4e6f-8067-642469422127","method":"post","type":"path","servers":["861d255c-a94c-46fa-b781-cfe57e4f3302"],"security":[],"path":"/link/exchange","baseUrlOptions":["https://production.trackstarhq.com"],"title":"Exchange Auth Code","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"6a906c60-4cf6-437a-880d-f713e78580b8":{"in":"header","name":"x-trackstar-api-key","description":"Your organization-level Trackstar API key.","schema":{"type":"string","example":"\u003cx-trackstar-api-key>","isRequired":true,"description":"Your organization-level Trackstar API key.","uniqueKey":"","typeLabel":"string"},"required":true}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"auth_code":{"type":"string","description":"The authorization code returned from the frontend after a user installs an integration.","example":"auth_code","isRequired":true,"uniqueKey":"auth_code","typeLabel":"string"},"customer_id":{"oneOf":[{"type":"string","description":"An identifier for your end customer.","example":"customer_id","uniqueKey":"customer_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"An identifier for your end customer.","example":"customer_id","uniqueKey":"customer_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"customer_id","typeLabel":"string | null"}},"required":["auth_code"],"additionalProperties":false,"title":"ExchangeInputSchema","uniqueKey":"","typeLabel":"ExchangeInputSchema · object"},"examples":{"Example":{"title":"Example","value":{"auth_code":"auth_code","customer_id":"customer_id"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"b4cd2b8b-d2ad-4b83-bd00-1bbf8569d152":{"content":{"application/json":{"schema":{"type":"object","properties":{"access_token":{"type":"string","description":"The permanent access token for the integration used to make requests to the Trackstar API.","example":"your_permanent_access_token","isRequired":true,"uniqueKey":"access_token","typeLabel":"string"},"connection_id":{"type":"string","description":"A unique connection ID for the integration.","example":"unique_connection_id","isRequired":true,"uniqueKey":"connection_id","typeLabel":"string"},"integration_name":{"type":"string","description":"The name of the integration that was installed.","example":"shipbob","isRequired":true,"uniqueKey":"integration_name","typeLabel":"string"},"customer_id":{"oneOf":[{"type":"string","description":"An identifier for your end customer.","example":"customer_id","isRequired":true,"uniqueKey":"customer_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"An identifier for your end customer.","example":"customer_id","isRequired":true,"uniqueKey":"customer_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"customer_id","typeLabel":"string | null"},"available_actions":{"type":"array","description":"A list of actions that the integration supports.","example":["get_inventory","get_products"],"items":{"type":"string","description":"Actions supported by the integration","example":"available_actions","uniqueKey":"available_actions.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"available_actions","typeLabel":"string[]"},"me":{"oneOf":[{"type":"object","description":"Information that helps identify the connected account. If null, the integration does not provide this information.","example":{"account_id":"account_12345","account_name":"My WMS Account"},"additionalProperties":{"description":"Field value. Structure varies based on integration.","uniqueKey":"me.oneOf.0.additionalProperties","typeLabel":"any"},"isRequired":true,"uniqueKey":"me.oneOf.0","typeLabel":"object"},{"type":"null","description":"Information that helps identify the connected account. If null, the integration does not provide this information.","example":{"account_id":"account_12345","account_name":"My WMS Account"},"additionalProperties":{"description":"Field value. Structure varies based on integration.","uniqueKey":"me.oneOf.1.additionalProperties","typeLabel":"any"},"isRequired":true,"uniqueKey":"me.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"me","typeLabel":"object | null"}},"required":["access_token","available_actions","connection_id","customer_id","integration_name","me"],"additionalProperties":false,"title":"ExchangeResponseShipbob","uniqueKey":"","typeLabel":"ExchangeResponseShipbob · object"},"examples":{"Example":{"title":"Example","value":{"access_token":"your_permanent_access_token","connection_id":"unique_connection_id","integration_name":"shipbob","customer_id":"customer_id","available_actions":["get_inventory","get_products"],"me":{"account_id":"account_12345","account_name":"My WMS Account"}}}},"exampleType":"generated"}},"description":"Successful response","exampleType":"generated"},"d6a2b417-277d-4687-b1fd-1dcc74f43cfd":{"content":{"application/json":{"schema":{"properties":{"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"detail":{"type":"object","properties":{"\u003clocation>":{"type":"object","properties":{"\u003cfield_name>":{"type":"array","items":{"type":"string","uniqueKey":"detail.\u003clocation>.\u003cfield_name>.items.[INDEX]","typeLabel":"string"},"uniqueKey":"detail.\u003clocation>.\u003cfield_name>","typeLabel":"string[]"}},"uniqueKey":"detail.\u003clocation>","typeLabel":"object"}},"uniqueKey":"detail","typeLabel":"object"}},"required":["error"],"type":"object","title":"ValidationError","uniqueKey":"","typeLabel":"ValidationError · object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","detail":{"\u003clocation>":{"\u003cfield_name>":["\u003cstring>"]}}}}},"exampleType":"generated"}},"description":"Validation error","exampleType":"generated"}},"security":{},"servers":{"861d255c-a94c-46fa-b781-cfe57e4f3302":{"description":"Trackstar API","url":"https://production.trackstarhq.com"}}},"originalFileLocation":"https://production.trackstarhq.com/openapi.json"},"subdomain":"trackstar","siteName":"Trackstar","title":"Exchange Auth Code - Trackstar","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-28T22:40:27.751Z","originalFileLocation":"api-reference/mgmt/exchange-auth-code.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=\"Exchanges a temporary authorization code for a permanent access token. See the Getting Started guide for more details.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Trackstar\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/trackstar/pv8TH9ZNYgztdvmO/_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/trackstar/pv8TH9ZNYgztdvmO/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/trackstar/pv8TH9ZNYgztdvmO/_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/trackstar/pv8TH9ZNYgztdvmO/_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/trackstar/pv8TH9ZNYgztdvmO/_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/trackstar/pv8TH9ZNYgztdvmO/_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/trackstar/pv8TH9ZNYgztdvmO/_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/trackstar/pv8TH9ZNYgztdvmO/_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/trackstar/pv8TH9ZNYgztdvmO/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Exchange Auth Code - Trackstar\">\u003cmeta data-mint-head property=\"og:description\" content=\"Exchanges a temporary authorization code for a permanent access token. See the Getting Started guide for more details.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Trackstar\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.trackstarhq.com/api-reference/mgmt/exchange-auth-code\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://trackstar.mintlify.site/_mintlify/api/og/v2?division=Admin+API+Reference\u0026amp;title=Exchange+Auth+Code\u0026amp;description=Exchanges+a+temporary+authorization+code+for+a+permanent+access+token.%0ASee+the+%5BGetting+Started+guide%5D%28%2Fhow-to-guides%2Fgetting-started%29+for+more+details.\u0026amp;theme=a7581761d745b5f6f24e3162\u0026amp;signature=3dec09962f0955ee911f1e4b105a52f09fb98e365dcd7d566b8d309a0545232f\">\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=\"Exchange Auth Code - Trackstar\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Exchanges a temporary authorization code for a permanent access token. See the Getting Started guide for more details.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://trackstar.mintlify.site/_mintlify/api/og/v2?division=Admin+API+Reference\u0026amp;title=Exchange+Auth+Code\u0026amp;description=Exchanges+a+temporary+authorization+code+for+a+permanent+access+token.%0ASee+the+%5BGetting+Started+guide%5D%28%2Fhow-to-guides%2Fgetting-started%29+for+more+details.\u0026amp;theme=a7581761d745b5f6f24e3162\u0026amp;signature=3dec09962f0955ee911f1e4b105a52f09fb98e365dcd7d566b8d309a0545232f\">\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/trackstar/pv8TH9ZNYgztdvmO/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Trackstar\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#7691DA\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.trackstarhq.com/api-reference/mgmt/exchange-auth-code\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/mgmt/exchange-auth-code.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.trackstarhq.com/#organization\",\"name\":\"Trackstar\",\"url\":\"https://docs.trackstarhq.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/trackstar/e_R8AMY4ayyVfYRU/logo/light.svg?fit=max\u0026auto=format\u0026n=e_R8AMY4ayyVfYRU\u0026q=85\u0026s=eb832f4ffc768291fd95c4939b2ac6c2\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.trackstarhq.com#website\",\"name\":\"Trackstar\",\"url\":\"https://docs.trackstarhq.com\",\"publisher\":{\"@id\":\"https://docs.trackstarhq.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.trackstarhq.com/api-reference/mgmt/exchange-auth-code#webpage\",\"url\":\"https://docs.trackstarhq.com/api-reference/mgmt/exchange-auth-code\",\"name\":\"Exchange Auth Code\",\"description\":\"Exchanges a temporary authorization code for a permanent access token. See the Getting Started guide for more details.\",\"dateModified\":\"2026-01-28T22:40:27.751Z\",\"isPartOf\":{\"@id\":\"https://docs.trackstarhq.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.trackstarhq.com/api-reference/mgmt/exchange-auth-code#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.trackstarhq.com/api-reference/mgmt/exchange-auth-code#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Admin API Reference\",\"item\":\"https://docs.trackstarhq.com/api-reference/mgmt/create-link-token\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Exchange Auth Code\",\"item\":\"https://docs.trackstarhq.com/api-reference/mgmt/exchange-auth-code\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.trackstarhq.com/api-reference/mgmt/exchange-auth-code#apireference\",\"headline\":\"Exchange Auth Code\",\"name\":\"Exchange Auth Code\",\"description\":\"Exchanges a temporary authorization code for a permanent access token. See the Getting Started guide for more details.\",\"url\":\"https://docs.trackstarhq.com/api-reference/mgmt/exchange-auth-code\",\"mainEntityOfPage\":{\"@id\":\"https://docs.trackstarhq.com/api-reference/mgmt/exchange-auth-code#webpage\"},\"dateModified\":\"2026-01-28T22:40:27.751Z\",\"publisher\":{\"@id\":\"https://docs.trackstarhq.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.trackstarhq.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Trackstar\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Trackstar","nav":{"global":{"anchors":[{"anchor":"Request an API Key","icon":"key","href":"https://trackstarhq.com/get-started"},{"anchor":"Login to Dashboard","icon":"browser","href":"https://dashboard.trackstarhq.com"},{"anchor":"WMS Integrations","icon":"warehouse","href":"https://trackstarhq.com/integrations/wms"},{"anchor":"Cart Integrations","icon":"cart-shopping","href":"https://trackstarhq.com/integrations/cart"},{"anchor":"Carrier Integrations","icon":"truck","href":"https://trackstarhq.com/integrations/carrier"}]},"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/introduction"}]},{"tab":"Admin API","groups":[{"group":"Admin API Reference","pages":[{"openapi":"post /link/token","title":"Create Link Token","description":"Creates a temporary link token that is required to initiate the `react-trackstar-link` component.\nSee the [Getting Started guide](/how-to-guides/getting-started) for more details.","href":"/api-reference/mgmt/create-link-token"},{"openapi":"post /link/exchange","title":"Exchange Auth Code","href":"/api-reference/mgmt/exchange-auth-code"},{"openapi":"get /connections","title":"Get Connections","description":"Returns connected integrations for your organization.","href":"/api-reference/mgmt/get-connections"},{"openapi":"get /connections/{connection_id}","title":"Get Connection","href":"/api-reference/mgmt/get-connection"},{"openapi":"patch /connections","title":"Update Connection","href":"/api-reference/mgmt/update-connection"},{"openapi":"post /connections/sync","title":"Sync Connection","href":"/api-reference/mgmt/sync-connection"},{"openapi":"delete /connections","title":"Delete Connection","href":"/api-reference/mgmt/delete-connection"},{"openapi":"patch /schedules/{function_name}/toggle","title":"Toggle Schedule","href":"/api-reference/mgmt/toggle-connection-schedule"},{"openapi":"patch /schedules/toggle-all","title":"Toggle All Schedules","href":"/api-reference/mgmt/toggle-all-schedules"},{"openapi":"get /integrations/{integration_type}","title":"Integration Info","href":"/api-reference/mgmt/integrations"},{"openapi":"get /integrations/{integration_type}/{integration_name}","title":"Integration Info for Single Integration","href":"/api-reference/mgmt/get-integration"},{"openapi":"get /integrations/{integration_type}/{integration_name}/write-info","title":"Integration Write Info","href":"/api-reference/mgmt/integration-write-info"},{"openapi":"post /integration-requests","title":"Request an Integration","href":"/api-reference/mgmt/create-integration-request"},{"openapi":"get /integration-requests/flows","title":"Integration Request Flows","href":"/api-reference/mgmt/integration-request-flows"},{"openapi":"get /magic-links","title":"Get Magic Links","href":"/api-reference/mgmt/get-magic-links"},{"openapi":"get /magic-links/{magic_link_id}","title":"Get Magic Link","href":"/api-reference/mgmt/get-magic-link"},{"openapi":"post /magic-links","title":"Create Magic Link","href":"/api-reference/mgmt/create-magic-link"},{"openapi":"delete /magic-links/{magic_link_id}","title":"Delete Magic Link","href":"/api-reference/mgmt/delete-magic-link"},{"openapi":"get /api-logs","title":"Get API Logs","href":"/api-reference/mgmt/search-api-logs"},{"openapi":"get /api-logs/facets","title":"Get API Log Facets","href":"/api-reference/mgmt/api-log-facets"}]},{"group":"Sandbox","pages":[{"openapi":"post /sandbox/generate-sandbox/{integration_type}","title":"Generate Sandbox","href":"/api-reference/sandbox/generate-sandbox"}]}]},{"tab":"WMS API","pages":[{"title":"WMS API","href":"/api-reference/wms-api/inventory/info"}]},{"tab":"Cart API","pages":[{"title":"Cart API","href":"/api-reference/cart-api/products/info"}]},{"tab":"Carrier API","pages":[{"title":"Carrier API","href":"/api-reference/carrier-api/invoice-line-items/info"}]},{"tab":"ERP API","hidden":true,"pages":[{"title":"ERP API","href":"/api-reference/erp-api/sales-orders/info"}]}]},"basePath":"","title":"Exchange Auth Code - Trackstar","buildId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","deploymentId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-5FCzAcfS.js","utils-SLtAG4EZ.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-2DZi8ZMu.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-D7J3nkzE.js","snippetPresets-D0Alv0AH.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BI4qNJ2c.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BD3uyr8j.js","shallow-D8iEBr5z.js","getApiPlaygroundDisplay-CgNP4lzR.js","CodeSnippet-CX-QHuMs.js","CodeSnippets-VlXE-ZUf.js","Page-D9ithiIZ.js","getPastedJson-DYNQkZ1M.js","icon-CzacdwOi.js","MethodPill-2JVqoYKi.js","DuplicateIcon-_xVXs-U8.js","createIcon-BRHrweLo.js","DynamicMarkdown-mQG_iQiE.js","SectionHeading-DMpJzv8f.js","axios-vUo_bRtp.js","Markdown-5FGIym-8.js","clsx-D-TRO5q5.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CdrJecqK.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-CHlcWBLM.js"]}