Stores a credential under the caller’s team. The plaintext is
envelope-encrypted at rest and is never returned by any API.
At sandbox-create time, bind the secret to an environment-variable
name via the secrets map on POST /sandboxes; the agent sees a
proxy token in env and the in-host enforcement daemon swaps it for
the real value at egress.
Use provider for built-in shortcuts (e.g. anthropic, openai,
github, stripe) which auto-fill the auth scheme and allowed
upstream hosts. Use auth + hosts for a custom integration.
Built-in provider shortcut (e.g. anthropic, openai, github, stripe). When set, auto-fills auth scheme and allowed upstream hosts. Mutually exclusive with auth and hosts. github emits a per_host config so the same PAT works for both api.github.com REST (Bearer) and github.com git over HTTPS (Basic with x-access-token).
Egress auth shape. Use the single-rule form (type + type-specific
fields) for credentials that authenticate the same way on every host.
Use per_host when the same credential needs different auth schemes
on different hosts of the same provider — for example one host
accepts Bearer while another accepts Basic with a fixed username.
Single-rule and per_host are mutually exclusive.
{"docsConfig":{"theme":"luma","$schema":"https://mintlify.com/docs.json","name":"Superserve","colors":{"primary":"#B2FAB4","light":"#B2FAB4","dark":"#B2FAB4"},"logo":"https://mintcdn.com/superserve-ai-superserve-33/G055TX3BjwXpQedU/logo.svg?fit=max\u0026auto=format\u0026n=G055TX3BjwXpQedU\u0026q=85\u0026s=69233fb550a17b81d7d7fa083ca7f3de","favicon":"https://mintcdn.com/superserve-ai-superserve-33/G055TX3BjwXpQedU/favicon.svg?fit=max\u0026auto=format\u0026n=G055TX3BjwXpQedU\u0026q=85\u0026s=5c49ee9ed883d587b192cd419a4747d8","appearance":{"default":"dark","strict":true},"background":{"decoration":"gradient","color":{"dark":"#141414"}},"navbar":{"links":[{"href":"https://github.com/superserve-ai/superserve","label":"GitHub","type":"github"}],"primary":{"type":"button","label":"Get Started","href":"https://console.superserve.ai/auth/signup/?utm_source=docs\u0026utm_medium=navbar"}},"footer":{"socials":{"x":"https://x.com/superserve_ai","github":"https://github.com/superserve-ai","linkedin":"https://www.linkedin.com/company/super-serve-ai"}},"fonts":{"heading":{"family":"Instrument Sans"},"body":{"family":"Instrument Sans"}},"styling":{"codeblocks":{"theme":{"light":"github-light","dark":"vitesse-dark"}},"latex":false},"integrations":{"posthog":{"apiKey":"phc_gjpDKKKQJAnkxkqLrPGrAhoariKsaHNuTpI5rVhkYre","apiHost":"https://p.superserve.ai"}},"contextual":{"options":["copy","view","claude","mcp","add-mcp","cursor","vscode"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"superserve-ai-superserve-33","hasAudioNarration":false,"actualSubdomain":"superserve-ai-superserve-33","customDomains":["docs.superserve.ai"],"gitSource":{"type":"github","owner":"superserve-ai","repo":"superserve","deployBranch":"main","contentDirectory":"docs","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae83b614729f9837cf0e2ad","collectionId":"0c2f60fa-9702-4220-8f78-f248de77c74c","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae83b614729f9837cf0e2ad"},"entitlements":{},"buildId":"6ae83b614729f9837cf0e2ad","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"REST API","count":51},{"language":"default","tag":"Documentation","count":31},{"language":"default","tag":"Cookbook","count":14},{"language":"default","tag":"Sandboxes","count":14},{"language":"default","tag":"Templates","count":13},{"language":"default","tag":"Sandbox","count":10},{"language":"default","tag":"Secrets","count":10},{"language":"default","tag":"SDK Reference","count":6},{"language":"default","tag":"Reference","count":6},{"language":"default","tag":"Team Management","count":6}]},"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":"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":true},"customCss":[],"page":{"pagePath":"api-reference/secrets/create-a-secret","slug":"/api-reference/secrets/create-a-secret","pageMetadata":{"title":"Create a secret","description":"Stores a credential under the caller's team. The plaintext is\nenvelope-encrypted at rest and is never returned by any API.\nAt sandbox-create time, bind the secret to an environment-variable\nname via the `secrets` map on `POST /sandboxes`; the agent sees a\nproxy token in env and the in-host enforcement daemon swaps it for\nthe real value at egress.\n\nUse `provider` for built-in shortcuts (e.g. `anthropic`, `openai`,\n`github`, `stripe`) which auto-fill the auth scheme and allowed\nupstream hosts. Use `auth` + `hosts` for a custom integration.\n","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml post /secrets","href":"/api-reference/secrets/create-a-secret","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, 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(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Stores a credential under the caller’s team. The plaintext is\\nenvelope-encrypted at rest and is never returned by any API.\\nAt sandbox-create time, bind the secret to an environment-variable\\nname via the \", _jsx(_components.code, {\n children: \"secrets\"\n }), \" map on \", _jsx(_components.code, {\n children: \"POST /sandboxes\"\n }), \"; the agent sees a\\nproxy token in env and the in-host enforcement daemon swaps it for\\nthe real value at egress.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Use \", _jsx(_components.code, {\n children: \"provider\"\n }), \" for built-in shortcuts (e.g. \", _jsx(_components.code, {\n children: \"anthropic\"\n }), \", \", _jsx(_components.code, {\n children: \"openai\"\n }), \",\\n\", _jsx(_components.code, {\n children: \"github\"\n }), \", \", _jsx(_components.code, {\n children: \"stripe\"\n }), \") which auto-fill the auth scheme and allowed\\nupstream hosts. Use \", _jsx(_components.code, {\n children: \"auth\"\n }), \" + \", _jsx(_components.code, {\n children: \"hosts\"\n }), \" for a custom integration.\"]\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":{"codeStyling":{"theme":{"light":"github-light","dark":"vitesse-dark"}},"config":{},"pageMetadata":{"title":"Create a secret","description":"Stores a credential under the caller's team. The plaintext is\nenvelope-encrypted at rest and is never returned by any API.\nAt sandbox-create time, bind the secret to an environment-variable\nname via the `secrets` map on `POST /sandboxes`; the agent sees a\nproxy token in env and the in-host enforcement daemon swaps it for\nthe real value at egress.\n\nUse `provider` for built-in shortcuts (e.g. `anthropic`, `openai`,\n`github`, `stripe`) which auto-fill the auth scheme and allowed\nupstream hosts. Use `auth` + `hosts` for a custom integration.\n","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml post /secrets","href":"/api-reference/secrets/create-a-secret","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"createSecret","tags":["Secrets"],"summary":"Create a secret","description":"Stores a credential under the caller's team. The plaintext is\nenvelope-encrypted at rest and is never returned by any API.\nAt sandbox-create time, bind the secret to an environment-variable\nname via the `secrets` map on `POST /sandboxes`; the agent sees a\nproxy token in env and the in-host enforcement daemon swaps it for\nthe real value at egress.\n\nUse `provider` for built-in shortcuts (e.g. `anthropic`, `openai`,\n`github`, `stripe`) which auto-fill the auth scheme and allowed\nupstream hosts. Use `auth` + `hosts` for a custom integration.\n","security":["ef8c80b5-b7d0-4007-9e7b-02203fa66e77"],"requestBody":"8b1b2933-95e4-4fce-b5d6-bce20249314a","responses":{"201":"1bd62c05-0e04-4411-abd8-c590690b26de","400":"de3d85d8-36fd-4963-9215-4514e293f942","401":"aa3708db-bbec-4863-90fb-bf0f1c49c360","409":"a8018f8e-6ed3-4d53-a41f-a551c10e08fa","500":"9eb81679-0462-4157-8269-eda898a0078c"},"method":"post","type":"path","servers":["0d9af076-3e8b-4831-99ba-8270f116f8d5"],"path":"/secrets","baseUrlOptions":["https://api.superserve.ai"],"title":"Create a secret","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_][A-Za-z0-9_-]*$","description":"Identifier used to reference the secret later (e.g. in the `secrets` map on `POST /sandboxes`).\n","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"value":{"type":"string","maxLength":8192,"description":"Cleartext credential. Encrypted at rest; never returned.","isRequired":true,"uniqueKey":"value","typeLabel":"string"},"provider":{"type":"string","description":"Built-in provider shortcut (e.g. `anthropic`, `openai`, `github`, `stripe`). When set, auto-fills auth scheme and allowed upstream hosts. Mutually exclusive with `auth` and `hosts`. `github` emits a `per_host` config so the same PAT works for both api.github.com REST (`Bearer`) and github.com git over HTTPS (`Basic` with `x-access-token`).\n","uniqueKey":"provider","typeLabel":"string"},"auth":{"oneOf":[{"type":"object","description":"Egress auth shape. Use the single-rule form (`type` + type-specific\nfields) for credentials that authenticate the same way on every host.\nUse `per_host` when the same credential needs different auth schemes\non different hosts of the same provider — for example one host\naccepts `Bearer` while another accepts `Basic` with a fixed username.\nSingle-rule and `per_host` are mutually exclusive.\n","required":["type"],"properties":{"type":{"type":"string","enum":["bearer","basic","api-key","custom"],"description":"Egress auth scheme:\n- `bearer`: `Authorization: Bearer \u003cvalue>`\n- `basic`: `Authorization: Basic \u003cbase64(username:value)>`\n- `api-key`: custom header (set `header`, optionally `prefix`)\n- `custom`: caller-defined `headers` map\n","isRequired":true,"uniqueKey":"auth.oneOf.0.type","typeLabel":"enum\u003cstring>"},"header":{"type":"string","description":"Header name (required for `api-key`).","uniqueKey":"auth.oneOf.0.header","typeLabel":"string"},"prefix":{"type":"string","description":"Optional value prefix (used by `api-key`).","uniqueKey":"auth.oneOf.0.prefix","typeLabel":"string"},"username":{"type":"string","description":"Optional username for `basic`. When set, this username is used verbatim in the outbound Basic header (overrides any username sent by the client). When empty, the inbound username is preserved, or `x` is used if absent.\n","uniqueKey":"auth.oneOf.0.username","typeLabel":"string"},"headers":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"auth.oneOf.0.headers.additionalProperties","typeLabel":"string"},"maxProperties":8,"description":"Header-name → value template (required for `custom`).","uniqueKey":"auth.oneOf.0.headers","typeLabel":"object"}},"uniqueKey":"auth.oneOf.0","typeLabel":"object"},{"type":"object","description":"Egress auth shape. Use the single-rule form (`type` + type-specific\nfields) for credentials that authenticate the same way on every host.\nUse `per_host` when the same credential needs different auth schemes\non different hosts of the same provider — for example one host\naccepts `Bearer` while another accepts `Basic` with a fixed username.\nSingle-rule and `per_host` are mutually exclusive.\n","required":["per_host"],"properties":{"per_host":{"type":"array","minItems":1,"maxItems":16,"items":{"type":"object","required":["hosts","type"],"properties":{"hosts":{"type":"array","minItems":1,"maxItems":16,"items":{"type":"string","uniqueKey":"auth.oneOf.1.per_host.items.[INDEX].hosts.items.[INDEX]","typeLabel":"string"},"description":"Hosts this rule authenticates. Exact hostnames or single-level wildcards (`*.example.com`).\n","isRequired":true,"uniqueKey":"auth.oneOf.1.per_host.items.[INDEX].hosts","typeLabel":"string[]"},"type":{"type":"string","enum":["bearer","basic","api-key","custom"],"isRequired":true,"uniqueKey":"auth.oneOf.1.per_host.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"header":{"type":"string","description":"Header name (required for `api-key`).","uniqueKey":"auth.oneOf.1.per_host.items.[INDEX].header","typeLabel":"string"},"prefix":{"type":"string","description":"Optional value prefix (used by `api-key`).","uniqueKey":"auth.oneOf.1.per_host.items.[INDEX].prefix","typeLabel":"string"},"username":{"type":"string","description":"Username slot for `basic`. Used verbatim in the outbound `Basic \u003cbase64(username:value)>` header.","uniqueKey":"auth.oneOf.1.per_host.items.[INDEX].username","typeLabel":"string"},"headers":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"auth.oneOf.1.per_host.items.[INDEX].headers.additionalProperties","typeLabel":"string"},"maxProperties":8,"description":"Header-name → value template (required for `custom`).","uniqueKey":"auth.oneOf.1.per_host.items.[INDEX].headers","typeLabel":"object"}},"uniqueKey":"auth.oneOf.1.per_host.items.[INDEX]","typeLabel":"object"},"description":"Per-host rule list. The daemon picks the first rule whose `hosts` match the upstream host at egress. Every host referenced here must also appear in the top-level `hosts` allowlist. Rules may not overlap (a host belongs to at most one rule).\n","isRequired":true,"uniqueKey":"auth.oneOf.1.per_host","typeLabel":"object[]"}},"uniqueKey":"auth.oneOf.1","typeLabel":"object"}],"uniqueKey":"auth","typeLabel":"object"},"hosts":{"type":"array","items":{"type":"string","uniqueKey":"hosts.items.[INDEX]","typeLabel":"string"},"maxItems":16,"description":"Upstream allow list. Required when `auth` is set. Each entry is a hostname or single-level wildcard (e.g. `api.example.com`, `*.example.com`).\n","uniqueKey":"hosts","typeLabel":"string[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"name":"\u003cstring>","value":"\u003cstring>","provider":"\u003cstring>","auth":{"header":"\u003cstring>","prefix":"\u003cstring>","username":"\u003cstring>","headers":{}},"hosts":["\u003cstring>"]}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"1bd62c05-0e04-4411-abd8-c590690b26de":{"description":"Secret created","content":{"application/json":{"schema":{"type":"object","required":["id","name","auth_type","auth_config","hosts","created_at","updated_at"],"properties":{"id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"id","typeLabel":"string\u003cuuid>"},"name":{"type":"string","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"auth_type":{"type":"string","enum":["bearer","basic","api-key","custom","per_host"],"description":"`per_host` indicates a multi-rule secret; the resolved rules are in `auth_config.per_host`.\n","isRequired":true,"uniqueKey":"auth_type","typeLabel":"enum\u003cstring>"},"auth_config":{"type":"object","additionalProperties":true,"description":"Resolved auth scheme details (no cleartext value).","isRequired":true,"uniqueKey":"auth_config","typeLabel":"object"},"hosts":{"type":"array","items":{"type":"string","uniqueKey":"hosts.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"hosts","typeLabel":"string[]"},"created_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"updated_at","typeLabel":"string\u003cdate-time>"},"provider_shortcut":{"oneOf":[{"type":"string","description":"Provider shortcut used at creation, if any.","uniqueKey":"provider_shortcut.oneOf.0","typeLabel":"string"},{"type":"null","description":"Provider shortcut used at creation, if any.","uniqueKey":"provider_shortcut.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider_shortcut","typeLabel":"string | null"},"last_used_at":{"oneOf":[{"type":"string","format":"date-time","description":"Timestamp of the most recent egress that used this secret.","uniqueKey":"last_used_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Timestamp of the most recent egress that used this secret.","uniqueKey":"last_used_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"last_used_at","typeLabel":"string\u003cdate-time> | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","name":"\u003cstring>","auth_type":"bearer","auth_config":{},"hosts":["\u003cstring>"],"created_at":"2023-11-07T05:31:56Z","updated_at":"2023-11-07T05:31:56Z","provider_shortcut":"\u003cstring>","last_used_at":"2023-11-07T05:31:56Z"}}},"exampleType":"generated"}},"exampleType":"generated"},"de3d85d8-36fd-4963-9215-4514e293f942":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","description":"Error envelope. `error.code` is a stable, machine-readable identifier\n(e.g. `bad_request`, `not_found`, `conflict`, `sandbox_pausing`,\n`rate_limited`, `too_many_builds`, `too_many_templates`, `too_many_sandboxes`,\n`image_pull_failed`, `step_failed`, `snapshot_failed`,\n`start_cmd_failed`, `ready_cmd_failed`, `capacity_unavailable`,\n`build_timed_out`, `infrastructure_failed`, `build_failed`).\n`error.message` is human-readable and may change between releases;\nclients should branch on `code`, not `message`.\n","properties":{"error":{"type":"object","properties":{"code":{"type":"string","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"aa3708db-bbec-4863-90fb-bf0f1c49c360":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"type":"object","description":"Error envelope. `error.code` is a stable, machine-readable identifier\n(e.g. `bad_request`, `not_found`, `conflict`, `sandbox_pausing`,\n`rate_limited`, `too_many_builds`, `too_many_templates`, `too_many_sandboxes`,\n`image_pull_failed`, `step_failed`, `snapshot_failed`,\n`start_cmd_failed`, `ready_cmd_failed`, `capacity_unavailable`,\n`build_timed_out`, `infrastructure_failed`, `build_failed`).\n`error.message` is human-readable and may change between releases;\nclients should branch on `code`, not `message`.\n","properties":{"error":{"type":"object","properties":{"code":{"type":"string","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"a8018f8e-6ed3-4d53-a41f-a551c10e08fa":{"description":"Operation conflicts with the resource's current state","content":{"application/json":{"schema":{"type":"object","description":"Error envelope. `error.code` is a stable, machine-readable identifier\n(e.g. `bad_request`, `not_found`, `conflict`, `sandbox_pausing`,\n`rate_limited`, `too_many_builds`, `too_many_templates`, `too_many_sandboxes`,\n`image_pull_failed`, `step_failed`, `snapshot_failed`,\n`start_cmd_failed`, `ready_cmd_failed`, `capacity_unavailable`,\n`build_timed_out`, `infrastructure_failed`, `build_failed`).\n`error.message` is human-readable and may change between releases;\nclients should branch on `code`, not `message`.\n","properties":{"error":{"type":"object","properties":{"code":{"type":"string","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"9eb81679-0462-4157-8269-eda898a0078c":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","description":"Error envelope. `error.code` is a stable, machine-readable identifier\n(e.g. `bad_request`, `not_found`, `conflict`, `sandbox_pausing`,\n`rate_limited`, `too_many_builds`, `too_many_templates`, `too_many_sandboxes`,\n`image_pull_failed`, `step_failed`, `snapshot_failed`,\n`start_cmd_failed`, `ready_cmd_failed`, `capacity_unavailable`,\n`build_timed_out`, `infrastructure_failed`, `build_failed`).\n`error.message` is human-readable and may change between releases;\nclients should branch on `code`, not `message`.\n","properties":{"error":{"type":"object","properties":{"code":{"type":"string","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"ef8c80b5-b7d0-4007-9e7b-02203fa66e77":{"apiKey":{"type":"apiKey","in":"header","name":"X-API-Key","scopes":[],"schemeName":"apiKey"}}},"servers":{"0d9af076-3e8b-4831-99ba-8270f116f8d5":{"url":"https://api.superserve.ai","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-API-Key","scopes":[],"schemeName":"apiKey"},"schema":{"title":"X-API-Key","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKey","name":"X-API-Key"}],"title":"apiKey"}]},"originalFileLocation":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml"},"subdomain":"superserve-ai-superserve-33","siteName":"Superserve","title":"Create a secret - Superserve","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-02T07:27:33.531Z","originalFileLocation":"api-reference/secrets/create-a-secret.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"dark\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Stores a credential under the caller\u0026#x27;s team. The plaintext is envelope-encrypted at rest and is never returned by any API. At sandbox-create time, bind the secret to an environment-variable name via the secrets map on POST /sandboxes; the agent sees a proxy token in env and the in-host enforcement daemon swaps it for the real value at egress. Use provider for built-in shortcuts (e.g. anthropic, openai, github, stripe) which auto-fill the auth scheme and allowed upstream hosts. Use auth + hosts for a custom integration.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Superserve\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/superserve-ai-superserve-33/Ce0V87RVeZcleFb4/_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/superserve-ai-superserve-33/Ce0V87RVeZcleFb4/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/superserve-ai-superserve-33/Ce0V87RVeZcleFb4/_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/superserve-ai-superserve-33/Ce0V87RVeZcleFb4/_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/superserve-ai-superserve-33/Ce0V87RVeZcleFb4/_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/superserve-ai-superserve-33/Ce0V87RVeZcleFb4/_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/superserve-ai-superserve-33/Ce0V87RVeZcleFb4/_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/superserve-ai-superserve-33/Ce0V87RVeZcleFb4/_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/superserve-ai-superserve-33/Ce0V87RVeZcleFb4/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a secret - Superserve\">\u003cmeta data-mint-head property=\"og:description\" content=\"Stores a credential under the caller\u0026#x27;s team. The plaintext is envelope-encrypted at rest and is never returned by any API. At sandbox-create time, bind the secret to an environment-variable name via the secrets map on POST /sandboxes; the agent sees a proxy token in env and the in-host enforcement daemon swaps it for the real value at egress. Use provider for built-in shortcuts (e.g. anthropic, openai, github, stripe) which auto-fill the auth scheme and allowed upstream hosts. Use auth + hosts for a custom integration.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Superserve\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.superserve.ai/api-reference/secrets/create-a-secret\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://superserve-ai-superserve-33.mintlify.app/_mintlify/api/og/v2?division=Secrets\u0026amp;title=Create+a+secret\u0026amp;description=Stores+a+credential+under+the+caller%27s+team.+The+plaintext+is%0Aenvelope-encrypted+at+rest+and+is+never+returned+by+any+API.%0AAt+sandbox-create+time%2C+bind+the+secr\u0026amp;theme=812d3aa274a9b09d054f08f6\u0026amp;signature=96b04c1dc9933e6a6091ff37815dbeec34e77e2c0d61e108ab508c77d2e7c90b\">\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 secret - Superserve\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Stores a credential under the caller\u0026#x27;s team. The plaintext is envelope-encrypted at rest and is never returned by any API. At sandbox-create time, bind the secret to an environment-variable name via the secrets map on POST /sandboxes; the agent sees a proxy token in env and the in-host enforcement daemon swaps it for the real value at egress. Use provider for built-in shortcuts (e.g. anthropic, openai, github, stripe) which auto-fill the auth scheme and allowed upstream hosts. Use auth + hosts for a custom integration.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://superserve-ai-superserve-33.mintlify.app/_mintlify/api/og/v2?division=Secrets\u0026amp;title=Create+a+secret\u0026amp;description=Stores+a+credential+under+the+caller%27s+team.+The+plaintext+is%0Aenvelope-encrypted+at+rest+and+is+never+returned+by+any+API.%0AAt+sandbox-create+time%2C+bind+the+secr\u0026amp;theme=812d3aa274a9b09d054f08f6\u0026amp;signature=96b04c1dc9933e6a6091ff37815dbeec34e77e2c0d61e108ab508c77d2e7c90b\">\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/superserve-ai-superserve-33/Ce0V87RVeZcleFb4/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Superserve\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#B2FAB4\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.superserve.ai/api-reference/secrets/create-a-secret\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/secrets/create-a-secret.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.superserve.ai/#organization\",\"name\":\"Superserve\",\"url\":\"https://docs.superserve.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/superserve-ai-superserve-33/G055TX3BjwXpQedU/logo.svg?fit=max\u0026auto=format\u0026n=G055TX3BjwXpQedU\u0026q=85\u0026s=69233fb550a17b81d7d7fa083ca7f3de\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.superserve.ai#website\",\"name\":\"Superserve\",\"url\":\"https://docs.superserve.ai\",\"publisher\":{\"@id\":\"https://docs.superserve.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.superserve.ai/api-reference/secrets/create-a-secret#webpage\",\"url\":\"https://docs.superserve.ai/api-reference/secrets/create-a-secret\",\"name\":\"Create a secret\",\"description\":\"Stores a credential under the caller's team. The plaintext is envelope-encrypted at rest and is never returned by any API. At sandbox-create time, bind the secret to an environment-variable name via the secrets map on POST /sandboxes; the agent sees a proxy token in env and the in-host enforcement daemon swaps it for the real value at egress. Use provider for built-in shortcuts (e.g. anthropic, openai, github, stripe) which auto-fill the auth scheme and allowed upstream hosts. Use auth + hosts for a custom integration.\",\"dateModified\":\"2026-11-02T07:27:33.531Z\",\"isPartOf\":{\"@id\":\"https://docs.superserve.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.superserve.ai/api-reference/secrets/create-a-secret#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.superserve.ai/api-reference/secrets/create-a-secret#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Superserve\",\"item\":\"https://docs.superserve.ai\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a secret\",\"item\":\"https://docs.superserve.ai/api-reference/secrets/create-a-secret\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.superserve.ai/api-reference/secrets/create-a-secret#apireference\",\"headline\":\"Create a secret\",\"name\":\"Create a secret\",\"description\":\"Stores a credential under the caller's team. The plaintext is envelope-encrypted at rest and is never returned by any API. At sandbox-create time, bind the secret to an environment-variable name via the secrets map on POST /sandboxes; the agent sees a proxy token in env and the in-host enforcement daemon swaps it for the real value at egress. Use provider for built-in shortcuts (e.g. anthropic, openai, github, stripe) which auto-fill the auth scheme and allowed upstream hosts. Use auth + hosts for a custom integration.\",\"url\":\"https://docs.superserve.ai/api-reference/secrets/create-a-secret\",\"mainEntityOfPage\":{\"@id\":\"https://docs.superserve.ai/api-reference/secrets/create-a-secret#webpage\"},\"dateModified\":\"2026-11-02T07:27:33.531Z\",\"publisher\":{\"@id\":\"https://docs.superserve.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.superserve.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Superserve\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Superserve","nav":{"global":null,"anchors":[{"anchor":"Documentation","icon":"book-open","pages":[{"title":"Documentation","href":"/introduction"}]},{"anchor":"SDK Reference","icon":"code","pages":[{"title":"SDK Reference","href":"/sdk-reference/sandbox"}]},{"anchor":"REST API","icon":"server","groups":[{"group":"Sandboxes","pages":[{"title":"List all sandboxes","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml get /sandboxes","href":"/api-reference/sandboxes/list-all-sandboxes"},{"title":"Create a new sandbox","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml post /sandboxes","href":"/api-reference/sandboxes/create-a-new-sandbox"},{"title":"Get a sandbox by ID","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml get /sandboxes/{sandbox_id}","href":"/api-reference/sandboxes/get-a-sandbox-by-id"},{"title":"Partially update a running sandbox","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml patch /sandboxes/{sandbox_id}","href":"/api-reference/sandboxes/partially-update-a-running-sandbox"},{"title":"Delete a sandbox","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml delete /sandboxes/{sandbox_id}","href":"/api-reference/sandboxes/delete-a-sandbox"},{"title":"Pause a running sandbox","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml post /sandboxes/{sandbox_id}/pause","href":"/api-reference/sandboxes/pause-a-running-sandbox"},{"title":"Resume a paused sandbox","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml post /sandboxes/{sandbox_id}/resume","href":"/api-reference/sandboxes/resume-a-paused-sandbox"},{"title":"Activate a sandbox","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml post /sandboxes/{sandbox_id}/activate","href":"/api-reference/sandboxes/activate-a-sandbox"},{"title":"List a sandbox's egress activity","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml get /sandboxes/{sandbox_id}/network","href":"/api-reference/sandboxes/list-a-sandboxs-egress-activity"},{"title":"List published preview ports","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml get /sandboxes/{sandbox_id}/preview-ports","href":"/api-reference/sandboxes/list-published-preview-ports"},{"title":"Publish or update a preview port","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml post /sandboxes/{sandbox_id}/preview-ports","href":"/api-reference/sandboxes/publish-or-update-a-preview-port"},{"title":"Unpublish a preview port","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml delete /sandboxes/{sandbox_id}/preview-ports/{port}","href":"/api-reference/sandboxes/unpublish-a-preview-port"},{"title":"Mint a token for a private preview port","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml post /sandboxes/{sandbox_id}/preview-ports/{port}/token","href":"/api-reference/sandboxes/mint-a-token-for-a-private-preview-port"},{"title":"Rotate a private preview port's token generation","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml post /sandboxes/{sandbox_id}/preview-ports/{port}/token/rotate","href":"/api-reference/sandboxes/rotate-a-private-preview-ports-token-generation"}]},{"group":"Snapshots","pages":[{"title":"Snapshot a sandbox","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml post /sandboxes/{sandbox_id}/snapshot","href":"/api-reference/snapshots/snapshot-a-sandbox"},{"title":"List a sandbox's snapshots","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml get /sandboxes/{sandbox_id}/snapshots","href":"/api-reference/snapshots/list-a-sandboxs-snapshots"},{"title":"Get a snapshot","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml get /snapshots/{snapshot_id}","href":"/api-reference/snapshots/get-a-snapshot"},{"title":"Rename a snapshot","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml patch /snapshots/{snapshot_id}","href":"/api-reference/snapshots/rename-a-snapshot"},{"title":"Delete a snapshot","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml delete /snapshots/{snapshot_id}","href":"/api-reference/snapshots/delete-a-snapshot"}]},{"group":"Exec","pages":[{"title":"Run a command and wait for it to finish","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml post /exec","href":"/api-reference/exec/run-a-command-and-wait-for-it-to-finish"},{"title":"Run a command and stream output over SSE","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml post /exec/stream","href":"/api-reference/exec/run-a-command-and-stream-output-over-sse"},{"title":"Run a command over a WebSocket","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml get /exec/connect","href":"/api-reference/exec/run-a-command-over-a-websocket"}]},{"group":"Files","pages":[{"title":"List a directory inside a sandbox","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml get /sandboxes/{sandbox_id}/files","href":"/api-reference/files/list-a-directory-inside-a-sandbox"},{"title":"Read a file from a sandbox","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml get /files","href":"/api-reference/files/read-a-file-from-a-sandbox"},{"title":"Write a file to a sandbox","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml post /files","href":"/api-reference/files/write-a-file-to-a-sandbox"}]},{"group":"Templates","pages":[{"title":"List templates visible to the caller","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml get /templates","href":"/api-reference/templates/list-templates-visible-to-the-caller"},{"title":"Create a template and kick off the first build","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml post /templates","href":"/api-reference/templates/create-a-template-and-kick-off-the-first-build"},{"title":"Get a template by ID","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml get /templates/{template_id}","href":"/api-reference/templates/get-a-template-by-id"},{"title":"Delete a template","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml delete /templates/{template_id}","href":"/api-reference/templates/delete-a-template"},{"title":"List recent builds for a template","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml get /templates/{template_id}/builds","href":"/api-reference/templates/list-recent-builds-for-a-template"},{"title":"Rebuild an existing template","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml post /templates/{template_id}/builds","href":"/api-reference/templates/rebuild-an-existing-template"},{"title":"Get a build by ID","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml get /templates/{template_id}/builds/{build_id}","href":"/api-reference/templates/get-a-build-by-id"},{"title":"Cancel an in-flight build","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml delete /templates/{template_id}/builds/{build_id}","href":"/api-reference/templates/cancel-an-in-flight-build"},{"title":"Stream build logs via SSE","description":"Server-Sent Events stream of the build's stdout/stderr. Connecting\nreplays buffered output from the start of the build, then streams\nlive as it arrives. Closes when the build reaches a terminal state.\n","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml get /templates/{template_id}/builds/{build_id}/logs","href":"/api-reference/templates/stream-build-logs-via-sse"}]},{"group":"Secrets","pages":[{"title":"Create a secret","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml post /secrets","href":"/api-reference/secrets/create-a-secret"},{"title":"List secrets for the calling team","description":"Returns metadata for all secrets owned by the team. Cleartext values\nare never returned.\n","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml get /secrets","href":"/api-reference/secrets/list-secrets-for-the-calling-team"},{"title":"Get a secret's metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml get /secrets/{name}","href":"/api-reference/secrets/get-a-secrets-metadata"},{"title":"Rotate a secret's value","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml patch /secrets/{name}","href":"/api-reference/secrets/rotate-a-secrets-value"},{"title":"Revoke a secret","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml delete /secrets/{name}","href":"/api-reference/secrets/revoke-a-secret"},{"title":"Attach a secret to a sandbox","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml post /sandboxes/{sandbox_id}/secrets","href":"/api-reference/sandboxes/attach-a-secret-to-a-sandbox"},{"title":"Detach a secret from a sandbox","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml delete /sandboxes/{sandbox_id}/secrets/{env_key}","href":"/api-reference/sandboxes/detach-a-secret-from-a-sandbox"},{"title":"List proxy egress events that used this credential","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml get /secrets/{name}/audit","href":"/api-reference/secrets/list-proxy-egress-events-that-used-this-credential"},{"title":"List sandboxes currently bound to this credential","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml get /secrets/{name}/sandboxes","href":"/api-reference/secrets/list-sandboxes-currently-bound-to-this-credential"},{"title":"List the built-in provider shortcut catalog","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml get /providers","href":"/api-reference/secrets/list-the-built-in-provider-shortcut-catalog"}]},{"group":"Team Management","pages":[{"title":"List team members","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml get /teams/{team_id}/members","href":"/api-reference/rbac/list-team-members"},{"title":"Add or invite a team member","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml post /teams/{team_id}/members","href":"/api-reference/rbac/add-or-invite-a-team-member"},{"title":"Deactivate a team member","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml delete /teams/{team_id}/members/{user_id}","href":"/api-reference/rbac/deactivate-a-team-member"},{"title":"List team role assignments","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml get /teams/{team_id}/roles","href":"/api-reference/rbac/list-team-role-assignments"},{"title":"Assign a team role","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml post /teams/{team_id}/roles","href":"/api-reference/rbac/assign-a-team-role"},{"title":"Revoke a team role","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml delete /teams/{team_id}/roles/{assignment_id}","href":"/api-reference/rbac/revoke-a-team-role"}]},{"group":"Activity","pages":[{"title":"List team audit-log activity","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/superserve-ai/sandbox/refs/heads/main/api/openapi.yaml get /activity","href":"/api-reference/activity/list-team-audit-log-activity"}]}]},{"anchor":"Cookbook","icon":"utensils","pages":[{"title":"Cookbook","href":"/integrations/coding-agents/claude"}]}]},"basePath":"","title":"Create a secret - Superserve","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-CS552b7R.js","utils-DDTCYAF2.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-De8ttokP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DrwRDvAh.js","snippetPresets-DtAN0nWx.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","Page-m07pfKpT.js","ApiExamples-D5rWArI6.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-O2i12wsz.js","shallow-DV8xABTt.js","getApiPlaygroundDisplay-DBZ0B5Jx.js","CodeSnippet-BVi0tPUX.js","CodeSnippets-CqASbIwY.js","getPastedJson-DG9vsMS8.js","icon-CXzRSCr8.js","MethodPill-BdKVtEuX.js","DuplicateIcon-CZlmBrJI.js","createIcon-biFEUKPL.js","DynamicMarkdown-B54_zNBF.js","SectionHeading-DwwHK3Pt.js","axios-vUo_bRtp.js","Markdown-DfhCTwyA.js","clsx-xpJZXxdP.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BTZUMDnx.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-DqdKa2R4.js"]}