Either provide inline content (messages + task_states) or a snapshot_url
pointing at a presigned JSON download. Mixing both is rejected.
The inline form is the canonical shape used by export's GET response, so
snapshot → clean → rehydrate round-trips cleanly without serialization
changes.
Presigned GET URL whose body is a JSON-encoded TaskSnapshotEntity. Must be https; must resolve to a public address. When set, messages/task_states must be empty.
Required string length: 1 - 2083
Response
Successful Response
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Scale AI","colors":{"primary":"#3f2e7b","light":"#ca62ff","dark":"#3f2e7b"},"logo":{"light":"https://mintcdn.com/scalegp/TBmst1qiYXwYqUB5/logo/light.png?fit=max\u0026auto=format\u0026n=TBmst1qiYXwYqUB5\u0026q=85\u0026s=46027042c16b373ac463148db5ad1d6b","dark":"https://mintcdn.com/scalegp/TBmst1qiYXwYqUB5/logo/dark.png?fit=max\u0026auto=format\u0026n=TBmst1qiYXwYqUB5\u0026q=85\u0026s=02733f39d684d796ec742853eabf0de5"},"favicon":"https://mintcdn.com/scalegp/1vQnbXFkjbQbcgd1/favicon.png?fit=max\u0026auto=format\u0026n=1vQnbXFkjbQbcgd1\u0026q=85\u0026s=f52c84ba46a7cca58551673616dabe9c","background":{"decoration":"windows"},"navbar":{"links":[],"primary":{"type":"button","label":"Platform","href":"https://app.sgp.scale.com/"}},"footer":{"socials":{"x":"https://x.com/scale_ai","facebook":"https://www.facebook.com/scaleapi","linkedin":"https://www.linkedin.com/company/scaleai"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"scalegp","hasAudioNarration":false,"actualSubdomain":"scalegp","customDomains":["docs.gp.scale.com"],"gitSource":{"type":"github","owner":"scaleapi","repo":"sgp-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aecf0ec6829c68a2fb0d3c8","clientVersion":"0.0.4111","searchFilterCounts":[{"language":"default","tag":"API Reference","count":235},{"language":"default","tag":"AgentOps API","count":141},{"language":"default","tag":"Guides","count":131},{"language":"default","tag":"Agentex API","count":97},{"language":"default","tag":"Evaluations","count":72},{"language":"default","tag":"Dex API","count":48},{"language":"default","tag":"Agents","count":44},{"language":"default","tag":"Evaluation Datasets","count":34},{"language":"default","tag":"Models","count":32},{"language":"default","tag":"Knowledge Bases","count":31}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"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":"styles.css","content":"@font-face{font-family:'Aeonik';src:url('https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7W0Q5nw.woff2');font-weight:normal;font-style:normal;font-display:swap}h1,h2,h3{font-family:'aeonik';letter-spacing:normal!important}"}],"page":{"pagePath":"reference/agentex/task-retention/rehydrate-task","slug":"/reference/agentex/task-retention/rehydrate-task","pageMetadata":{"title":"Rehydrate Task","description":"Restore content-bearing rows from a snapshot.\n\nTwo modes:\n- Inline: caller provides messages and task_states in the request body.\n- URL: caller provides snapshot_url; Agentex downloads and parses it.\n\nRefuses if the task isn't currently in a cleaned state, or if any supplied\nmessage/state ID already exists in Mongo (catches double-rehydrate).","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /tasks/{task_id}/rehydrate","href":"/reference/agentex/task-retention/rehydrate-task","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 li: \"li\",\n p: \"p\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Restore content-bearing rows from a snapshot.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"Two modes:\"\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsx(_components.li, {\n children: \"Inline: caller provides messages and task_states in the request body.\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"URL: caller provides snapshot_url; Agentex downloads and parses it.\"\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"Refuses if the task isn’t currently in a cleaned state, or if any supplied\\nmessage/state ID already exists in Mongo (catches double-rehydrate).\"\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":"Rehydrate Task","description":"Restore content-bearing rows from a snapshot.\n\nTwo modes:\n- Inline: caller provides messages and task_states in the request body.\n- URL: caller provides snapshot_url; Agentex downloads and parses it.\n\nRefuses if the task isn't currently in a cleaned state, or if any supplied\nmessage/state ID already exists in Mongo (catches double-rehydrate).","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /tasks/{task_id}/rehydrate","href":"/reference/agentex/task-retention/rehydrate-task","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["task-retention"],"summary":"Rehydrate Task","description":"Restore content-bearing rows from a snapshot.\n\nTwo modes:\n- Inline: caller provides messages and task_states in the request body.\n- URL: caller provides snapshot_url; Agentex downloads and parses it.\n\nRefuses if the task isn't currently in a cleaned state, or if any supplied\nmessage/state ID already exists in Mongo (catches double-rehydrate).","operationId":"rehydrate_task_tasks__task_id__rehydrate_post","parameters":["754b8ba3-0bdc-46ff-a99c-e538dee301c4"],"requestBody":"1ed9352d-78b0-45c6-9c97-67d3b63e41ad","responses":{"204":"73101283-42fb-49b8-aa87-c6af1d834743","422":"9cc7b182-93cc-4b31-a94d-e8ee8c9ed91f"},"method":"post","type":"path","servers":[],"security":[],"path":"/tasks/{task_id}/rehydrate","baseUrlOptions":[],"title":"Rehydrate Task","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"754b8ba3-0bdc-46ff-a99c-e538dee301c4":{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id","isRequired":true,"uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"task_id":{"type":"string","title":"Task Id","isRequired":true,"uniqueKey":"task_id","typeLabel":"string"},"messages":{"items":{"properties":{"task_id":{"type":"string","title":"Task Id","description":"ID of the task this message belongs to","isRequired":true,"uniqueKey":"messages.items.[INDEX].task_id","typeLabel":"string"},"content":{"oneOf":[{"type":"object","title":"TextContentEntity","description":"The content of the message. This content is not OpenAI compatible. These are messages that are meant to be displayed to the user.","required":["author","content"],"properties":{"author":{"type":"string","enum":["user","agent"],"title":"MessageAuthor","description":"The role of the messages author, in this case `system`, `user`, `assistant`, or `tool`.","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.0.author","typeLabel":"enum\u003cstring>"},"content":{"type":"string","title":"Content","description":"The contents of the text message.","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.0.content","typeLabel":"string"},"type":{"type":"string","const":"text","title":"Type","description":"The type of the message, in this case `text`.","default":"text","uniqueKey":"messages.items.[INDEX].content.oneOf.0.type","typeLabel":"string"},"style":{"type":"string","enum":["static","active"],"title":"MessageStyle","description":"The style of the message. This is used by the client to determine how to display the message.","default":"static","uniqueKey":"messages.items.[INDEX].content.oneOf.0.style","typeLabel":"enum\u003cstring>"},"format":{"type":"string","enum":["markdown","plain","code"],"title":"TextFormat","description":"The format of the message. This is used by the client to determine how to display the message.","default":"plain","uniqueKey":"messages.items.[INDEX].content.oneOf.0.format","typeLabel":"enum\u003cstring>"},"attachments":{"oneOf":[{"type":"array","items":{"properties":{"file_id":{"type":"string","title":"File Id","description":"The unique ID of the attached file","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.0.attachments.oneOf.0.items.[INDEX].file_id","typeLabel":"string"},"name":{"type":"string","title":"Name","description":"The name of the file","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.0.attachments.oneOf.0.items.[INDEX].name","typeLabel":"string"},"size":{"type":"integer","title":"Size","description":"The size of the file in bytes","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.0.attachments.oneOf.0.items.[INDEX].size","typeLabel":"integer"},"type":{"type":"string","title":"Type","description":"The MIME type or content type of the file","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.0.attachments.oneOf.0.items.[INDEX].type","typeLabel":"string"}},"type":"object","required":["file_id","name","size","type"],"title":"FileAttachmentEntity","description":"Represents a file attachment in messages.","uniqueKey":"messages.items.[INDEX].content.oneOf.0.attachments.oneOf.0.items.[INDEX]","typeLabel":"FileAttachmentEntity · object"},"title":"Attachments","description":"Optional list of file attachments with structured metadata.","uniqueKey":"messages.items.[INDEX].content.oneOf.0.attachments.oneOf.0","typeLabel":"FileAttachmentEntity · object[]"},{"type":"null","title":"Attachments","description":"Optional list of file attachments with structured metadata.","uniqueKey":"messages.items.[INDEX].content.oneOf.0.attachments.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].content.oneOf.0.attachments","typeLabel":"FileAttachmentEntity · object[] | null"}},"isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.0","typeLabel":"TextContentEntity · object"},{"type":"object","title":"DataContentEntity","description":"The content of the message. This content is not OpenAI compatible. These are messages that are meant to be displayed to the user.","required":["author","data"],"properties":{"author":{"type":"string","enum":["user","agent"],"title":"MessageAuthor","description":"The role of the messages author, in this case `system`, `user`, `assistant`, or `tool`.","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.author","typeLabel":"enum\u003cstring>"},"data":{"additionalProperties":true,"type":"object","title":"Data","description":"The contents of the data message.","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.data","typeLabel":"Data · object"},"type":{"type":"string","const":"data","title":"Type","description":"The type of the message, in this case `data`.","default":"data","uniqueKey":"messages.items.[INDEX].content.oneOf.1.type","typeLabel":"string"},"style":{"type":"string","enum":["static","active"],"title":"MessageStyle","description":"The style of the message. This is used by the client to determine how to display the message.","default":"static","uniqueKey":"messages.items.[INDEX].content.oneOf.1.style","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1","typeLabel":"DataContentEntity · object"},{"type":"object","title":"ToolRequestContentEntity","description":"The content of the message. This content is not OpenAI compatible. These are messages that are meant to be displayed to the user.","required":["author","tool_call_id","name","arguments"],"properties":{"author":{"type":"string","enum":["user","agent"],"title":"MessageAuthor","description":"The role of the messages author, in this case `system`, `user`, `assistant`, or `tool`.","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.2.author","typeLabel":"enum\u003cstring>"},"tool_call_id":{"type":"string","title":"Tool Call Id","description":"The ID of the tool call that is being requested.","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.2.tool_call_id","typeLabel":"string"},"name":{"type":"string","title":"Name","description":"The name of the tool that is being requested.","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.2.name","typeLabel":"string"},"arguments":{"additionalProperties":true,"type":"object","title":"Arguments","description":"The arguments to the tool.","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.2.arguments","typeLabel":"Arguments · object"},"type":{"type":"string","const":"tool_request","title":"Type","description":"The type of the message, in this case `tool_request`.","default":"tool_request","uniqueKey":"messages.items.[INDEX].content.oneOf.2.type","typeLabel":"string"},"style":{"type":"string","enum":["static","active"],"title":"MessageStyle","description":"The style of the message. This is used by the client to determine how to display the message.","default":"static","uniqueKey":"messages.items.[INDEX].content.oneOf.2.style","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.2","typeLabel":"ToolRequestContentEntity · object"},{"type":"object","title":"ToolResponseContentEntity","description":"The content of the message. This content is not OpenAI compatible. These are messages that are meant to be displayed to the user.","required":["author","tool_call_id","name","content"],"properties":{"author":{"type":"string","enum":["user","agent"],"title":"MessageAuthor","description":"The role of the messages author, in this case `system`, `user`, `assistant`, or `tool`.","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.3.author","typeLabel":"enum\u003cstring>"},"tool_call_id":{"type":"string","title":"Tool Call Id","description":"The ID of the tool call that is being responded to.","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.3.tool_call_id","typeLabel":"string"},"name":{"type":"string","title":"Name","description":"The name of the tool that is being responded to.","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.3.name","typeLabel":"string"},"content":{"title":"Content","description":"The result of the tool.","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.3.content","typeLabel":"any"},"type":{"type":"string","const":"tool_response","title":"Type","description":"The type of the message, in this case `tool_response`.","default":"tool_response","uniqueKey":"messages.items.[INDEX].content.oneOf.3.type","typeLabel":"string"},"style":{"type":"string","enum":["static","active"],"title":"MessageStyle","description":"The style of the message. This is used by the client to determine how to display the message.","default":"static","uniqueKey":"messages.items.[INDEX].content.oneOf.3.style","typeLabel":"enum\u003cstring>"},"is_error":{"oneOf":[{"type":"boolean","title":"Is Error","description":"Whether the tool call resulted in an error. `None` when the harness does not report a status.","uniqueKey":"messages.items.[INDEX].content.oneOf.3.is_error.oneOf.0","typeLabel":"boolean"},{"type":"null","title":"Is Error","description":"Whether the tool call resulted in an error. `None` when the harness does not report a status.","uniqueKey":"messages.items.[INDEX].content.oneOf.3.is_error.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].content.oneOf.3.is_error","typeLabel":"boolean | null"}},"isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.3","typeLabel":"ToolResponseContentEntity · object"},{"type":"object","title":"ReasoningContentEntity","description":"The content of the message. This content is not OpenAI compatible. These are messages that are meant to be displayed to the user.","required":["author","summary"],"properties":{"author":{"type":"string","enum":["user","agent"],"title":"MessageAuthor","description":"The role of the messages author, in this case `system`, `user`, `assistant`, or `tool`.","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.4.author","typeLabel":"enum\u003cstring>"},"summary":{"items":{"type":"string","uniqueKey":"messages.items.[INDEX].content.oneOf.4.summary.items.[INDEX]","typeLabel":"string"},"type":"array","title":"Summary","description":"A list of short reasoning summaries","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.4.summary","typeLabel":"string[]"},"type":{"type":"string","const":"reasoning","title":"Type","description":"The type of the message, in this case `reasoning`.","default":"reasoning","uniqueKey":"messages.items.[INDEX].content.oneOf.4.type","typeLabel":"string"},"style":{"type":"string","enum":["static","active"],"title":"MessageStyle","description":"The style of the message. This is used by the client to determine how to display the message.","default":"static","uniqueKey":"messages.items.[INDEX].content.oneOf.4.style","typeLabel":"enum\u003cstring>"},"content":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"messages.items.[INDEX].content.oneOf.4.content.oneOf.0.items.[INDEX]","typeLabel":"string"},"title":"Content","description":"The reasoning content or chain-of-thought text","uniqueKey":"messages.items.[INDEX].content.oneOf.4.content.oneOf.0","typeLabel":"string[]"},{"type":"null","title":"Content","description":"The reasoning content or chain-of-thought text","uniqueKey":"messages.items.[INDEX].content.oneOf.4.content.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].content.oneOf.4.content","typeLabel":"string[] | null"}},"isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.4","typeLabel":"ReasoningContentEntity · object"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].content","typeLabel":"TextContentEntity · object | DataContentEntity · object | ToolRequestContentEntity · object | ToolResponseContentEntity · object | ReasoningContentEntity · object"},"id":{"oneOf":[{"type":"string","title":"Id","description":"The task message's unique id","uniqueKey":"messages.items.[INDEX].id.oneOf.0","typeLabel":"string"},{"type":"null","title":"Id","description":"The task message's unique id","uniqueKey":"messages.items.[INDEX].id.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].id","typeLabel":"string | null"},"streaming_status":{"oneOf":[{"type":"string","title":"In case of streaming, this indicates whether the message is still being streamed or has been completed","enum":["IN_PROGRESS","DONE"],"uniqueKey":"messages.items.[INDEX].streaming_status.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","title":"In case of streaming, this indicates whether the message is still being streamed or has been completed","uniqueKey":"messages.items.[INDEX].streaming_status.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].streaming_status","typeLabel":"enum\u003cstring> | null"},"created_at":{"oneOf":[{"type":"string","title":"Created At","description":"The timestamp when the message was created","format":"date-time","uniqueKey":"messages.items.[INDEX].created_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","title":"Created At","description":"The timestamp when the message was created","uniqueKey":"messages.items.[INDEX].created_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].created_at","typeLabel":"string\u003cdate-time> | null"},"updated_at":{"oneOf":[{"type":"string","title":"Updated At","description":"The timestamp when the message was last updated","format":"date-time","uniqueKey":"messages.items.[INDEX].updated_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","title":"Updated At","description":"The timestamp when the message was last updated","uniqueKey":"messages.items.[INDEX].updated_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].updated_at","typeLabel":"string\u003cdate-time> | null"}},"type":"object","required":["task_id","content"],"title":"TaskMessageEntity","description":"Represents a message in the agent system.\n\nThis entity is used to store messages in MongoDB, with each message\nassociated with a specific task.","uniqueKey":"messages.items.[INDEX]","typeLabel":"TaskMessageEntity · object"},"type":"array","title":"Messages","uniqueKey":"messages","typeLabel":"TaskMessageEntity · object[]"},"task_states":{"items":{"properties":{"task_id":{"type":"string","title":"Task Id","description":"ID of the task this state belongs to. The combination of task_id and agent_id is globally unique.","isRequired":true,"uniqueKey":"task_states.items.[INDEX].task_id","typeLabel":"string"},"agent_id":{"type":"string","title":"Agent Id","description":"ID of the agent this state belongs to. The combination of task_id and agent_id is globally unique.","isRequired":true,"uniqueKey":"task_states.items.[INDEX].agent_id","typeLabel":"string"},"state":{"additionalProperties":true,"type":"object","title":"State","description":"The state object that contains arbitrary data","isRequired":true,"uniqueKey":"task_states.items.[INDEX].state","typeLabel":"State · object"},"id":{"oneOf":[{"type":"string","title":"Id","description":"The task state's unique id","uniqueKey":"task_states.items.[INDEX].id.oneOf.0","typeLabel":"string"},{"type":"null","title":"Id","description":"The task state's unique id","uniqueKey":"task_states.items.[INDEX].id.oneOf.1","typeLabel":"null"}],"uniqueKey":"task_states.items.[INDEX].id","typeLabel":"string | null"},"created_at":{"oneOf":[{"type":"string","title":"Created At","description":"The timestamp when the state was created","format":"date-time","uniqueKey":"task_states.items.[INDEX].created_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","title":"Created At","description":"The timestamp when the state was created","uniqueKey":"task_states.items.[INDEX].created_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"task_states.items.[INDEX].created_at","typeLabel":"string\u003cdate-time> | null"},"updated_at":{"oneOf":[{"type":"string","title":"Updated At","description":"The timestamp when the state was last updated","format":"date-time","uniqueKey":"task_states.items.[INDEX].updated_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","title":"Updated At","description":"The timestamp when the state was last updated","uniqueKey":"task_states.items.[INDEX].updated_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"task_states.items.[INDEX].updated_at","typeLabel":"string\u003cdate-time> | null"}},"type":"object","required":["task_id","agent_id","state"],"title":"StateEntity","description":"Represents a state in the agent system. A state is associated uniquely with a task and an agent.\n\nThis entity is used to store states in MongoDB, with each state\nassociated with a specific task and agent. The combination of task_id and agent_id is globally unique.\n\nThe state is a dictionary of arbitrary data.","uniqueKey":"task_states.items.[INDEX]","typeLabel":"StateEntity · object"},"type":"array","title":"Task States","uniqueKey":"task_states","typeLabel":"StateEntity · object[]"},"snapshot_url":{"oneOf":[{"type":"string","title":"Snapshot Url","description":"Presigned GET URL whose body is a JSON-encoded TaskSnapshotEntity. Must be https; must resolve to a public address. When set, messages/task_states must be empty.","format":"uri","maxLength":2083,"minLength":1,"uniqueKey":"snapshot_url.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","title":"Snapshot Url","description":"Presigned GET URL whose body is a JSON-encoded TaskSnapshotEntity. Must be https; must resolve to a public address. When set, messages/task_states must be empty.","uniqueKey":"snapshot_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"snapshot_url","typeLabel":"string\u003curi> | null"}},"type":"object","required":["task_id"],"title":"RehydrateTaskRequest","description":"Either provide inline content (messages + task_states) or a snapshot_url\npointing at a presigned JSON download. Mixing both is rejected.\n\nThe inline form is the canonical shape used by export's GET response, so\nsnapshot → clean → rehydrate round-trips cleanly without serialization\nchanges.","uniqueKey":"","typeLabel":"RehydrateTaskRequest · object"},"examples":{"Example":{"title":"Example","value":{"task_id":"\u003cstring>","messages":[{"task_id":"\u003cstring>","content":{"content":"\u003cstring>","type":"text","style":"static","format":"plain","attachments":[{"file_id":"\u003cstring>","name":"\u003cstring>","size":123,"type":"\u003cstring>"}]},"id":"\u003cstring>","created_at":"2023-11-07T05:31:56Z","updated_at":"2023-11-07T05:31:56Z"}],"task_states":[{"task_id":"\u003cstring>","agent_id":"\u003cstring>","state":{},"id":"\u003cstring>","created_at":"2023-11-07T05:31:56Z","updated_at":"2023-11-07T05:31:56Z"}],"snapshot_url":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"73101283-42fb-49b8-aa87-c6af1d834743":{"description":"Successful Response","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"9cc7b182-93cc-4b31-a94d-e8ee8c9ed91f":{"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"},"input":{"oneOf":[{"title":"Input"}],"uniqueKey":"detail.items.[INDEX].input","typeLabel":"any"},"ctx":{"type":"object","title":"Context","uniqueKey":"detail.items.[INDEX].ctx","typeLabel":"Context · object"}},"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>","input":"\u003cunknown>","ctx":{}}]}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{},"servers":{}},"originalFileLocation":"https://agentex.dev-sgp.scale.com/openapi.json"},"subdomain":"scalegp","siteName":"Scale AI","title":"Rehydrate Task - Scale AI","navMaps":{"firstHrefInVersion":{"V5":{"href":"/reference/agentex/task-retention/rehydrate-task","matchLevel":0},"V4 (legacy)":{"href":"/home","matchLevel":4}},"firstHrefInLanguage":{}},"lastModified":"2026-11-05T21:11:42.454Z","originalFileLocation":"reference/agentex/task-retention/rehydrate-task.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=\"Restore content-bearing rows from a snapshot. Two modes: - Inline: caller provides messages and task_states in the request body. - URL: caller provides snapshot_url; Agentex downloads and parses it. Refuses if the task isn\u0026#x27;t currently in a cleaned state, or if any supplied message/state ID already exists in Mongo (catches double-rehydrate).\">\u003cmeta data-mint-head name=\"application-name\" content=\"Scale AI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/scalegp/UksUEh3sxckFW0X-/_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/scalegp/UksUEh3sxckFW0X-/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/scalegp/UksUEh3sxckFW0X-/_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/scalegp/UksUEh3sxckFW0X-/_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/scalegp/UksUEh3sxckFW0X-/_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/scalegp/UksUEh3sxckFW0X-/_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/scalegp/UksUEh3sxckFW0X-/_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/scalegp/UksUEh3sxckFW0X-/_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/scalegp/UksUEh3sxckFW0X-/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Rehydrate Task - Scale AI\">\u003cmeta data-mint-head property=\"og:description\" content=\"Restore content-bearing rows from a snapshot. Two modes: - Inline: caller provides messages and task_states in the request body. - URL: caller provides snapshot_url; Agentex downloads and parses it. Refuses if the task isn\u0026#x27;t currently in a cleaned state, or if any supplied message/state ID already exists in Mongo (catches double-rehydrate).\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Scale AI\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.gp.scale.com/reference/agentex/task-retention/rehydrate-task\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://scalegp.mintlify.site/_mintlify/api/og/v2?division=task-retention\u0026amp;title=Rehydrate+Task\u0026amp;description=Restore+content-bearing+rows+from+a+snapshot.%0A%0ATwo+modes%3A%0A-+Inline%3A+caller+provides+messages+and+task_states+in+the+request+body.%0A-+URL%3A+caller+provides+snapsho\u0026amp;theme=e46b44765a807e25b9d1c907\u0026amp;signature=deea5bc0d15005866483485022bb7c19a3a378bc75dc1c1a53dce816b96ab677\">\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=\"Rehydrate Task - Scale AI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Restore content-bearing rows from a snapshot. Two modes: - Inline: caller provides messages and task_states in the request body. - URL: caller provides snapshot_url; Agentex downloads and parses it. Refuses if the task isn\u0026#x27;t currently in a cleaned state, or if any supplied message/state ID already exists in Mongo (catches double-rehydrate).\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://scalegp.mintlify.site/_mintlify/api/og/v2?division=task-retention\u0026amp;title=Rehydrate+Task\u0026amp;description=Restore+content-bearing+rows+from+a+snapshot.%0A%0ATwo+modes%3A%0A-+Inline%3A+caller+provides+messages+and+task_states+in+the+request+body.%0A-+URL%3A+caller+provides+snapsho\u0026amp;theme=e46b44765a807e25b9d1c907\u0026amp;signature=deea5bc0d15005866483485022bb7c19a3a378bc75dc1c1a53dce816b96ab677\">\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/scalegp/UksUEh3sxckFW0X-/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Scale AI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3f2e7b\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.gp.scale.com/reference/agentex/task-retention/rehydrate-task\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/reference/agentex/task-retention/rehydrate-task.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.gp.scale.com/#organization\",\"name\":\"Scale AI\",\"url\":\"https://docs.gp.scale.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/scalegp/TBmst1qiYXwYqUB5/logo/light.png?fit=max\u0026auto=format\u0026n=TBmst1qiYXwYqUB5\u0026q=85\u0026s=46027042c16b373ac463148db5ad1d6b\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.gp.scale.com#website\",\"name\":\"Scale AI\",\"url\":\"https://docs.gp.scale.com\",\"publisher\":{\"@id\":\"https://docs.gp.scale.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.gp.scale.com/reference/agentex/task-retention/rehydrate-task#webpage\",\"url\":\"https://docs.gp.scale.com/reference/agentex/task-retention/rehydrate-task\",\"name\":\"Rehydrate Task\",\"description\":\"Restore content-bearing rows from a snapshot. Two modes: - Inline: caller provides messages and task_states in the request body. - URL: caller provides snapshot_url; Agentex downloads and parses it. Refuses if the task isn't currently in a cleaned state, or if any supplied message/state ID already exists in Mongo (catches double-rehydrate).\",\"dateModified\":\"2026-11-05T21:11:42.454Z\",\"isPartOf\":{\"@id\":\"https://docs.gp.scale.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.gp.scale.com/reference/agentex/task-retention/rehydrate-task#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.gp.scale.com/reference/agentex/task-retention/rehydrate-task#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"task-retention\",\"item\":\"https://docs.gp.scale.com/reference/agentex/task-retention/export-task\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Rehydrate Task\",\"item\":\"https://docs.gp.scale.com/reference/agentex/task-retention/rehydrate-task\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.gp.scale.com/reference/agentex/task-retention/rehydrate-task#apireference\",\"headline\":\"Rehydrate Task\",\"name\":\"Rehydrate Task\",\"description\":\"Restore content-bearing rows from a snapshot. Two modes: - Inline: caller provides messages and task_states in the request body. - URL: caller provides snapshot_url; Agentex downloads and parses it. Refuses if the task isn't currently in a cleaned state, or if any supplied message/state ID already exists in Mongo (catches double-rehydrate).\",\"url\":\"https://docs.gp.scale.com/reference/agentex/task-retention/rehydrate-task\",\"mainEntityOfPage\":{\"@id\":\"https://docs.gp.scale.com/reference/agentex/task-retention/rehydrate-task#webpage\"},\"dateModified\":\"2026-11-05T21:11:42.454Z\",\"publisher\":{\"@id\":\"https://docs.gp.scale.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.gp.scale.com#website\"}}]}\u003c/script>","agentPointerHref":"/reference/agentex/task-retention/rehydrate-task.md","siteName":"Scale AI","nav":{"global":null,"versions":[{"version":"V5","tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/docs/v5/overview"}]},{"tab":"AgentOps API","pages":[{"title":"AgentOps API","href":"/reference/v5/inference/run-inference-with-free-form-payload"}]},{"tab":"AgentOps SDK","href":"https://scaleapi.github.io/sgp-sdk-docs/api/python/"},{"tab":"Agentex API","groups":[{"group":"Agents","pages":[{"title":"Get Agent by ID","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json get /agents/{agent_id}","href":"/reference/agentex/agents/get-agent-by-id"},{"title":"Delete Agent by ID","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json delete /agents/{agent_id}","href":"/reference/agentex/agents/delete-agent-by-id"},{"title":"Get Agent by Name","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json get /agents/name/{agent_name}","href":"/reference/agentex/agents/get-agent-by-name"},{"title":"Delete Agent by Name","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json delete /agents/name/{agent_name}","href":"/reference/agentex/agents/delete-agent-by-name"},{"title":"List Agents","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json get /agents","href":"/reference/agentex/agents/list-agents"},{"title":"Register Agent","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /agents/register","href":"/reference/agentex/agents/register-agent"},{"title":"Register Build","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /agents/register-build","href":"/reference/agentex/agents/register-build"},{"title":"Get Registration Policy","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json get /agents/{agent_id}/registration-policy","href":"/reference/agentex/agents/get-registration-policy"},{"title":"Set Registration Policy","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json put /agents/{agent_id}/registration-policy","href":"/reference/agentex/agents/set-registration-policy"},{"title":"Provision an Internal Credential","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /agents/{agent_id}/internal-key","href":"/reference/agentex/agents/provision-an-internal-credential"},{"title":"Forward GET request to agent by name","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json get /agents/forward/name/{agent_name}/{path}","href":"/reference/agentex/agents/forward-get-request-to-agent-by-name"},{"title":"Forward POST request to agent by name","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /agents/forward/name/{agent_name}/{path}","href":"/reference/agentex/agents/forward-post-request-to-agent-by-name"},{"title":"Handle Agent RPC by ID","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /agents/{agent_id}/rpc","href":"/reference/agentex/agents/handle-agent-rpc-by-id"},{"title":"Handle Agent RPC by Name","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /agents/name/{agent_name}/rpc","href":"/reference/agentex/agents/handle-agent-rpc-by-name"}]},{"group":"Tasks","pages":[{"title":"Get Task by ID","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json get /tasks/{task_id}","href":"/reference/agentex/tasks/get-task-by-id"},{"title":"Update Task by ID","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json put /tasks/{task_id}","href":"/reference/agentex/tasks/update-task-by-id"},{"title":"Delete Task by ID","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json delete /tasks/{task_id}","href":"/reference/agentex/tasks/delete-task-by-id"},{"title":"Get Task by Name","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json get /tasks/name/{task_name}","href":"/reference/agentex/tasks/get-task-by-name"},{"title":"Update Task by Name","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json put /tasks/name/{task_name}","href":"/reference/agentex/tasks/update-task-by-name"},{"title":"Delete Task by Name","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json delete /tasks/name/{task_name}","href":"/reference/agentex/tasks/delete-task-by-name"},{"title":"List Tasks","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json get /tasks","href":"/reference/agentex/tasks/list-tasks"},{"title":"Complete Task","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /tasks/{task_id}/complete","href":"/reference/agentex/tasks/complete-task"},{"title":"Fail Task","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /tasks/{task_id}/fail","href":"/reference/agentex/tasks/fail-task"},{"title":"Cancel Task","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /tasks/{task_id}/cancel","href":"/reference/agentex/tasks/cancel-task"},{"title":"Interrupt Task","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /tasks/{task_id}/interrupt","href":"/reference/agentex/tasks/interrupt-task"},{"title":"Terminate Task","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /tasks/{task_id}/terminate","href":"/reference/agentex/tasks/terminate-task"},{"title":"Timeout Task","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /tasks/{task_id}/timeout","href":"/reference/agentex/tasks/timeout-task"},{"title":"Stream Task Events by ID","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json get /tasks/{task_id}/stream","href":"/reference/agentex/tasks/stream-task-events-by-id"},{"title":"Stream Task Events by Name","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json get /tasks/name/{task_name}/stream","href":"/reference/agentex/tasks/stream-task-events-by-name"},{"title":"Query Task Workflow","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json get /tasks/{task_id}/query/{query_name}","href":"/reference/agentex/tasks/query-task-workflow"}]},{"group":"Messages","pages":[{"title":"Batch Update Messages","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json put /messages/batch","href":"/reference/agentex/messages/batch-update-messages"},{"title":"Batch Create Messages","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /messages/batch","href":"/reference/agentex/messages/batch-create-messages"},{"title":"List Messages","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json get /messages","href":"/reference/agentex/messages/list-messages"},{"title":"Create Message","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /messages","href":"/reference/agentex/messages/create-message"},{"title":"Get Message","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json get /messages/{message_id}","href":"/reference/agentex/messages/get-message"},{"title":"Update Message","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json put /messages/{message_id}","href":"/reference/agentex/messages/update-message"},{"title":"List Messages Paginated","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json get /messages/paginated","href":"/reference/agentex/messages/list-messages-paginated"}]},{"group":"Spans","pages":[{"title":"List Spans","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json get /spans","href":"/reference/agentex/spans/list-spans"},{"title":"Create Span","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /spans","href":"/reference/agentex/spans/create-span"},{"title":"Get Span","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json get /spans/{span_id}","href":"/reference/agentex/spans/get-span"},{"title":"Partial Update Span","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json patch /spans/{span_id}","href":"/reference/agentex/spans/partial-update-span"}]},{"group":"States","pages":[{"title":"List States","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json get /states","href":"/reference/agentex/states/list-states"},{"title":"Create Task State","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /states","href":"/reference/agentex/states/create-task-state"},{"title":"Get State by State ID","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json get /states/{state_id}","href":"/reference/agentex/states/get-state-by-state-id"},{"title":"Update Task State","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json put /states/{state_id}","href":"/reference/agentex/states/update-task-state"},{"title":"Delete Task State","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json delete /states/{state_id}","href":"/reference/agentex/states/delete-task-state"}]},{"group":"Events","pages":[{"title":"Get Event","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json get /events/{event_id}","href":"/reference/agentex/events/get-event"},{"title":"List Events","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json get /events","href":"/reference/agentex/events/list-events"}]},{"group":"Slack","pages":[{"title":"Slack Events API ingress for the @agent app","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /slack/events","href":"/reference/agentex/slack/slack-events-api-ingress-for-the-@agent-app"},{"title":"Slack slash-command ingress (e.g. /agents)","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /slack/commands","href":"/reference/agentex/slack/slack-slash-command-ingress-eg-agents"},{"title":"Slack interactivity ingress (modals, shortcuts)","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /slack/interactions","href":"/reference/agentex/slack/slack-interactivity-ingress-modals-shortcuts"}]},{"group":"Agent Task Tracker","pages":[{"title":"Get Agent Task Tracker","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json get /tracker/{tracker_id}","href":"/reference/agentex/agent-task-tracker/get-agent-task-tracker"},{"title":"Update Agent Task Tracker","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json put /tracker/{tracker_id}","href":"/reference/agentex/agent-task-tracker/update-agent-task-tracker"},{"title":"List Agent Task Trackers","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json get /tracker","href":"/reference/agentex/agent-task-tracker/list-agent-task-trackers"}]},{"group":"Agent APIKeys","pages":[{"title":"List API keys for an agent ID","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json get /agent_api_keys","href":"/reference/agentex/agent-apikeys/list-api-keys-for-an-agent-id"},{"title":"Create Api Key","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /agent_api_keys","href":"/reference/agentex/agent-apikeys/create-api-key"},{"title":"Create Webhook Trigger","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /agent_api_keys/webhook-trigger","href":"/reference/agentex/agent-apikeys/create-webhook-trigger"},{"title":"Return named API key for the agent ID","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json get /agent_api_keys/name/{name}","href":"/reference/agentex/agent-apikeys/return-named-api-key-for-the-agent-id"},{"title":"Return the API key by ID","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json get /agent_api_keys/{id}","href":"/reference/agentex/agent-apikeys/return-the-api-key-by-id"},{"title":"Delete API key by ID","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json delete /agent_api_keys/{id}","href":"/reference/agentex/agent-apikeys/delete-api-key-by-id"},{"title":"Delete API key by name","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json delete /agent_api_keys/name/{api_key_name}","href":"/reference/agentex/agent-apikeys/delete-api-key-by-name"}]},{"group":"Linear","pages":[{"title":"Linear agent webhook ingress for the @agentex app","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /linear/events","href":"/reference/agentex/linear/linear-agent-webhook-ingress-for-the-@agentex-app"}]},{"group":"Integrations","pages":[{"title":"Confirm linking a Slack identity to SGP","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json get /integrations/slack/link","href":"/reference/agentex/integrations/confirm-linking-a-slack-identity-to-sgp"},{"title":"Complete a Slack identity link","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /integrations/slack/link","href":"/reference/agentex/integrations/complete-a-slack-identity-link"}]},{"group":"Deployment History","pages":[{"title":"Get Deployment by ID","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json get /deployment-history/{deployment_id}","href":"/reference/agentex/deployment-history/get-deployment-by-id"},{"title":"List Deployments for an agent","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json get /deployment-history","href":"/reference/agentex/deployment-history/list-deployments-for-an-agent"}]},{"group":"Deployments","pages":[{"title":"List Deployments","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json get /agents/{agent_id}/deployments","href":"/reference/agentex/deployments/list-deployments"},{"title":"Create Deployment","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /agents/{agent_id}/deployments","href":"/reference/agentex/deployments/create-deployment"},{"title":"Get Deployment","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json get /agents/{agent_id}/deployments/{deployment_id}","href":"/reference/agentex/deployments/get-deployment"},{"title":"Delete Deployment","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json delete /agents/{agent_id}/deployments/{deployment_id}","href":"/reference/agentex/deployments/delete-deployment"},{"title":"Promote Deployment","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /agents/{agent_id}/deployments/{deployment_id}/promote","href":"/reference/agentex/deployments/promote-deployment"},{"title":"Preview RPC","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /agents/{agent_id}/deployments/{deployment_id}/rpc","href":"/reference/agentex/deployments/preview-rpc"}]},{"group":"Schedules","pages":[{"title":"List Run Schedules","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json get /agents/{agent_id}/schedules","href":"/reference/agentex/schedules/list-run-schedules"},{"title":"Create Run Schedule","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /agents/{agent_id}/schedules","href":"/reference/agentex/schedules/create-run-schedule"},{"title":"Get Run Schedule By Name","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json get /agents/{agent_id}/schedules/name/{name}","href":"/reference/agentex/schedules/get-run-schedule-by-name"},{"title":"Delete Run Schedule By Name","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json delete /agents/{agent_id}/schedules/name/{name}","href":"/reference/agentex/schedules/delete-run-schedule-by-name"},{"title":"Update Run Schedule By Name","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json patch /agents/{agent_id}/schedules/name/{name}","href":"/reference/agentex/schedules/update-run-schedule-by-name"},{"title":"Get Run Schedule","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json get /agents/{agent_id}/schedules/{schedule_id}","href":"/reference/agentex/schedules/get-run-schedule"},{"title":"Delete Run Schedule","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json delete /agents/{agent_id}/schedules/{schedule_id}","href":"/reference/agentex/schedules/delete-run-schedule"},{"title":"Update Run Schedule","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json patch /agents/{agent_id}/schedules/{schedule_id}","href":"/reference/agentex/schedules/update-run-schedule"},{"title":"Trigger Run Schedule By Name","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /agents/{agent_id}/schedules/name/{name}/trigger","href":"/reference/agentex/schedules/trigger-run-schedule-by-name"},{"title":"Trigger Run Schedule","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /agents/{agent_id}/schedules/{schedule_id}/trigger","href":"/reference/agentex/schedules/trigger-run-schedule"},{"title":"Skip Run Schedule Action","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /agents/{agent_id}/schedules/{schedule_id}/skip","href":"/reference/agentex/schedules/skip-run-schedule-action"},{"title":"Unskip Run Schedule Action","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /agents/{agent_id}/schedules/{schedule_id}/unskip","href":"/reference/agentex/schedules/unskip-run-schedule-action"},{"title":"Pause Run Schedule By Name","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /agents/{agent_id}/schedules/name/{name}/pause","href":"/reference/agentex/schedules/pause-run-schedule-by-name"},{"title":"Pause Run Schedule","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /agents/{agent_id}/schedules/{schedule_id}/pause","href":"/reference/agentex/schedules/pause-run-schedule"},{"title":"Resume Run Schedule By Name","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /agents/{agent_id}/schedules/name/{name}/resume","href":"/reference/agentex/schedules/resume-run-schedule-by-name"},{"title":"Resume Run Schedule","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /agents/{agent_id}/schedules/{schedule_id}/resume","href":"/reference/agentex/schedules/resume-run-schedule"}]},{"group":"Checkpoints","pages":[{"title":"Get Checkpoint Tuple","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /checkpoints/get-tuple","href":"/reference/agentex/checkpoints/get-checkpoint-tuple"},{"title":"Put Checkpoint","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /checkpoints/put","href":"/reference/agentex/checkpoints/put-checkpoint"},{"title":"Put Writes","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /checkpoints/put-writes","href":"/reference/agentex/checkpoints/put-writes"},{"title":"List Checkpoints","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /checkpoints/list","href":"/reference/agentex/checkpoints/list-checkpoints"},{"title":"Delete Thread","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /checkpoints/delete-thread","href":"/reference/agentex/checkpoints/delete-thread"}]},{"group":"task-retention","pages":[{"title":"Export Task","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json get /tasks/{task_id}/export","href":"/reference/agentex/task-retention/export-task"},{"title":"Export Task To Url","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /tasks/{task_id}/export","href":"/reference/agentex/task-retention/export-task-to-url"},{"title":"Clean Task","description":"Delete content-bearing rows for a stale task.\n\nRefuses on active tasks, in-flight workflows, or unprocessed events\nregardless of `force`. The `force=true` flag only bypasses the\nidle-threshold check.","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /tasks/{task_id}/clean","href":"/reference/agentex/task-retention/clean-task"},{"title":"Rehydrate Task","deprecated":null,"version":null,"openapi":"https://agentex.dev-sgp.scale.com/openapi.json post /tasks/{task_id}/rehydrate","href":"/reference/agentex/task-retention/rehydrate-task"}]}]},{"tab":"Agentex SDK","href":"https://scaleapi.github.io/agentex-sdk-docs/api/python/"},{"tab":"Capabilities","pages":[{"title":"Capabilities","href":"/docs/capabilities/overview"}]},{"tab":"Dex API","pages":[{"title":"Dex API","href":"/reference/dex/projects/list-projects"}]}]},{"version":"V4 (legacy)","pages":[{"title":"V4 (legacy)","href":"/home"}]}]},"basePath":"","title":"Rehydrate Task - Scale AI","buildId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","deploymentId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"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","ApiExamples-WMqJYdZj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CJ-MlPHu.js","shallow-dY3TMRCk.js","getApiPlaygroundDisplay-v-1B2bKm.js","CodeSnippet-BDhiTB7U.js","CodeSnippets-D9hnzQcS.js","Page-C4GwDT3_.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"]}