{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"Codegen","colors":{"primary":"#a277ff","light":"#a277ff","dark":"#a277ff"},"logo":{"light":"https://cdn.prod.website-files.com/67070304751b9b01bf6a161c/679bcf45bf55446746125835_Codegen_Logomark_Light.svg","dark":"https://cdn.prod.website-files.com/67070304751b9b01bf6a161c/679bcf45a3e32761c42b324b_Codegen_Logomark_Dark.svg"},"favicon":"/favicon.svg","appearance":{"default":"dark"},"background":{"decoration":"gradient"},"navbar":{"primary":{"type":"button","label":"GitHub","href":"https://github.com/codegen-sh/codegen-sdk"}},"footer":{"socials":{"x":"https://x.com/codegen","linkedin":"https://linkedin.com/company/codegen-dot-com"}},"seo":{"metatags":{"og:site_name":"Codegen","og:title":"Codegen - The SWE that Never Sleeps","og:description":"Code agents accessible via API, Slack, Linear, Github, and more.","og:url":"https://docs.codegen.com","og:locale":"en_US","og:logo":"https://i.imgur.com/f4OVOqI.png","article:publisher":"Codegen, Inc.","twitter:site":"@codegen"},"indexing":"navigable"},"integrations":{"posthog":{"apiKey":"phc_GLxaINoQJnuyCyxDmTciQqzdKBYFVDkY7bRBO4bDdso"}},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"codegeninc","hasAudioNarration":false,"actualSubdomain":"codegeninc","customDomains":["docs.codegen.com"],"gitSource":{"type":"github","owner":"codegen-sh","repo":"codegen","deployBranch":"develop","contentDirectory":"docs","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"REMOVE_BRANDING":{"status":"DISABLED"}},"buildId":"6ae9211e2a34a1c2ce06affd:success","clientVersion":"0.0.4111","searchFilterCounts":[{"language":"default","tag":"Documentation","count":43},{"language":"default","tag":"API Reference","count":28},{"language":"default","tag":"Endpoints","count":25},{"language":"default","tag":"Integrations","count":14},{"language":"default","tag":"Guides","count":12},{"language":"default","tag":"Overview","count":7},{"language":"default","tag":"Settings","count":7},{"language":"default","tag":"agents","count":7},{"language":"default","tag":"Sandboxes","count":6},{"language":"default","tag":"organizations","count":4}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"prism.css","content":":root{--font-jetbrains-mono: Menlo, Monaco, \"Courier New\", monospace !important}pre[class*=\"language-\"],code[class*=\"language-\"],pre,code,kbd,samp{font-family:Menlo, Monaco, \"Andale Mono\", \"Ubuntu Mono\", monospace!important;--font-jetbrains-mono: Consolas, Monaco, \"Andale Mono\", \"Ubuntu Mono\",\n\t\tmonospace !important;font-weight:500!important}pre[class*=\"language-\"]{font-family:Menlo, Monaco, \"Andale Mono\", \"Ubuntu Mono\", monospace!important;font-weight:500!important;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*=\"language-\"]::-moz-selection,pre[class*=\"language-\"] ::-moz-selection,code[class*=\"language-\"]::-moz-selection,code[class*=\"language-\"] ::-moz-selection{text-shadow:none;background:#362d45}pre[class*=\"language-\"]::selection,pre[class*=\"language-\"] ::selection,code[class*=\"language-\"]::selection,code[class*=\"language-\"] ::selection{text-shadow:none;background:#362d45}@media print{code[class*=\"language-\"],pre[class*=\"language-\"]{text-shadow:none}}pre[class*=\"language-\"]{padding:1em;margin:0.5em 0;overflow:auto}:not(pre)>code[class*=\"language-\"],pre[class*=\"language-\"]{color:white}:not(pre)>code[class*=\"language-\"]{padding:0.1em;border-radius:0.3em;white-space:normal}.language-python .language-bash{background-color:#15141b!important;font-family:Consolas, Monaco, \"Andale Mono\", \"Ubuntu Mono\", monospace!important;font-weight:600!important;font-size:16px!important}.dark\\:bg-codeblock:is(.dark *){background-color:#15141b!important}.dark\\:ring-gray-800\\/50:is(.dark *){--tw-ring-color: #15141b !important}.codeblock-dark{background-color:#15141b!important;color:#edecee!important;font-size:20px!important}.dark .prose{color:#edecee!important;font-size:16px!important}.dark .prose p code{color:#ffca85!important}.dark .prose p code .comment{color:#6d6d6d!important}.dark .prose ul code{color:#ffca85!important}.dark .prose ul code .comment{color:#6d6d6d!important}.token.comment{color:#6d6d6d!important}pre .token.comment{color:#6d6d6d!important}code .token.comment{color:#6d6d6d!important}.prose a{color:#a277ff!important}.token.tag{color:#a277ff!important}.token.variable{color:#a277ff!important}.token.keyword{color:#a277ff!important}.token.operator{color:#a277ff!important}.token.attr-name{color:#a277ff!important}.token.punctuation{color:#a277ff!important}.token.constant{color:#a277ff!important}.token.string{color:#61ffca!important}.token.inserted{color:#61ffca!important}.token.changed{color:#ffca85!important}.token.function{color:#ffca85!important}.token.deleted{color:#ff6767!important}.token.builtin{color:#ffca85!important}.token.property{color:#ffca85!important}.token.class-name{color:#82e2ff!important}.token.important,.token.bold{font-weight:bold!important}.token.italic{font-style:italic!important}.language-bash{color:#ffca85!important}.language-bash .token{color:#ffca85!important;font-weight:700!important}"},{"filePath":"style.css","content":".dark .bg-codeblock{background-color:#15141b!important}"}],"page":{"pagePath":"api-reference/agents/resume-agent-run","slug":"/api-reference/agents/resume-agent-run","pageMetadata":{"title":"Resume Agent Run","description":"Resume a paused agent run.\n\nResumes a paused agent run, allowing it to continue processing.\n\nNote: Setup commands agents are automatically routed to their dedicated resume function.","deprecated":null,"version":null,"openapi":"api-reference/openapi3.json post /v1/organizations/{org_id}/agent/run/resume","href":"/api-reference/agents/resume-agent-run","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 p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Resume a paused agent run.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"Resumes a paused agent run, allowing it to continue processing.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"Note: Setup commands agents are automatically routed to their dedicated resume function.\"\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Resume Agent Run","description":"Resume a paused agent run.\n\nResumes a paused agent run, allowing it to continue processing.\n\nNote: Setup commands agents are automatically routed to their dedicated resume function.","deprecated":null,"version":null,"openapi":"api-reference/openapi3.json post /v1/organizations/{org_id}/agent/run/resume","href":"/api-reference/agents/resume-agent-run","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["agents","agents","agents"],"summary":"Resume Agent Run","description":"Resume a paused agent run.\n\nResumes a paused agent run, allowing it to continue processing.\n\nNote: Setup commands agents are automatically routed to their dedicated resume function.","operationId":"resume_agent_run_v1_organizations__org_id__agent_run_resume_post","parameters":["115c660b-0be8-42d7-98cc-da24152f3c58","9c57bbb5-efa6-4d16-b3fe-794cb1356953"],"requestBody":"922c6b42-84d3-47e7-9516-003ccc3de96a","responses":{"200":"617377d3-0968-4bc8-9a58-684d0621c5f1","403":"1048eb59-76fb-4af4-8ff8-03d1cfa82d4e","404":"d93a4fac-afdb-44a7-989a-a48d23b93af8","422":"46c24e42-bd85-4c66-8352-9c3d1f929659","429":"4d28aa99-0d34-48de-8bfc-7f62b0a929bb"},"method":"post","type":"path","servers":["6aaaf150-7b50-4baa-93f6-47ca640347bc"],"security":[],"path":"/v1/organizations/{org_id}/agent/run/resume","baseUrlOptions":["https://api.codegen.com"],"title":"Resume Agent Run","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"115c660b-0be8-42d7-98cc-da24152f3c58":{"name":"org_id","in":"path","required":true,"schema":{"type":"integer","title":"Org Id","isRequired":true,"uniqueKey":"","typeLabel":"integer"}},"9c57bbb5-efa6-4d16-b3fe-794cb1356953":{"name":"authorization","in":"header","required":false,"schema":{"title":"Authorization"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"agent_run_id":{"type":"integer","title":"Agent Run Id","isRequired":true,"uniqueKey":"agent_run_id","typeLabel":"integer"},"prompt":{"type":"string","title":"Prompt","isRequired":true,"uniqueKey":"prompt","typeLabel":"string"},"images":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"images.oneOf.0.items.[INDEX]","typeLabel":"string"},"title":"Images","description":"List of base64 encoded data URIs representing images to be processed by the agent","uniqueKey":"images.oneOf.0","typeLabel":"string[]"},{"type":"null","title":"Images","description":"List of base64 encoded data URIs representing images to be processed by the agent","uniqueKey":"images.oneOf.1","typeLabel":"null"}],"uniqueKey":"images","typeLabel":"string[] | null"}},"type":"object","required":["agent_run_id","prompt"],"title":"ResumeAgentRunInput","uniqueKey":"","typeLabel":"ResumeAgentRunInput · object"},"examples":{"Example":{"title":"Example","value":{"agent_run_id":123,"prompt":"\u003cstring>","images":["\u003cstring>"]}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"617377d3-0968-4bc8-9a58-684d0621c5f1":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer","title":"Id","isRequired":true,"uniqueKey":"id","typeLabel":"integer"},"organization_id":{"type":"integer","title":"Organization Id","isRequired":true,"uniqueKey":"organization_id","typeLabel":"integer"},"status":{"oneOf":[{"type":"string","title":"Status","uniqueKey":"status.oneOf.0","typeLabel":"string"},{"type":"null","title":"Status","uniqueKey":"status.oneOf.1","typeLabel":"null"}],"uniqueKey":"status","typeLabel":"string | null"},"created_at":{"oneOf":[{"type":"string","title":"Created At","uniqueKey":"created_at.oneOf.0","typeLabel":"string"},{"type":"null","title":"Created At","uniqueKey":"created_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"created_at","typeLabel":"string | null"},"web_url":{"oneOf":[{"type":"string","title":"Web Url","uniqueKey":"web_url.oneOf.0","typeLabel":"string"},{"type":"null","title":"Web Url","uniqueKey":"web_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"web_url","typeLabel":"string | null"},"result":{"oneOf":[{"type":"string","title":"Result","uniqueKey":"result.oneOf.0","typeLabel":"string"},{"type":"null","title":"Result","uniqueKey":"result.oneOf.1","typeLabel":"null"}],"uniqueKey":"result","typeLabel":"string | null"},"summary":{"oneOf":[{"type":"string","title":"Summary","uniqueKey":"summary.oneOf.0","typeLabel":"string"},{"type":"null","title":"Summary","uniqueKey":"summary.oneOf.1","typeLabel":"null"}],"uniqueKey":"summary","typeLabel":"string | null"},"source_type":{"oneOf":[{"type":"string","title":"ApiAgentRunSourceType","enum":["LOCAL","SLACK","GITHUB","GITHUB_CHECK_SUITE","GITHUB_PR_REVIEW","LINEAR","API","CHAT","JIRA","CLICKUP","MONDAY","SETUP_COMMANDS"],"uniqueKey":"source_type.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","uniqueKey":"source_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"source_type","typeLabel":"enum\u003cstring> | null"},"github_pull_requests":{"oneOf":[{"type":"array","items":{"properties":{"id":{"type":"integer","title":"Id","isRequired":true,"uniqueKey":"github_pull_requests.oneOf.0.items.[INDEX].id","typeLabel":"integer"},"created_at":{"type":"string","title":"Created At","isRequired":true,"uniqueKey":"github_pull_requests.oneOf.0.items.[INDEX].created_at","typeLabel":"string"},"title":{"oneOf":[{"type":"string","title":"Title","uniqueKey":"github_pull_requests.oneOf.0.items.[INDEX].title.oneOf.0","typeLabel":"string"},{"type":"null","title":"Title","uniqueKey":"github_pull_requests.oneOf.0.items.[INDEX].title.oneOf.1","typeLabel":"null"}],"uniqueKey":"github_pull_requests.oneOf.0.items.[INDEX].title","typeLabel":"string | null"},"url":{"oneOf":[{"type":"string","title":"Url","uniqueKey":"github_pull_requests.oneOf.0.items.[INDEX].url.oneOf.0","typeLabel":"string"},{"type":"null","title":"Url","uniqueKey":"github_pull_requests.oneOf.0.items.[INDEX].url.oneOf.1","typeLabel":"null"}],"uniqueKey":"github_pull_requests.oneOf.0.items.[INDEX].url","typeLabel":"string | null"},"head_branch_name":{"oneOf":[{"type":"string","title":"Head Branch Name","uniqueKey":"github_pull_requests.oneOf.0.items.[INDEX].head_branch_name.oneOf.0","typeLabel":"string"},{"type":"null","title":"Head Branch Name","uniqueKey":"github_pull_requests.oneOf.0.items.[INDEX].head_branch_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"github_pull_requests.oneOf.0.items.[INDEX].head_branch_name","typeLabel":"string | null"}},"type":"object","required":["id","created_at"],"title":"GithubPullRequestResponse","uniqueKey":"github_pull_requests.oneOf.0.items.[INDEX]","typeLabel":"GithubPullRequestResponse · object"},"title":"Github Pull Requests","uniqueKey":"github_pull_requests.oneOf.0","typeLabel":"GithubPullRequestResponse · object[]"},{"type":"null","title":"Github Pull Requests","uniqueKey":"github_pull_requests.oneOf.1","typeLabel":"null"}],"uniqueKey":"github_pull_requests","typeLabel":"GithubPullRequestResponse · object[] | null"},"metadata":{"oneOf":[{"type":"object","title":"Metadata","additionalProperties":true,"uniqueKey":"metadata.oneOf.0","typeLabel":"Metadata · object"},{"type":"null","title":"Metadata","uniqueKey":"metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"metadata","typeLabel":"Metadata · object | null"}},"type":"object","required":["id","organization_id"],"title":"AgentRunResponse","description":"Represents an agent run in API responses","uniqueKey":"","typeLabel":"AgentRunResponse · object"},"examples":{"Example":{"title":"Example","value":{"id":123,"organization_id":123,"status":"\u003cstring>","created_at":"\u003cstring>","web_url":"\u003cstring>","result":"\u003cstring>","summary":"\u003cstring>","source_type":"LOCAL","github_pull_requests":[{"id":123,"created_at":"\u003cstring>","title":"\u003cstring>","url":"\u003cstring>","head_branch_name":"\u003cstring>"}],"metadata":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"1048eb59-76fb-4af4-8ff8-03d1cfa82d4e":{"content":{"application/json":{"schema":{"properties":{"message":{"type":"string","title":"Message","default":"You do not have access to this organization.","uniqueKey":"message","typeLabel":"string"},"status_code":{"type":"integer","title":"Status Code","default":403,"uniqueKey":"status_code","typeLabel":"integer"}},"type":"object","title":"PermissionsErrorResponse","uniqueKey":"","typeLabel":"PermissionsErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"message":"You do not have access to this organization.","status_code":403}}},"exampleType":"generated"}},"description":"Forbidden","exampleType":"generated"},"d93a4fac-afdb-44a7-989a-a48d23b93af8":{"content":{"application/json":{"schema":{"properties":{"message":{"type":"string","title":"Message","default":"Agent run not found.","uniqueKey":"message","typeLabel":"string"},"status_code":{"type":"integer","title":"Status Code","default":404,"uniqueKey":"status_code","typeLabel":"integer"}},"type":"object","title":"AgentRunNotFoundErrorResponse","uniqueKey":"","typeLabel":"AgentRunNotFoundErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"message":"Agent run not found.","status_code":404}}},"exampleType":"generated"}},"description":"Not Found","exampleType":"generated"},"46c24e42-bd85-4c66-8352-9c3d1f929659":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"oneOf":[{"type":"string","uniqueKey":"detail.items.[INDEX].loc.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"integer","uniqueKey":"detail.items.[INDEX].loc.items.[INDEX].oneOf.1","typeLabel":"integer"}],"uniqueKey":"detail.items.[INDEX].loc.items.[INDEX]","typeLabel":"string | integer"},"type":"array","title":"Location","isRequired":true,"uniqueKey":"detail.items.[INDEX].loc","typeLabel":"(string | integer)[]"},"msg":{"type":"string","title":"Message","isRequired":true,"uniqueKey":"detail.items.[INDEX].msg","typeLabel":"string"},"type":{"type":"string","title":"Error Type","isRequired":true,"uniqueKey":"detail.items.[INDEX].type","typeLabel":"string"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError","uniqueKey":"detail.items.[INDEX]","typeLabel":"ValidationError · object"},"type":"array","title":"Detail","uniqueKey":"detail","typeLabel":"ValidationError · object[]"}},"type":"object","title":"HTTPValidationError","uniqueKey":"","typeLabel":"HTTPValidationError · object"},"examples":{"Example":{"title":"Example","value":{"detail":[{"loc":["\u003cstring>"],"msg":"\u003cstring>","type":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"4d28aa99-0d34-48de-8bfc-7f62b0a929bb":{"content":{"application/json":{"schema":{"properties":{"message":{"type":"string","title":"Message","default":"Rate limit exceeded. Please try again later.","uniqueKey":"message","typeLabel":"string"},"status_code":{"type":"integer","title":"Status Code","default":429,"uniqueKey":"status_code","typeLabel":"integer"}},"type":"object","title":"APIRateLimitErrorResponse","uniqueKey":"","typeLabel":"APIRateLimitErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"message":"Rate limit exceeded. Please try again later.","status_code":429}}},"exampleType":"generated"}},"description":"Too Many Requests","exampleType":"generated"}},"security":{},"servers":{"6aaaf150-7b50-4baa-93f6-47ca640347bc":{"url":"https://api.codegen.com","description":"Codegen API"}}},"originalFileLocation":"api-reference/openapi3.json"},"subdomain":"codegeninc","siteName":"Codegen","title":"Codegen - The SWE that Never Sleeps","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2025-10-07T00:27:58.554Z","originalFileLocation":"api-reference/agents/resume-agent-run.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Resume a paused agent run. Resumes a paused agent run, allowing it to continue processing. Note: Setup commands agents are automatically routed to their dedicated resume function.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Codegen\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/codegeninc/_lRXFMT4OI26HnBz/_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/codegeninc/_lRXFMT4OI26HnBz/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/codegeninc/_lRXFMT4OI26HnBz/_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/codegeninc/_lRXFMT4OI26HnBz/_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/codegeninc/_lRXFMT4OI26HnBz/_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/codegeninc/_lRXFMT4OI26HnBz/_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/codegeninc/_lRXFMT4OI26HnBz/_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/codegeninc/_lRXFMT4OI26HnBz/_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/codegeninc/_lRXFMT4OI26HnBz/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Codegen - The SWE that Never Sleeps\">\u003cmeta data-mint-head property=\"og:description\" content=\"Code agents accessible via API, Slack, Linear, Github, and more.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Codegen\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.codegen.com/api-reference/agents/resume-agent-run\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://codegeninc.mintlify.site/_mintlify/api/og/v2?division=agents\u0026amp;title=Resume+Agent+Run\u0026amp;description=Resume+a+paused+agent+run.%0A%0AResumes+a+paused+agent+run%2C+allowing+it+to+continue+processing.%0A%0ANote%3A+Setup+commands+agents+are+automatically+routed+to+their+dedic\u0026amp;theme=443ea72cc88eea1bdffd6d4c\u0026amp;signature=1aa0b403821adef838e8a3e98590f4261d94385bbeb0bea0c460c4f3a1ce0ca0\">\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=\"Codegen - The SWE that Never Sleeps\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Code agents accessible via API, Slack, Linear, Github, and more.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://codegeninc.mintlify.site/_mintlify/api/og/v2?division=agents\u0026amp;title=Resume+Agent+Run\u0026amp;description=Resume+a+paused+agent+run.%0A%0AResumes+a+paused+agent+run%2C+allowing+it+to+continue+processing.%0A%0ANote%3A+Setup+commands+agents+are+automatically+routed+to+their+dedic\u0026amp;theme=443ea72cc88eea1bdffd6d4c\u0026amp;signature=1aa0b403821adef838e8a3e98590f4261d94385bbeb0bea0c460c4f3a1ce0ca0\">\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/codegeninc/_lRXFMT4OI26HnBz/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Codegen\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#a277ff\">\u003cmeta data-mint-head name=\"og:locale\" content=\"en_US\">\u003cmeta data-mint-head name=\"og:logo\" content=\"https://i.imgur.com/f4OVOqI.png\">\u003cmeta data-mint-head name=\"article:publisher\" content=\"Codegen, Inc.\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.codegen.com/api-reference/agents/resume-agent-run\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/agents/resume-agent-run.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.codegen.com/#organization\",\"name\":\"Codegen\",\"url\":\"https://docs.codegen.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://cdn.prod.website-files.com/67070304751b9b01bf6a161c/679bcf45bf55446746125835_Codegen_Logomark_Light.svg\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.codegen.com#website\",\"name\":\"Codegen\",\"url\":\"https://docs.codegen.com\",\"publisher\":{\"@id\":\"https://docs.codegen.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.codegen.com/api-reference/agents/resume-agent-run#webpage\",\"url\":\"https://docs.codegen.com/api-reference/agents/resume-agent-run\",\"name\":\"Resume Agent Run\",\"description\":\"Resume a paused agent run. Resumes a paused agent run, allowing it to continue processing. Note: Setup commands agents are automatically routed to their dedicated resume function.\",\"dateModified\":\"2025-10-07T00:27:58.554Z\",\"isPartOf\":{\"@id\":\"https://docs.codegen.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.codegen.com/api-reference/agents/resume-agent-run#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.codegen.com/api-reference/agents/resume-agent-run#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://docs.codegen.com/api-reference/users/get-users\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"agents\",\"item\":\"https://docs.codegen.com/api-reference/agents/create-agent-run\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Resume Agent Run\",\"item\":\"https://docs.codegen.com/api-reference/agents/resume-agent-run\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.codegen.com/api-reference/agents/resume-agent-run#apireference\",\"headline\":\"Resume Agent Run\",\"name\":\"Resume Agent Run\",\"description\":\"Resume a paused agent run. Resumes a paused agent run, allowing it to continue processing. Note: Setup commands agents are automatically routed to their dedicated resume function.\",\"url\":\"https://docs.codegen.com/api-reference/agents/resume-agent-run\",\"mainEntityOfPage\":{\"@id\":\"https://docs.codegen.com/api-reference/agents/resume-agent-run#webpage\"},\"dateModified\":\"2025-10-07T00:27:58.554Z\",\"publisher\":{\"@id\":\"https://docs.codegen.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.codegen.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Codegen\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Codegen\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/agents/resume-agent-run.md","siteName":"Codegen","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction/overview"}]},{"tab":"API Reference","groups":[{"group":"Guides","pages":[{"title":"Codegen API","sidebarTitle":"Overview","icon":"code","href":"/api-reference/overview"},{"title":"Authentication","sidebarTitle":"Authentication","icon":"key","href":"/api-reference/authentication"},{"title":"Retrieving Traces","sidebarTitle":"Retrieving Traces","icon":"list","iconType":"solid","href":"/api-reference/agent-run-logs"}]},{"group":"Endpoints","pages":[{"group":"users","pages":[{"title":"Get Users","deprecated":null,"version":null,"openapi":"api-reference/openapi3.json get /v1/organizations/{org_id}/users","href":"/api-reference/users/get-users"},{"title":"Get User","deprecated":null,"version":null,"openapi":"api-reference/openapi3.json get /v1/organizations/{org_id}/users/{user_id}","href":"/api-reference/users/get-user"},{"title":"Get Current User Info","deprecated":null,"version":null,"openapi":"api-reference/openapi3.json get /v1/users/me","href":"/api-reference/users/get-current-user-info"}]},{"group":"agents","pages":[{"title":"Create Agent Run","deprecated":null,"version":null,"openapi":"api-reference/openapi3.json post /v1/organizations/{org_id}/agent/run","href":"/api-reference/agents/create-agent-run"},{"title":"Get Agent Run","deprecated":null,"version":null,"openapi":"api-reference/openapi3.json get /v1/organizations/{org_id}/agent/run/{agent_run_id}","href":"/api-reference/agents/get-agent-run"},{"title":"List Agent Runs","description":"List agent runs for an organization with optional user filtering.\n\nReturns a paginated list of agent runs for the specified organization.\nOptionally filter by user_id to get only agent runs initiated by a specific user.\nResults are ordered by creation date (newest first).\n\nRate limit: 60 requests per 30 seconds.","deprecated":null,"version":null,"openapi":"api-reference/openapi3.json get /v1/organizations/{org_id}/agent/runs","href":"/api-reference/agents/list-agent-runs"},{"title":"Resume Agent Run","deprecated":null,"version":null,"openapi":"api-reference/openapi3.json post /v1/organizations/{org_id}/agent/run/resume","href":"/api-reference/agents/resume-agent-run"},{"title":"Ban All Checks For Agent Run","description":"Ban all checks for a PR and stop all related agents.\n\nThis endpoint:\n1. Flags the PR to prevent future CI/CD check suite events from being processed\n2. Stops all current agents for that PR","deprecated":null,"version":null,"openapi":"api-reference/openapi3.json post /v1/organizations/{org_id}/agent/run/ban","href":"/api-reference/agents/ban-all-checks-for-agent-run"},{"title":"Unban All Checks For Agent Run","deprecated":null,"version":null,"openapi":"api-reference/openapi3.json post /v1/organizations/{org_id}/agent/run/unban","href":"/api-reference/agents/unban-all-checks-for-agent-run"},{"title":"Remove Codegen From Pr","deprecated":null,"version":null,"openapi":"api-reference/openapi3.json post /v1/organizations/{org_id}/agent/run/remove-from-pr","href":"/api-reference/agents/remove-codegen-from-pr"}]},{"group":"repositories","pages":[{"title":"Get Repositories","deprecated":null,"version":null,"openapi":"api-reference/openapi3.json get /v1/organizations/{org_id}/repos","href":"/api-reference/repositories/get-repositories"},{"title":"Get Check Suite Settings","deprecated":null,"version":null,"openapi":"api-reference/openapi3.json get /v1/organizations/{org_id}/repos/check-suite-settings","href":"/api-reference/repositories/get-check-suite-settings"},{"title":"Update Check Suite Settings","deprecated":null,"version":null,"openapi":"api-reference/openapi3.json put /v1/organizations/{org_id}/repos/check-suite-settings","href":"/api-reference/repositories/update-check-suite-settings"}]},{"group":"pull-requests","pages":[{"title":"Edit Pull Request Simple","deprecated":null,"version":null,"openapi":"api-reference/openapi3.json patch /v1/organizations/{org_id}/prs/{pr_id}","href":"/api-reference/pull-requests/edit-pull-request-simple"},{"title":"Edit Pull Request","deprecated":null,"version":null,"openapi":"api-reference/openapi3.json patch /v1/organizations/{org_id}/repos/{repo_id}/prs/{pr_id}","href":"/api-reference/pull-requests/edit-pull-request"}]},{"group":"integrations","pages":[{"title":"Get Organization Integrations Endpoint","deprecated":null,"version":null,"openapi":"api-reference/openapi3.json get /v1/organizations/{org_id}/integrations","href":"/api-reference/integrations/get-organization-integrations-endpoint"}]},{"group":"setup-commands","pages":[{"title":"Generate Setup Commands","deprecated":null,"version":null,"openapi":"api-reference/openapi3.json post /v1/organizations/{org_id}/setup-commands/generate","href":"/api-reference/setup-commands/generate-setup-commands"}]},{"group":"organizations","pages":[{"title":"Get Organizations","deprecated":null,"version":null,"openapi":"api-reference/openapi3.json get /v1/organizations","href":"/api-reference/organizations/get-organizations"},{"title":"Get Mcp Providers","deprecated":null,"version":null,"openapi":"api-reference/openapi3.json get /v1/mcp-providers","href":"/api-reference/organizations/get-mcp-providers"},{"title":"Get Oauth Token Status","deprecated":null,"version":null,"openapi":"api-reference/openapi3.json get /v1/oauth/tokens/status","href":"/api-reference/organizations/get-oauth-token-status"},{"title":"Revoke Oauth Token","deprecated":null,"version":null,"openapi":"api-reference/openapi3.json post /v1/oauth/tokens/revoke","href":"/api-reference/organizations/revoke-oauth-token"}]},{"group":"sandbox","pages":[{"title":"Analyze Sandbox Logs","deprecated":null,"version":null,"openapi":"api-reference/openapi3.json post /v1/organizations/{org_id}/sandbox/{sandbox_id}/analyze-logs","href":"/api-reference/sandbox/analyze-sandbox-logs"}]},{"group":"cli-rules","pages":[{"title":"Get Cli Rules","deprecated":null,"version":null,"openapi":"api-reference/openapi3.json get /v1/organizations/{org_id}/cli/rules","href":"/api-reference/cli-rules/get-cli-rules"}]},{"group":"slack-connect","pages":[{"title":"Generate Slack Connect Token Endpoint","deprecated":null,"version":null,"openapi":"api-reference/openapi3.json post /v1/slack-connect/generate-token","href":"/api-reference/slack-connect/generate-slack-connect-token-endpoint"}]},{"group":"agents-alpha","pages":[{"title":"Get Agent Run Logs","deprecated":null,"version":null,"openapi":"api-reference/openapi3.json get /v1/alpha/organizations/{org_id}/agent/run/{agent_run_id}/logs","href":"/api-reference/agents-alpha/get-agent-run-logs"}]}]}]}]},"basePath":"","title":"Codegen - The SWE that Never Sleeps","buildId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","deploymentId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-CybtLBIt.js","utils-BMLj2fvV.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-B6In562Y.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Dr8Mfhp9.js","snippetPresets-2rmQvMVl.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","Page-C4GwDT3_.js","ApiExamples-WMqJYdZj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CJ-MlPHu.js","shallow-dY3TMRCk.js","getApiPlaygroundDisplay-v-1B2bKm.js","CodeSnippet-BDhiTB7U.js","CodeSnippets-D9hnzQcS.js","getPastedJson-Th2V45jI.js","icon-BQXch1W9.js","MethodPill-BCqUneP3.js","DuplicateIcon-Q_-bhurZ.js","createIcon-DUjLHRqp.js","DynamicMarkdown-B-f2cqXQ.js","SectionHeading-Da5NsV4v.js","axios-vUo_bRtp.js","Markdown-D13FWkIM.js","clsx-D3Isdib3.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-C-XZBk9h.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink--qIqmmVG.js"]}