The client strips caller-supplied provider authorization and applies the scoped
headers from the sandbox connection. It also prevents paths from escaping the
environment base URL.
Configure the client’s base URL with apiBaseUrl. Configure authentication
through the same seam your test account used, but supply the returned scoped
headers. Keep these credentials out of logs. Renewal can rotate them, so read
the renewed connection before continuing a long test.
Use mcpUrl when it is not null. Provider tools remain in that environment’s
own MCP surface. The Archal lifecycle MCP server intentionally does not merge
every provider tool into one namespace.
Never send the Archal workspace key to an environment URL. The workspace key manages sandboxes.
The environment data plane accepts only its returned, short-lived provider credential.
Was this page helpful?
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Archal","description":"Create testing sandboxes with isolated, stateful provider environments.","colors":{"primary":"#A8887A","light":"#C1A89C","dark":"#7A6C5A"},"logo":{"light":"https://mintcdn.com/archallabs/IGeHrsqAwIcGu23r/logo/archal-mark.png?fit=max\u0026auto=format\u0026n=IGeHrsqAwIcGu23r\u0026q=85\u0026s=8078899310b6e3d2efa751734115c6e7","dark":"https://mintcdn.com/archallabs/IGeHrsqAwIcGu23r/logo/archal-mark.png?fit=max\u0026auto=format\u0026n=IGeHrsqAwIcGu23r\u0026q=85\u0026s=8078899310b6e3d2efa751734115c6e7","href":"https://archal.ai"},"favicon":"https://mintcdn.com/archallabs/IGeHrsqAwIcGu23r/favicon.png?fit=max\u0026auto=format\u0026n=IGeHrsqAwIcGu23r\u0026q=85\u0026s=1e9f095639a2789438f18526d6c1c8a4","appearance":{"default":"dark"},"background":{"color":{"light":"#F7F3EC","dark":"#0A0806"}},"navbar":{"links":[{"href":"https://archal.ai/dashboard","label":"Dashboard"}]},"footer":{"socials":{"github":"https://github.com/Archal-Labs/archal","website":"https://archal.ai"},"links":[{"header":"Archal","items":[{"label":"Home","href":"https://archal.ai"},{"label":"Dashboard","href":"https://archal.ai/dashboard"}]},{"header":"Docs","items":[{"label":"Start","href":"https://docs.archal.ai/introduction"},{"label":"Sandboxes","href":"https://docs.archal.ai/sandboxes/overview"},{"label":"Environments","href":"https://docs.archal.ai/environments/overview"},{"label":"API reference","href":"https://docs.archal.ai/api-reference/openapi.json"}]},{"header":"Company","items":[{"label":"Contact","href":"https://archal.ai/contact"},{"label":"GitHub","href":"https://github.com/Archal-Labs/archal"}]}]},"seo":{"metatags":{"og:site_name":"Archal Docs","og:image":"https://docs.archal.ai/images/og-default.png","twitter:card":"summary_large_image","twitter:image":"https://docs.archal.ai/images/og-default.png"},"indexing":"navigable"},"fonts":{"heading":{"family":"Inter","weight":600,"source":"google","format":"woff2"},"body":{"family":"Inter","source":"google","format":"woff2"}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"archallabs","hasAudioNarration":false,"actualSubdomain":"archallabs","customDomains":["docs.archal.ai"],"gitSource":{"type":"github","owner":"archal-labs","repo":"archal","deployBranch":"main","contentDirectory":"apps/web/docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a928e5b08b3839763e4be45","collectionId":"764508c1-61dd-4410-94b4-7f0893b71e48","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6a928e5b08b3839763e4be45"},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6a928e5b08b3839763e4be45","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"API Reference","count":51},{"language":"default","tag":"Environments","count":46},{"language":"default","tag":"OpenAPI","count":21},{"language":"default","tag":"Sandboxes","count":12},{"language":"default","tag":"Start","count":10},{"language":"default","tag":"Integrate","count":10},{"language":"default","tag":"Guides","count":9}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":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":"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":[],"page":{"pagePath":"sandboxes/call","slug":"/sandboxes/call","pageMetadata":{"title":"Call an environment","description":"Use returned provider URLs and scoped credentials with existing clients.","href":"/sandboxes/call"},"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: \"Use returned provider URLs and scoped credentials with existing clients.\"\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={code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Wait for readiness, then read the connection for each selected environment.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`12`,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:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ready\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"apiBaseUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.archal.ai/v1/sessions/.../environments/github/api\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mcpUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.archal.ai/v1/sessions/.../environments/github/mcp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"credentials\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"kind\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"provider\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"expiresAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-08-04T20:00:00.000Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"headers\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bearer \u003cscoped-provider-credential>\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The exact header names vary by provider. Apply the returned\n`,_jsx(_components.code,{children:`credentials.headers`}),` map instead of guessing a provider token shape.`]}),`\n`,_jsx(Heading,{level:`2`,id:`typescript-client`,children:`TypeScript client`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` archal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`callEnvironment`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`sandbox`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`sessionId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'github'`}),_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\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'POST'`}),_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\":`#9CDCFE`},children:` path:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '/user/repos'`}),_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\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`name:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'checkout-test'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`private:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`The client strips caller-supplied provider authorization and applies the scoped\nheaders from the sandbox connection. It also prevents paths from escaping the\nenvironment base URL.`}),`\n`,_jsx(Heading,{level:`2`,id:`existing-provider-clients`,children:`Existing provider clients`}),`\n`,_jsxs(_components.p,{children:[`Configure the client’s base URL with `,_jsx(_components.code,{children:`apiBaseUrl`}),`. Configure authentication\nthrough the same seam your test account used, but supply the returned scoped\nheaders. Keep these credentials out of logs. Renewal can rotate them, so read\nthe renewed connection before continuing a long test.`]}),`\n`,_jsx(Heading,{level:`2`,id:`mcp`,children:`MCP`}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`mcpUrl`}),` when it is not `,_jsx(_components.code,{children:`null`}),`. Provider tools remain in that environment’s\nown MCP surface. The Archal lifecycle MCP server intentionally does not merge\nevery provider tool into one namespace.`]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Never send the Archal workspace key to an environment URL. The workspace key manages sandboxes.\nThe environment data plane accepts only its returned, short-lived provider credential.`})})]})}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":"Call an environment","description":"Use returned provider URLs and scoped credentials with existing clients.","href":"/sandboxes/call"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"TypeScript client","slug":"typescript-client","depth":2,"children":[]},{"title":"Existing provider clients","slug":"existing-provider-clients","depth":2,"children":[]},{"title":"MCP","slug":"mcp","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"archallabs","siteName":"Archal","title":"Call an environment - Archal","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-06T02:37:21.394Z","originalFileLocation":"sandboxes/call.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=\"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=\"Use returned provider URLs and scoped credentials with existing clients.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Archal\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/archallabs/sxRzDHx4Ey09YHTe/_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/archallabs/sxRzDHx4Ey09YHTe/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/archallabs/sxRzDHx4Ey09YHTe/_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/archallabs/sxRzDHx4Ey09YHTe/_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/archallabs/sxRzDHx4Ey09YHTe/_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/archallabs/sxRzDHx4Ey09YHTe/_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/archallabs/sxRzDHx4Ey09YHTe/_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/archallabs/sxRzDHx4Ey09YHTe/_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/archallabs/sxRzDHx4Ey09YHTe/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Call an environment - Archal\">\u003cmeta data-mint-head property=\"og:description\" content=\"Use returned provider URLs and scoped credentials with existing clients.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Archal Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.archal.ai/sandboxes/call\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://docs.archal.ai/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=\"Call an environment - Archal\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Use returned provider URLs and scoped credentials with existing clients.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://docs.archal.ai/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/archallabs/sxRzDHx4Ey09YHTe/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Archal\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#A8887A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.archal.ai/sandboxes/call\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/sandboxes/call.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.archal.ai/#organization\",\"name\":\"Archal\",\"url\":\"https://docs.archal.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/archallabs/IGeHrsqAwIcGu23r/logo/archal-mark.png?fit=max\u0026auto=format\u0026n=IGeHrsqAwIcGu23r\u0026q=85\u0026s=8078899310b6e3d2efa751734115c6e7\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.archal.ai#website\",\"name\":\"Archal\",\"url\":\"https://docs.archal.ai\",\"publisher\":{\"@id\":\"https://docs.archal.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.archal.ai/sandboxes/call#webpage\",\"url\":\"https://docs.archal.ai/sandboxes/call\",\"name\":\"Call an environment\",\"description\":\"Use returned provider URLs and scoped credentials with existing clients.\",\"dateModified\":\"2026-08-06T02:37:21.394Z\",\"isPartOf\":{\"@id\":\"https://docs.archal.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.archal.ai/sandboxes/call#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.archal.ai/sandboxes/call#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Sandboxes\",\"item\":\"https://docs.archal.ai/sandboxes/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Call an environment\",\"item\":\"https://docs.archal.ai/sandboxes/call\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.archal.ai/sandboxes/call#article\",\"headline\":\"Call an environment\",\"name\":\"Call an environment\",\"description\":\"Use returned provider URLs and scoped credentials with existing clients.\",\"url\":\"https://docs.archal.ai/sandboxes/call\",\"mainEntityOfPage\":{\"@id\":\"https://docs.archal.ai/sandboxes/call#webpage\"},\"image\":\"https://docs.archal.ai/images/og-default.png\",\"dateModified\":\"2026-08-06T02:37:21.394Z\",\"publisher\":{\"@id\":\"https://docs.archal.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.archal.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Archal\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Archal","nav":{"global":null,"tabs":[{"tab":"Start","pages":[{"title":"Start","href":"/introduction"}]},{"tab":"Sandboxes","groups":[{"group":"Sandboxes","pages":[{"title":"What is a sandbox?","href":"/sandboxes/overview"},{"title":"Create a sandbox","href":"/sandboxes/create"},{"title":"Starting state","description":"Begin from a curated sample or validate explicit JSON or Supabase SQL.","href":"/sandboxes/starting-state"},{"title":"Call an environment","href":"/sandboxes/call"},{"title":"Inspect, diff, and reset","description":"Measure a provider mutation against an explicit prior state and restore the declared baseline.","href":"/sandboxes/inspect-reset"},{"title":"Renew, destroy, and control usage","href":"/sandboxes/lifecycle-usage"}]}]},{"tab":"Environments","pages":[{"title":"Environments","href":"/environments/overview"}]},{"tab":"Integrate","pages":[{"title":"Integrate","href":"/integrations/coding-agents"}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api/authentication"}]}]},"basePath":"","title":"Call an environment - Archal","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":[],"chunks":[]}