Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
id
string
required
a tool ID: tool_ and 32 lowercase hex digits
Example:
"tool_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190"
Query Parameters
environment
string
On a Business team with environments: the key of the environment whose version and draft to use, such as staging. Left out, the environment your API key or MCP URL is for, else production
Body
application/json
path
string
required
a path under src/, test/ or explore/ of letters, digits, '.', '_', '-' and '/', ending in .js, .mjs, .ts or .json
content
string | null
required
The file's new text, or null to delete the file
Response
The tool's draft after the save
draft
object | null
required
The tool's draft after the save, or null when no change is left in it
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Pomerado","description":"Fast, reliable tools for websites, for AI agents and programs: an MCP server and a REST API.","colors":{"primary":"#c71f3e","light":"#f04a5f","dark":"#a81734"},"logo":{"light":"https://mintcdn.com/pomerado/MWnuKCF6pT3dH-IM/logo/light.svg?fit=max\u0026auto=format\u0026n=MWnuKCF6pT3dH-IM\u0026q=85\u0026s=b1723a79805dcc9e0c0982901abf76fd","dark":"https://mintcdn.com/pomerado/MWnuKCF6pT3dH-IM/logo/dark.svg?fit=max\u0026auto=format\u0026n=MWnuKCF6pT3dH-IM\u0026q=85\u0026s=e91dd44a93eff07c2e368db999756f98","href":"https://pomerado.ai"},"favicon":"https://mintcdn.com/pomerado/MWnuKCF6pT3dH-IM/logo/favicon.png?fit=max\u0026auto=format\u0026n=MWnuKCF6pT3dH-IM\u0026q=85\u0026s=78a3bf5220c92811101e80f0f1c2708a","api":{"examples":{"languages":["curl","javascript","python"]}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"pomerado","hasAudioNarration":false,"actualSubdomain":"pomerado","customDomains":["docs.pomerado.ai"],"gitSource":{"type":"github","owner":"pomerado","repo":"pomerado-docs","deployBranch":"main","contentDirectory":"public-docs","isPrivate":true,"mountPath":"","label":"","_id":"6af0f181ddecdf8794c0cadb"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b0fd0c148655a78602b7641","clientVersion":"0.0.4410","searchFilterCounts":[{"language":"default","tag":"API reference","count":149},{"language":"default","tag":"Docs","count":52},{"language":"default","tag":"Guides","count":42},{"language":"default","tag":"Tools and integrations","count":25},{"language":"default","tag":"MCP reference","count":19},{"language":"default","tag":"Pomerado MCP","count":17},{"language":"default","tag":"Jobs","count":13},{"language":"default","tag":"Environments","count":11},{"language":"default","tag":"Saved logins","count":11},{"language":"default","tag":"Payer profiles","count":11}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":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":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"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":"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":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/code/save-a-file-in-a-tools-draft","slug":"/api-reference/code/save-a-file-in-a-tools-draft","pageMetadata":{"title":"Save a file in a tool's draft","description":"Save one file of your team's draft of the code of a tool your team built.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /v1/code/{id}/draft","href":"/api-reference/code/save-a-file-in-a-tools-draft","autogeneratedByOpenApi":true},"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: \"Save one file of your team’s draft of the code of a tool your team built.\"\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{jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Accordion}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);return _jsx(Accordion,{title:`Details`,id:`details`,children:_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Business accounts only, with tools:build. Every member sees the draft with code.get.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`One draft per tool, shared by the team. Each save changes one file, and the last save of a file wins.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`content null deletes the file. A file saved back to its text in the draft’s base version leaves the draft, and a draft with no change left is deleted.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Only files under src/, test/ and explore/ change, and an entrypoint can’t be deleted. A public tool’s draft stays your team’s until it’s published.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`environment saves to the draft in that environment, which starts from the version the tool runs there.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Callers:`}),` an API key, an MCP OAuth token or a Dashboard session.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Permission:`}),` `,_jsx(_components.code,{children:`tools:build`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Effect:`}),` Creates or changes something.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Errors:`}),` `,_jsx(_components.a,{href:`/errors#business_account_required`,children:_jsx(_components.code,{children:`business_account_required`})}),`, `,_jsx(_components.a,{href:`/errors#not_found`,children:_jsx(_components.code,{children:`not_found`})}),`, `,_jsx(_components.a,{href:`/errors#environment_required`,children:_jsx(_components.code,{children:`environment_required`})}),`, `,_jsx(_components.a,{href:`/errors#environment_not_found`,children:_jsx(_components.code,{children:`environment_not_found`})}),`, and the `,_jsx(_components.a,{href:`/errors`,children:`errors any request can get`}),`.`]}),`\n`]}),`\n`]})})}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":"Save a file in a tool's draft","description":"Save one file of your team's draft of the code of a tool your team built.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /v1/code/{id}/draft","href":"/api-reference/code/save-a-file-in-a-tools-draft","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"code.save_draft","tags":["code"],"summary":"Save a file in a tool's draft","description":"Save one file of your team's draft of the code of a tool your team built.","parameters":["82e18dff-90d9-4d09-ad05-cdf2d5c01ef2","a00347c6-98a5-4fb8-80bf-acae230407e6"],"requestBody":"58f818f6-9e37-424b-a291-ad940dbbc712","responses":{"200":"8cba7393-c235-40dc-b765-842f1cb29ad6","400":"4385ccb3-4d85-4352-b5bb-e44e9b720a34","401":"1af1475b-b2d8-4b90-960a-3a674b1886d4","403":"9d1e8ad0-b940-4df4-ac12-11559b159ff6","404":"eb05be7d-6138-4338-a423-0fa9438112d1","409":"7544226a-0b05-4725-bedb-82b755850628","413":"dd3c9a04-db64-4424-8167-4c8dcc93b835","429":"75ce94c2-3b95-4e70-9583-57c9c1874517","500":"86f68c02-fb5a-471a-b973-db15dfb9fe2e","503":"dbad237c-f9a1-4c75-a90a-0d2105aff0ce"},"security":["d47f2dca-fb5e-47f1-bf68-a4de1fcb0aa0"],"x-pomerado-effect":"write","x-pomerado-callers":["session","oauth","api_key"],"x-pomerado-permission":"tools:build","x-mint":{"content":"\u003cAccordion title=\"Details\">\n\n- Business accounts only, with tools:build. Every member sees the draft with code.get.\n- One draft per tool, shared by the team. Each save changes one file, and the last save of a file wins.\n- content null deletes the file. A file saved back to its text in the draft's base version leaves the draft, and a draft with no change left is deleted.\n- Only files under src/, test/ and explore/ change, and an entrypoint can't be deleted. A public tool's draft stays your team's until it's published.\n- environment saves to the draft in that environment, which starts from the version the tool runs there.\n\n- **Callers:** an API key, an MCP OAuth token or a Dashboard session.\n- **Permission:** `tools:build`.\n- **Effect:** Creates or changes something.\n- **Errors:** [`business_account_required`](/errors#business_account_required), [`not_found`](/errors#not_found), [`environment_required`](/errors#environment_required), [`environment_not_found`](/errors#environment_not_found), and the [errors any request can get](/errors).\n\n\u003c/Accordion>"},"method":"put","type":"path","servers":["5b9c2adb-00d4-4843-ac4c-c62d1b9431ef"],"path":"/v1/code/{id}/draft","baseUrlOptions":["https://api.pomerado.ai"],"title":"Save a file in a tool's draft","codeSamples":[],"requestExampleLanguages":["bash","javascript","python"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"82e18dff-90d9-4d09-ad05-cdf2d5c01ef2":{"name":"id","in":"path","required":true,"description":"a tool ID: tool_ and 32 lowercase hex digits","schema":{"type":"string","examples":["tool_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190"],"isRequired":true,"description":"a tool ID: tool_ and 32 lowercase hex digits","uniqueKey":"","typeLabel":"string"}},"a00347c6-98a5-4fb8-80bf-acae230407e6":{"name":"environment","in":"query","required":false,"description":"On a Business team with environments: the key of the environment whose version and draft to use, such as staging. Left out, the environment your API key or MCP URL is for, else production","schema":{"type":"string","isRequired":false,"description":"On a Business team with environments: the key of the environment whose version and draft to use, such as staging. Left out, the environment your API key or MCP URL is for, else production","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["path","content"],"properties":{"path":{"type":"string","description":"a path under src/, test/ or explore/ of letters, digits, '.', '_', '-' and '/', ending in .js, .mjs, .ts or .json","isRequired":true,"uniqueKey":"path","typeLabel":"string"},"content":{"oneOf":[{"type":"string","description":"The file's new text, or null to delete the file","isRequired":true,"uniqueKey":"content.oneOf.0","typeLabel":"string"},{"type":"null","description":"The file's new text, or null to delete the file","isRequired":true,"uniqueKey":"content.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"content","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"path":"\u003cstring>","content":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"8cba7393-c235-40dc-b765-842f1cb29ad6":{"description":"The tool's draft after the save","content":{"application/json":{"schema":{"type":"object","required":["draft"],"properties":{"draft":{"oneOf":[{"type":"object","description":"The tool's draft after the save, or null when no change is left in it","required":["base_version","digest","changed","updated_at","updated_by","passed_at"],"properties":{"base_version":{"type":"integer","description":"The version the draft started from: the live one when its first file was saved","isRequired":true,"uniqueKey":"draft.oneOf.0.base_version","typeLabel":"integer"},"digest":{"type":"string","description":"The SHA-256 of the whole file set the draft makes, in hex","isRequired":true,"uniqueKey":"draft.oneOf.0.digest","typeLabel":"string"},"changed":{"type":"array","items":{"type":"string","uniqueKey":"draft.oneOf.0.changed.items.[INDEX]","typeLabel":"string"},"description":"The paths of the files the draft changes from its base version, sorted","isRequired":true,"uniqueKey":"draft.oneOf.0.changed","typeLabel":"string[]"},"updated_at":{"type":"string","description":"a string to be decoded into a Date","isRequired":true,"uniqueKey":"draft.oneOf.0.updated_at","typeLabel":"string"},"updated_by":{"oneOf":[{"type":"object","description":"The member who saved last; null for someone no longer on your team","required":["user_id","name","email"],"properties":{"user_id":{"type":"string","description":"The member's user ID","isRequired":true,"uniqueKey":"draft.oneOf.0.updated_by.oneOf.0.user_id","typeLabel":"string"},"name":{"oneOf":[{"type":"string","description":"The member's name, or null when they gave none, and for an API key without team:manage (billing:manage on a Personal account), unless the member made the key","isRequired":true,"uniqueKey":"draft.oneOf.0.updated_by.oneOf.0.name.oneOf.0","typeLabel":"string"},{"type":"null","description":"The member's name, or null when they gave none, and for an API key without team:manage (billing:manage on a Personal account), unless the member made the key","isRequired":true,"uniqueKey":"draft.oneOf.0.updated_by.oneOf.0.name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"draft.oneOf.0.updated_by.oneOf.0.name","typeLabel":"string | null"},"email":{"oneOf":[{"type":"string","description":"The member's sign-in email; null for an API key without team:manage (billing:manage on a Personal account), unless the member made the key","isRequired":true,"uniqueKey":"draft.oneOf.0.updated_by.oneOf.0.email.oneOf.0","typeLabel":"string"},{"type":"null","description":"The member's sign-in email; null for an API key without team:manage (billing:manage on a Personal account), unless the member made the key","isRequired":true,"uniqueKey":"draft.oneOf.0.updated_by.oneOf.0.email.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"draft.oneOf.0.updated_by.oneOf.0.email","typeLabel":"string | null"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"draft.oneOf.0.updated_by.oneOf.0","typeLabel":"object"},{"type":"null","description":"The member who saved last; null for someone no longer on your team","isRequired":true,"uniqueKey":"draft.oneOf.0.updated_by.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"draft.oneOf.0.updated_by","typeLabel":"object | null"},"passed_at":{"oneOf":[{"type":"string","description":"When a run of the draft as it is now passed; null until one does","isRequired":true,"uniqueKey":"draft.oneOf.0.passed_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"When a run of the draft as it is now passed; null until one does","isRequired":true,"uniqueKey":"draft.oneOf.0.passed_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"draft.oneOf.0.passed_at","typeLabel":"string | null"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"draft.oneOf.0","typeLabel":"object"},{"type":"null","description":"The tool's draft after the save, or null when no change is left in it","isRequired":true,"uniqueKey":"draft.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"draft","typeLabel":"object | null"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"draft":{"base_version":123,"digest":"\u003cstring>","changed":["\u003cstring>"],"updated_at":"\u003cstring>","updated_by":{"user_id":"\u003cstring>","name":"\u003cstring>","email":"\u003cstring>"},"passed_at":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"4385ccb3-4d85-4352-b5bb-e44e9b720a34":{"description":"invalid_request","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","retryable","docs_url"],"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"type":"boolean","isRequired":true,"uniqueKey":"error.retryable","typeLabel":"boolean"},"docs_url":{"type":"string","isRequired":true,"uniqueKey":"error.docs_url","typeLabel":"string"},"details":{"type":"object","required":[],"properties":{},"additionalProperties":{"oneOf":[{"$id":"/schemas/unknown"}],"uniqueKey":"error.details.additionalProperties","typeLabel":"any"},"uniqueKey":"error.details","typeLabel":"object"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","retryable":true,"docs_url":"\u003cstring>","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"1af1475b-b2d8-4b90-960a-3a674b1886d4":{"description":"unauthorized, reauthentication_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","retryable","docs_url"],"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"type":"boolean","isRequired":true,"uniqueKey":"error.retryable","typeLabel":"boolean"},"docs_url":{"type":"string","isRequired":true,"uniqueKey":"error.docs_url","typeLabel":"string"},"details":{"type":"object","required":[],"properties":{},"additionalProperties":{"oneOf":[{"$id":"/schemas/unknown"}],"uniqueKey":"error.details.additionalProperties","typeLabel":"any"},"uniqueKey":"error.details","typeLabel":"object"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","retryable":true,"docs_url":"\u003cstring>","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"9d1e8ad0-b940-4df4-ac12-11559b159ff6":{"description":"business_account_required, environment_not_allowed, forbidden","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","retryable","docs_url"],"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"type":"boolean","isRequired":true,"uniqueKey":"error.retryable","typeLabel":"boolean"},"docs_url":{"type":"string","isRequired":true,"uniqueKey":"error.docs_url","typeLabel":"string"},"details":{"type":"object","required":[],"properties":{},"additionalProperties":{"oneOf":[{"$id":"/schemas/unknown"}],"uniqueKey":"error.details.additionalProperties","typeLabel":"any"},"uniqueKey":"error.details","typeLabel":"object"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","retryable":true,"docs_url":"\u003cstring>","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"eb05be7d-6138-4338-a423-0fa9438112d1":{"description":"not_found, environment_not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","retryable","docs_url"],"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"type":"boolean","isRequired":true,"uniqueKey":"error.retryable","typeLabel":"boolean"},"docs_url":{"type":"string","isRequired":true,"uniqueKey":"error.docs_url","typeLabel":"string"},"details":{"type":"object","required":[],"properties":{},"additionalProperties":{"oneOf":[{"$id":"/schemas/unknown"}],"uniqueKey":"error.details.additionalProperties","typeLabel":"any"},"uniqueKey":"error.details","typeLabel":"object"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","retryable":true,"docs_url":"\u003cstring>","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"7544226a-0b05-4725-bedb-82b755850628":{"description":"environment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","retryable","docs_url"],"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"type":"boolean","isRequired":true,"uniqueKey":"error.retryable","typeLabel":"boolean"},"docs_url":{"type":"string","isRequired":true,"uniqueKey":"error.docs_url","typeLabel":"string"},"details":{"type":"object","required":[],"properties":{},"additionalProperties":{"oneOf":[{"$id":"/schemas/unknown"}],"uniqueKey":"error.details.additionalProperties","typeLabel":"any"},"uniqueKey":"error.details","typeLabel":"object"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","retryable":true,"docs_url":"\u003cstring>","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"dd3c9a04-db64-4424-8167-4c8dcc93b835":{"description":"request_too_large","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","retryable","docs_url"],"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"type":"boolean","isRequired":true,"uniqueKey":"error.retryable","typeLabel":"boolean"},"docs_url":{"type":"string","isRequired":true,"uniqueKey":"error.docs_url","typeLabel":"string"},"details":{"type":"object","required":[],"properties":{},"additionalProperties":{"oneOf":[{"$id":"/schemas/unknown"}],"uniqueKey":"error.details.additionalProperties","typeLabel":"any"},"uniqueKey":"error.details","typeLabel":"object"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","retryable":true,"docs_url":"\u003cstring>","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"75ce94c2-3b95-4e70-9583-57c9c1874517":{"description":"server_busy","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","retryable","docs_url"],"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"type":"boolean","isRequired":true,"uniqueKey":"error.retryable","typeLabel":"boolean"},"docs_url":{"type":"string","isRequired":true,"uniqueKey":"error.docs_url","typeLabel":"string"},"details":{"type":"object","required":[],"properties":{},"additionalProperties":{"oneOf":[{"$id":"/schemas/unknown"}],"uniqueKey":"error.details.additionalProperties","typeLabel":"any"},"uniqueKey":"error.details","typeLabel":"object"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","retryable":true,"docs_url":"\u003cstring>","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"86f68c02-fb5a-471a-b973-db15dfb9fe2e":{"description":"internal_error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","retryable","docs_url"],"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"type":"boolean","isRequired":true,"uniqueKey":"error.retryable","typeLabel":"boolean"},"docs_url":{"type":"string","isRequired":true,"uniqueKey":"error.docs_url","typeLabel":"string"},"details":{"type":"object","required":[],"properties":{},"additionalProperties":{"oneOf":[{"$id":"/schemas/unknown"}],"uniqueKey":"error.details.additionalProperties","typeLabel":"any"},"uniqueKey":"error.details","typeLabel":"object"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","retryable":true,"docs_url":"\u003cstring>","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"dbad237c-f9a1-4c75-a90a-0d2105aff0ce":{"description":"temporarily_unavailable","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","retryable","docs_url"],"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"type":"boolean","isRequired":true,"uniqueKey":"error.retryable","typeLabel":"boolean"},"docs_url":{"type":"string","isRequired":true,"uniqueKey":"error.docs_url","typeLabel":"string"},"details":{"type":"object","required":[],"properties":{},"additionalProperties":{"oneOf":[{"$id":"/schemas/unknown"}],"uniqueKey":"error.details.additionalProperties","typeLabel":"any"},"uniqueKey":"error.details","typeLabel":"object"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","retryable":true,"docs_url":"\u003cstring>","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"d47f2dca-fb5e-47f1-bf68-a4de1fcb0aa0":{"bearer":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"bearer"}}},"servers":{"5b9c2adb-00d4-4843-ac4c-c62d1b9431ef":{"url":"https://api.pomerado.ai"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"bearer"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearer","name":"Authorization"}],"title":"bearer"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"pomerado","siteName":"Pomerado","title":"Save a file in a tool's draft - Pomerado","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-02T08:03:20.272Z","originalFileLocation":"api-reference/code/save-a-file-in-a-tools-draft.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=\"Save one file of your team\u0026#x27;s draft of the code of a tool your team built.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Pomerado\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/pomerado/OK4DStTtADU9WYMj/_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/pomerado/OK4DStTtADU9WYMj/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/pomerado/OK4DStTtADU9WYMj/_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/pomerado/OK4DStTtADU9WYMj/_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/pomerado/OK4DStTtADU9WYMj/_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/pomerado/OK4DStTtADU9WYMj/_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/pomerado/OK4DStTtADU9WYMj/_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/pomerado/OK4DStTtADU9WYMj/_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/pomerado/OK4DStTtADU9WYMj/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Save a file in a tool\u0026#x27;s draft - Pomerado\">\u003cmeta data-mint-head property=\"og:description\" content=\"Save one file of your team\u0026#x27;s draft of the code of a tool your team built.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Pomerado\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.pomerado.ai/api-reference/code/save-a-file-in-a-tools-draft\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://pomerado.mintlify.site/_mintlify/api/og/v2?division=Tools+and+integrations\u0026amp;title=Save+a+file+in+a+tool%27s+draft\u0026amp;description=Save+one+file+of+your+team%27s+draft+of+the+code+of+a+tool+your+team+built.\u0026amp;theme=43a9dbd260677a50f1d670ed\u0026amp;signature=9177001bf29e0c9ca449c13a4dbf2c7bdfbf3a1b0cdb48b654020231a4b683be\">\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=\"Save a file in a tool\u0026#x27;s draft - Pomerado\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Save one file of your team\u0026#x27;s draft of the code of a tool your team built.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://pomerado.mintlify.site/_mintlify/api/og/v2?division=Tools+and+integrations\u0026amp;title=Save+a+file+in+a+tool%27s+draft\u0026amp;description=Save+one+file+of+your+team%27s+draft+of+the+code+of+a+tool+your+team+built.\u0026amp;theme=43a9dbd260677a50f1d670ed\u0026amp;signature=9177001bf29e0c9ca449c13a4dbf2c7bdfbf3a1b0cdb48b654020231a4b683be\">\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/pomerado/OK4DStTtADU9WYMj/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Pomerado\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#c71f3e\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.pomerado.ai/api-reference/code/save-a-file-in-a-tools-draft\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/code/save-a-file-in-a-tools-draft.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.pomerado.ai/#organization\",\"name\":\"Pomerado\",\"url\":\"https://docs.pomerado.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/pomerado/MWnuKCF6pT3dH-IM/logo/light.svg?fit=max\u0026auto=format\u0026n=MWnuKCF6pT3dH-IM\u0026q=85\u0026s=b1723a79805dcc9e0c0982901abf76fd\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.pomerado.ai#website\",\"name\":\"Pomerado\",\"url\":\"https://docs.pomerado.ai\",\"publisher\":{\"@id\":\"https://docs.pomerado.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.pomerado.ai/api-reference/code/save-a-file-in-a-tools-draft#webpage\",\"url\":\"https://docs.pomerado.ai/api-reference/code/save-a-file-in-a-tools-draft\",\"name\":\"Save a file in a tool's draft\",\"description\":\"Save one file of your team's draft of the code of a tool your team built.\",\"dateModified\":\"2026-12-02T08:03:20.272Z\",\"isPartOf\":{\"@id\":\"https://docs.pomerado.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.pomerado.ai/api-reference/code/save-a-file-in-a-tools-draft#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.pomerado.ai/api-reference/code/save-a-file-in-a-tools-draft#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Tools and integrations\",\"item\":\"https://docs.pomerado.ai/api-reference/tools-and-integrations\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Save a file in a tool's draft\",\"item\":\"https://docs.pomerado.ai/api-reference/code/save-a-file-in-a-tools-draft\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.pomerado.ai/api-reference/code/save-a-file-in-a-tools-draft#apireference\",\"headline\":\"Save a file in a tool's draft\",\"name\":\"Save a file in a tool's draft\",\"description\":\"Save one file of your team's draft of the code of a tool your team built.\",\"url\":\"https://docs.pomerado.ai/api-reference/code/save-a-file-in-a-tools-draft\",\"mainEntityOfPage\":{\"@id\":\"https://docs.pomerado.ai/api-reference/code/save-a-file-in-a-tools-draft#webpage\"},\"dateModified\":\"2026-12-02T08:03:20.272Z\",\"publisher\":{\"@id\":\"https://docs.pomerado.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.pomerado.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Pomerado\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Pomerado\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/code/save-a-file-in-a-tools-draft.md","siteName":"Pomerado","nav":{"global":null,"anchors":[{"anchor":"Docs","pages":[{"title":"Docs","href":""}]},{"anchor":"API reference","groups":[{"group":"Overview","pages":[{"title":"API reference","sidebarTitle":"Introduction","href":"/api-reference/introduction"}]},{"group":"Account","pages":[{"title":"Get your account","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/account","href":"/api-reference/account/get-your-account"},{"title":"Set your name","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /v1/account/name","href":"/api-reference/account/set-your-name"},{"title":"Get your preferences","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/account/preferences","href":"/api-reference/account/get-your-preferences"},{"title":"Change your preferences","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/account/preferences","href":"/api-reference/account/change-your-preferences"},{"title":"Set your time zone","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /v1/account/time-zone","href":"/api-reference/account/set-your-time-zone"},{"title":"Get your account's privacy settings","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/account/privacy","href":"/api-reference/account/get-your-accounts-privacy-settings"},{"title":"Change your account's privacy settings","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/account/privacy","href":"/api-reference/account/change-your-accounts-privacy-settings"},{"title":"Get your card page's brand","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/account/card-page","href":"/api-reference/account/get-your-card-pages-brand"},{"title":"Set your card page's brand","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/account/card-page","href":"/api-reference/account/set-your-card-pages-brand"}]},{"group":"Runs","pages":[{"title":"List the runs your team started","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/runs","href":"/api-reference/runs/list-the-runs-your-team-started"},{"title":"Run a tool","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/runs","href":"/api-reference/runs/run-a-tool"},{"title":"Run a read-only tool","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/runs/read-only","href":"/api-reference/runs/run-a-read-only-tool"},{"title":"Run an integration's tool","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/integrations/{id}/tools/{tool_id}/runs","href":"/api-reference/runs/run-an-integrations-tool"},{"title":"Run a read-only tool on a list of inputs","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/runs/read-only/batch","href":"/api-reference/runs/run-a-read-only-tool-on-a-list-of-inputs"},{"title":"Run an integration's read tool on a list of inputs","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/integrations/{id}/tools/{tool_id}/runs/batch","href":"/api-reference/runs/run-an-integrations-read-tool-on-a-list-of-inputs"},{"title":"Get a batch","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/batches/{id}","href":"/api-reference/runs/get-a-batch"},{"title":"Cancel a batch","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/batches/{id}/cancel","href":"/api-reference/runs/cancel-a-batch"},{"title":"Count your team's runs per login, tool or integration","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/runs/stats","href":"/api-reference/runs/count-your-teams-runs-per-login-tool-or-integration"},{"title":"Get a run's log","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/runs/{id}/log","href":"/api-reference/runs/get-a-runs-log"}]},{"group":"Builds","pages":[{"title":"Build a tool","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/builds","href":"/api-reference/builds/build-a-tool"}]},{"group":"Build ideas","pages":[{"title":"Get build ideas","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/suggestions","href":"/api-reference/suggestions/get-build-ideas"}]},{"group":"Jobs","pages":[{"title":"List jobs","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/jobs","href":"/api-reference/jobs/list-jobs"},{"title":"Get a job","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/jobs/{id}","href":"/api-reference/jobs/get-a-job"},{"title":"Answer a job's question","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/jobs/{id}/answers","href":"/api-reference/jobs/answer-a-jobs-question"},{"title":"Cancel a job","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/jobs/{id}/cancel","href":"/api-reference/jobs/cancel-a-job"},{"title":"Resume a paused build","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/jobs/{id}/resume","href":"/api-reference/jobs/resume-a-paused-build"},{"title":"Get a one-time URL to send this job's card from your server","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/jobs/{id}/card-ingest","href":"/api-reference/jobs/get-a-one-time-url-to-send-this-jobs-card-from-your-server"},{"title":"Get a build's activity","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/jobs/{id}/activity","href":"/api-reference/jobs/get-a-builds-activity"}]},{"group":"Tools and integrations","pages":[{"title":"Tools and integrations","sidebarTitle":"Overview","href":"/api-reference/tools-and-integrations"},{"title":"List tools","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/tools","href":"/api-reference/tools/list-tools"},{"title":"Get a tool","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/tools/{id}","href":"/api-reference/tools/get-a-tool"},{"title":"Delete a tool","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/tools/{id}","href":"/api-reference/tools/delete-a-tool"},{"title":"Request a change to a tool","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/tools/{id}/changes","href":"/api-reference/tools/request-a-change-to-a-tool"},{"title":"List integrations","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/integrations","href":"/api-reference/integrations/list-integrations"},{"title":"List your team's integrations","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/integrations/team","href":"/api-reference/integrations/list-your-teams-integrations"},{"title":"Get an integration","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/integrations/{id}","href":"/api-reference/integrations/get-an-integration"},{"title":"Set integration visibility","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /v1/integrations/{id}/visibility","href":"/api-reference/integrations/set-integration-visibility"},{"title":"Delete an integration","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/integrations/{id}/tools","href":"/api-reference/integrations/delete-an-integration"},{"title":"Get an integration's OpenAPI document","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/integrations/{id}/openapi.json","href":"/api-reference/integrations/get-an-integrations-openapi-document"},{"title":"Get an integration's reference","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/integrations/{id}/reference","href":"/api-reference/integrations/get-an-integrations-reference"},{"title":"Add an integration to My integrations","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /v1/integrations/{id}/added","href":"/api-reference/integrations/add-an-integration-to-my-integrations"},{"title":"Remove an added integration","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/integrations/{id}/added","href":"/api-reference/integrations/remove-an-added-integration"},{"title":"Get MCP client setup","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/connect","href":"/api-reference/connect/get-mcp-client-setup"},{"title":"List your team's code","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/code","href":"/api-reference/code/list-your-teams-code"},{"title":"Get a tool's code","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/code/{id}","href":"/api-reference/code/get-a-tools-code"},{"title":"Download a tool's code","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/code/{id}/export","href":"/api-reference/code/download-a-tools-code"},{"title":"Get a download link for a tool's code","description":"Get a short-lived link that downloads the code a tool your team built runs now, as a zip of its live version's files, for a coding agent or anything else you give it to.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/code/{id}/export-link","href":"/api-reference/code/get-a-download-link-for-a-tools-code"},{"title":"Save a file in a tool's draft","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /v1/code/{id}/draft","href":"/api-reference/code/save-a-file-in-a-tools-draft"},{"title":"Discard a tool's draft","description":"Delete your team's draft of the code of a tool your team built, with every file it changes.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/code/{id}/draft","href":"/api-reference/code/discard-a-tools-draft"},{"title":"Restore an earlier version of a tool","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/code/{id}/versions/{number}/restore","href":"/api-reference/code/restore-an-earlier-version-of-a-tool"},{"title":"Run a tool's code","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/code/{id}/runs","href":"/api-reference/code/run-a-tools-code"},{"title":"Read a run's output","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/code/runs/{id}/output","href":"/api-reference/code/read-a-runs-output"},{"title":"Publish a tool's draft","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/code/{id}/draft/publish","href":"/api-reference/code/publish-a-tools-draft"}]},{"group":"Shapes","pages":[{"title":"List your shapes of a tool","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/tools/{id}/shapes","href":"/api-reference/shapes/list-your-shapes-of-a-tool"},{"title":"Get a shape","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/shapes/{id}","href":"/api-reference/shapes/get-a-shape"},{"title":"Make a shape","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/tools/{id}/shapes","href":"/api-reference/shapes/make-a-shape"},{"title":"Change a shape","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/shapes/{id}","href":"/api-reference/shapes/change-a-shape"},{"title":"Delete a shape","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/shapes/{id}","href":"/api-reference/shapes/delete-a-shape"},{"title":"Restore a version of a shape","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/shapes/{id}/restore","href":"/api-reference/shapes/restore-a-version-of-a-shape"}]},{"group":"Files","pages":[{"title":"Get a file","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/files/{id}","href":"/api-reference/files/get-a-file"},{"title":"Upload a file","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/files","href":"/api-reference/files/upload-a-file"},{"title":"Delete a file","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/files/{id}","href":"/api-reference/files/delete-a-file"}]},{"group":"Webhooks","pages":[{"title":"List webhooks","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/webhooks","href":"/api-reference/webhooks/list-webhooks"},{"title":"Get a webhook","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/webhooks/{id}","href":"/api-reference/webhooks/get-a-webhook"},{"title":"Create a webhook","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/webhooks","href":"/api-reference/webhooks/create-a-webhook"},{"title":"Update a webhook","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/webhooks/{id}","href":"/api-reference/webhooks/update-a-webhook"},{"title":"Delete a webhook","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/webhooks/{id}","href":"/api-reference/webhooks/delete-a-webhook"},{"title":"Test a webhook","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/webhooks/{id}/test","href":"/api-reference/webhooks/test-a-webhook"},{"title":"Rotate a webhook secret","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/webhooks/{id}/rotate-secret","href":"/api-reference/webhooks/rotate-a-webhook-secret"}]},{"group":"Saved logins","pages":[{"title":"List pending logins","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/logins/pending","href":"/api-reference/logins/list-pending-logins"},{"title":"List saved logins","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/logins","href":"/api-reference/logins/list-saved-logins"},{"title":"Get a saved login","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/logins/{id}","href":"/api-reference/logins/get-a-saved-login"},{"title":"Save a login","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/logins","href":"/api-reference/logins/save-a-login"},{"title":"Change a saved login","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/logins/{id}","href":"/api-reference/logins/change-a-saved-login"},{"title":"Delete a saved login","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/logins/{id}","href":"/api-reference/logins/delete-a-saved-login"},{"title":"Import saved logins","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/logins/import","href":"/api-reference/logins/import-saved-logins"},{"title":"Get a pending login","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/logins/pending/{id}","href":"/api-reference/logins/get-a-pending-login"},{"title":"Cancel a pending login","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/logins/pending/{id}","href":"/api-reference/logins/cancel-a-pending-login"},{"title":"Clear a login's account lock","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/logins/{id}/clear-lock","href":"/api-reference/logins/clear-a-logins-account-lock"},{"title":"Reveal a saved login","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/logins/{id}/reveal","href":"/api-reference/logins/reveal-a-saved-login"}]},{"group":"2FA","pages":[{"title":"Replace recovery codes","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /v1/logins/{id}/recovery-codes","href":"/api-reference/two_factor/replace-recovery-codes"},{"title":"Get an authenticator code","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/logins/{id}/authenticator-code","href":"/api-reference/two_factor/get-an-authenticator-code"},{"title":"Get a phone number","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/logins/{id}/sms-number","href":"/api-reference/two_factor/get-a-phone-number"},{"title":"Assign a phone number","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/logins/{id}/sms-number","href":"/api-reference/two_factor/assign-a-phone-number"},{"title":"Verify a phone number","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/logins/{id}/sms-number/verify","href":"/api-reference/two_factor/verify-a-phone-number"},{"title":"Remove a phone number","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/logins/{id}/sms-number","href":"/api-reference/two_factor/remove-a-phone-number"}]},{"group":"Login access","pages":[{"title":"Get login access","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/logins/{id}/access","href":"/api-reference/login_access/get-login-access"},{"title":"Change login access","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /v1/logins/{id}/access","href":"/api-reference/login_access/change-login-access"}]},{"group":"Team","pages":[{"title":"List team members","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/team/members","href":"/api-reference/team/list-team-members"},{"title":"List invitations","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/team/invitations","href":"/api-reference/team/list-invitations"},{"title":"Get team settings","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/team","href":"/api-reference/team/get-team-settings"},{"title":"Change a member's role","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/team/members/{user_id}","href":"/api-reference/team/change-a-members-role"},{"title":"Remove a team member","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/team/members/{user_id}","href":"/api-reference/team/remove-a-team-member"},{"title":"Invite team members","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/team/invitations","href":"/api-reference/team/invite-team-members"},{"title":"Resend an invitation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/team/invitations/{id}/resend","href":"/api-reference/team/resend-an-invitation"},{"title":"Revoke an invitation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/team/invitations/{id}","href":"/api-reference/team/revoke-an-invitation"},{"title":"Get the team's intent setting","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/team/intent-settings","href":"/api-reference/team/get-the-teams-intent-setting"},{"title":"Change the team's intent setting","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/team/intent-settings","href":"/api-reference/team/change-the-teams-intent-setting"}]},{"group":"Environments","pages":[{"title":"List environments","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/environments","href":"/api-reference/environments/list-environments"},{"title":"Get an environment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/environments/{key}","href":"/api-reference/environments/get-an-environment"},{"title":"Delete an environment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/environments/{key}","href":"/api-reference/environments/delete-an-environment"},{"title":"Add an environment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/environments","href":"/api-reference/environments/add-an-environment"},{"title":"Rename an environment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/environments/{key}","href":"/api-reference/environments/rename-an-environment"},{"title":"Change an environment's settings","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/environments/{key}/settings","href":"/api-reference/environments/change-an-environments-settings"},{"title":"Compare a tool between environments","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/tools/{tool_id}/compare","href":"/api-reference/environments/compare-a-tool-between-environments"},{"title":"Push, pull or merge a tool between environments","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/tools/{tool_id}/promote","href":"/api-reference/environments/push-pull-or-merge-a-tool-between-environments"},{"title":"Roll a tool back in an environment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/tools/{tool_id}/environments/{key}/rollback","href":"/api-reference/environments/roll-a-tool-back-in-an-environment"},{"title":"List a tool's history in an environment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/tools/{tool_id}/environments/{key}/history","href":"/api-reference/environments/list-a-tools-history-in-an-environment"},{"title":"Push, pull or merge every tool of an integration","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/integrations/{id}/promote","href":"/api-reference/environments/push-pull-or-merge-every-tool-of-an-integration"}]},{"group":"Single sign-on","pages":[{"title":"Get the team's single sign-on setup","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/team/sso","href":"/api-reference/sso/get-the-teams-single-sign-on-setup"},{"title":"Open the team's Admin Portal","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/team/sso/setup-links","href":"/api-reference/sso/open-the-teams-admin-portal"},{"title":"Email your IT admin a setup link","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/team/sso/it-admin-invitations","href":"/api-reference/sso/email-your-it-admin-a-setup-link"}]},{"group":"Audit log","pages":[{"title":"List your team's audit log","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/audit-events","href":"/api-reference/audit/list-your-teams-audit-log"},{"title":"Export your team's audit log as CSV","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/audit-events/export","href":"/api-reference/audit/export-your-teams-audit-log-as-csv"}]},{"group":"API keys","pages":[{"title":"List API keys","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/api-keys","href":"/api-reference/api_keys/list-api-keys"},{"title":"Create an API key","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/api-keys","href":"/api-reference/api_keys/create-an-api-key"},{"title":"Revoke an API key","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/api-keys/{id}","href":"/api-reference/api_keys/revoke-an-api-key"},{"title":"Rotate an API key","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/api-keys/{id}/rotate","href":"/api-reference/api_keys/rotate-an-api-key"},{"title":"Mark an API key copied","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/api-keys/{id}/copied","href":"/api-reference/api_keys/mark-an-api-key-copied"}]},{"group":"Connected apps","pages":[{"title":"List connected apps","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/connected-apps","href":"/api-reference/connected_apps/list-connected-apps"},{"title":"Disconnect an app","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/connected-apps/{id}","href":"/api-reference/connected_apps/disconnect-an-app"}]},{"group":"Usage and quota","pages":[{"title":"Get your usage","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/usage","href":"/api-reference/usage/get-your-usage"},{"title":"Get your team's spend this billing period","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/usage/spend","href":"/api-reference/usage/get-your-teams-spend-this-billing-period"},{"title":"Get your plan limits","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/quota","href":"/api-reference/quota/get-your-plan-limits"}]},{"group":"Spend controls","pages":[{"title":"Get your team's daily cap and overage budget","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/usage/spend-controls","href":"/api-reference/spend_controls/get-your-teams-daily-cap-and-overage-budget"},{"title":"Change your team's daily cap or overage budget","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/usage/spend-controls","href":"/api-reference/spend_controls/change-your-teams-daily-cap-or-overage-budget"},{"title":"List your team's usage alerts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/usage/alerts","href":"/api-reference/usage_alerts/list-your-teams-usage-alerts"},{"title":"Add a usage alert","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/usage/alerts","href":"/api-reference/usage_alerts/add-a-usage-alert"},{"title":"Change a usage alert","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/usage/alerts/{alert_id}","href":"/api-reference/usage_alerts/change-a-usage-alert"},{"title":"Delete a usage alert","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/usage/alerts/{alert_id}","href":"/api-reference/usage_alerts/delete-a-usage-alert"},{"title":"Get your usage summary email","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/usage/summary","href":"/api-reference/usage_summary/get-your-usage-summary-email"},{"title":"Change your usage summary email","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/usage/summary","href":"/api-reference/usage_summary/change-your-usage-summary-email"}]},{"group":"Billing","pages":[{"title":"Get your subscription","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/billing","href":"/api-reference/billing/get-your-subscription"},{"title":"Start a Premium checkout","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/billing/checkout","href":"/api-reference/billing/start-a-premium-checkout"},{"title":"Open the billing portal","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/billing/portal","href":"/api-reference/billing/open-the-billing-portal"},{"title":"Redeem a free Premium code","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/billing/redeem","href":"/api-reference/billing/redeem-a-free-premium-code"}]},{"group":"Payer profiles","pages":[{"title":"List payer profiles","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/payer-profiles","href":"/api-reference/payer_profiles/list-payer-profiles"},{"title":"Get a payer profile","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/payer-profiles/{id}","href":"/api-reference/payer_profiles/get-a-payer-profile"},{"title":"Create a payer profile","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/payer-profiles","href":"/api-reference/payer_profiles/create-a-payer-profile"},{"title":"Update a payer profile","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/payer-profiles/{id}","href":"/api-reference/payer_profiles/update-a-payer-profile"},{"title":"Delete a payer profile","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/payer-profiles/{id}","href":"/api-reference/payer_profiles/delete-a-payer-profile"},{"title":"Add a payer address","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/payer-profiles/{id}/addresses","href":"/api-reference/payer_addresses/add-a-payer-address"},{"title":"Update a payer address","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/payer-profiles/{id}/addresses/{address_id}","href":"/api-reference/payer_addresses/update-a-payer-address"},{"title":"Delete a payer address","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/payer-profiles/{id}/addresses/{address_id}","href":"/api-reference/payer_addresses/delete-a-payer-address"},{"title":"List payment methods","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/payer-profiles/{id}/payment-methods","href":"/api-reference/payment_methods/list-payment-methods"},{"title":"Add a payment method","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/payer-profiles/{id}/payment-methods","href":"/api-reference/payment_methods/add-a-payment-method"},{"title":"Delete a payment method","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/payer-profiles/{id}/payment-methods/{payment_method_id}","href":"/api-reference/payment_methods/delete-a-payment-method"}]},{"group":"Problem reports","pages":[{"title":"Report a problem","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/issue-reports","href":"/api-reference/issue_reports/report-a-problem"}]}]},{"anchor":"MCP reference","pages":[{"title":"MCP reference","href":"/mcp-reference/conventions"}]},{"anchor":"Errors","pages":[{"title":"Errors","href":"/errors"}]}]},"basePath":"","title":"Save a file in a tool's draft - Pomerado","deploymentId":"dpl_3VZr4zL4q2wbintGwWjSCGUgnuP7","buildId":"dpl_3VZr4zL4q2wbintGwWjSCGUgnuP7","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DUG0fxZu.js","snippetPresets-Ba5aWAdQ.js","utils-GxQLQihZ.js","style-to-object-BY3JEAdk.js","utils-WKMM_gjD.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-Bo9LYdaA.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DwYjaFhs.js","_Uint8Array-DDE2Hehm.js","isObject-FP1Yky1u.js","ApiExamples-DhR-5ORn.js","usePlaygroundInputsStore-BaYqfAgH.js","shallow-BC7UwQwD.js","isEqual-gcN6MEQu.js","CodeSnippets-B8P54LrN.js","CodeSnippet-Czwn5OJE.js","use-playground-group-access-C3A6I116.js","Page-CUkc1DBo.js","api-description-markdown-CDE0Fpj5.js","DynamicMarkdown-F4EfLno9.js","SectionHeading-DMe18In2.js","MethodPill-CW7tTaiB.js","getPastedJson-DB5smC0Q.js","Check2Icon-DDdveNjm.js","axios-CsQoIw0U.js","Markdown-BLge-GTN.js","AssistantPageLink-BFI2wFhH.js","dist-C1RpOC6K.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}