Starts connecting to an MCP server that acts as one of its users. Send the user’s browser to consent_url. Once they consent, they get a confirmation: as a code shown to them, to give back to you, or, if you passed the optional return_url, sent to it with connection_id. Confirm the connection with it within 10 minutes to make it active, then give its id to runs as connection_id.
Send the user's browser there to consent on the MCP server. Valid for 10 minutes, once. The browser then comes back to your return_url, or shows the confirmation code without one.
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Tracks","colors":{"primary":"#E90060","light":"#FF3B76","dark":"#051413"},"logo":{"light":"https://mintcdn.com/alpic-tracks/VVLHOVQZyE3thQt_/logo/light.svg?fit=max\u0026auto=format\u0026n=VVLHOVQZyE3thQt_\u0026q=85\u0026s=363e5ecf6194fa299165aefdc90050bd","dark":"https://mintcdn.com/alpic-tracks/VVLHOVQZyE3thQt_/logo/dark.svg?fit=max\u0026auto=format\u0026n=VVLHOVQZyE3thQt_\u0026q=85\u0026s=723aa93804243f4ad630748b71d0193c"},"favicon":"https://mintcdn.com/alpic-tracks/VVLHOVQZyE3thQt_/favicon.svg?fit=max\u0026auto=format\u0026n=VVLHOVQZyE3thQt_\u0026q=85\u0026s=3012022d597cd0d5f802e92679b01e61","navbar":{"links":[{"href":"mailto:support@alpic.ai","label":"Support"}],"primary":{"type":"button","label":"Web app","href":"https://tracks.alpic.ai"}},"footer":{"socials":{"x":"https://x.com/alpic_ai","github":"https://github.com/alpic-ai","linkedin":"https://linkedin.com/company/alpic-ai"}},"seo":{"metatags":{"description":"Run coding agents such as Claude Code, Codex and Cursor in isolated sandboxes, and compare them on your own scenarios."}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"alpic-tracks","hasAudioNarration":false,"actualSubdomain":"alpic-tracks","customDomains":["docs.tracks.alpic.ai"],"gitSource":{"type":"github","owner":"alpic-ai","repo":"tracks","deployBranch":"docs-site","contentDirectory":"packages/docs","isPrivate":true,"mountPath":"","label":"","_id":"6ae495ab187ae8fd10e2430d"},"chroma":{"latestBuiltDeploymentHistoryId":"6ae4b3fe546b569add0cf3e5","collectionId":"3abedaf8-0027-4ed7-aed2-9822bbdf4e80","liveDeploymentHistoryId":"6ae4b3fe546b569add0cf3e5","schemaVersion":"v3"},"entitlements":{},"buildId":"6ae4d1316d3c0060a25f333d","clientVersion":"0.0.4021","searchFilterCounts":[{"language":"default","tag":"API","count":33},{"language":"default","tag":"Documentation","count":16},{"language":"default","tag":"Runs","count":13},{"language":"default","tag":"CLI","count":7},{"language":"default","tag":"Concepts","count":6},{"language":"default","tag":"Guides","count":6},{"language":"default","tag":"Commands","count":6},{"language":"default","tag":"Connections","count":5},{"language":"default","tag":"Executions","count":5},{"language":"default","tag":"Experiments","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"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":"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}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/connections/create-a-connection","slug":"/api-reference/connections/create-a-connection","pageMetadata":{"title":"Create a connection","description":"Starts connecting to an MCP server that acts as one of its users. Send the user's browser to `consent_url`. Once they consent, they get a `confirmation`: as a code shown to them, to give back to you, or, if you passed the optional `return_url`, sent to it with `connection_id`. Confirm the connection with it within 10 minutes to make it `active`, then give its `id` to runs as `connection_id`.","deprecated":null,"version":null,"openapi":"https://tracks.alpic.ai/api/openapi.json post /connections","href":"/api-reference/connections/create-a-connection","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Starts connecting to an MCP server that acts as one of its users. Send the user’s browser to \", _jsx(_components.code, {\n children: \"consent_url\"\n }), \". Once they consent, they get a \", _jsx(_components.code, {\n children: \"confirmation\"\n }), \": as a code shown to them, to give back to you, or, if you passed the optional \", _jsx(_components.code, {\n children: \"return_url\"\n }), \", sent to it with \", _jsx(_components.code, {\n children: \"connection_id\"\n }), \". Confirm the connection with it within 10 minutes to make it \", _jsx(_components.code, {\n children: \"active\"\n }), \", then give its \", _jsx(_components.code, {\n children: \"id\"\n }), \" to runs as \", _jsx(_components.code, {\n children: \"connection_id\"\n }), \".\"]\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":{"title":"Create a connection","description":"Starts connecting to an MCP server that acts as one of its users. Send the user's browser to `consent_url`. Once they consent, they get a `confirmation`: as a code shown to them, to give back to you, or, if you passed the optional `return_url`, sent to it with `connection_id`. Confirm the connection with it within 10 minutes to make it `active`, then give its `id` to runs as `connection_id`.","deprecated":null,"version":null,"openapi":"https://tracks.alpic.ai/api/openapi.json post /connections","href":"/api-reference/connections/create-a-connection","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Connections"],"operationId":"connections.create","parameters":[],"security":["dff57b08-4792-415b-b38a-81118e62f736"],"responses":{"201":"ac39af84-dcdc-4728-b110-495b3e6aa986","400":"f2ea5e26-72b1-401a-bb27-1b8925591364","401":"fb256d28-6092-4750-9684-000ab946e494","422":"080b1a9e-b4e7-4255-8338-cdea19af6c6f","502":"6e91b48a-61f6-426d-b765-e0cc9996ee51"},"description":"Starts connecting to an MCP server that acts as one of its users. Send the user's browser to `consent_url`. Once they consent, they get a `confirmation`: as a code shown to them, to give back to you, or, if you passed the optional `return_url`, sent to it with `connection_id`. Confirm the connection with it within 10 minutes to make it `active`, then give its `id` to runs as `connection_id`.","summary":"Create a connection","requestBody":"081cb21c-b0ef-495f-83b6-58683cfc4593","method":"post","type":"path","servers":["3583a21d-ff6b-4dad-a512-802120a11c6e"],"path":"/connections","baseUrlOptions":["https://tracks.alpic.ai/api"],"title":"Create a connection","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"server_url":{"type":"string","isRequired":true,"uniqueKey":"server_url","typeLabel":"string"},"return_url":{"type":"string","uniqueKey":"return_url","typeLabel":"string"}},"required":["server_url"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"server_url":"\u003cstring>","return_url":"\u003cstring>"}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"ac39af84-dcdc-4728-b110-495b3e6aa986":{"description":"CreatedConnection","content":{"application/json":{"schema":{"type":"object","properties":{"connection":{"oneOf":[{"type":"object","description":"Access to an MCP server as one of its users, kept by us.","required":["id","server_url","created_at","status"],"properties":{"id":{"type":"string","description":"Unique identifier of the connection.","isRequired":true,"uniqueKey":"connection.oneOf.0.id","typeLabel":"string"},"server_url":{"type":"string","description":"URL of the MCP server.","isRequired":true,"uniqueKey":"connection.oneOf.0.server_url","typeLabel":"string"},"created_at":{"type":"string","isRequired":true,"uniqueKey":"connection.oneOf.0.created_at","typeLabel":"string"},"status":{"type":"string","enum":["authorizing","unconfirmed","active"],"description":"`authorizing` until the user consents on the MCP server, `unconfirmed` until you confirm it, `active` once it can be used.","isRequired":true,"uniqueKey":"connection.oneOf.0.status","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"connection.oneOf.0","typeLabel":"object"},{"type":"object","description":"Access to an MCP server as one of its users, kept by us.","required":["id","server_url","created_at","status","failure"],"properties":{"id":{"type":"string","description":"Unique identifier of the connection.","isRequired":true,"uniqueKey":"connection.oneOf.1.id","typeLabel":"string"},"server_url":{"type":"string","description":"URL of the MCP server.","isRequired":true,"uniqueKey":"connection.oneOf.1.server_url","typeLabel":"string"},"created_at":{"type":"string","isRequired":true,"uniqueKey":"connection.oneOf.1.created_at","typeLabel":"string"},"status":{"type":"string","enum":["failed"],"isRequired":true,"uniqueKey":"connection.oneOf.1.status","typeLabel":"enum\u003cstring>"},"failure":{"type":"string","description":"Why the consent did not complete.","isRequired":true,"uniqueKey":"connection.oneOf.1.failure","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"connection.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"connection","typeLabel":"object"},"consent_url":{"type":"string","description":"Send the user's browser there to consent on the MCP server. Valid for 10 minutes, once. The browser then comes back to your `return_url`, or shows the confirmation code without one.","isRequired":true,"uniqueKey":"consent_url","typeLabel":"string"}},"required":["connection","consent_url"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"connection":{"id":"\u003cstring>","server_url":"\u003cstring>","created_at":"\u003cstring>","status":"authorizing"},"consent_url":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"f2ea5e26-72b1-401a-bb27-1b8925591364":{"description":"The request is invalid: a value is missing, has the wrong type or is out of range. Fix it before sending the request again.","content":{"application/json":{"schema":{"type":"object","properties":{"_tag":{"type":"string","enum":["InvalidRequest"],"isRequired":true,"uniqueKey":"_tag","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Every problem found, in one sentence.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"location":{"type":"string","enum":["path","query","header","body"],"description":"The part of the request that is wrong.","isRequired":true,"uniqueKey":"location","typeLabel":"enum\u003cstring>"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"issues.items.[INDEX].path.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"issues.items.[INDEX].path.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"],"uniqueKey":"issues.items.[INDEX].path.items.[INDEX].oneOf.2","typeLabel":"enum\u003cstring>"}],"uniqueKey":"issues.items.[INDEX].path.items.[INDEX]","typeLabel":"string | number | enum\u003cstring>"},"description":"Keys leading to the wrong value inside that part of the request, such as `[\"agent\", \"model\"]`. Empty when the problem concerns that part as a whole.","isRequired":true,"uniqueKey":"issues.items.[INDEX].path","typeLabel":"(string | number | enum\u003cstring>)[]"},"message":{"type":"string","description":"What is wrong with the value.","isRequired":true,"uniqueKey":"issues.items.[INDEX].message","typeLabel":"string"}},"required":["path","message"],"additionalProperties":false,"description":"One problem found in the request.","uniqueKey":"issues.items.[INDEX]","typeLabel":"object"},"description":"Each problem found, with where it is.","isRequired":true,"uniqueKey":"issues","typeLabel":"object[]"}},"required":["_tag","message","location","issues"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"_tag":"InvalidRequest","message":"\u003cstring>","location":"path","issues":[{"path":["\u003cstring>"],"message":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"fb256d28-6092-4750-9684-000ab946e494":{"description":"The API key is missing, malformed or revoked, or its organization is closed.","content":{"application/json":{"schema":{"type":"object","properties":{"_tag":{"type":"string","enum":["ApiKeyRefused"],"isRequired":true,"uniqueKey":"_tag","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["_tag","message"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"_tag":"ApiKeyRefused","message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"080b1a9e-b4e7-4255-8338-cdea19af6c6f":{"description":"The connection cannot be started: the return URL is not allowed, or the MCP server cannot be authorized in a way we support.","content":{"application/json":{"schema":{"type":"object","properties":{"_tag":{"type":"string","enum":["ConnectionRefused"],"isRequired":true,"uniqueKey":"_tag","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["_tag","message"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"_tag":"ConnectionRefused","message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"6e91b48a-61f6-426d-b765-e0cc9996ee51":{"description":"The MCP server or its authorization server could not be reached.","content":{"application/json":{"schema":{"type":"object","properties":{"_tag":{"type":"string","enum":["ServerUnreachable"],"isRequired":true,"uniqueKey":"_tag","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["_tag","message"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"_tag":"ServerUnreachable","message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"dff57b08-4792-415b-b38a-81118e62f736":{"bearer":{"description":"An API key of your organization, starting with `trk_`, sent as `Authorization: Bearer \u003ckey>`.","type":"http","scheme":"bearer","scopes":[],"schemeName":"bearer"}}},"servers":{"3583a21d-ff6b-4dad-a512-802120a11c6e":{"url":"https://tracks.alpic.ai/api"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"description":"An API key of your organization, starting with `trk_`, sent as `Authorization: Bearer \u003ckey>`.","type":"http","scheme":"bearer","scopes":[],"schemeName":"bearer"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"An API key of your organization, starting with `trk_`, sent as `Authorization: Bearer \u003ckey>`.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearer","name":"Authorization"}],"title":"bearer"}]},"originalFileLocation":"https://tracks.alpic.ai/api/openapi.json"},"subdomain":"alpic-tracks","siteName":"Tracks","title":"Create a connection - Tracks","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-30T15:13:08.425Z","originalFileLocation":"api-reference/connections/create-a-connection.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=\"Starts connecting to an MCP server that acts as one of its users. Send the user\u0026#x27;s browser to consent_url. Once they consent, they get a confirmation: as a code shown to them, to give back to you, or, if you passed the optional return_url, sent to it with connection_id. Confirm the connection with it within 10 minutes to make it active, then give its id to runs as connection_id.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Tracks\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/alpic-tracks/FRZjZPjkdKrubo41/_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/alpic-tracks/FRZjZPjkdKrubo41/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/alpic-tracks/FRZjZPjkdKrubo41/_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/alpic-tracks/FRZjZPjkdKrubo41/_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/alpic-tracks/FRZjZPjkdKrubo41/_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/alpic-tracks/FRZjZPjkdKrubo41/_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/alpic-tracks/FRZjZPjkdKrubo41/_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/alpic-tracks/FRZjZPjkdKrubo41/_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/alpic-tracks/FRZjZPjkdKrubo41/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a connection - Tracks\">\u003cmeta data-mint-head property=\"og:description\" content=\"Starts connecting to an MCP server that acts as one of its users. Send the user\u0026#x27;s browser to consent_url. Once they consent, they get a confirmation: as a code shown to them, to give back to you, or, if you passed the optional return_url, sent to it with connection_id. Confirm the connection with it within 10 minutes to make it active, then give its id to runs as connection_id.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Tracks\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.tracks.alpic.ai/api-reference/connections/create-a-connection\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://alpic-tracks.mintlify.app/_mintlify/api/og/v2?division=Connections\u0026amp;title=Create+a+connection\u0026amp;description=Starts+connecting+to+an+MCP+server+that+acts+as+one+of+its+users.+Send+the+user%27s+browser+to+%60consent_url%60.+Once+they+consent%2C+they+get+a+%60confirmation%60%3A+as+a+c\u0026amp;theme=2724205c720de1f104999a9f\u0026amp;signature=db4484b1b5ee5466dc6ff52d4e445e62911249d5d1fad456ba6be1fbe538f1b2\">\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=\"Create a connection - Tracks\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Starts connecting to an MCP server that acts as one of its users. Send the user\u0026#x27;s browser to consent_url. Once they consent, they get a confirmation: as a code shown to them, to give back to you, or, if you passed the optional return_url, sent to it with connection_id. Confirm the connection with it within 10 minutes to make it active, then give its id to runs as connection_id.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://alpic-tracks.mintlify.app/_mintlify/api/og/v2?division=Connections\u0026amp;title=Create+a+connection\u0026amp;description=Starts+connecting+to+an+MCP+server+that+acts+as+one+of+its+users.+Send+the+user%27s+browser+to+%60consent_url%60.+Once+they+consent%2C+they+get+a+%60confirmation%60%3A+as+a+c\u0026amp;theme=2724205c720de1f104999a9f\u0026amp;signature=db4484b1b5ee5466dc6ff52d4e445e62911249d5d1fad456ba6be1fbe538f1b2\">\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/alpic-tracks/FRZjZPjkdKrubo41/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Tracks\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#E90060\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.tracks.alpic.ai/api-reference/connections/create-a-connection\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/connections/create-a-connection.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.tracks.alpic.ai/#organization\",\"name\":\"Tracks\",\"url\":\"https://docs.tracks.alpic.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/alpic-tracks/VVLHOVQZyE3thQt_/logo/light.svg?fit=max\u0026auto=format\u0026n=VVLHOVQZyE3thQt_\u0026q=85\u0026s=363e5ecf6194fa299165aefdc90050bd\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.tracks.alpic.ai#website\",\"name\":\"Tracks\",\"url\":\"https://docs.tracks.alpic.ai\",\"publisher\":{\"@id\":\"https://docs.tracks.alpic.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.tracks.alpic.ai/api-reference/connections/create-a-connection#webpage\",\"url\":\"https://docs.tracks.alpic.ai/api-reference/connections/create-a-connection\",\"name\":\"Create a connection\",\"description\":\"Starts connecting to an MCP server that acts as one of its users. Send the user's browser to consent_url. Once they consent, they get a confirmation: as a code shown to them, to give back to you, or, if you passed the optional return_url, sent to it with connection_id. Confirm the connection with it within 10 minutes to make it active, then give its id to runs as connection_id.\",\"dateModified\":\"2026-10-30T15:13:08.425Z\",\"isPartOf\":{\"@id\":\"https://docs.tracks.alpic.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.tracks.alpic.ai/api-reference/connections/create-a-connection#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.tracks.alpic.ai/api-reference/connections/create-a-connection#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Connections\",\"item\":\"https://docs.tracks.alpic.ai/api-reference/connections/list-connections\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a connection\",\"item\":\"https://docs.tracks.alpic.ai/api-reference/connections/create-a-connection\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.tracks.alpic.ai/api-reference/connections/create-a-connection#apireference\",\"headline\":\"Create a connection\",\"name\":\"Create a connection\",\"description\":\"Starts connecting to an MCP server that acts as one of its users. Send the user's browser to consent_url. Once they consent, they get a confirmation: as a code shown to them, to give back to you, or, if you passed the optional return_url, sent to it with connection_id. Confirm the connection with it within 10 minutes to make it active, then give its id to runs as connection_id.\",\"url\":\"https://docs.tracks.alpic.ai/api-reference/connections/create-a-connection\",\"mainEntityOfPage\":{\"@id\":\"https://docs.tracks.alpic.ai/api-reference/connections/create-a-connection#webpage\"},\"dateModified\":\"2026-10-30T15:13:08.425Z\",\"publisher\":{\"@id\":\"https://docs.tracks.alpic.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.tracks.alpic.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Tracks\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Tracks","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API","groups":[{"group":"Overview","pages":[{"title":"API","href":"/api/overview"}]},{"group":"Runs","pages":[{"title":"List runs","deprecated":null,"version":null,"openapi":"https://tracks.alpic.ai/api/openapi.json get /runs","href":"/api-reference/runs/list-runs"},{"title":"Create a run","deprecated":null,"version":null,"openapi":"https://tracks.alpic.ai/api/openapi.json post /runs","href":"/api-reference/runs/create-a-run"},{"title":"Get a run","deprecated":null,"version":null,"openapi":"https://tracks.alpic.ai/api/openapi.json get /runs/{id}","href":"/api-reference/runs/get-a-run"},{"title":"Get a run's usage","deprecated":null,"version":null,"openapi":"https://tracks.alpic.ai/api/openapi.json get /runs/{id}/usage","href":"/api-reference/runs/get-a-runs-usage"},{"title":"End a run","deprecated":null,"version":null,"openapi":"https://tracks.alpic.ai/api/openapi.json post /runs/{id}/end","href":"/api-reference/runs/end-a-run"},{"title":"Cancel a run","deprecated":null,"version":null,"openapi":"https://tracks.alpic.ai/api/openapi.json post /runs/{id}/cancel","href":"/api-reference/runs/cancel-a-run"},{"title":"List a run's prompts","deprecated":null,"version":null,"openapi":"https://tracks.alpic.ai/api/openapi.json get /runs/{id}/prompts","href":"/api-reference/runs/list-a-runs-prompts"},{"title":"Send a follow-up prompt","deprecated":null,"version":null,"openapi":"https://tracks.alpic.ai/api/openapi.json post /runs/{id}/prompts","href":"/api-reference/runs/send-a-follow-up-prompt"},{"title":"List a run's frames","deprecated":null,"version":null,"openapi":"https://tracks.alpic.ai/api/openapi.json get /runs/{id}/frames","href":"/api-reference/runs/list-a-runs-frames"},{"title":"List a run's events","deprecated":null,"version":null,"openapi":"https://tracks.alpic.ai/api/openapi.json get /runs/{id}/events","href":"/api-reference/runs/list-a-runs-events"},{"title":"Get a screenshot","deprecated":null,"version":null,"openapi":"https://tracks.alpic.ai/api/openapi.json get /runs/{id}/events/{seq}/screenshot","href":"/api-reference/runs/get-a-screenshot"},{"title":"Stream a run's frames","deprecated":null,"version":null,"openapi":"https://tracks.alpic.ai/api/openapi.json get /runs/{id}/frames/stream","href":"/api-reference/runs/stream-a-runs-frames"},{"title":"Stream a run's events","deprecated":null,"version":null,"openapi":"https://tracks.alpic.ai/api/openapi.json get /runs/{id}/events/stream","href":"/api-reference/runs/stream-a-runs-events"}]},{"group":"Files","pages":[{"title":"Request a file upload","deprecated":null,"version":null,"openapi":"https://tracks.alpic.ai/api/openapi.json post /files","href":"/api-reference/files/request-a-file-upload"}]},{"group":"Connections","pages":[{"title":"List connections","description":"Returns every connection.","deprecated":null,"version":null,"openapi":"https://tracks.alpic.ai/api/openapi.json get /connections","href":"/api-reference/connections/list-connections"},{"title":"Create a connection","deprecated":null,"version":null,"openapi":"https://tracks.alpic.ai/api/openapi.json post /connections","href":"/api-reference/connections/create-a-connection"},{"title":"Get a connection","description":"Returns a connection.","deprecated":null,"version":null,"openapi":"https://tracks.alpic.ai/api/openapi.json get /connections/{id}","href":"/api-reference/connections/get-a-connection"},{"title":"Delete a connection","deprecated":null,"version":null,"openapi":"https://tracks.alpic.ai/api/openapi.json delete /connections/{id}","href":"/api-reference/connections/delete-a-connection"},{"title":"Confirm a connection","deprecated":null,"version":null,"openapi":"https://tracks.alpic.ai/api/openapi.json post /connections/{id}/confirm","href":"/api-reference/connections/confirm-a-connection"}]},{"group":"Experiments","pages":[{"title":"List experiments","deprecated":null,"version":null,"openapi":"https://tracks.alpic.ai/api/openapi.json get /experiments","href":"/api-reference/experiments/list-experiments"},{"title":"Create an experiment","deprecated":null,"version":null,"openapi":"https://tracks.alpic.ai/api/openapi.json post /experiments","href":"/api-reference/experiments/create-an-experiment"},{"title":"Get an experiment","deprecated":null,"version":null,"openapi":"https://tracks.alpic.ai/api/openapi.json get /experiments/{id}","href":"/api-reference/experiments/get-an-experiment"},{"title":"Update an experiment","deprecated":null,"version":null,"openapi":"https://tracks.alpic.ai/api/openapi.json put /experiments/{id}","href":"/api-reference/experiments/update-an-experiment"},{"title":"Delete an experiment","deprecated":null,"version":null,"openapi":"https://tracks.alpic.ai/api/openapi.json delete /experiments/{id}","href":"/api-reference/experiments/delete-an-experiment"}]},{"group":"Executions","pages":[{"title":"List an experiment's executions","deprecated":null,"version":null,"openapi":"https://tracks.alpic.ai/api/openapi.json get /experiments/{id}/executions","href":"/api-reference/executions/list-an-experiments-executions"},{"title":"Launch an experiment","deprecated":null,"version":null,"openapi":"https://tracks.alpic.ai/api/openapi.json post /experiments/{id}/executions","href":"/api-reference/executions/launch-an-experiment"},{"title":"Get an execution","deprecated":null,"version":null,"openapi":"https://tracks.alpic.ai/api/openapi.json get /executions/{id}","href":"/api-reference/executions/get-an-execution"},{"title":"List an execution's slots","deprecated":null,"version":null,"openapi":"https://tracks.alpic.ai/api/openapi.json get /executions/{id}/slots","href":"/api-reference/executions/list-an-executions-slots"},{"title":"Cancel an execution","deprecated":null,"version":null,"openapi":"https://tracks.alpic.ai/api/openapi.json post /executions/{id}/cancel","href":"/api-reference/executions/cancel-an-execution"}]},{"group":"Library","pages":[{"title":"Get the library","deprecated":null,"version":null,"openapi":"https://tracks.alpic.ai/api/openapi.json get /library","href":"/api-reference/library/get-the-library"}]},{"group":"System","pages":[{"title":"Check health","deprecated":null,"version":null,"openapi":"https://tracks.alpic.ai/api/openapi.json get /health","href":"/api-reference/system/check-health"},{"title":"List egress IPs","deprecated":null,"version":null,"openapi":"https://tracks.alpic.ai/api/openapi.json get /egress-ips","href":"/api-reference/system/list-egress-ips"}]}]},{"tab":"CLI","pages":[{"title":"CLI","href":"/cli/overview"}]},{"tab":"MCP","pages":[{"title":"MCP","href":"/mcp/overview"}]}]},"title":"Create a connection - Tracks","buildId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","deploymentId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-26-lDe7V.js","utils-CWQmgYtH.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-4-Aw3rSD.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-C2zjXYA5.js","snippetPresets-DFmpFA7C.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-FJpQavWq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-D_GvPF7k.js","shallow-Bs2ZB0NO.js","getApiPlaygroundDisplay-DCcqJJk-.js","CodeSnippet-DzDxawVe.js","CodeSnippets-aUr7fU-7.js","Page-CT9uE8Ip.js","getPastedJson-Y1fKsj_I.js","icon-DI4zTsDr.js","MethodPill-C0nDlmSQ.js","DuplicateIcon-NUXbx2nQ.js","createIcon-BdTHrPAi.js","DynamicMarkdown-CtpgKJwj.js","SectionHeading-B3x35tOt.js","axios-vUo_bRtp.js","Markdown-3OmurJMP.js","clsx-DMKzROTp.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-1ms6tsT-.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-Ke9xIMFx.js"]}