{
"error": {
"type": "resource_not_found_error",
"message": "The requested resource does not exist.",
"request_id": "req_01h455vb4pex5vsknk084sn02q"
}
}
{
"error": {
"type": "rate_limit_reached_error",
"message": "Too many requests. Retry after 60 seconds.",
"request_id": "req_01h455vb4pex5vsknk084sn02q"
}
}
{
"error": {
"type": "server_error",
"message": "The platform could not complete the request. Retry later.",
"request_id": "req_01h455vb4pex5vsknk084sn02q"
}
}
Headers
kimi-api-version
enum<string>
API version for this request, in YYYY-MM-DD form. Send 2026-09-01-beta
for the version documented here. Required outside /v1/files*: a missing
header there is rejected with 400 invalid_request_error; on /v1/files*
its absence selects the compatibility behavior. An unknown value is
rejected with 400 invalid_request_error on every endpoint.
API versions served by the platform. New dated versions are added as they
ship; a version is removed after its announced Sunset date.
Available options:
2026-09-01-beta
Path Parameters
id
string
required
Session ID.
Body
application/json
Session title and any Agent override fields to update.
Fields to update on a Session.
Only title and agent_overrides can be changed.
title
string
New human-readable title.
Maximum string length: 256
Example:
"Updated Session"
agent_overrides
object
Replacement session-local agent overrides: each present collection
replaces that collection's override wholesale (an empty array clears it
and falls back to the frozen agent value). Absent collections keep
their current override.
An effective toolset incompatible with a self-hosted Environment is
rejected before any update with 400 invalid_parameter_error and
param=agent_overrides.tools. This also applies when clearing overrides
would restore an incompatible inherited toolset.
Show child attributes
Example:
{}
Response
The Session with the applied changes.
A Session running an immutable Agent version.
id
string
required
Session ID.
Example:
"sesn_01h455vb4pex5vsknk084sn02q"
agent_id
string
required
Agent this session is running.
Example:
"agent_01h455vb4pex5vsknk084sn02q"
environment_id
string
required
Environment hosting this session.
Example:
"env_01h455vb4pex5vsknk084sn02q"
status
enum<string>
required
Current lifecycle status.
Available options:
idle,
running,
stopping,
terminated
Example:
"idle"
created_at
string<date-time>
required
Creation timestamp.
Example:
"2026-01-01T00:00:00Z"
updated_at
string<date-time>
required
Last-update timestamp.
Example:
"2026-01-01T00:00:00Z"
interrupted
boolean
Whether a committed stop pauses execution. A new message or explicit continue can resume it.
Example:
false
control_epoch
string
Current Session control generation.
Maximum string length: 19
Pattern: ^(0|[1-9][0-9]{0,18})$
Example:
"1"
continue_pending
boolean
A continue was accepted but execution has not started yet.
Example:
false
title
string
Human-readable title.
Example:
"Example Session"
metadata
object
Caller-defined metadata with up to 16 entries.
Show child attributes
Example:
{}
agent_overrides
object
Session-local agent configuration overrides. Absent when none are stored.
Effective Skills after applying Session overrides and merging roster and
shared workspace Skills. Present only when Get Session explicitly uses
include=resolved_skills. An explicitly requested empty set is [].
Otherwise this field is omitted, including from Session list items.
Entries are sorted by name.
Show child attributes
Example:
[]
usage
object
Cumulative token usage of this Session across all Threads. Grows in real time as model calls complete. Also returned in list items, filled with one batch aggregate query per page.
{
"error": {
"type": "resource_not_found_error",
"message": "The requested resource does not exist.",
"request_id": "req_01h455vb4pex5vsknk084sn02q"
}
}
{
"error": {
"type": "rate_limit_reached_error",
"message": "Too many requests. Retry after 60 seconds.",
"request_id": "req_01h455vb4pex5vsknk084sn02q"
}
}
{
"error": {
"type": "server_error",
"message": "The platform could not complete the request. Retry later.",
"request_id": "req_01h455vb4pex5vsknk084sn02q"
}
}
{"docsConfig":{"theme":"luma","$schema":"https://mintlify.com/docs.json","name":"Kimi API Platform","description":"Kimi K3.1 Pro is our flagship model for long-horizon coding and end-to-end knowledge work, with a 1M-token context window and industry-leading intelligence. The Kimi API Platform provides a range of large language model APIs with long context, multimodal understanding, and Tool Calling.","colors":{"primary":"#111111","light":"#F5F5F5","dark":"#111111"},"logo":{"light":"https://mintcdn.com/moonshotai/X_5b_eA1iuJP595e/assets/logo/light.svg?fit=max\u0026auto=format\u0026n=X_5b_eA1iuJP595e\u0026q=85\u0026s=f68cf2d80f8d7f0363e088d2b988a598","dark":"https://mintcdn.com/moonshotai/X_5b_eA1iuJP595e/assets/logo/dark.svg?fit=max\u0026auto=format\u0026n=X_5b_eA1iuJP595e\u0026q=85\u0026s=297861f343cd86556341fb85b17cb13d","href":"https://platform.kimi.ai"},"favicon":{"light":"https://mintcdn.com/moonshotai/X_5b_eA1iuJP595e/assets/pics/favicon.ico?fit=max\u0026auto=format\u0026n=X_5b_eA1iuJP595e\u0026q=85\u0026s=f5dbc381f82faaf2356c1d1bd7199526","dark":"https://mintcdn.com/moonshotai/X_5b_eA1iuJP595e/assets/pics/favicon-dark.ico?fit=max\u0026auto=format\u0026n=X_5b_eA1iuJP595e\u0026q=85\u0026s=0330e19f739be705f4a0bacdbdea87a3"},"api":{"openapi":["openapi.json","admin-api/openapi.yaml"],"examples":{"defaults":"required"}},"navbar":{"links":[{"href":"https://www.kimi.com/membership/pricing?from=platform_page\u0026open=business","label":"Kimi Business"},{"href":"https://www.kimi.ai/contact-sales","label":"Contact Sales"},{"href":"https://platform.kimi.ai/console/account","label":"User Center"}]},"footer":{"socials":{"x":"https://x.com/Kimi_Moonshot","github":"https://github.com/MoonshotAI","linkedin":"https://www.linkedin.com/company/kimi-ai-linkedin","discord":"https://discord.com/invite/TYU2fdJykW?source=docs_footer","website":"https://forum.moonshot.ai/?source=docs_footer"}},"seo":{"metatags":{"og:site_name":"Kimi API Platform","og:locale":"en-US","og:image":"https://platform.kimi.ai/og.png?v=1","og:image:alt":"Kimi API Platform","robots":"index,follow","canonical":"https://platform.kimi.ai/docs","description":"Kimi K3.1 Pro is our flagship model for long-horizon coding and end-to-end knowledge work, with a 1M-token context window and industry-leading intelligence. The Kimi API Platform provides a range of large language model APIs with long context, multimodal understanding, and Tool Calling.","keywords":"Kimi K3.1 Pro,kimi-k3.1-pro,Kimi K3,Moonshot AI,K3 Large Language Model,AI API,Tool Calling,Code Generation,Intelligent Dialogue,AI Agent,Open-source Model,Long Context,Claw Bot"}},"styling":{"eyebrows":"breadcrumbs","latex":false},"integrations":{"clarity":{"projectId":"r1wlk72gay"},"ga4":{"measurementId":"G-Z0ZTEN03PZ"}},"banner":{"content":"🎉 Kimi K3.1 Pro has launched! [Start exploring now!](https://platform.kimi.ai/docs/guide/kimi-k3-1-pro-quickstart)","dismissible":true},"errors":{"404":{"redirect":true}},"contextual":{"options":["copy","view",{"title":"Open in Kimi","description":"Ask questions about this page","icon":"/assets/logo/kimi-context.svg","href":{"base":"https://www.kimi.ai/","query":[{"key":"prefill_prompt","value":"Read from https://platform.kimi.ai/docs$path so I can ask questions about it."}]}}],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"moonshotai","hasAudioNarration":false,"actualSubdomain":"moonshotai","customDomains":["platform.kimi.ai"],"gitSource":{"type":"github","owner":"moonshotai","repo":"kimi-platform-docs","deployBranch":"master","contentDirectory":"global","isPrivate":true,"mountPath":"","label":"","_id":"6b10cb939ffae5051c40924f"},"feedback":{"thumbs":true},"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":"6b1286ce6c930d190656fb03","clientVersion":"0.0.4448","searchFilterCounts":[{"language":"default","tag":"API Reference","count":182},{"language":"default","tag":"Hosted Agents","count":145},{"language":"default","tag":"Admin API","count":37},{"language":"default","tag":"Guides","count":31},{"language":"default","tag":"Organization","count":29},{"language":"default","tag":"Sessions","count":23},{"language":"default","tag":"Learning and support","count":22},{"language":"default","tag":"Resources","count":21},{"language":"default","tag":"Memory Stores","count":16},{"language":"default","tag":"Vaults","count":16}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","content":":root{--brand-primary: #111111;--brand-primary-strong: #2a2a2a;--brand-primary-soft: rgba(17, 17, 17, 0.08);--brand-text: #171717;--brand-text-muted: #5f5f68;--brand-border: #e5e7eb;--brand-border-strong: #d4d4d8;--brand-surface: #f5f5f5;--brand-card-bg: rgba(255, 255, 255, 0.9);--brand-overlay: linear-gradient(to top, rgba(10, 10, 10, 0.78), rgba(10, 10, 10, 0.28), transparent)}.dark,[data-theme=\"dark\"]{--brand-primary: #f5f5f5;--brand-primary-strong: #ffffff;--brand-primary-soft: rgba(245, 245, 245, 0.14);--brand-text: #fafafa;--brand-text-muted: #a1a1aa;--brand-border: #303038;--brand-border-strong: #3f3f46;--brand-surface: #151515;--brand-card-bg: rgba(24, 24, 27, 0.88);--brand-overlay: linear-gradient(to top, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.3), transparent)}#footer>*>div:last-child,#footer>*>div:nth-last-child(2){display:none!important}#footer a[href^=\"https://forum.moonshot.ai/\"] svg{display:none!important}#footer a[href^=\"https://forum.moonshot.ai/\"]::before{content:\"\";display:block;width:1.25rem;height:1.25rem;background-color:currentColor;-webkit-mask:url(\"/assets/icons/community.svg\") center / contain no-repeat;mask:url(\"/assets/icons/community.svg\") center / contain no-repeat}#search-bar-entry,#search-bar-entry-mobile{border:1px solid var(--brand-border)!important;background:var(--brand-card-bg)!important;box-shadow:none!important}#search-input{color:var(--brand-text)!important}#search-input::placeholder{color:var(--brand-text-muted)!important}#topbar,#topbar-content-container,#topbar-content-wrapper{color:var(--brand-text)!important}@media (min-width: 1024px){#sidebar{top:calc(7rem + var(--banner-height, 0px))!important}}#sidebar-content li[data-active]{background:var(--brand-primary-soft)!important;border-radius:14px}#sidebar-content li[data-active] a,#sidebar-content li[data-active] button{color:var(--brand-primary)!important}#sidebar-content a,#sidebar-content button{font-weight:inherit!important;text-shadow:none!important}.sidebar-group[data-active]>.sidebar-group-header,.sidebar-group[data-active]>.sidebar-group-header *{color:var(--brand-primary)!important}.method-nav-pill,.method-pill{border-radius:999px!important;box-shadow:none!important}#request-example,#response-example,#api-playground-input,#panel,#page-context-menu-button{border-color:var(--brand-border)!important}#request-example,#response-example,#api-playground-input{background:var(--brand-card-bg)!important}.dark .method-nav-pill,.dark .method-pill,[data-theme=\"dark\"] .method-nav-pill,[data-theme=\"dark\"] .method-pill{border-color:transparent!important}.dark li[role=\"tab\"][aria-selected=\"true\"]>div,[data-theme=\"dark\"] li[role=\"tab\"][aria-selected=\"true\"]>div{color:#ffffff!important;border-color:#ffffff!important}.nav-tabs-item[data-active],.mobile-nav-tabs-item[data-active]{color:var(--brand-primary)!important}.navbar-link:hover,.nav-tabs-item:hover,.mobile-nav-tabs-item:hover{color:var(--brand-primary)!important}#navbar a[href*=\"/hosted-agents/\"]::after{content:\"Beta\";align-self:flex-start;margin-top:0.5rem;margin-left:-0.25rem;font-size:0.625rem;font-weight:500;line-height:1}.toc-item[data-active],.toc-item[data-active-deepest]{color:var(--brand-primary)!important}.toc-item[data-active] a,.toc-item[data-active-deepest] a{color:var(--brand-primary)!important}#header>div.mt-2.prose{font-size:1rem;line-height:1.5rem}#header>div.mt-2.prose{color:#73737c}.dark #header>div.mt-2.prose,[data-theme=\"dark\"] #header>div.mt-2.prose{color:#a1a1aa}.mdx-content a{color:var(--brand-primary);text-decoration-color:color-mix(in srgb, var(--brand-primary) 58%, transparent)}.mdx-content a:hover{color:var(--brand-primary-strong);text-decoration-color:color-mix(in srgb, var(--brand-primary-strong) 72%, transparent)}.mdx-content a strong,.mdx-content a b,.mdx-content a code{color:inherit}.quickstart-cta-wrap{display:flex;justify-content:center;margin:48px 0 64px}.mdx-content .quickstart-cta{display:inline-flex;align-items:center;justify-content:center;padding:10px 20px;border-radius:8px;background:var(--brand-primary);color:var(--brand-surface);font-size:14px;font-weight:500;line-height:1.25;text-decoration:none}.mdx-content .quickstart-cta:hover{background:var(--brand-primary-strong);color:var(--brand-surface)}.code-block,pre{border-color:var(--brand-border)!important}code:not(pre code){background:var(--brand-surface)!important;border:1px solid var(--brand-border);color:var(--brand-text)!important}.mdx-content table td code{white-space:nowrap}#page-context-menu-button:hover,.pagination-next:hover,.pagination-prev:hover,.topbar-cta-button:hover{border-color:var(--brand-primary)!important}.overview-page{color:var(--brand-text)}.overview-page a{border-bottom:none!important;box-shadow:none!important;text-decoration:none!important}.overview-page .overview-overlay-link{position:absolute!important;inset:0!important;display:block!important;border:0!important;border-bottom:0!important;box-shadow:none!important;text-decoration:none!important;z-index:4!important}.overview-page .overview-grid-2,.overview-page .overview-grid-3,.overview-page .overview-grid-4{display:grid;align-items:stretch;gap:16px}.overview-page .overview-grid-2{grid-template-columns:repeat(2, minmax(0, 1fr))}.overview-page .overview-grid-3{grid-template-columns:repeat(3, minmax(0, 1fr))}.overview-page .overview-grid-4{grid-template-columns:repeat(2, minmax(0, 1fr))}.overview-page .overview-link-card,.overview-page .overview-resource-card{position:relative;overflow:hidden;display:flex;height:100%;border:1px solid var(--brand-border);border-radius:12px;background:var(--brand-card-bg);backdrop-filter:blur(10px);transition:border-color 0.2s, background-color 0.2s, box-shadow 0.2s}.overview-page .overview-link-card:hover,.overview-page .overview-resource-card:hover{border-color:var(--brand-primary);box-shadow:0 10px 30px rgba(15, 23, 42, 0.08)}.overview-page .overview-link-card__body,.overview-page .overview-resource-card__body{display:flex;padding:20px 16px;width:100%;flex-direction:row;gap:12px;align-items:flex-start}.overview-page .overview-link-card__content{display:flex;flex:1;flex-direction:column}.overview-page .overview-link-card__icon{display:flex;width:24px;min-width:24px;align-items:center;justify-content:center;line-height:1;margin-top:3px;color:var(--brand-text-muted)}.overview-page .overview-link-card__title,.overview-page .overview-resource-card__title{font-size:16px;font-weight:500;line-height:1.2;color:var(--brand-text)}.overview-page .overview-link-card__description,.overview-page .overview-resource-card__description{margin-top:4px;font-size:14px;color:var(--brand-text-muted);line-height:1.4}.overview-page .overview-model-card{position:relative;overflow:hidden;border:1px solid var(--brand-border);border-radius:12px;background:var(--brand-surface)}.overview-page .overview-model-card__media{position:relative;aspect-ratio:123 / 92;line-height:0}.overview-page .overview-model-card__image{display:block;width:100%;height:100%;object-fit:cover;transition:transform 0.5s}.overview-page .overview-model-card:hover .overview-model-card__image{transform:scale(1.05)}.overview-page .overview-model-card__overlay{position:absolute;inset:0;display:flex;align-items:flex-end;background:var(--brand-overlay)}.overview-page .overview-model-card__content{width:100%;padding:16px}.overview-page .overview-model-card__name{color:white;font-weight:600;line-height:1.2;font-size:16px}.overview-page .overview-model-card__tag-row{margin-top:8px;line-height:1}.overview-page .overview-hero-card{background:var(--brand-surface);border-color:var(--brand-border)!important}.overview-page .overview-hero-card__cta{display:inline-flex;align-items:center;gap:6px;padding:10px 20px;border:1px solid rgba(255, 255, 255, 0.14);border-radius:8px;background:rgba(255, 255, 255, 0.96);color:#111111!important;font-size:14px;font-weight:500;white-space:nowrap;position:relative;z-index:10;transition:transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease}.overview-page .overview-hero-card__cta:hover{background:#ffffff;border-color:rgba(255, 255, 255, 0.3);transform:translateY(-1px)}.overview-page .overview-section-link{color:var(--brand-primary)!important;text-decoration:underline!important;text-underline-offset:0.18em}.overview-page .overview-section-link:hover{color:var(--brand-primary-strong)!important}.overview-page .overview-resource-card a,.overview-page .overview-link-card a,.overview-page .overview-model-card a{color:inherit!important}@media (max-width: 1100px){.overview-page .overview-grid-3{grid-template-columns:repeat(2, minmax(0, 1fr))}}#choose-the-right-api+div table:first-of-type{min-width:680px;table-layout:fixed}#choose-the-right-api+div table:first-of-type th,#choose-the-right-api+div table:first-of-type td{min-width:0}#choose-the-right-api+div table:first-of-type th:nth-child(1),#choose-the-right-api+div table:first-of-type td:nth-child(1){width:16%}#choose-the-right-api+div table:first-of-type th:nth-child(2),#choose-the-right-api+div table:first-of-type td:nth-child(2){width:32%}#choose-the-right-api+div table:first-of-type td:nth-child(2),#choose-the-right-api+div table:first-of-type td:nth-child(2) code{white-space:nowrap}#content-side-layout:has(.code-group){display:none!important}@media (max-width: 700px){.overview-page .overview-grid-2,.overview-page .overview-grid-3,.overview-page .overview-grid-4{grid-template-columns:1fr}}.doc-table-wrap{width:100%;max-width:100%}.doc-table-wrap table{display:table!important;width:100%!important;max-width:100%!important;min-width:0!important;table-layout:fixed!important;margin:0!important}.doc-table-wrap th,.doc-table-wrap td{white-space:normal!important;overflow-wrap:anywhere;word-break:break-word;text-align:left!important;vertical-align:middle}.doc-table-wrap td ul{margin-top:0!important;margin-bottom:0!important}.doc-table-bordered{border:1px solid rgba(128, 128, 128, 0.25);container-type:inline-size}.doc-table-bordered th,.doc-table-bordered td{padding:12px 16px!important}.doc-table-legal th,.doc-table-legal td{vertical-align:top}.doc-table-legal td{line-height:1.75}.doc-table-legal th:nth-child(2),.doc-table-legal td:nth-child(2){border-right:1px solid rgba(128, 128, 128, 0.25)}.doc-table-bordered th:first-child,.doc-table-bordered td:first-child{border-right:1px solid rgba(128, 128, 128, 0.25)}.doc-table-bordered .doc-table-group-start,.doc-table-bordered thead tr.doc-table-groups th:nth-child(n+3){border-left:1px solid rgba(128, 128, 128, 0.25)}.doc-table-corner-sub{font-weight:400;opacity:0.6}.doc-table-unit{opacity:0.55;font-size:0.85em}@container (min-width: 840px){.doc-table-bordered .doc-table-price{white-space:nowrap}}.doc-table-wrap thead tr.doc-table-groups th{text-align:left!important;font-weight:600;border-bottom:1px solid rgba(128, 128, 128, 0.25)}.doc-table-wrap thead tr.doc-table-groups th:empty{border-bottom:none}.doc-table-bordered thead tr.doc-table-groups th{background-color:rgba(128, 128, 128, 0.16)}.doc-table-bordered thead tr:not(.doc-table-groups) th{background-color:rgba(128, 128, 128, 0.06)}@media (max-width: 900px){.doc-table-wrap th,.doc-table-wrap td{padding:10px 8px!important;font-size:13px;line-height:1.45}}@media (max-width: 640px){.doc-table-wrap{width:100%}.doc-table-wrap th,.doc-table-wrap td{padding:8px 6px!important;font-size:12px;line-height:1.4}.doc-table-wrap td:first-child,.doc-table-wrap th:first-child{word-break:break-all;overflow-wrap:anywhere}.doc-table-wrap code{font-size:11px;white-space:normal!important;word-break:break-all}}.sidebar-group-header{font-size:0.875rem!important}nav[aria-label=\"Pages\"] ul.bottom-0.border-t{display:none!important}li.navbar-link>a{border:1px solid var(--brand-border, #e5e7eb);border-radius:9999px;padding:0.3rem 0.9rem}li.navbar-link>a:hover{border-color:var(--brand-primary)!important;color:var(--brand-primary)!important}div.relative:has(>#search-bar-entry){flex:none!important;justify-content:flex-end!important}#search-bar-entry{width:2.25rem!important;min-width:2.25rem!important;flex:none!important;padding:0!important;justify-content:center!important;border-radius:9999px!important}#search-bar-entry *{font-size:0!important}#search-bar-entry kbd{display:none!important}div[data-top-chrome]{padding-left:1rem!important;padding-right:1rem!important}#search-bar-entry{width:1.75rem!important;min-width:1.75rem!important;height:1.75rem!important;display:flex!important;align-items:center!important;justify-content:center!important}#search-bar-entry>div{margin:0!important;gap:0!important}#search-bar-entry{width:2.1rem!important;min-width:2.1rem!important;height:2.1rem!important}#search-bar-entry>div{flex:none!important;width:auto!important;justify-content:center!important}#search-bar-entry svg{display:block!important;margin:0 auto!important}#theme-preference-menu-trigger{position:fixed!important;left:1rem;bottom:1rem;z-index:40;background:var(--brand-surface, #ffffff)!important;border:1px solid var(--brand-border, #e5e7eb)!important}#theme-preference-menu-trigger{left:auto!important;right:1rem!important}@media (min-width: 1024px){#content-area{margin-left:auto!important;margin-right:auto!important}}@media (min-width: 1280px){#content-area{max-width:56rem!important}#content-side-layout{margin-right:1.5rem!important;padding-left:1.5rem!important}}@media (min-width: 91.875rem){#sidebar-content{width:18rem!important}#body-content{padding-left:18rem!important}}.strike-price{white-space:nowrap}.strike-price-original{color:#9ca3af;margin-right:0.375rem}.strike-price-current{color:#dc2626;font-weight:600}.dark .strike-price-current,[data-theme=\"dark\"] .strike-price-current{color:#f87171}#banner button{width:1.25rem!important;height:1.25rem!important;right:0.75rem!important;border-radius:9999px!important;opacity:0.55;transition:opacity 0.15s ease, background-color 0.15s ease}#banner button:hover{opacity:1;background:rgba(255, 255, 255, 0.14)!important}#banner button svg{width:12px!important;height:12px!important;stroke-width:1.5}@media (min-width: 1280px){#content-container:not(:has(#table-of-contents-layout))::after{content:\"\";flex:none;width:19.5rem}}.video-intro{margin-top:4px;font-size:0.85em;line-height:1.6}.video-intro-toggle{display:none}.video-intro>label{cursor:pointer;color:#888}.video-intro>label::before{content:\"▸ \"}.video-intro-toggle:checked+label::before{content:\"▾ \"}.video-intro-body{display:none;color:#666;margin-top:4px}.video-intro-toggle:checked~.video-intro-body{display:block}.video-intro-body p{margin:0 0 6px}.video-grid video{margin:0}"}]}
{"page":{"pagePath":"api-reference/sessions/update-a-session","slug":"/api-reference/sessions/update-a-session","pageMetadata":{"title":"Update a Session","description":"Changes the Session's title or agent overrides. Only `title` and\n`agent_overrides` are mutable, and fields absent from the body keep their\nvalues.\n\n`agent_overrides` takes effect on the next turn. A terminated (archived)\nSession rejects updates with 400 `failed_precondition_error`.","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml patch /v1/sessions/{id}","href":"/api-reference/sessions/update-a-session","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Changes the Session’s title or agent overrides. Only \", _jsx(_components.code, {\n children: \"title\"\n }), \" and\\n\", _jsx(_components.code, {\n children: \"agent_overrides\"\n }), \" are mutable, and fields absent from the body keep their\\nvalues.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.code, {\n children: \"agent_overrides\"\n }), \" takes effect on the next turn. A terminated (archived)\\nSession rejects updates with 400 \", _jsx(_components.code, {\n children: \"failed_precondition_error\"\n }), \".\"]\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":"Update a Session","description":"Changes the Session's title or agent overrides. Only `title` and\n`agent_overrides` are mutable, and fields absent from the body keep their\nvalues.\n\n`agent_overrides` takes effect on the next turn. A terminated (archived)\nSession rejects updates with 400 `failed_precondition_error`.","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml patch /v1/sessions/{id}","href":"/api-reference/sessions/update-a-session","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"updateSession","summary":"Update a Session","description":"Changes the Session's title or agent overrides. Only `title` and\n`agent_overrides` are mutable, and fields absent from the body keep their\nvalues.\n\n`agent_overrides` takes effect on the next turn. A terminated (archived)\nSession rejects updates with 400 `failed_precondition_error`.","parameters":["556ca603-0a60-4a3b-913f-fc4e18f3e4cf","4fe8828a-1b7e-4487-8e8d-f7d69a0e2e79"],"responses":{"200":"75c1c38e-39d6-4dd5-b4ba-0050084888a5","400":"c79b2d34-bf7d-4ff2-8112-3ac87a33cc3a","401":"2a0c7629-c083-4d32-85ba-418f45b1d4bc","404":"ff1e3a9d-bea9-48a8-8626-c7b6b9708e38","429":"5f020c5f-98c8-4d88-908c-93f2005cfab8","default":"5f094448-e7d2-4e37-8f6f-90adddc54ab5"},"tags":["Sessions"],"requestBody":"44aa2df3-b8e1-4df4-b03f-d44a7dd1f29d","x-mc-client-method-name":"Update","method":"patch","type":"path","servers":["64d138b5-fff4-40a3-82f0-ede62b1b3f1e"],"security":["4abf3e87-18e1-4eb9-8360-1a30153da656"],"path":"/v1/sessions/{id}","baseUrlOptions":["https://api.moonshot.ai"],"title":"Update a Session","codeSamples":[],"requiredOnlyExamples":true,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"556ca603-0a60-4a3b-913f-fc4e18f3e4cf":{"name":"kimi-api-version","in":"header","required":false,"description":"API version for this request, in `YYYY-MM-DD` form. Send `2026-09-01-beta`\nfor the version documented here. Required outside `/v1/files*`: a missing\nheader there is rejected with 400 `invalid_request_error`; on `/v1/files*`\nits absence selects the compatibility behavior. An unknown value is\nrejected with 400 `invalid_request_error` on every endpoint.","schema":{"type":"string","enum":["2026-09-01-beta"],"description":"API version for this request, in `YYYY-MM-DD` form. Send `2026-09-01-beta`\nfor the version documented here. Required outside `/v1/files*`: a missing\nheader there is rejected with 400 `invalid_request_error`; on `/v1/files*`\nits absence selects the compatibility behavior. An unknown value is\nrejected with 400 `invalid_request_error` on every endpoint.\nAPI versions served by the platform. New dated versions are added as they\nship; a version is removed after its announced Sunset date.","isRequired":false,"uniqueKey":"","typeLabel":"enum\u003cstring>"},"example":"2026-09-01-beta"},"4fe8828a-1b7e-4487-8e8d-f7d69a0e2e79":{"name":"id","in":"path","required":true,"description":"Session ID.","schema":{"type":"string","isRequired":true,"description":"Session ID.","uniqueKey":"","typeLabel":"string"},"example":"sesn_01h455vb4pex5vsknk084sn02q"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","maxLength":256,"description":"New human-readable title.","examples":["Updated Session"],"uniqueKey":"title","typeLabel":"string"},"agent_overrides":{"type":"object","properties":{"mcp_servers":{"type":"array","items":{"type":"object","required":["type","name","url"],"properties":{"type":{"type":"string","enum":["url"],"description":"Server type. Currently only \"url\" is supported.","isRequired":true,"uniqueKey":"agent_overrides.mcp_servers.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","minLength":1,"description":"Unique name used to reference this server from tool declarations.","isRequired":true,"uniqueKey":"agent_overrides.mcp_servers.items.[INDEX].name","typeLabel":"string"},"url":{"type":"string","minLength":1,"description":"MCP server endpoint URL.","isRequired":true,"uniqueKey":"agent_overrides.mcp_servers.items.[INDEX].url","typeLabel":"string"},"headers":{"type":"object","description":"Non-sensitive HTTP headers sent on every connection to this server, such as User-Agent or tenant routing headers.\nAccepted in requests and omitted from responses.\nBecause responses omit them, updates merge headers by server identity instead of replacing the stored list outright: a server whose `headers` is absent or empty inherits the stored headers of an unchanged server (same name, type, and url), a non-empty `headers` replaces them entirely, and an empty-string value deletes that key (send any key with an empty-string value to clear every header of a server). A renamed or re-pointed server counts as new and inherits nothing.\nSecret tokens must not be declared here: they are supplied through Vault credentials instead.","maxProperties":16,"propertyNames":{"type":"string","maxLength":128},"additionalProperties":{"type":"string","maxLength":2048,"uniqueKey":"agent_overrides.mcp_servers.items.[INDEX].headers.additionalProperties","typeLabel":"string"},"uniqueKey":"agent_overrides.mcp_servers.items.[INDEX].headers","typeLabel":"object"}},"description":"MCP server connection declared on an agent.","uniqueKey":"agent_overrides.mcp_servers.items.[INDEX]","typeLabel":"object"},"maxItems":20,"description":"Replacement MCP server connections for this session.","uniqueKey":"agent_overrides.mcp_servers","typeLabel":"object[]"},"skills":{"type":"array","items":{"type":"object","required":["skill_id"],"properties":{"skill_id":{"type":"string","minLength":1,"description":"Skill identifier. Builtin and custom skills share one ID namespace.\nThe two kinds are distinguished by ID prefix.","isRequired":true,"uniqueKey":"agent_overrides.skills.items.[INDEX].skill_id","typeLabel":"string"},"version":{"type":"string","description":"Skill version (`\"1\"`, `\"2\"`, …). If omitted, the latest version at write\ntime is pinned. An exact version remains pinned. The literal `\"latest\"`\nis preserved and re-resolved on every read or wake.","uniqueKey":"agent_overrides.skills.items.[INDEX].version","typeLabel":"string"}},"description":"Reference to one skill version attached to an agent.","uniqueKey":"agent_overrides.skills.items.[INDEX]","typeLabel":"object"},"maxItems":64,"description":"Replacement skill references for this session. Empty versions are frozen\nto the then-current latest at write time; \"latest\" is stored as-is and\nre-resolved on every wake.","uniqueKey":"agent_overrides.skills","typeLabel":"object[]"},"plugins":{"type":"array","items":{"type":"object","required":["plugin_id"],"properties":{"plugin_id":{"type":"string","minLength":1,"description":"Plugin ID to attach.","isRequired":true,"uniqueKey":"agent_overrides.plugins.items.[INDEX].plugin_id","typeLabel":"string"},"version":{"type":"string","description":"Plugin version. Versions follow the Plugin's marketplace: an `official`\nPlugin is versioned by the platform, so `version` must be omitted and an\nexplicit value is rejected with 400; a `project` Plugin may pin one of\nits published versions, omit it (pinned to the latest published version\nat write time), or carry the literal `\"latest\"`, which is stored as-is\nand re-resolved to the adopted version on every wake.","uniqueKey":"agent_overrides.plugins.items.[INDEX].version","typeLabel":"string"}},"description":"Reference to a listed plugin attached to an agent.","uniqueKey":"agent_overrides.plugins.items.[INDEX]","typeLabel":"object"},"maxItems":64,"description":"Replacement plugin references for this session. Each entry follows its\nPlugin's marketplace version rule (see `PluginRef.version`): `official`\nentries must omit `version`, `project` entries may pin a published one.","uniqueKey":"agent_overrides.plugins","typeLabel":"object[]"},"tools":{"type":"array","items":{"oneOf":[{"type":"object","title":"Agent toolset","description":"Declaration of a built-in toolset for an Agent. If the same `name` appears\nmore than once, only the first declaration is used, including its\n`default_config` and `configs`; later declarations are not merged.","required":["type","name"],"properties":{"type":{"type":"string","enum":["agent_toolset"],"isRequired":true,"uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","enum":["agent_toolset_20260901","agent_toolset_20261101","default_toolset_20260901"],"description":"Name of the built-in toolset to load.\n\n`agent_toolset_20260901` includes the built-in tools:\n[read_file, write_file, edit_file, shell, ipython, todo_read, todo_write,\nweb_open_url, web_search, search_image_by_text, search_image_by_image,\nsave_artifact].\n\n`agent_toolset_20261101` includes [read, write, edit, bash, glob, grep,\nweb_search, web_fetch, save_artifact].\n\n`default_toolset_20260901` is accepted as a deprecated alias of\n`agent_toolset_20260901`.","isRequired":true,"uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.0.name","typeLabel":"enum\u003cstring>"},"default_config":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether tools in the toolset start enabled.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.0.default_config.enabled","typeLabel":"boolean"},"permission_policy":{"type":"string","enum":["always_allow","always_ask"],"description":"Default permission policy for the tools.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.0.default_config.permission_policy","typeLabel":"enum\u003cstring>"},"load_mode":{"type":"string","enum":["eager","on_demand"],"description":"Default schema loading mode for the tools. When unset, MCP toolsets use\n`on_demand`. In `agent_toolset_20260901`, `search_image_by_text` and\n`search_image_by_image` use `on_demand` and the other tools use `eager`.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.0.default_config.load_mode","typeLabel":"enum\u003cstring>"}},"description":"Defaults for every tool in the toolset.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.0.default_config","typeLabel":"object"},"configs":{"type":"array","items":{"type":"object","required":["name"],"properties":{"name":{"type":"string","minLength":1,"description":"Name of the tool to configure.","isRequired":true,"uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].name","typeLabel":"string"},"enabled":{"type":"boolean","description":"Whether this tool is enabled.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].enabled","typeLabel":"boolean"},"permission_policy":{"type":"string","enum":["always_allow","always_ask"],"description":"Permission policy for this tool.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].permission_policy","typeLabel":"enum\u003cstring>"},"result_hint":{"type":"string","maxLength":4096,"description":"Optional instruction appended as a text block to the model-facing result\ncontent after a successful tool call. Appears in `agent.tool_result`\n`data.tool_result.content` (and is visible when clients fall back from an\nempty `structured_content`), without modifying tool-provided\n`structured_content` or failed results.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].result_hint","typeLabel":"string"},"load_mode":{"type":"string","enum":["eager","on_demand"],"description":"Tool schema loading mode override.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].load_mode","typeLabel":"enum\u003cstring>"}},"description":"Per-tool settings that override the toolset defaults.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.0.configs.items.[INDEX]","typeLabel":"object"},"description":"Settings that override the defaults for individual tools.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.0.configs","typeLabel":"object[]"}},"uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.0","typeLabel":"Agent toolset · object"},{"type":"object","title":"Custom tool","description":"A client-side tool executed by the API caller.","required":["type","name","description","input_schema"],"properties":{"type":{"type":"string","enum":["custom"],"isRequired":true,"uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_-]+$","description":"Unique tool name containing letters, digits, underscores, or hyphens.","isRequired":true,"uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.1.name","typeLabel":"string"},"description":{"type":"string","minLength":1,"maxLength":4096,"description":"Tool description used by the model to decide when to call it.","isRequired":true,"uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.1.description","typeLabel":"string"},"input_schema":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["object"],"description":"Custom tool inputs are JSON objects.","isRequired":true,"uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.1.input_schema.type","typeLabel":"enum\u003cstring>"},"properties":{"type":"object","unevaluatedProperties":{},"description":"Property schemas keyed by input field name.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.1.input_schema.properties","typeLabel":"object"},"required":{"type":"array","items":{"type":"string","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.1.input_schema.required.items.[INDEX]","typeLabel":"string"},"description":"Input field names that the model must provide.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.1.input_schema.required","typeLabel":"string[]"}},"description":"JSON Schema describing the tool's input parameters.","isRequired":true,"uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.1.input_schema","typeLabel":"object"}},"uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.1","typeLabel":"Custom tool · object"},{"type":"object","title":"MCP toolset","description":"Toolset that exposes tools from an MCP server connection.","required":["type","mcp_server_name"],"properties":{"type":{"type":"string","enum":["mcp_toolset"],"isRequired":true,"uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"mcp_server_name":{"type":"string","minLength":1,"description":"Name of the MCP server declared on the same agent.","isRequired":true,"uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.2.mcp_server_name","typeLabel":"string"},"default_config":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether tools in the toolset start enabled.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.2.default_config.enabled","typeLabel":"boolean"},"permission_policy":{"type":"string","enum":["always_allow","always_ask"],"description":"Default permission policy for the tools.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.2.default_config.permission_policy","typeLabel":"enum\u003cstring>"},"load_mode":{"type":"string","enum":["eager","on_demand"],"description":"Default schema loading mode for the tools. When unset, MCP toolsets use\n`on_demand`. In `agent_toolset_20260901`, `search_image_by_text` and\n`search_image_by_image` use `on_demand` and the other tools use `eager`.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.2.default_config.load_mode","typeLabel":"enum\u003cstring>"}},"description":"Default configuration for tools served by this MCP server.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.2.default_config","typeLabel":"object"},"configs":{"type":"array","items":{"type":"object","required":["name"],"properties":{"name":{"type":"string","minLength":1,"description":"Name of the tool to configure.","isRequired":true,"uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.2.configs.items.[INDEX].name","typeLabel":"string"},"enabled":{"type":"boolean","description":"Whether this tool is enabled.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.2.configs.items.[INDEX].enabled","typeLabel":"boolean"},"permission_policy":{"type":"string","enum":["always_allow","always_ask"],"description":"Permission policy for this tool.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.2.configs.items.[INDEX].permission_policy","typeLabel":"enum\u003cstring>"},"result_hint":{"type":"string","maxLength":4096,"description":"Optional instruction appended as a text block to the model-facing result\ncontent after a successful tool call. Appears in `agent.tool_result`\n`data.tool_result.content` (and is visible when clients fall back from an\nempty `structured_content`), without modifying tool-provided\n`structured_content` or failed results.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.2.configs.items.[INDEX].result_hint","typeLabel":"string"},"load_mode":{"type":"string","enum":["eager","on_demand"],"description":"Tool schema loading mode override.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.2.configs.items.[INDEX].load_mode","typeLabel":"enum\u003cstring>"}},"description":"Per-tool settings that override the toolset defaults.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.2.configs.items.[INDEX]","typeLabel":"object"},"description":"Per-tool overrides.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.2.configs","typeLabel":"object[]"}},"uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.2","typeLabel":"MCP toolset · object"}],"uniqueKey":"agent_overrides.tools.items.[INDEX]","typeLabel":"Agent toolset · object | Custom tool · object | MCP toolset · object"},"maxItems":128,"description":"Replacement tools for this session. If no `agent_toolset` is included, keeps the bound Agent's (or current effective) `agent_toolset`, or prepends `agent_toolset_20261101` if none exists. On update, an empty array clears the override and inherits the bound Agent. At most one sandbox toolset is allowed. Custom tools follow the same validation rules as Agent tools.","uniqueKey":"agent_overrides.tools","typeLabel":"(Agent toolset · object | Custom tool · object | MCP toolset · object)[]"},"model":{"oneOf":[{"type":"string","description":"Replacement model for this session. The provider must match the\nsession's model provider (the gateway injects endpoint/key per provider).","uniqueKey":"agent_overrides.model.oneOf.0","typeLabel":"string"},{"type":"object","description":"Replacement model for this session. The provider must match the\nsession's model provider (the gateway injects endpoint/key per provider).","required":["id"],"properties":{"id":{"type":"string","minLength":1,"description":"ID of the model to use.","isRequired":true,"uniqueKey":"agent_overrides.model.oneOf.1.id","typeLabel":"string"},"reasoning_effort":{"type":"string","enum":["low","medium","high","max"],"description":"Hint for the amount of reasoning effort.","uniqueKey":"agent_overrides.model.oneOf.1.reasoning_effort","typeLabel":"enum\u003cstring>"},"provider":{"type":"string","description":"ID of the provider. An empty value uses the default provider.","uniqueKey":"agent_overrides.model.oneOf.1.provider","typeLabel":"string"}},"uniqueKey":"agent_overrides.model.oneOf.1","typeLabel":"object"}],"uniqueKey":"agent_overrides.model","typeLabel":"string | object"},"system":{"type":"string","description":"Replacement system prompt for this session (empty string clears it).","uniqueKey":"agent_overrides.system","typeLabel":"string"},"roster":{"type":"array","items":{"type":"object","required":["id","version"],"properties":{"id":{"type":"string","description":"Agent ID.","isRequired":true,"uniqueKey":"agent_overrides.roster.items.[INDEX].id","typeLabel":"string"},"version":{"type":"string","description":"Exact immutable agent version.","isRequired":true,"uniqueKey":"agent_overrides.roster.items.[INDEX].version","typeLabel":"string"}},"description":"An immutable Agent version available to a coordinator.","uniqueKey":"agent_overrides.roster.items.[INDEX]","typeLabel":"object"},"maxItems":20,"description":"Replacement multiagent roster for this session; entries are resolved\nand frozen to exact versions at write time. Create-session only:\nSession updates reject this field with 400 `invalid_parameter_error`.","uniqueKey":"agent_overrides.roster","typeLabel":"object[]"}},"description":"Replacement session-local agent overrides: each present collection\nreplaces that collection's override wholesale (an empty array clears it\nand falls back to the frozen agent value). Absent collections keep\ntheir current override.\nAn effective toolset incompatible with a self-hosted Environment is\nrejected before any update with 400 `invalid_parameter_error` and\n`param=agent_overrides.tools`. This also applies when clearing overrides\nwould restore an incompatible inherited toolset.","examples":[{}],"uniqueKey":"agent_overrides","typeLabel":"object"}},"description":"Fields to update on a Session.\nOnly `title` and `agent_overrides` can be changed.","uniqueKey":"","typeLabel":"object"},"example":{"title":"Updated Session"},"examples":{"Example":{"title":"Example","value":{"title":"Updated Session"}}},"exampleType":"examples"}},"description":"Session title and any Agent override fields to update.","exampleType":"examples"},"responses":{"75c1c38e-39d6-4dd5-b4ba-0050084888a5":{"description":"The Session with the applied changes.","content":{"application/json":{"schema":{"type":"object","required":["id","agent_id","environment_id","status","created_at","updated_at"],"properties":{"id":{"type":"string","description":"Session ID.","examples":["sesn_01h455vb4pex5vsknk084sn02q"],"isRequired":true,"uniqueKey":"id","typeLabel":"string"},"agent_id":{"type":"string","description":"Agent this session is running.","examples":["agent_01h455vb4pex5vsknk084sn02q"],"isRequired":true,"uniqueKey":"agent_id","typeLabel":"string"},"environment_id":{"type":"string","description":"Environment hosting this session.","examples":["env_01h455vb4pex5vsknk084sn02q"],"isRequired":true,"uniqueKey":"environment_id","typeLabel":"string"},"status":{"type":"string","enum":["idle","running","stopping","terminated"],"description":"Current lifecycle status.","examples":["idle"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp.","examples":["2026-01-01T00:00:00Z"],"isRequired":true,"uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","description":"Last-update timestamp.","examples":["2026-01-01T00:00:00Z"],"isRequired":true,"uniqueKey":"updated_at","typeLabel":"string\u003cdate-time>"},"interrupted":{"type":"boolean","description":"Whether a committed stop pauses execution. A new message or explicit continue can resume it.","examples":[false],"uniqueKey":"interrupted","typeLabel":"boolean"},"control_epoch":{"type":"string","maxLength":19,"pattern":"^(0|[1-9][0-9]{0,18})$","description":"Current Session control generation.","examples":["1"],"uniqueKey":"control_epoch","typeLabel":"string"},"continue_pending":{"type":"boolean","description":"A continue was accepted but execution has not started yet.","examples":[false],"uniqueKey":"continue_pending","typeLabel":"boolean"},"title":{"type":"string","description":"Human-readable title.","examples":["Example Session"],"uniqueKey":"title","typeLabel":"string"},"metadata":{"type":"object","description":"Caller-defined metadata with up to 16 entries.","maxProperties":16,"propertyNames":{"type":"string","maxLength":64},"additionalProperties":{"type":"string","maxLength":512,"uniqueKey":"metadata.additionalProperties","typeLabel":"string"},"examples":[{}],"uniqueKey":"metadata","typeLabel":"object"},"agent_overrides":{"type":"object","properties":{"mcp_servers":{"type":"array","items":{"type":"object","required":["type","name","url"],"properties":{"type":{"type":"string","enum":["url"],"description":"Server type. Currently only \"url\" is supported.","isRequired":true,"uniqueKey":"agent_overrides.mcp_servers.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","minLength":1,"description":"Unique name used to reference this server from tool declarations.","isRequired":true,"uniqueKey":"agent_overrides.mcp_servers.items.[INDEX].name","typeLabel":"string"},"url":{"type":"string","minLength":1,"description":"MCP server endpoint URL.","isRequired":true,"uniqueKey":"agent_overrides.mcp_servers.items.[INDEX].url","typeLabel":"string"},"headers":{"type":"object","description":"Non-sensitive HTTP headers sent on every connection to this server, such as User-Agent or tenant routing headers.\nAccepted in requests and omitted from responses.\nBecause responses omit them, updates merge headers by server identity instead of replacing the stored list outright: a server whose `headers` is absent or empty inherits the stored headers of an unchanged server (same name, type, and url), a non-empty `headers` replaces them entirely, and an empty-string value deletes that key (send any key with an empty-string value to clear every header of a server). A renamed or re-pointed server counts as new and inherits nothing.\nSecret tokens must not be declared here: they are supplied through Vault credentials instead.","maxProperties":16,"propertyNames":{"type":"string","maxLength":128},"additionalProperties":{"type":"string","maxLength":2048,"uniqueKey":"agent_overrides.mcp_servers.items.[INDEX].headers.additionalProperties","typeLabel":"string"},"uniqueKey":"agent_overrides.mcp_servers.items.[INDEX].headers","typeLabel":"object"}},"description":"MCP server connection declared on an agent.","uniqueKey":"agent_overrides.mcp_servers.items.[INDEX]","typeLabel":"object"},"maxItems":20,"description":"Replacement MCP server connections for this session.","uniqueKey":"agent_overrides.mcp_servers","typeLabel":"object[]"},"skills":{"type":"array","items":{"type":"object","required":["skill_id"],"properties":{"skill_id":{"type":"string","minLength":1,"description":"Skill identifier. Builtin and custom skills share one ID namespace.\nThe two kinds are distinguished by ID prefix.","isRequired":true,"uniqueKey":"agent_overrides.skills.items.[INDEX].skill_id","typeLabel":"string"},"version":{"type":"string","description":"Skill version (`\"1\"`, `\"2\"`, …). If omitted, the latest version at write\ntime is pinned. An exact version remains pinned. The literal `\"latest\"`\nis preserved and re-resolved on every read or wake.","uniqueKey":"agent_overrides.skills.items.[INDEX].version","typeLabel":"string"}},"description":"Reference to one skill version attached to an agent.","uniqueKey":"agent_overrides.skills.items.[INDEX]","typeLabel":"object"},"maxItems":64,"description":"Replacement skill references for this session. Empty versions are frozen\nto the then-current latest at write time; \"latest\" is stored as-is and\nre-resolved on every wake.","uniqueKey":"agent_overrides.skills","typeLabel":"object[]"},"plugins":{"type":"array","items":{"type":"object","required":["plugin_id"],"properties":{"plugin_id":{"type":"string","minLength":1,"description":"Plugin ID to attach.","isRequired":true,"uniqueKey":"agent_overrides.plugins.items.[INDEX].plugin_id","typeLabel":"string"},"version":{"type":"string","description":"Plugin version. Versions follow the Plugin's marketplace: an `official`\nPlugin is versioned by the platform, so `version` must be omitted and an\nexplicit value is rejected with 400; a `project` Plugin may pin one of\nits published versions, omit it (pinned to the latest published version\nat write time), or carry the literal `\"latest\"`, which is stored as-is\nand re-resolved to the adopted version on every wake.","uniqueKey":"agent_overrides.plugins.items.[INDEX].version","typeLabel":"string"}},"description":"Reference to a listed plugin attached to an agent.","uniqueKey":"agent_overrides.plugins.items.[INDEX]","typeLabel":"object"},"maxItems":64,"description":"Replacement plugin references for this session. Each entry follows its\nPlugin's marketplace version rule (see `PluginRef.version`): `official`\nentries must omit `version`, `project` entries may pin a published one.","uniqueKey":"agent_overrides.plugins","typeLabel":"object[]"},"tools":{"type":"array","items":{"oneOf":[{"type":"object","title":"Agent toolset","description":"Declaration of a built-in toolset for an Agent. If the same `name` appears\nmore than once, only the first declaration is used, including its\n`default_config` and `configs`; later declarations are not merged.","required":["type","name"],"properties":{"type":{"type":"string","enum":["agent_toolset"],"isRequired":true,"uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","enum":["agent_toolset_20260901","agent_toolset_20261101","default_toolset_20260901"],"description":"Name of the built-in toolset to load.\n\n`agent_toolset_20260901` includes the built-in tools:\n[read_file, write_file, edit_file, shell, ipython, todo_read, todo_write,\nweb_open_url, web_search, search_image_by_text, search_image_by_image,\nsave_artifact].\n\n`agent_toolset_20261101` includes [read, write, edit, bash, glob, grep,\nweb_search, web_fetch, save_artifact].\n\n`default_toolset_20260901` is accepted as a deprecated alias of\n`agent_toolset_20260901`.","isRequired":true,"uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.0.name","typeLabel":"enum\u003cstring>"},"default_config":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether tools in the toolset start enabled.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.0.default_config.enabled","typeLabel":"boolean"},"permission_policy":{"type":"string","enum":["always_allow","always_ask"],"description":"Default permission policy for the tools.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.0.default_config.permission_policy","typeLabel":"enum\u003cstring>"},"load_mode":{"type":"string","enum":["eager","on_demand"],"description":"Default schema loading mode for the tools. When unset, MCP toolsets use\n`on_demand`. In `agent_toolset_20260901`, `search_image_by_text` and\n`search_image_by_image` use `on_demand` and the other tools use `eager`.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.0.default_config.load_mode","typeLabel":"enum\u003cstring>"}},"description":"Defaults for every tool in the toolset.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.0.default_config","typeLabel":"object"},"configs":{"type":"array","items":{"type":"object","required":["name"],"properties":{"name":{"type":"string","minLength":1,"description":"Name of the tool to configure.","isRequired":true,"uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].name","typeLabel":"string"},"enabled":{"type":"boolean","description":"Whether this tool is enabled.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].enabled","typeLabel":"boolean"},"permission_policy":{"type":"string","enum":["always_allow","always_ask"],"description":"Permission policy for this tool.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].permission_policy","typeLabel":"enum\u003cstring>"},"result_hint":{"type":"string","maxLength":4096,"description":"Optional instruction appended as a text block to the model-facing result\ncontent after a successful tool call. Appears in `agent.tool_result`\n`data.tool_result.content` (and is visible when clients fall back from an\nempty `structured_content`), without modifying tool-provided\n`structured_content` or failed results.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].result_hint","typeLabel":"string"},"load_mode":{"type":"string","enum":["eager","on_demand"],"description":"Tool schema loading mode override.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].load_mode","typeLabel":"enum\u003cstring>"}},"description":"Per-tool settings that override the toolset defaults.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.0.configs.items.[INDEX]","typeLabel":"object"},"description":"Settings that override the defaults for individual tools.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.0.configs","typeLabel":"object[]"}},"uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.0","typeLabel":"Agent toolset · object"},{"type":"object","title":"Custom tool","description":"A client-side tool executed by the API caller.","required":["type","name","description","input_schema"],"properties":{"type":{"type":"string","enum":["custom"],"isRequired":true,"uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_-]+$","description":"Unique tool name containing letters, digits, underscores, or hyphens.","isRequired":true,"uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.1.name","typeLabel":"string"},"description":{"type":"string","minLength":1,"maxLength":4096,"description":"Tool description used by the model to decide when to call it.","isRequired":true,"uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.1.description","typeLabel":"string"},"input_schema":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["object"],"description":"Custom tool inputs are JSON objects.","isRequired":true,"uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.1.input_schema.type","typeLabel":"enum\u003cstring>"},"properties":{"type":"object","unevaluatedProperties":{},"description":"Property schemas keyed by input field name.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.1.input_schema.properties","typeLabel":"object"},"required":{"type":"array","items":{"type":"string","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.1.input_schema.required.items.[INDEX]","typeLabel":"string"},"description":"Input field names that the model must provide.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.1.input_schema.required","typeLabel":"string[]"}},"description":"JSON Schema describing the tool's input parameters.","isRequired":true,"uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.1.input_schema","typeLabel":"object"}},"uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.1","typeLabel":"Custom tool · object"},{"type":"object","title":"MCP toolset","description":"Toolset that exposes tools from an MCP server connection.","required":["type","mcp_server_name"],"properties":{"type":{"type":"string","enum":["mcp_toolset"],"isRequired":true,"uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"mcp_server_name":{"type":"string","minLength":1,"description":"Name of the MCP server declared on the same agent.","isRequired":true,"uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.2.mcp_server_name","typeLabel":"string"},"default_config":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether tools in the toolset start enabled.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.2.default_config.enabled","typeLabel":"boolean"},"permission_policy":{"type":"string","enum":["always_allow","always_ask"],"description":"Default permission policy for the tools.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.2.default_config.permission_policy","typeLabel":"enum\u003cstring>"},"load_mode":{"type":"string","enum":["eager","on_demand"],"description":"Default schema loading mode for the tools. When unset, MCP toolsets use\n`on_demand`. In `agent_toolset_20260901`, `search_image_by_text` and\n`search_image_by_image` use `on_demand` and the other tools use `eager`.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.2.default_config.load_mode","typeLabel":"enum\u003cstring>"}},"description":"Default configuration for tools served by this MCP server.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.2.default_config","typeLabel":"object"},"configs":{"type":"array","items":{"type":"object","required":["name"],"properties":{"name":{"type":"string","minLength":1,"description":"Name of the tool to configure.","isRequired":true,"uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.2.configs.items.[INDEX].name","typeLabel":"string"},"enabled":{"type":"boolean","description":"Whether this tool is enabled.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.2.configs.items.[INDEX].enabled","typeLabel":"boolean"},"permission_policy":{"type":"string","enum":["always_allow","always_ask"],"description":"Permission policy for this tool.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.2.configs.items.[INDEX].permission_policy","typeLabel":"enum\u003cstring>"},"result_hint":{"type":"string","maxLength":4096,"description":"Optional instruction appended as a text block to the model-facing result\ncontent after a successful tool call. Appears in `agent.tool_result`\n`data.tool_result.content` (and is visible when clients fall back from an\nempty `structured_content`), without modifying tool-provided\n`structured_content` or failed results.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.2.configs.items.[INDEX].result_hint","typeLabel":"string"},"load_mode":{"type":"string","enum":["eager","on_demand"],"description":"Tool schema loading mode override.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.2.configs.items.[INDEX].load_mode","typeLabel":"enum\u003cstring>"}},"description":"Per-tool settings that override the toolset defaults.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.2.configs.items.[INDEX]","typeLabel":"object"},"description":"Per-tool overrides.","uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.2.configs","typeLabel":"object[]"}},"uniqueKey":"agent_overrides.tools.items.[INDEX].oneOf.2","typeLabel":"MCP toolset · object"}],"uniqueKey":"agent_overrides.tools.items.[INDEX]","typeLabel":"Agent toolset · object | Custom tool · object | MCP toolset · object"},"maxItems":128,"description":"Replacement tools for this session. If no `agent_toolset` is included, keeps the bound Agent's (or current effective) `agent_toolset`, or prepends `agent_toolset_20261101` if none exists. On update, an empty array clears the override and inherits the bound Agent. At most one sandbox toolset is allowed. Custom tools follow the same validation rules as Agent tools.","uniqueKey":"agent_overrides.tools","typeLabel":"(Agent toolset · object | Custom tool · object | MCP toolset · object)[]"},"model":{"oneOf":[{"type":"string","description":"Replacement model for this session. The provider must match the\nsession's model provider (the gateway injects endpoint/key per provider).","uniqueKey":"agent_overrides.model.oneOf.0","typeLabel":"string"},{"type":"object","description":"Replacement model for this session. The provider must match the\nsession's model provider (the gateway injects endpoint/key per provider).","required":["id"],"properties":{"id":{"type":"string","minLength":1,"description":"ID of the model to use.","isRequired":true,"uniqueKey":"agent_overrides.model.oneOf.1.id","typeLabel":"string"},"reasoning_effort":{"type":"string","enum":["low","medium","high","max"],"description":"Hint for the amount of reasoning effort.","uniqueKey":"agent_overrides.model.oneOf.1.reasoning_effort","typeLabel":"enum\u003cstring>"},"provider":{"type":"string","description":"ID of the provider. An empty value uses the default provider.","uniqueKey":"agent_overrides.model.oneOf.1.provider","typeLabel":"string"}},"uniqueKey":"agent_overrides.model.oneOf.1","typeLabel":"object"}],"uniqueKey":"agent_overrides.model","typeLabel":"string | object"},"system":{"type":"string","description":"Replacement system prompt for this session (empty string clears it).","uniqueKey":"agent_overrides.system","typeLabel":"string"},"roster":{"type":"array","items":{"type":"object","required":["id","version"],"properties":{"id":{"type":"string","description":"Agent ID.","isRequired":true,"uniqueKey":"agent_overrides.roster.items.[INDEX].id","typeLabel":"string"},"version":{"type":"string","description":"Exact immutable agent version.","isRequired":true,"uniqueKey":"agent_overrides.roster.items.[INDEX].version","typeLabel":"string"}},"description":"An immutable Agent version available to a coordinator.","uniqueKey":"agent_overrides.roster.items.[INDEX]","typeLabel":"object"},"maxItems":20,"description":"Replacement multiagent roster for this session; entries are resolved\nand frozen to exact versions at write time. Create-session only:\nSession updates reject this field with 400 `invalid_parameter_error`.","uniqueKey":"agent_overrides.roster","typeLabel":"object[]"}},"description":"Session-local agent configuration overrides. Absent when none are stored.","examples":[{}],"uniqueKey":"agent_overrides","typeLabel":"object"},"archived_at":{"type":"string","format":"date-time","description":"Archive timestamp. Absent while active.","examples":["2026-01-03T00:00:00Z"],"uniqueKey":"archived_at","typeLabel":"string\u003cdate-time>"},"resources":{"type":"array","items":{"oneOf":[{"type":"object","title":"File","description":"An uploaded file available to a Session.","required":["type","file_id"],"properties":{"type":{"type":"string","enum":["file"],"isRequired":true,"uniqueKey":"resources.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"file_id":{"type":"string","description":"Identifier of the uploaded file.","isRequired":true,"uniqueKey":"resources.items.[INDEX].oneOf.0.file_id","typeLabel":"string"},"id":{"type":"string","description":"Session resource ID assigned at binding.","uniqueKey":"resources.items.[INDEX].oneOf.0.id","typeLabel":"string"},"mime_type":{"type":"string","description":"MIME type of the uploaded file.","uniqueKey":"resources.items.[INDEX].oneOf.0.mime_type","typeLabel":"string"},"title":{"type":"string","description":"Display title of the uploaded file.","uniqueKey":"resources.items.[INDEX].oneOf.0.title","typeLabel":"string"},"path":{"type":"string","description":"Path where the file is linked inside the Session workspace, under `upload/`.","uniqueKey":"resources.items.[INDEX].oneOf.0.path","typeLabel":"string"}},"uniqueKey":"resources.items.[INDEX].oneOf.0","typeLabel":"File · object"},{"type":"object","title":"Vault","description":"A Vault whose credentials are available to a Session.","required":["type","vault_id"],"properties":{"type":{"type":"string","enum":["vault"],"isRequired":true,"uniqueKey":"resources.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"vault_id":{"type":"string","minLength":1,"maxLength":128,"description":"Vault to bind.","isRequired":true,"uniqueKey":"resources.items.[INDEX].oneOf.1.vault_id","typeLabel":"string"},"id":{"type":"string","description":"Session resource ID assigned at binding.","uniqueKey":"resources.items.[INDEX].oneOf.1.id","typeLabel":"string"}},"uniqueKey":"resources.items.[INDEX].oneOf.1","typeLabel":"Vault · object"},{"type":"object","title":"Memory Store","description":"A Memory Store available to a Session from creation.","required":["type","memory_store_id","access"],"properties":{"type":{"type":"string","enum":["memory_store"],"isRequired":true,"uniqueKey":"resources.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"memory_store_id":{"type":"string","minLength":1,"description":"Memory Store to bind.","isRequired":true,"uniqueKey":"resources.items.[INDEX].oneOf.2.memory_store_id","typeLabel":"string"},"access":{"type":"string","enum":["read_only","read_write"],"description":"Access mode for this session's mount.","isRequired":true,"uniqueKey":"resources.items.[INDEX].oneOf.2.access","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"Session resource ID assigned at binding.","uniqueKey":"resources.items.[INDEX].oneOf.2.id","typeLabel":"string"},"instructions":{"type":"string","maxLength":4096,"description":"Additional guidance shown to the model for this binding.","uniqueKey":"resources.items.[INDEX].oneOf.2.instructions","typeLabel":"string"}},"uniqueKey":"resources.items.[INDEX].oneOf.2","typeLabel":"Memory Store · object"},{"type":"object","title":"GitHub repository","description":"A GitHub repository binding used in Session or Trigger configuration. Session provisioning state is reported through `session.error`, not resource status fields.","required":["type","url"],"properties":{"type":{"type":"string","enum":["github_repository"],"isRequired":true,"uniqueKey":"resources.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","description":"Repository URL in the form `https://github.com/\u003cowner>/\u003crepo>`. SSH, userinfo, `.git`, query, and fragment forms are rejected. The normalized URL must be unique within the owning Session or Trigger.","isRequired":true,"uniqueKey":"resources.items.[INDEX].oneOf.3.url","typeLabel":"string"},"id":{"type":"string","description":"Session resource ID assigned at binding. Absent in creation input.","uniqueKey":"resources.items.[INDEX].oneOf.3.id","typeLabel":"string"},"authorization_token":{"type":"string","description":"Authorization token for repository authentication. This secret is accepted in requests and omitted from responses. Public repositories can omit it.","uniqueKey":"resources.items.[INDEX].oneOf.3.authorization_token","typeLabel":"string"},"mount_path":{"type":"string","description":"Normalized final clone directory under `/workspace`. Defaults to `/workspace/\u003crepo-name>` in creation input. Paths cannot be equal or nested.","uniqueKey":"resources.items.[INDEX].oneOf.3.mount_path","typeLabel":"string"},"checkout":{"oneOf":[{"type":"object","title":"Branch checkout","description":"A branch baseline requested for a GitHub repository.","required":["type","name"],"properties":{"type":{"type":"string","enum":["branch"],"isRequired":true,"uniqueKey":"resources.items.[INDEX].oneOf.3.checkout.oneOf.0.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","minLength":1,"description":"Branch to fetch and check out.","isRequired":true,"uniqueKey":"resources.items.[INDEX].oneOf.3.checkout.oneOf.0.name","typeLabel":"string"}},"uniqueKey":"resources.items.[INDEX].oneOf.3.checkout.oneOf.0","typeLabel":"Branch checkout · object"},{"type":"object","title":"Commit checkout","description":"An immutable commit baseline requested for a GitHub repository.","required":["type","sha"],"properties":{"type":{"type":"string","enum":["commit"],"isRequired":true,"uniqueKey":"resources.items.[INDEX].oneOf.3.checkout.oneOf.1.type","typeLabel":"enum\u003cstring>"},"sha":{"type":"string","pattern":"^[0-9A-Fa-f]{40}$","description":"Full 40-character Git commit SHA.","isRequired":true,"uniqueKey":"resources.items.[INDEX].oneOf.3.checkout.oneOf.1.sha","typeLabel":"string"}},"uniqueKey":"resources.items.[INDEX].oneOf.3.checkout.oneOf.1","typeLabel":"Commit checkout · object"}],"uniqueKey":"resources.items.[INDEX].oneOf.3.checkout","typeLabel":"Branch checkout · object | Commit checkout · object"},"created_at":{"type":"string","format":"date-time","description":"Time when the binding was created. Absent in creation input.","uniqueKey":"resources.items.[INDEX].oneOf.3.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","description":"Time when the public binding metadata was last updated. Absent in creation input.","uniqueKey":"resources.items.[INDEX].oneOf.3.updated_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"resources.items.[INDEX].oneOf.3","typeLabel":"GitHub repository · object"}],"uniqueKey":"resources.items.[INDEX]","typeLabel":"File · object | Vault · object | Memory Store · object | GitHub repository · object"},"description":"Resources bound to this session. Omitted from `GET /v1/sessions` list items.","examples":[[]],"uniqueKey":"resources","typeLabel":"(File · object | Vault · object | Memory Store · object | GitHub repository · object)[]"},"agent":{"type":"object","required":["id","version","name"],"properties":{"id":{"type":"string","description":"Agent ID.","isRequired":true,"uniqueKey":"agent.id","typeLabel":"string"},"version":{"type":"string","description":"Exact immutable agent version.","isRequired":true,"uniqueKey":"agent.version","typeLabel":"string"},"name":{"type":"string","description":"Human-readable agent name.","isRequired":true,"uniqueKey":"agent.name","typeLabel":"string"},"description":{"type":"string","description":"Optional agent description.","uniqueKey":"agent.description","typeLabel":"string"},"model":{"oneOf":[{"type":"string","description":"Selected model.","uniqueKey":"agent.model.oneOf.0","typeLabel":"string"},{"type":"object","description":"Selected model.","required":["id"],"properties":{"id":{"type":"string","minLength":1,"description":"ID of the model to use.","isRequired":true,"uniqueKey":"agent.model.oneOf.1.id","typeLabel":"string"},"reasoning_effort":{"type":"string","enum":["low","medium","high","max"],"description":"Hint for the amount of reasoning effort.","uniqueKey":"agent.model.oneOf.1.reasoning_effort","typeLabel":"enum\u003cstring>"},"provider":{"type":"string","description":"ID of the provider. An empty value uses the default provider.","uniqueKey":"agent.model.oneOf.1.provider","typeLabel":"string"}},"uniqueKey":"agent.model.oneOf.1","typeLabel":"object"}],"uniqueKey":"agent.model","typeLabel":"string | object"},"system":{"type":"string","description":"System prompt.","uniqueKey":"agent.system","typeLabel":"string"},"tools":{"type":"array","items":{"oneOf":[{"type":"object","title":"Agent toolset","description":"Declaration of a built-in toolset for an Agent. If the same `name` appears\nmore than once, only the first declaration is used, including its\n`default_config` and `configs`; later declarations are not merged.","required":["type","name"],"properties":{"type":{"type":"string","enum":["agent_toolset"],"isRequired":true,"uniqueKey":"agent.tools.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","enum":["agent_toolset_20260901","agent_toolset_20261101","default_toolset_20260901"],"description":"Name of the built-in toolset to load.\n\n`agent_toolset_20260901` includes the built-in tools:\n[read_file, write_file, edit_file, shell, ipython, todo_read, todo_write,\nweb_open_url, web_search, search_image_by_text, search_image_by_image,\nsave_artifact].\n\n`agent_toolset_20261101` includes [read, write, edit, bash, glob, grep,\nweb_search, web_fetch, save_artifact].\n\n`default_toolset_20260901` is accepted as a deprecated alias of\n`agent_toolset_20260901`.","isRequired":true,"uniqueKey":"agent.tools.items.[INDEX].oneOf.0.name","typeLabel":"enum\u003cstring>"},"default_config":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether tools in the toolset start enabled.","uniqueKey":"agent.tools.items.[INDEX].oneOf.0.default_config.enabled","typeLabel":"boolean"},"permission_policy":{"type":"string","enum":["always_allow","always_ask"],"description":"Default permission policy for the tools.","uniqueKey":"agent.tools.items.[INDEX].oneOf.0.default_config.permission_policy","typeLabel":"enum\u003cstring>"},"load_mode":{"type":"string","enum":["eager","on_demand"],"description":"Default schema loading mode for the tools. When unset, MCP toolsets use\n`on_demand`. In `agent_toolset_20260901`, `search_image_by_text` and\n`search_image_by_image` use `on_demand` and the other tools use `eager`.","uniqueKey":"agent.tools.items.[INDEX].oneOf.0.default_config.load_mode","typeLabel":"enum\u003cstring>"}},"description":"Defaults for every tool in the toolset.","uniqueKey":"agent.tools.items.[INDEX].oneOf.0.default_config","typeLabel":"object"},"configs":{"type":"array","items":{"type":"object","required":["name"],"properties":{"name":{"type":"string","minLength":1,"description":"Name of the tool to configure.","isRequired":true,"uniqueKey":"agent.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].name","typeLabel":"string"},"enabled":{"type":"boolean","description":"Whether this tool is enabled.","uniqueKey":"agent.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].enabled","typeLabel":"boolean"},"permission_policy":{"type":"string","enum":["always_allow","always_ask"],"description":"Permission policy for this tool.","uniqueKey":"agent.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].permission_policy","typeLabel":"enum\u003cstring>"},"result_hint":{"type":"string","maxLength":4096,"description":"Optional instruction appended as a text block to the model-facing result\ncontent after a successful tool call. Appears in `agent.tool_result`\n`data.tool_result.content` (and is visible when clients fall back from an\nempty `structured_content`), without modifying tool-provided\n`structured_content` or failed results.","uniqueKey":"agent.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].result_hint","typeLabel":"string"},"load_mode":{"type":"string","enum":["eager","on_demand"],"description":"Tool schema loading mode override.","uniqueKey":"agent.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].load_mode","typeLabel":"enum\u003cstring>"}},"description":"Per-tool settings that override the toolset defaults.","uniqueKey":"agent.tools.items.[INDEX].oneOf.0.configs.items.[INDEX]","typeLabel":"object"},"description":"Settings that override the defaults for individual tools.","uniqueKey":"agent.tools.items.[INDEX].oneOf.0.configs","typeLabel":"object[]"}},"uniqueKey":"agent.tools.items.[INDEX].oneOf.0","typeLabel":"Agent toolset · object"},{"type":"object","title":"Custom tool","description":"A client-side tool executed by the API caller.","required":["type","name","description","input_schema"],"properties":{"type":{"type":"string","enum":["custom"],"isRequired":true,"uniqueKey":"agent.tools.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_-]+$","description":"Unique tool name containing letters, digits, underscores, or hyphens.","isRequired":true,"uniqueKey":"agent.tools.items.[INDEX].oneOf.1.name","typeLabel":"string"},"description":{"type":"string","minLength":1,"maxLength":4096,"description":"Tool description used by the model to decide when to call it.","isRequired":true,"uniqueKey":"agent.tools.items.[INDEX].oneOf.1.description","typeLabel":"string"},"input_schema":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["object"],"description":"Custom tool inputs are JSON objects.","isRequired":true,"uniqueKey":"agent.tools.items.[INDEX].oneOf.1.input_schema.type","typeLabel":"enum\u003cstring>"},"properties":{"type":"object","unevaluatedProperties":{},"description":"Property schemas keyed by input field name.","uniqueKey":"agent.tools.items.[INDEX].oneOf.1.input_schema.properties","typeLabel":"object"},"required":{"type":"array","items":{"type":"string","uniqueKey":"agent.tools.items.[INDEX].oneOf.1.input_schema.required.items.[INDEX]","typeLabel":"string"},"description":"Input field names that the model must provide.","uniqueKey":"agent.tools.items.[INDEX].oneOf.1.input_schema.required","typeLabel":"string[]"}},"description":"JSON Schema describing the tool's input parameters.","isRequired":true,"uniqueKey":"agent.tools.items.[INDEX].oneOf.1.input_schema","typeLabel":"object"}},"uniqueKey":"agent.tools.items.[INDEX].oneOf.1","typeLabel":"Custom tool · object"},{"type":"object","title":"MCP toolset","description":"Toolset that exposes tools from an MCP server connection.","required":["type","mcp_server_name"],"properties":{"type":{"type":"string","enum":["mcp_toolset"],"isRequired":true,"uniqueKey":"agent.tools.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"mcp_server_name":{"type":"string","minLength":1,"description":"Name of the MCP server declared on the same agent.","isRequired":true,"uniqueKey":"agent.tools.items.[INDEX].oneOf.2.mcp_server_name","typeLabel":"string"},"default_config":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether tools in the toolset start enabled.","uniqueKey":"agent.tools.items.[INDEX].oneOf.2.default_config.enabled","typeLabel":"boolean"},"permission_policy":{"type":"string","enum":["always_allow","always_ask"],"description":"Default permission policy for the tools.","uniqueKey":"agent.tools.items.[INDEX].oneOf.2.default_config.permission_policy","typeLabel":"enum\u003cstring>"},"load_mode":{"type":"string","enum":["eager","on_demand"],"description":"Default schema loading mode for the tools. When unset, MCP toolsets use\n`on_demand`. In `agent_toolset_20260901`, `search_image_by_text` and\n`search_image_by_image` use `on_demand` and the other tools use `eager`.","uniqueKey":"agent.tools.items.[INDEX].oneOf.2.default_config.load_mode","typeLabel":"enum\u003cstring>"}},"description":"Default configuration for tools served by this MCP server.","uniqueKey":"agent.tools.items.[INDEX].oneOf.2.default_config","typeLabel":"object"},"configs":{"type":"array","items":{"type":"object","required":["name"],"properties":{"name":{"type":"string","minLength":1,"description":"Name of the tool to configure.","isRequired":true,"uniqueKey":"agent.tools.items.[INDEX].oneOf.2.configs.items.[INDEX].name","typeLabel":"string"},"enabled":{"type":"boolean","description":"Whether this tool is enabled.","uniqueKey":"agent.tools.items.[INDEX].oneOf.2.configs.items.[INDEX].enabled","typeLabel":"boolean"},"permission_policy":{"type":"string","enum":["always_allow","always_ask"],"description":"Permission policy for this tool.","uniqueKey":"agent.tools.items.[INDEX].oneOf.2.configs.items.[INDEX].permission_policy","typeLabel":"enum\u003cstring>"},"result_hint":{"type":"string","maxLength":4096,"description":"Optional instruction appended as a text block to the model-facing result\ncontent after a successful tool call. Appears in `agent.tool_result`\n`data.tool_result.content` (and is visible when clients fall back from an\nempty `structured_content`), without modifying tool-provided\n`structured_content` or failed results.","uniqueKey":"agent.tools.items.[INDEX].oneOf.2.configs.items.[INDEX].result_hint","typeLabel":"string"},"load_mode":{"type":"string","enum":["eager","on_demand"],"description":"Tool schema loading mode override.","uniqueKey":"agent.tools.items.[INDEX].oneOf.2.configs.items.[INDEX].load_mode","typeLabel":"enum\u003cstring>"}},"description":"Per-tool settings that override the toolset defaults.","uniqueKey":"agent.tools.items.[INDEX].oneOf.2.configs.items.[INDEX]","typeLabel":"object"},"description":"Per-tool overrides.","uniqueKey":"agent.tools.items.[INDEX].oneOf.2.configs","typeLabel":"object[]"}},"uniqueKey":"agent.tools.items.[INDEX].oneOf.2","typeLabel":"MCP toolset · object"}],"uniqueKey":"agent.tools.items.[INDEX]","typeLabel":"Agent toolset · object | Custom tool · object | MCP toolset · object"},"description":"Tools available to the thread.","uniqueKey":"agent.tools","typeLabel":"(Agent toolset · object | Custom tool · object | MCP toolset · object)[]"},"mcp_servers":{"type":"array","items":{"type":"object","required":["type","name","url"],"properties":{"type":{"type":"string","enum":["url"],"description":"Server type. Currently only \"url\" is supported.","isRequired":true,"uniqueKey":"agent.mcp_servers.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","minLength":1,"description":"Unique name used to reference this server from tool declarations.","isRequired":true,"uniqueKey":"agent.mcp_servers.items.[INDEX].name","typeLabel":"string"},"url":{"type":"string","minLength":1,"description":"MCP server endpoint URL.","isRequired":true,"uniqueKey":"agent.mcp_servers.items.[INDEX].url","typeLabel":"string"},"headers":{"type":"object","description":"Non-sensitive HTTP headers sent on every connection to this server, such as User-Agent or tenant routing headers.\nAccepted in requests and omitted from responses.\nBecause responses omit them, updates merge headers by server identity instead of replacing the stored list outright: a server whose `headers` is absent or empty inherits the stored headers of an unchanged server (same name, type, and url), a non-empty `headers` replaces them entirely, and an empty-string value deletes that key (send any key with an empty-string value to clear every header of a server). A renamed or re-pointed server counts as new and inherits nothing.\nSecret tokens must not be declared here: they are supplied through Vault credentials instead.","maxProperties":16,"propertyNames":{"type":"string","maxLength":128},"additionalProperties":{"type":"string","maxLength":2048,"uniqueKey":"agent.mcp_servers.items.[INDEX].headers.additionalProperties","typeLabel":"string"},"uniqueKey":"agent.mcp_servers.items.[INDEX].headers","typeLabel":"object"}},"description":"MCP server connection declared on an agent.","uniqueKey":"agent.mcp_servers.items.[INDEX]","typeLabel":"object"},"description":"MCP servers available to the thread.","uniqueKey":"agent.mcp_servers","typeLabel":"object[]"},"skills":{"type":"array","items":{"type":"object","required":["skill_id"],"properties":{"skill_id":{"type":"string","minLength":1,"description":"Skill identifier. Builtin and custom skills share one ID namespace.\nThe two kinds are distinguished by ID prefix.","isRequired":true,"uniqueKey":"agent.skills.items.[INDEX].skill_id","typeLabel":"string"},"version":{"type":"string","description":"Skill version (`\"1\"`, `\"2\"`, …). If omitted, the latest version at write\ntime is pinned. An exact version remains pinned. The literal `\"latest\"`\nis preserved and re-resolved on every read or wake.","uniqueKey":"agent.skills.items.[INDEX].version","typeLabel":"string"}},"description":"Reference to one skill version attached to an agent.","uniqueKey":"agent.skills.items.[INDEX]","typeLabel":"object"},"description":"Exact skill versions available to the thread.","uniqueKey":"agent.skills","typeLabel":"object[]"},"multiagent":{"type":"object","required":["agents"],"properties":{"agents":{"type":"array","items":{"type":"object","required":["id","version","name"],"properties":{"id":{"type":"string","description":"Agent ID.","isRequired":true,"uniqueKey":"agent.multiagent.agents.items.[INDEX].id","typeLabel":"string"},"version":{"type":"string","description":"Exact immutable agent version.","isRequired":true,"uniqueKey":"agent.multiagent.agents.items.[INDEX].version","typeLabel":"string"},"name":{"type":"string","description":"Human-readable agent name.","isRequired":true,"uniqueKey":"agent.multiagent.agents.items.[INDEX].name","typeLabel":"string"},"description":{"type":"string","description":"Optional agent description.","uniqueKey":"agent.multiagent.agents.items.[INDEX].description","typeLabel":"string"},"model":{"oneOf":[{"type":"string","description":"Selected model.","uniqueKey":"agent.multiagent.agents.items.[INDEX].model.oneOf.0","typeLabel":"string"},{"type":"object","description":"Selected model.","required":["id"],"properties":{"id":{"type":"string","minLength":1,"description":"ID of the model to use.","isRequired":true,"uniqueKey":"agent.multiagent.agents.items.[INDEX].model.oneOf.1.id","typeLabel":"string"},"reasoning_effort":{"type":"string","enum":["low","medium","high","max"],"description":"Hint for the amount of reasoning effort.","uniqueKey":"agent.multiagent.agents.items.[INDEX].model.oneOf.1.reasoning_effort","typeLabel":"enum\u003cstring>"},"provider":{"type":"string","description":"ID of the provider. An empty value uses the default provider.","uniqueKey":"agent.multiagent.agents.items.[INDEX].model.oneOf.1.provider","typeLabel":"string"}},"uniqueKey":"agent.multiagent.agents.items.[INDEX].model.oneOf.1","typeLabel":"object"}],"uniqueKey":"agent.multiagent.agents.items.[INDEX].model","typeLabel":"string | object"},"system":{"type":"string","description":"System prompt.","uniqueKey":"agent.multiagent.agents.items.[INDEX].system","typeLabel":"string"},"tools":{"type":"array","items":{"oneOf":[{"type":"object","title":"Agent toolset","description":"Declaration of a built-in toolset for an Agent. If the same `name` appears\nmore than once, only the first declaration is used, including its\n`default_config` and `configs`; later declarations are not merged.","required":["type","name"],"properties":{"type":{"type":"string","enum":["agent_toolset"],"isRequired":true,"uniqueKey":"agent.multiagent.agents.items.[INDEX].tools.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","enum":["agent_toolset_20260901","agent_toolset_20261101","default_toolset_20260901"],"description":"Name of the built-in toolset to load.\n\n`agent_toolset_20260901` includes the built-in tools:\n[read_file, write_file, edit_file, shell, ipython, todo_read, todo_write,\nweb_open_url, web_search, search_image_by_text, search_image_by_image,\nsave_artifact].\n\n`agent_toolset_20261101` includes [read, write, edit, bash, glob, grep,\nweb_search, web_fetch, save_artifact].\n\n`default_toolset_20260901` is accepted as a deprecated alias of\n`agent_toolset_20260901`.","isRequired":true,"uniqueKey":"agent.multiagent.agents.items.[INDEX].tools.items.[INDEX].oneOf.0.name","typeLabel":"enum\u003cstring>"},"default_config":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether tools in the toolset start enabled.","uniqueKey":"agent.multiagent.agents.items.[INDEX].tools.items.[INDEX].oneOf.0.default_config.enabled","typeLabel":"boolean"},"permission_policy":{"type":"string","enum":["always_allow","always_ask"],"description":"Default permission policy for the tools.","uniqueKey":"agent.multiagent.agents.items.[INDEX].tools.items.[INDEX].oneOf.0.default_config.permission_policy","typeLabel":"enum\u003cstring>"},"load_mode":{"type":"string","enum":["eager","on_demand"],"description":"Default schema loading mode for the tools. When unset, MCP toolsets use\n`on_demand`. In `agent_toolset_20260901`, `search_image_by_text` and\n`search_image_by_image` use `on_demand` and the other tools use `eager`.","uniqueKey":"agent.multiagent.agents.items.[INDEX].tools.items.[INDEX].oneOf.0.default_config.load_mode","typeLabel":"enum\u003cstring>"}},"description":"Defaults for every tool in the toolset.","uniqueKey":"agent.multiagent.agents.items.[INDEX].tools.items.[INDEX].oneOf.0.default_config","typeLabel":"object"},"configs":{"type":"array","items":{"type":"object","required":["name"],"properties":{"name":{"type":"string","minLength":1,"description":"Name of the tool to configure.","isRequired":true,"uniqueKey":"agent.multiagent.agents.items.[INDEX].tools.items.[INDEX].oneOf.0.configs.items.[INDEX].name","typeLabel":"string"},"enabled":{"type":"boolean","description":"Whether this tool is enabled.","uniqueKey":"agent.multiagent.agents.items.[INDEX].tools.items.[INDEX].oneOf.0.configs.items.[INDEX].enabled","typeLabel":"boolean"},"permission_policy":{"type":"string","enum":["always_allow","always_ask"],"description":"Permission policy for this tool.","uniqueKey":"agent.multiagent.agents.items.[INDEX].tools.items.[INDEX].oneOf.0.configs.items.[INDEX].permission_policy","typeLabel":"enum\u003cstring>"},"result_hint":{"type":"string","maxLength":4096,"description":"Optional instruction appended as a text block to the model-facing result\ncontent after a successful tool call. Appears in `agent.tool_result`\n`data.tool_result.content` (and is visible when clients fall back from an\nempty `structured_content`), without modifying tool-provided\n`structured_content` or failed results.","uniqueKey":"agent.multiagent.agents.items.[INDEX].tools.items.[INDEX].oneOf.0.configs.items.[INDEX].result_hint","typeLabel":"string"},"load_mode":{"type":"string","enum":["eager","on_demand"],"description":"Tool schema loading mode override.","uniqueKey":"agent.multiagent.agents.items.[INDEX].tools.items.[INDEX].oneOf.0.configs.items.[INDEX].load_mode","typeLabel":"enum\u003cstring>"}},"description":"Per-tool settings that override the toolset defaults.","uniqueKey":"agent.multiagent.agents.items.[INDEX].tools.items.[INDEX].oneOf.0.configs.items.[INDEX]","typeLabel":"object"},"description":"Settings that override the defaults for individual tools.","uniqueKey":"agent.multiagent.agents.items.[INDEX].tools.items.[INDEX].oneOf.0.configs","typeLabel":"object[]"}},"uniqueKey":"agent.multiagent.agents.items.[INDEX].tools.items.[INDEX].oneOf.0","typeLabel":"Agent toolset · object"},{"type":"object","title":"Custom tool","description":"A client-side tool executed by the API caller.","required":["type","name","description","input_schema"],"properties":{"type":{"type":"string","enum":["custom"],"isRequired":true,"uniqueKey":"agent.multiagent.agents.items.[INDEX].tools.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_-]+$","description":"Unique tool name containing letters, digits, underscores, or hyphens.","isRequired":true,"uniqueKey":"agent.multiagent.agents.items.[INDEX].tools.items.[INDEX].oneOf.1.name","typeLabel":"string"},"description":{"type":"string","minLength":1,"maxLength":4096,"description":"Tool description used by the model to decide when to call it.","isRequired":true,"uniqueKey":"agent.multiagent.agents.items.[INDEX].tools.items.[INDEX].oneOf.1.description","typeLabel":"string"},"input_schema":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["object"],"description":"Custom tool inputs are JSON objects.","isRequired":true,"uniqueKey":"agent.multiagent.agents.items.[INDEX].tools.items.[INDEX].oneOf.1.input_schema.type","typeLabel":"enum\u003cstring>"},"properties":{"type":"object","unevaluatedProperties":{},"description":"Property schemas keyed by input field name.","uniqueKey":"agent.multiagent.agents.items.[INDEX].tools.items.[INDEX].oneOf.1.input_schema.properties","typeLabel":"object"},"required":{"type":"array","items":{"type":"string","uniqueKey":"agent.multiagent.agents.items.[INDEX].tools.items.[INDEX].oneOf.1.input_schema.required.items.[INDEX]","typeLabel":"string"},"description":"Input field names that the model must provide.","uniqueKey":"agent.multiagent.agents.items.[INDEX].tools.items.[INDEX].oneOf.1.input_schema.required","typeLabel":"string[]"}},"description":"JSON Schema describing the tool's input parameters.","isRequired":true,"uniqueKey":"agent.multiagent.agents.items.[INDEX].tools.items.[INDEX].oneOf.1.input_schema","typeLabel":"object"}},"uniqueKey":"agent.multiagent.agents.items.[INDEX].tools.items.[INDEX].oneOf.1","typeLabel":"Custom tool · object"},{"type":"object","title":"MCP toolset","description":"Toolset that exposes tools from an MCP server connection.","required":["type","mcp_server_name"],"properties":{"type":{"type":"string","enum":["mcp_toolset"],"isRequired":true,"uniqueKey":"agent.multiagent.agents.items.[INDEX].tools.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"mcp_server_name":{"type":"string","minLength":1,"description":"Name of the MCP server declared on the same agent.","isRequired":true,"uniqueKey":"agent.multiagent.agents.items.[INDEX].tools.items.[INDEX].oneOf.2.mcp_server_name","typeLabel":"string"},"default_config":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether tools in the toolset start enabled.","uniqueKey":"agent.multiagent.agents.items.[INDEX].tools.items.[INDEX].oneOf.2.default_config.enabled","typeLabel":"boolean"},"permission_policy":{"type":"string","enum":["always_allow","always_ask"],"description":"Default permission policy for the tools.","uniqueKey":"agent.multiagent.agents.items.[INDEX].tools.items.[INDEX].oneOf.2.default_config.permission_policy","typeLabel":"enum\u003cstring>"},"load_mode":{"type":"string","enum":["eager","on_demand"],"description":"Default schema loading mode for the tools. When unset, MCP toolsets use\n`on_demand`. In `agent_toolset_20260901`, `search_image_by_text` and\n`search_image_by_image` use `on_demand` and the other tools use `eager`.","uniqueKey":"agent.multiagent.agents.items.[INDEX].tools.items.[INDEX].oneOf.2.default_config.load_mode","typeLabel":"enum\u003cstring>"}},"description":"Default configuration for tools served by this MCP server.","uniqueKey":"agent.multiagent.agents.items.[INDEX].tools.items.[INDEX].oneOf.2.default_config","typeLabel":"object"},"configs":{"type":"array","items":{"type":"object","required":["name"],"properties":{"name":{"type":"string","minLength":1,"description":"Name of the tool to configure.","isRequired":true,"uniqueKey":"agent.multiagent.agents.items.[INDEX].tools.items.[INDEX].oneOf.2.configs.items.[INDEX].name","typeLabel":"string"},"enabled":{"type":"boolean","description":"Whether this tool is enabled.","uniqueKey":"agent.multiagent.agents.items.[INDEX].tools.items.[INDEX].oneOf.2.configs.items.[INDEX].enabled","typeLabel":"boolean"},"permission_policy":{"type":"string","enum":["always_allow","always_ask"],"description":"Permission policy for this tool.","uniqueKey":"agent.multiagent.agents.items.[INDEX].tools.items.[INDEX].oneOf.2.configs.items.[INDEX].permission_policy","typeLabel":"enum\u003cstring>"},"result_hint":{"type":"string","maxLength":4096,"description":"Optional instruction appended as a text block to the model-facing result\ncontent after a successful tool call. Appears in `agent.tool_result`\n`data.tool_result.content` (and is visible when clients fall back from an\nempty `structured_content`), without modifying tool-provided\n`structured_content` or failed results.","uniqueKey":"agent.multiagent.agents.items.[INDEX].tools.items.[INDEX].oneOf.2.configs.items.[INDEX].result_hint","typeLabel":"string"},"load_mode":{"type":"string","enum":["eager","on_demand"],"description":"Tool schema loading mode override.","uniqueKey":"agent.multiagent.agents.items.[INDEX].tools.items.[INDEX].oneOf.2.configs.items.[INDEX].load_mode","typeLabel":"enum\u003cstring>"}},"description":"Per-tool settings that override the toolset defaults.","uniqueKey":"agent.multiagent.agents.items.[INDEX].tools.items.[INDEX].oneOf.2.configs.items.[INDEX]","typeLabel":"object"},"description":"Per-tool overrides.","uniqueKey":"agent.multiagent.agents.items.[INDEX].tools.items.[INDEX].oneOf.2.configs","typeLabel":"object[]"}},"uniqueKey":"agent.multiagent.agents.items.[INDEX].tools.items.[INDEX].oneOf.2","typeLabel":"MCP toolset · object"}],"uniqueKey":"agent.multiagent.agents.items.[INDEX].tools.items.[INDEX]","typeLabel":"Agent toolset · object | Custom tool · object | MCP toolset · object"},"description":"Tools available to the thread.","uniqueKey":"agent.multiagent.agents.items.[INDEX].tools","typeLabel":"(Agent toolset · object | Custom tool · object | MCP toolset · object)[]"},"mcp_servers":{"type":"array","items":{"type":"object","required":["type","name","url"],"properties":{"type":{"type":"string","enum":["url"],"description":"Server type. Currently only \"url\" is supported.","isRequired":true,"uniqueKey":"agent.multiagent.agents.items.[INDEX].mcp_servers.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","minLength":1,"description":"Unique name used to reference this server from tool declarations.","isRequired":true,"uniqueKey":"agent.multiagent.agents.items.[INDEX].mcp_servers.items.[INDEX].name","typeLabel":"string"},"url":{"type":"string","minLength":1,"description":"MCP server endpoint URL.","isRequired":true,"uniqueKey":"agent.multiagent.agents.items.[INDEX].mcp_servers.items.[INDEX].url","typeLabel":"string"},"headers":{"type":"object","description":"Non-sensitive HTTP headers sent on every connection to this server, such as User-Agent or tenant routing headers.\nAccepted in requests and omitted from responses.\nBecause responses omit them, updates merge headers by server identity instead of replacing the stored list outright: a server whose `headers` is absent or empty inherits the stored headers of an unchanged server (same name, type, and url), a non-empty `headers` replaces them entirely, and an empty-string value deletes that key (send any key with an empty-string value to clear every header of a server). A renamed or re-pointed server counts as new and inherits nothing.\nSecret tokens must not be declared here: they are supplied through Vault credentials instead.","maxProperties":16,"propertyNames":{"type":"string","maxLength":128},"additionalProperties":{"type":"string","maxLength":2048,"uniqueKey":"agent.multiagent.agents.items.[INDEX].mcp_servers.items.[INDEX].headers.additionalProperties","typeLabel":"string"},"uniqueKey":"agent.multiagent.agents.items.[INDEX].mcp_servers.items.[INDEX].headers","typeLabel":"object"}},"description":"MCP server connection declared on an agent.","uniqueKey":"agent.multiagent.agents.items.[INDEX].mcp_servers.items.[INDEX]","typeLabel":"object"},"description":"MCP servers available to the thread.","uniqueKey":"agent.multiagent.agents.items.[INDEX].mcp_servers","typeLabel":"object[]"},"skills":{"type":"array","items":{"type":"object","required":["skill_id"],"properties":{"skill_id":{"type":"string","minLength":1,"description":"Skill identifier. Builtin and custom skills share one ID namespace.\nThe two kinds are distinguished by ID prefix.","isRequired":true,"uniqueKey":"agent.multiagent.agents.items.[INDEX].skills.items.[INDEX].skill_id","typeLabel":"string"},"version":{"type":"string","description":"Skill version (`\"1\"`, `\"2\"`, …). If omitted, the latest version at write\ntime is pinned. An exact version remains pinned. The literal `\"latest\"`\nis preserved and re-resolved on every read or wake.","uniqueKey":"agent.multiagent.agents.items.[INDEX].skills.items.[INDEX].version","typeLabel":"string"}},"description":"Reference to one skill version attached to an agent.","uniqueKey":"agent.multiagent.agents.items.[INDEX].skills.items.[INDEX]","typeLabel":"object"},"description":"Exact skill versions available to the thread.","uniqueKey":"agent.multiagent.agents.items.[INDEX].skills","typeLabel":"object[]"}},"description":"The immutable Agent version used by a Session thread.","uniqueKey":"agent.multiagent.agents.items.[INDEX]","typeLabel":"object"},"description":"Full snapshots of the agent versions available to the coordinator.","isRequired":true,"uniqueKey":"agent.multiagent.agents","typeLabel":"object[]"}},"description":"Full agent definitions the coordinator may create as child threads.","uniqueKey":"agent.multiagent","typeLabel":"object"}},"description":"Agent version snapshot used by the coordinator thread.","examples":[{"id":"agent_01h455vb4pex5vsknk084sn02q","version":"1","name":"Example Agent"}],"uniqueKey":"agent","typeLabel":"object"},"resolved_skills":{"type":"array","items":{"type":"object","required":["skill_id","version","name","description","created_at"],"properties":{"skill_id":{"type":"string","description":"Owning skill ID.","examples":["0198f2c4-7b3a-7f2e-9c1d-4e5f6a7b8c9d"],"isRequired":true,"uniqueKey":"resolved_skills.items.[INDEX].skill_id","typeLabel":"string"},"version":{"type":"string","description":"Immutable Hosted Agents version identifier (`\"1\"`, `\"2\"`, …) within this Skill.","examples":["1"],"isRequired":true,"uniqueKey":"resolved_skills.items.[INDEX].version","typeLabel":"string"},"name":{"type":"string","description":"Skill name declared by this version's SKILL.md.","examples":["data-analysis"],"isRequired":true,"uniqueKey":"resolved_skills.items.[INDEX].name","typeLabel":"string"},"description":{"type":"string","description":"Skill description declared by this version's SKILL.md.","examples":["Analyze tabular data and produce summaries."],"isRequired":true,"uniqueKey":"resolved_skills.items.[INDEX].description","typeLabel":"string"},"created_at":{"type":"string","format":"date-time","description":"Time when this version was created.","examples":["2026-08-01T10:00:00Z"],"isRequired":true,"uniqueKey":"resolved_skills.items.[INDEX].created_at","typeLabel":"string\u003cdate-time>"}},"description":"An immutable package version of a Skill.","uniqueKey":"resolved_skills.items.[INDEX]","typeLabel":"object"},"description":"Effective Skills after applying Session overrides and merging roster and\nshared workspace Skills. Present only when Get Session explicitly uses\n`include=resolved_skills`. An explicitly requested empty set is `[]`.\nOtherwise this field is omitted, including from Session list items.\nEntries are sorted by `name`.","examples":[[]],"uniqueKey":"resolved_skills","typeLabel":"object[]"},"usage":{"type":"object","required":["input_tokens","cached_input_tokens","output_tokens","reasoning_output_tokens","total_tokens"],"properties":{"input_tokens":{"type":"integer","format":"int64","description":"Input tokens, including cached and cache-creation tokens.","isRequired":true,"uniqueKey":"usage.input_tokens","typeLabel":"integer\u003cint64>"},"cached_input_tokens":{"type":"integer","format":"int64","description":"Subset of `input_tokens` served from the provider's cache (cache read). Cache-creation tokens are counted in `input_tokens` but not reported separately.","isRequired":true,"uniqueKey":"usage.cached_input_tokens","typeLabel":"integer\u003cint64>"},"output_tokens":{"type":"integer","format":"int64","description":"Output tokens, including reasoning tokens.","isRequired":true,"uniqueKey":"usage.output_tokens","typeLabel":"integer\u003cint64>"},"reasoning_output_tokens":{"type":"integer","format":"int64","description":"Reasoning tokens included in `output_tokens`.","isRequired":true,"uniqueKey":"usage.reasoning_output_tokens","typeLabel":"integer\u003cint64>"},"total_tokens":{"type":"integer","format":"int64","description":"Total tokens reported by the model provider.","isRequired":true,"uniqueKey":"usage.total_tokens","typeLabel":"integer\u003cint64>"}},"description":"Cumulative token usage of this Session across all Threads. Grows in real time as model calls complete. Also returned in list items, filled with one batch aggregate query per page.","examples":[{"input_tokens":100,"cached_input_tokens":20,"output_tokens":50,"reasoning_output_tokens":10,"total_tokens":150}],"uniqueKey":"usage","typeLabel":"object"}},"description":"A Session running an immutable Agent version.","uniqueKey":"","typeLabel":"object"},"example":{"id":"sesn_01h455vb4pex5vsknk084sn02q","agent_id":"agent_01h455vb4pex5vsknk084sn02q","environment_id":"env_01h455vb4pex5vsknk084sn02q","status":"idle","title":"Updated Session","created_at":"2026-01-01T00:00:00Z","updated_at":"2026-01-02T00:00:00Z"},"examples":{"Example":{"title":"Example","value":{"id":"sesn_01h455vb4pex5vsknk084sn02q","agent_id":"agent_01h455vb4pex5vsknk084sn02q","environment_id":"env_01h455vb4pex5vsknk084sn02q","status":"idle","title":"Updated Session","created_at":"2026-01-01T00:00:00Z","updated_at":"2026-01-02T00:00:00Z"}}},"exampleType":"examples"}},"exampleType":"examples"},"c79b2d34-bf7d-4ff2-8112-3ac87a33cc3a":{"description":"The request failed validation. Check `message` for details. `invalid_parameter_error` identifies a field error, `invalid_request_error` a malformed request, and `failed_precondition_error` a resource state that prevents the operation.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","message"],"properties":{"type":{"type":"string","enum":["invalid_parameter_error","invalid_request_error","failed_precondition_error","authentication_error","permission_denied_error","resource_not_found_error","conflict_error","rate_limit_reached_error","exceeded_current_quota_error","server_error"],"description":"Error category that tells the client how to handle the failure.","example":"invalid_parameter_error","isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Message describing the failure.","example":"The `name` parameter is invalid.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"param":{"type":"string","description":"Request parameter or body field to correct, when applicable. Always present on `invalid_parameter_error`.","example":"name","uniqueKey":"error.param","typeLabel":"string"},"request_id":{"type":"string","description":"Request ID to include when reporting an error. Present on every error response and normally matches `Msh-Request-Id`.","example":"req_01h455vb4pex5vsknk084sn02q","uniqueKey":"error.request_id","typeLabel":"string"}},"description":"Details about the failure.","example":{"type":"server_error","message":"The platform could not complete the request. Retry later.","request_id":"req_01h455vb4pex5vsknk084sn02q"},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"description":"Standard error response body for API errors.","example":{"error":{"type":"server_error","message":"The platform could not complete the request. Retry later.","request_id":"req_01h455vb4pex5vsknk084sn02q"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"type":"invalid_parameter_error","message":"The `name` parameter is invalid.","request_id":"req_01h455vb4pex5vsknk084sn02q","param":"name"}},"examples":{"Example":{"title":"Example","value":{"error":{"type":"invalid_parameter_error","message":"The `name` parameter is invalid.","request_id":"req_01h455vb4pex5vsknk084sn02q","param":"name"}}}},"exampleType":"examples"}},"exampleType":"examples"},"2a0c7629-c083-4d32-85ba-418f45b1d4bc":{"description":"Credentials are missing or invalid. Provide valid credentials and retry.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","message"],"properties":{"type":{"type":"string","enum":["invalid_parameter_error","invalid_request_error","failed_precondition_error","authentication_error","permission_denied_error","resource_not_found_error","conflict_error","rate_limit_reached_error","exceeded_current_quota_error","server_error"],"description":"Error category that tells the client how to handle the failure.","example":"invalid_parameter_error","isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Message describing the failure.","example":"The `name` parameter is invalid.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"param":{"type":"string","description":"Request parameter or body field to correct, when applicable. Always present on `invalid_parameter_error`.","example":"name","uniqueKey":"error.param","typeLabel":"string"},"request_id":{"type":"string","description":"Request ID to include when reporting an error. Present on every error response and normally matches `Msh-Request-Id`.","example":"req_01h455vb4pex5vsknk084sn02q","uniqueKey":"error.request_id","typeLabel":"string"}},"description":"Details about the failure.","example":{"type":"server_error","message":"The platform could not complete the request. Retry later.","request_id":"req_01h455vb4pex5vsknk084sn02q"},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"description":"Standard error response body for API errors.","example":{"error":{"type":"server_error","message":"The platform could not complete the request. Retry later.","request_id":"req_01h455vb4pex5vsknk084sn02q"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"type":"authentication_error","message":"Provide valid credentials before retrying.","request_id":"req_01h455vb4pex5vsknk084sn02q"}},"examples":{"Example":{"title":"Example","value":{"error":{"type":"authentication_error","message":"Provide valid credentials before retrying.","request_id":"req_01h455vb4pex5vsknk084sn02q"}}}},"exampleType":"examples"}},"exampleType":"examples"},"ff1e3a9d-bea9-48a8-8626-c7b6b9708e38":{"description":"The resource does not exist or is not visible to the caller.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","message"],"properties":{"type":{"type":"string","enum":["invalid_parameter_error","invalid_request_error","failed_precondition_error","authentication_error","permission_denied_error","resource_not_found_error","conflict_error","rate_limit_reached_error","exceeded_current_quota_error","server_error"],"description":"Error category that tells the client how to handle the failure.","example":"invalid_parameter_error","isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Message describing the failure.","example":"The `name` parameter is invalid.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"param":{"type":"string","description":"Request parameter or body field to correct, when applicable. Always present on `invalid_parameter_error`.","example":"name","uniqueKey":"error.param","typeLabel":"string"},"request_id":{"type":"string","description":"Request ID to include when reporting an error. Present on every error response and normally matches `Msh-Request-Id`.","example":"req_01h455vb4pex5vsknk084sn02q","uniqueKey":"error.request_id","typeLabel":"string"}},"description":"Details about the failure.","example":{"type":"server_error","message":"The platform could not complete the request. Retry later.","request_id":"req_01h455vb4pex5vsknk084sn02q"},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"description":"Standard error response body for API errors.","example":{"error":{"type":"server_error","message":"The platform could not complete the request. Retry later.","request_id":"req_01h455vb4pex5vsknk084sn02q"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"type":"resource_not_found_error","message":"The requested resource does not exist.","request_id":"req_01h455vb4pex5vsknk084sn02q"}},"examples":{"Example":{"title":"Example","value":{"error":{"type":"resource_not_found_error","message":"The requested resource does not exist.","request_id":"req_01h455vb4pex5vsknk084sn02q"}}}},"exampleType":"examples"}},"exampleType":"examples"},"5f020c5f-98c8-4d88-908c-93f2005cfab8":{"description":"The caller has hit a rate limit or exhausted a quota.","headers":{"Retry-After":{"required":false,"description":"Wait this many seconds before retrying. The header is present only when\n`error.type` is `rate_limit_reached_error`; quota errors do not include it.","schema":{"type":"integer","format":"int32"},"example":60}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","message"],"properties":{"type":{"type":"string","enum":["invalid_parameter_error","invalid_request_error","failed_precondition_error","authentication_error","permission_denied_error","resource_not_found_error","conflict_error","rate_limit_reached_error","exceeded_current_quota_error","server_error"],"description":"Error category that tells the client how to handle the failure.","example":"invalid_parameter_error","isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Message describing the failure.","example":"The `name` parameter is invalid.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"param":{"type":"string","description":"Request parameter or body field to correct, when applicable. Always present on `invalid_parameter_error`.","example":"name","uniqueKey":"error.param","typeLabel":"string"},"request_id":{"type":"string","description":"Request ID to include when reporting an error. Present on every error response and normally matches `Msh-Request-Id`.","example":"req_01h455vb4pex5vsknk084sn02q","uniqueKey":"error.request_id","typeLabel":"string"}},"description":"Details about the failure.","example":{"type":"server_error","message":"The platform could not complete the request. Retry later.","request_id":"req_01h455vb4pex5vsknk084sn02q"},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"description":"Standard error response body for API errors.","example":{"error":{"type":"server_error","message":"The platform could not complete the request. Retry later.","request_id":"req_01h455vb4pex5vsknk084sn02q"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"type":"rate_limit_reached_error","message":"Too many requests. Retry after 60 seconds.","request_id":"req_01h455vb4pex5vsknk084sn02q"}},"examples":{"Example":{"title":"Example","value":{"error":{"type":"rate_limit_reached_error","message":"Too many requests. Retry after 60 seconds.","request_id":"req_01h455vb4pex5vsknk084sn02q"}}}},"exampleType":"examples"}},"exampleType":"examples"},"5f094448-e7d2-4e37-8f6f-90adddc54ab5":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","message"],"properties":{"type":{"type":"string","enum":["invalid_parameter_error","invalid_request_error","failed_precondition_error","authentication_error","permission_denied_error","resource_not_found_error","conflict_error","rate_limit_reached_error","exceeded_current_quota_error","server_error"],"description":"Error category that tells the client how to handle the failure.","example":"invalid_parameter_error","isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Message describing the failure.","example":"The `name` parameter is invalid.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"param":{"type":"string","description":"Request parameter or body field to correct, when applicable. Always present on `invalid_parameter_error`.","example":"name","uniqueKey":"error.param","typeLabel":"string"},"request_id":{"type":"string","description":"Request ID to include when reporting an error. Present on every error response and normally matches `Msh-Request-Id`.","example":"req_01h455vb4pex5vsknk084sn02q","uniqueKey":"error.request_id","typeLabel":"string"}},"description":"Details about the failure.","example":{"type":"server_error","message":"The platform could not complete the request. Retry later.","request_id":"req_01h455vb4pex5vsknk084sn02q"},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"description":"Standard error response body for API errors.","example":{"error":{"type":"server_error","message":"The platform could not complete the request. Retry later.","request_id":"req_01h455vb4pex5vsknk084sn02q"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"type":"server_error","message":"The platform could not complete the request. Retry later.","request_id":"req_01h455vb4pex5vsknk084sn02q"}},"examples":{"Example":{"title":"Example","value":{"error":{"type":"server_error","message":"The platform could not complete the request. Retry later.","request_id":"req_01h455vb4pex5vsknk084sn02q"}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"4abf3e87-18e1-4eb9-8360-1a30153da656":{"BearerAuth":{"type":"http","scheme":"Bearer","description":"Bearer token for API authentication.","scopes":[],"schemeName":"BearerAuth"}}},"servers":{"64d138b5-fff4-40a3-82f0-ede62b1b3f1e":{"url":"https://api.moonshot.ai","description":"Production","variables":{}}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"Bearer","description":"Bearer token for API authentication.","scopes":[],"schemeName":"BearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer token for API authentication.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"}]},"originalFileLocation":"hosted-agents/openapi.yaml"},"subdomain":"moonshotai","siteName":"Kimi API Platform","title":"Update a Session - Kimi API Platform","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-04T08:21:27.431Z","originalFileLocation":"api-reference/sessions/update-a-session.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=\"Changes the Session\u0026#x27;s title or agent overrides. Only title and agent_overrides are mutable, and fields absent from the body keep their values. agent_overrides takes effect on the next turn. A terminated (archived) Session rejects updates with 400 failed_precondition_error.\">\u003cmeta data-mint-head name=\"keywords\" content=\"Kimi K3.1 Pro,kimi-k3.1-pro,Kimi K3,Moonshot AI,K3 Large Language Model,AI API,Tool Calling,Code Generation,Intelligent Dialogue,AI Agent,Open-source Model,Long Context,Claw Bot\">\u003cmeta data-mint-head name=\"application-name\" content=\"Kimi API Platform\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"robots\" content=\"index,follow\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/moonshotai/6rzjGwhLi_bSodW_/_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=\"/docs/mintlify-assets/_mintlify/favicons/moonshotai/6rzjGwhLi_bSodW_/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/moonshotai/6rzjGwhLi_bSodW_/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/moonshotai/6rzjGwhLi_bSodW_/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/moonshotai/6rzjGwhLi_bSodW_/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/moonshotai/6rzjGwhLi_bSodW_/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/moonshotai/6rzjGwhLi_bSodW_/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/moonshotai/6rzjGwhLi_bSodW_/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/moonshotai/6rzjGwhLi_bSodW_/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Update a Session - Kimi API Platform\">\u003cmeta data-mint-head property=\"og:description\" content=\"Changes the Session\u0026#x27;s title or agent overrides. Only title and agent_overrides are mutable, and fields absent from the body keep their values. agent_overrides takes effect on the next turn. A terminated (archived) Session rejects updates with 400 failed_precondition_error.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Kimi API Platform\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://platform.kimi.ai/docs/api-reference/sessions/update-a-session\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://platform.kimi.ai/og.png?v=1\">\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=\"Update a Session - Kimi API Platform\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Changes the Session\u0026#x27;s title or agent overrides. Only title and agent_overrides are mutable, and fields absent from the body keep their values. agent_overrides takes effect on the next turn. A terminated (archived) Session rejects updates with 400 failed_precondition_error.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://platform.kimi.ai/og.png?v=1\">\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=\"/docs/mintlify-assets/_mintlify/favicons/moonshotai/6rzjGwhLi_bSodW_/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Kimi API Platform\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#111111\">\u003cmeta data-mint-head name=\"og:locale\" content=\"en-US\">\u003cmeta data-mint-head name=\"og:image:alt\" content=\"Kimi API Platform\">\u003clink data-mint-head rel=\"canonical\" href=\"https://platform.kimi.ai/docs/api-reference/sessions/update-a-session\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/sessions/update-a-session.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://platform.kimi.ai/#organization\",\"name\":\"Kimi API Platform\",\"url\":\"https://platform.kimi.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/moonshotai/X_5b_eA1iuJP595e/assets/logo/light.svg?fit=max\u0026auto=format\u0026n=X_5b_eA1iuJP595e\u0026q=85\u0026s=f68cf2d80f8d7f0363e088d2b988a598\"}},{\"@type\":\"WebSite\",\"@id\":\"https://platform.kimi.ai/docs#website\",\"name\":\"Kimi API Platform\",\"url\":\"https://platform.kimi.ai/docs\",\"publisher\":{\"@id\":\"https://platform.kimi.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://platform.kimi.ai/docs/api-reference/sessions/update-a-session#webpage\",\"url\":\"https://platform.kimi.ai/docs/api-reference/sessions/update-a-session\",\"name\":\"Update a Session\",\"description\":\"Changes the Session's title or agent overrides. Only title and agent_overrides are mutable, and fields absent from the body keep their values. agent_overrides takes effect on the next turn. A terminated (archived) Session rejects updates with 400 failed_precondition_error.\",\"dateModified\":\"2026-12-04T08:21:27.431Z\",\"isPartOf\":{\"@id\":\"https://platform.kimi.ai/docs#website\"},\"breadcrumb\":{\"@id\":\"https://platform.kimi.ai/docs/api-reference/sessions/update-a-session#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://platform.kimi.ai/docs/api-reference/sessions/update-a-session#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Hosted Agents\",\"item\":\"https://platform.kimi.ai/docs/api-reference/agents/list-agents\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Sessions\",\"item\":\"https://platform.kimi.ai/docs/api-reference/sessions/list-sessions\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Update a Session\",\"item\":\"https://platform.kimi.ai/docs/api-reference/sessions/update-a-session\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://platform.kimi.ai/docs/api-reference/sessions/update-a-session#apireference\",\"headline\":\"Update a Session\",\"name\":\"Update a Session\",\"description\":\"Changes the Session's title or agent overrides. Only title and agent_overrides are mutable, and fields absent from the body keep their values. agent_overrides takes effect on the next turn. A terminated (archived) Session rejects updates with 400 failed_precondition_error.\",\"url\":\"https://platform.kimi.ai/docs/api-reference/sessions/update-a-session\",\"mainEntityOfPage\":{\"@id\":\"https://platform.kimi.ai/docs/api-reference/sessions/update-a-session#webpage\"},\"image\":\"https://platform.kimi.ai/og.png?v=1\",\"dateModified\":\"2026-12-04T08:21:27.431Z\",\"publisher\":{\"@id\":\"https://platform.kimi.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://platform.kimi.ai/docs#website\"}}]}\u003c/script>","agentPointerHref":"/docs/api-reference/sessions/update-a-session.md","siteName":"Kimi API Platform","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/get-your-api-key"}]},{"tab":"Hosted Agents","pages":[{"title":"Hosted Agents","href":"/hosted-agents/overview"}]},{"tab":"API Reference","groups":[{"group":"Using the API","pages":[{"title":"API Overview","sidebarTitle":"API Overview","href":"/api/overview"},{"title":"Model Parameter Reference","sidebarTitle":"Model Parameter Reference","href":"/api/models-overview"},{"title":"Common Error Codes","sidebarTitle":"Error Codes","href":"/api/errors"}]},{"group":"API Reference","pages":[{"title":"Chat Completions API","sidebarTitle":"Chat Completions API","openapi":"POST /v1/chat/completions","href":"/api/chat"},{"title":"Responses API","sidebarTitle":"Responses API","openapi":"POST /v1/responses","href":"/api/responses"},{"title":"Messages API","sidebarTitle":"Messages API","openapi":"POST /anthropic/v1/messages","href":"/api/messages"},{"title":"List Models","sidebarTitle":"List Models","openapi":"GET /v1/models","href":"/api/list-models"},{"title":"Estimate Tokens","sidebarTitle":"Estimate Tokens","openapi":"POST /v1/tokenizers/estimate-token-count","href":"/api/estimate"},{"title":"Check Balance","sidebarTitle":"Check Balance","openapi":"GET /v1/users/me/balance","href":"/api/balance"},{"title":"Verify Request Signature","sidebarTitle":"Verify Request Signature","openapi":"POST /v1/signatures/verify","href":"/api/signatures-verify"}]},{"group":"Tools","pages":[{"title":"Web Search Basic","sidebarTitle":"Web Search Basic","openapi":"POST /v1/tools/search","href":"/api/tools-search"},{"title":"Web Search Pro","sidebarTitle":"Web Search Pro","openapi":"POST /v1/tools/search_pro","href":"/api/tools-search-pro"},{"title":"URL Fetch","sidebarTitle":"URL Fetch","openapi":"POST /v1/tools/fetch","href":"/api/tools-fetch"}]},{"group":"Files","pages":[{"title":"Upload File","sidebarTitle":"Upload File","openapi":"POST /v1/files","href":"/api/files-upload"},{"title":"List Files","sidebarTitle":"List Files","openapi":"GET /v1/files","href":"/api/files-list"},{"title":"Get File Information","sidebarTitle":"Get File Information","openapi":"GET /v1/files/{file_id}","href":"/api/files-retrieve"},{"title":"Delete File","sidebarTitle":"Delete File","openapi":"DELETE /v1/files/{file_id}","href":"/api/files-delete"},{"title":"Get File Content","sidebarTitle":"Get File Content","openapi":"GET /v1/files/{file_id}/content","href":"/api/files-content"}]},{"group":"Batch API","pages":[{"title":"Create Batch","sidebarTitle":"Create Batch","openapi":"POST /v1/batches","href":"/api/batch-create"},{"title":"List Batches","sidebarTitle":"List Batches","openapi":"GET /v1/batches","href":"/api/batch-list"},{"title":"Retrieve Batch","sidebarTitle":"Retrieve Batch","openapi":"GET /v1/batches/{batch_id}","href":"/api/batch-retrieve"},{"title":"Cancel Batch","sidebarTitle":"Cancel Batch","openapi":"POST /v1/batches/{batch_id}/cancel","href":"/api/batch-cancel"}]},{"group":"Hosted Agents","tag":"Beta","pages":[{"group":"Agents","pages":[{"title":"List Agents","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/agents","href":"/api-reference/agents/list-agents"},{"title":"Create an Agent","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml post /v1/agents","href":"/api-reference/agents/create-an-agent"},{"title":"Get an Agent","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/agents/{id}","href":"/api-reference/agents/get-an-agent"},{"title":"Update an Agent","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml patch /v1/agents/{id}","href":"/api-reference/agents/update-an-agent"},{"title":"Archive an Agent","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml post /v1/agents/{id}/archive","href":"/api-reference/agents/archive-an-agent"},{"title":"List Agent Versions","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/agents/{id}/versions","href":"/api-reference/agents/list-agent-versions"}]},{"group":"Artifacts","pages":[{"title":"List Artifacts","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/artifacts","href":"/api-reference/artifacts/list-artifacts"},{"title":"Get an Artifact","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/artifacts/{id}","href":"/api-reference/artifacts/get-an-artifact"},{"title":"Delete an Artifact","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml delete /v1/artifacts/{id}","href":"/api-reference/artifacts/delete-an-artifact"},{"title":"Download Artifact content","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/artifacts/{id}/content","href":"/api-reference/artifacts/download-artifact-content"},{"title":"List Artifact Versions","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/artifacts/{id}/versions","href":"/api-reference/artifacts/list-artifact-versions"}]},{"group":"Environments","pages":[{"title":"List Environments","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/environments","href":"/api-reference/environments/list-environments"},{"title":"Create an Environment","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml post /v1/environments","href":"/api-reference/environments/create-an-environment"},{"title":"Get an Environment","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/environments/{id}","href":"/api-reference/environments/get-an-environment"},{"title":"Delete an Environment","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml delete /v1/environments/{id}","href":"/api-reference/environments/delete-an-environment"},{"title":"Update an Environment","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml patch /v1/environments/{id}","href":"/api-reference/environments/update-an-environment"},{"title":"Archive an Environment","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml post /v1/environments/{id}/archive","href":"/api-reference/environments/archive-an-environment"}]},{"group":"Work Items","pages":[{"title":"List WorkItems","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/environments/{environment_id}/work","href":"/api-reference/work-items/list-workitems"},{"title":"Poll and claim a WorkItem","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/environments/{environment_id}/work/poll","href":"/api-reference/work-items/poll-and-claim-a-workitem"},{"title":"Get work queue statistics","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/environments/{environment_id}/work/stats","href":"/api-reference/work-items/get-work-queue-statistics"},{"title":"Get a WorkItem","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/environments/{environment_id}/work/{id}","href":"/api-reference/work-items/get-a-workitem"},{"title":"Acknowledge a delivered WorkItem","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml post /v1/environments/{environment_id}/work/{id}/ack","href":"/api-reference/work-items/acknowledge-a-delivered-workitem"},{"title":"Send a WorkItem heartbeat","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml post /v1/environments/{environment_id}/work/{id}/heartbeat","href":"/api-reference/work-items/send-a-workitem-heartbeat"},{"title":"Stop or complete a WorkItem","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml post /v1/environments/{environment_id}/work/{id}/stop","href":"/api-reference/work-items/stop-or-complete-a-workitem"}]},{"group":"Files","pages":[{"title":"List files","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/files","href":"/api-reference/files/list-files"},{"title":"Upload a file","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml post /v1/files","href":"/api-reference/files/upload-a-file"},{"title":"Get a file","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/files/{id}","href":"/api-reference/files/get-a-file"},{"title":"Delete a file","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml delete /v1/files/{id}","href":"/api-reference/files/delete-a-file"},{"title":"Get file content","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/files/{id}/content","href":"/api-reference/files/get-file-content"}]},{"group":"Memory Stores","pages":[{"title":"List Memory Stores","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/memory-stores","href":"/api-reference/memory-stores/list-memory-stores"},{"title":"Create a Memory Store","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml post /v1/memory-stores","href":"/api-reference/memory-stores/create-a-memory-store"},{"title":"Get a Memory Store","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/memory-stores/{id}","href":"/api-reference/memory-stores/get-a-memory-store"},{"title":"Delete a Memory Store","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml delete /v1/memory-stores/{id}","href":"/api-reference/memory-stores/delete-a-memory-store"},{"title":"Update a Memory Store","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml patch /v1/memory-stores/{id}","href":"/api-reference/memory-stores/update-a-memory-store"},{"title":"Archive a Memory Store","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml post /v1/memory-stores/{id}/archive","href":"/api-reference/memory-stores/archive-a-memory-store"},{"title":"List Memories","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/memory-stores/{id}/memories","href":"/api-reference/memory-stores/list-memories"},{"title":"Create a Memory","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml post /v1/memory-stores/{id}/memories","href":"/api-reference/memory-stores/create-a-memory"},{"title":"Get a Memory","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/memory-stores/{id}/memories/{memory_id}","href":"/api-reference/memory-stores/get-a-memory"},{"title":"Delete a Memory","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml delete /v1/memory-stores/{id}/memories/{memory_id}","href":"/api-reference/memory-stores/delete-a-memory"},{"title":"Update a Memory","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml patch /v1/memory-stores/{id}/memories/{memory_id}","href":"/api-reference/memory-stores/update-a-memory"},{"title":"List Memory Versions","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/memory-stores/{id}/memories/{memory_id}/versions","href":"/api-reference/memory-stores/list-memory-versions"},{"title":"Get a Memory Version","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/memory-stores/{id}/memories/{memory_id}/versions/{version_id}","href":"/api-reference/memory-stores/get-a-memory-version"},{"title":"Redact a Memory Version","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml post /v1/memory-stores/{id}/memories/{memory_id}/versions/{version_id}/redact","href":"/api-reference/memory-stores/redact-a-memory-version"},{"title":"Get Dreams policy","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/memory-stores/{memory_store_id}/dream-policy","href":"/api-reference/memory-stores/get-dreams-policy"},{"title":"Update Dreams policy","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml patch /v1/memory-stores/{memory_store_id}/dream-policy","href":"/api-reference/memory-stores/update-dreams-policy"}]},{"group":"Plugins","pages":[{"title":"List Plugins","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/plugins","href":"/api-reference/plugins/list-plugins"},{"title":"Create a Plugin","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml post /v1/plugins","href":"/api-reference/plugins/create-a-plugin"},{"title":"Validate a Plugin bundle","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml post /v1/plugins/validate","href":"/api-reference/plugins/validate-a-plugin-bundle"},{"title":"Get a Plugin","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/plugins/{id}","href":"/api-reference/plugins/get-a-plugin"},{"title":"Archive a Plugin","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml post /v1/plugins/{id}/archive","href":"/api-reference/plugins/archive-a-plugin"},{"title":"List Plugin Versions","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/plugins/{id}/versions","href":"/api-reference/plugins/list-plugin-versions"},{"title":"Create a Plugin Version","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml post /v1/plugins/{id}/versions","href":"/api-reference/plugins/create-a-plugin-version"},{"title":"Get Plugin Version content","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/plugins/{id}/versions/{version}/content","href":"/api-reference/plugins/get-plugin-version-content"}]},{"group":"Sessions","pages":[{"title":"List Sessions","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/sessions","href":"/api-reference/sessions/list-sessions"},{"title":"Create a Session","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml post /v1/sessions","href":"/api-reference/sessions/create-a-session"},{"title":"Get a Session","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/sessions/{id}","href":"/api-reference/sessions/get-a-session"},{"title":"Delete a Session","description":"Permanently deletes an archived Session and its resource bindings.\n\nThe Session must be archived first (400 `failed_precondition_error`\notherwise). A Session bound to a Trigger in `reuse_session` mode cannot\nbe deleted while that Trigger exists.\nPending lifecycle work or an active Thread returns 409 `conflict_error`.","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml delete /v1/sessions/{id}","href":"/api-reference/sessions/delete-a-session"},{"title":"Update a Session","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml patch /v1/sessions/{id}","href":"/api-reference/sessions/update-a-session"},{"title":"Archive a Session","description":"Archives a Session, terminating it and cancelling its Threads. A running\nSession cannot be archived (400 `failed_precondition_error`), and a\nstopping Session returns 409 `conflict_error`. Stop it first with a\n`user.interrupt` event and wait until it is idle. Archived Sessions reject updates\nand new events but stay readable.","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml post /v1/sessions/{id}/archive","href":"/api-reference/sessions/archive-a-session"},{"title":"Continue a Session","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml post /v1/sessions/{id}/continue","href":"/api-reference/sessions/continue-a-session"},{"title":"List Session events","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/sessions/{id}/events","href":"/api-reference/sessions/list-session-events"},{"title":"Send events to a Session","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml post /v1/sessions/{id}/events","href":"/api-reference/sessions/send-events-to-a-session"},{"title":"List pending events","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/sessions/{id}/events/pending","href":"/api-reference/sessions/list-pending-events"},{"title":"Retract a pending event","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml delete /v1/sessions/{id}/events/pending/{event_id}","href":"/api-reference/sessions/retract-a-pending-event"},{"title":"Stream Session events (SSE)","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/sessions/{id}/events/stream","href":"/api-reference/sessions/stream-session-events-sse"},{"title":"List files in the Session filesystem","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/sessions/{id}/filesystem","href":"/api-reference/sessions/list-files-in-the-session-filesystem"},{"title":"Download a file from the Session filesystem","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/sessions/{id}/filesystem/raw","href":"/api-reference/sessions/download-a-file-from-the-session-filesystem"},{"title":"List Session Resources","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/sessions/{id}/resources","href":"/api-reference/sessions/list-session-resources"},{"title":"Add a Session resource","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml post /v1/sessions/{id}/resources","href":"/api-reference/sessions/add-a-session-resource"},{"title":"Get a Session resource","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/sessions/{id}/resources/{resource_id}","href":"/api-reference/sessions/get-a-session-resource"},{"title":"Remove a Session resource","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml delete /v1/sessions/{id}/resources/{resource_id}","href":"/api-reference/sessions/remove-a-session-resource"},{"title":"List Session Threads","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/sessions/{id}/threads","href":"/api-reference/sessions/list-session-threads"},{"title":"Get a Session Thread","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/sessions/{id}/threads/{thread_id}","href":"/api-reference/sessions/get-a-session-thread"},{"title":"Archive a Session Thread","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml post /v1/sessions/{id}/threads/{thread_id}/archive","href":"/api-reference/sessions/archive-a-session-thread"},{"title":"List Thread events","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/sessions/{id}/threads/{thread_id}/events","href":"/api-reference/sessions/list-thread-events"},{"title":"Stream Thread events (SSE)","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/sessions/{id}/threads/{thread_id}/events/stream","href":"/api-reference/sessions/stream-thread-events-sse"}]},{"group":"Skills","pages":[{"title":"List Skills","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/skills","href":"/api-reference/skills/list-skills"},{"title":"Create a Skill","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml post /v1/skills","href":"/api-reference/skills/create-a-skill"},{"title":"Get a Skill","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/skills/{id}","href":"/api-reference/skills/get-a-skill"},{"title":"Delete a Skill","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml delete /v1/skills/{id}","href":"/api-reference/skills/delete-a-skill"},{"title":"Archive a Skill","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml post /v1/skills/{id}/archive","href":"/api-reference/skills/archive-a-skill"},{"title":"List Skill Versions","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/skills/{id}/versions","href":"/api-reference/skills/list-skill-versions"},{"title":"Get Skill Version content","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/skills/{id}/versions/{version}/content","href":"/api-reference/skills/get-skill-version-content"}]},{"group":"Triggers","pages":[{"title":"List Triggers","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/triggers","href":"/api-reference/triggers/list-triggers"},{"title":"Create a Trigger","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml post /v1/triggers","href":"/api-reference/triggers/create-a-trigger"},{"title":"Get a Trigger","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/triggers/{id}","href":"/api-reference/triggers/get-a-trigger"},{"title":"Update a Trigger","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml patch /v1/triggers/{id}","href":"/api-reference/triggers/update-a-trigger"},{"title":"Archive a Trigger","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml post /v1/triggers/{id}/archive","href":"/api-reference/triggers/archive-a-trigger"},{"title":"Pause a Trigger","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml post /v1/triggers/{id}/pause","href":"/api-reference/triggers/pause-a-trigger"},{"title":"Run a Trigger","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml post /v1/triggers/{id}/run","href":"/api-reference/triggers/run-a-trigger"},{"title":"List TriggerRuns","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/triggers/{id}/runs","href":"/api-reference/triggers/list-triggerruns"},{"title":"Get a TriggerRun","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/triggers/{id}/runs/{run_id}","href":"/api-reference/triggers/get-a-triggerrun"},{"title":"Unpause a Trigger","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml post /v1/triggers/{id}/unpause","href":"/api-reference/triggers/unpause-a-trigger"}]},{"group":"Vaults","pages":[{"title":"List Vaults","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/vaults","href":"/api-reference/vaults/list-vaults"},{"title":"Create a Vault","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml post /v1/vaults","href":"/api-reference/vaults/create-a-vault"},{"title":"Check Vault credential coverage","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml post /v1/vaults/credentials/check","href":"/api-reference/vaults/check-vault-credential-coverage"},{"title":"Get a Vault","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/vaults/{id}","href":"/api-reference/vaults/get-a-vault"},{"title":"Delete a Vault","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml delete /v1/vaults/{id}","href":"/api-reference/vaults/delete-a-vault"},{"title":"Update a Vault","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml patch /v1/vaults/{id}","href":"/api-reference/vaults/update-a-vault"},{"title":"Archive a Vault","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml post /v1/vaults/{id}/archive","href":"/api-reference/vaults/archive-a-vault"},{"title":"List Vault credentials","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/vaults/{id}/credentials","href":"/api-reference/vaults/list-vault-credentials"},{"title":"Create a Vault credential","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml post /v1/vaults/{id}/credentials","href":"/api-reference/vaults/create-a-vault-credential"},{"title":"Batch create Vault credentials","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml post /v1/vaults/{id}/credentials/batch","href":"/api-reference/vaults/batch-create-vault-credentials"},{"title":"Get a Vault credential","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/vaults/{id}/credentials/{credential_id}","href":"/api-reference/vaults/get-a-vault-credential"},{"title":"Delete a Vault credential","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml delete /v1/vaults/{id}/credentials/{credential_id}","href":"/api-reference/vaults/delete-a-vault-credential"},{"title":"Update a Vault credential","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml patch /v1/vaults/{id}/credentials/{credential_id}","href":"/api-reference/vaults/update-a-vault-credential"},{"title":"Archive a Vault credential","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml post /v1/vaults/{id}/credentials/{credential_id}/archive","href":"/api-reference/vaults/archive-a-vault-credential"},{"title":"Start MCP OAuth authorization","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml post /v1/vaults/{id}/oauth-sessions","href":"/api-reference/vaults/start-mcp-oauth-authorization"},{"title":"Get MCP OAuth authorization status","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/vaults/{id}/oauth-sessions/{session_id}","href":"/api-reference/vaults/get-mcp-oauth-authorization-status"}]},{"group":"Webhooks","pages":[{"title":"List Webhooks","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/webhooks","href":"/api-reference/webhooks/list-webhooks"},{"title":"Create a Webhook","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml post /v1/webhooks","href":"/api-reference/webhooks/create-a-webhook"},{"title":"Get a Webhook","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml get /v1/webhooks/{id}","href":"/api-reference/webhooks/get-a-webhook"},{"title":"Delete a Webhook","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml delete /v1/webhooks/{id}","href":"/api-reference/webhooks/delete-a-webhook"},{"title":"Update a Webhook","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml patch /v1/webhooks/{id}","href":"/api-reference/webhooks/update-a-webhook"},{"title":"Rotate a Webhook signing secret","deprecated":null,"version":null,"openapi":"/hosted-agents/openapi.yaml post /v1/webhooks/{id}/regenerate-signing-secret","href":"/api-reference/webhooks/rotate-a-webhook-signing-secret"},{"title":"Send a webhook event","version":null,"deprecated":null,"openapi":"/hosted-agents/openapi.yaml webhook event","href":"/api-reference/webhooks/send-a-webhook-event"}]}]},{"group":"Admin API","tag":"Beta","pages":[{"title":"Admin API overview","sidebarTitle":"Overview","href":"/admin-api/overview"},{"group":"Billing","pages":[{"title":"List daily bills","openapi":"GET /v1/admin/organizations/billings/daily_bills","href":"/admin-api/billing-daily-bills"},{"title":"List product bills","openapi":"GET /v1/admin/organizations/billings/product_bills","href":"/admin-api/billing-product-bills"},{"title":"List request details","openapi":"GET /v1/admin/organizations/billings/request_details","href":"/admin-api/billing-request-details"},{"title":"List interrupted requests","openapi":"GET /v1/admin/organizations/billings/interrupted_requests","href":"/admin-api/billing-interrupted-requests"},{"title":"Get account balance","openapi":"GET /v1/admin/organizations/account","href":"/admin-api/billing-account"}]},{"group":"Audit Logs","pages":[{"title":"List audit log events","openapi":"GET /v1/admin/organizations/audit_logs","href":"/admin-api/audit-logs"}]},{"group":"Usage","pages":[{"title":"Get usage aggregation","openapi":"GET /v1/admin/organizations/usage/{usage_type}","href":"/admin-api/usage"}]},{"group":"Organization","pages":[{"title":"Get organization info","openapi":"GET /v1/admin/organizations","href":"/admin-api/organization"},{"group":"Members \u0026 Invitations","pages":[{"title":"List members","openapi":"GET /v1/admin/organizations/members","href":"/admin-api/members"},{"title":"Get member","openapi":"GET /v1/admin/organizations/members/{uid}","href":"/admin-api/member"},{"title":"Update member role","openapi":"PATCH /v1/admin/organizations/members/{uid}","href":"/admin-api/member-update-role"},{"title":"Remove member","openapi":"DELETE /v1/admin/organizations/members/{uid}","href":"/admin-api/member-remove"},{"title":"List invitations","openapi":"GET /v1/admin/organizations/invites","href":"/admin-api/invites"},{"title":"Get invitation","openapi":"GET /v1/admin/organizations/invites/{code}","href":"/admin-api/invite"},{"title":"Create invitation","openapi":"POST /v1/admin/organizations/invites","href":"/admin-api/invite-create"}]},{"group":"Projects","pages":[{"title":"List projects","openapi":"GET /v1/admin/organizations/projects","href":"/admin-api/projects"},{"title":"Get project","openapi":"GET /v1/admin/organizations/projects/{pid}","href":"/admin-api/project"},{"title":"Create project","openapi":"POST /v1/admin/organizations/projects","href":"/admin-api/project-create"},{"title":"Update project","openapi":"PATCH /v1/admin/organizations/projects/{pid}","href":"/admin-api/project-update"},{"title":"Archive project","openapi":"POST /v1/admin/organizations/projects/{pid}/archive","href":"/admin-api/project-archive"}]},{"group":"Project Members","pages":[{"title":"List project members","openapi":"GET /v1/admin/organizations/projects/{pid}/members","href":"/admin-api/project-members"},{"title":"Add project member","openapi":"POST /v1/admin/organizations/projects/{pid}/members","href":"/admin-api/project-member-add"},{"title":"Update project member role","openapi":"PATCH /v1/admin/organizations/projects/{pid}/members/{uid}","href":"/admin-api/project-member-update-role"},{"title":"Remove project member","openapi":"DELETE /v1/admin/organizations/projects/{pid}/members/{uid}","href":"/admin-api/project-member-remove"}]},{"group":"API Keys","pages":[{"title":"List project API keys","openapi":"GET /v1/admin/organizations/projects/{pid}/api_keys","href":"/admin-api/project-api-keys"},{"title":"Get API key metadata","openapi":"GET /v1/admin/organizations/api_keys/{key}","href":"/admin-api/api-key"},{"title":"Rename API key","openapi":"PATCH /v1/admin/organizations/projects/{pid}/api_keys/{key}","href":"/admin-api/api-key-rename"},{"title":"Revoke API key","openapi":"DELETE /v1/admin/organizations/projects/{pid}/api_keys/{key}","href":"/admin-api/api-key-revoke"}]},{"group":"Configuration","pages":[{"title":"Get organization rate limits","openapi":"GET /v1/admin/organizations/rate_limits","href":"/admin-api/rate-limits"},{"group":"Project Model Rate Limits","pages":[{"title":"List project model rate limits","openapi":"GET /v1/admin/organizations/projects/{pid}/model_limits","href":"/admin-api/project-model-limits"},{"title":"Create project model rate limit","openapi":"POST /v1/admin/organizations/projects/{pid}/model_limits","href":"/admin-api/project-model-limit-create"},{"title":"Get project model rate limit","openapi":"GET /v1/admin/organizations/projects/{pid}/model_limits/{model_id}","href":"/admin-api/project-model-limit"},{"title":"Update project model rate limit","openapi":"PATCH /v1/admin/organizations/projects/{pid}/model_limits/{model_id}","href":"/admin-api/project-model-limit-update"},{"title":"Delete project model rate limit","openapi":"DELETE /v1/admin/organizations/projects/{pid}/model_limits/{model_id}","href":"/admin-api/project-model-limit-delete"}]},{"title":"Get project spend limit","openapi":"GET /v1/admin/organizations/projects/{pid}/spend_limits","href":"/admin-api/project-spend-limits"},{"title":"Update project spend limit","openapi":"PATCH /v1/admin/organizations/projects/{pid}/spend_limits","href":"/admin-api/project-spend-limits-update"}]}]}]}]},{"tab":"Models \u0026 Pricing","pages":[{"title":"Models \u0026 Pricing","href":"/pricing/chat"}]},{"tab":"Resources","menu":[{"item":"Community","icon":"users","pages":[{"title":"Community","href":"/api/join-the-community"}]},{"item":"Playground","icon":"terminal","href":"https://platform.kimi.ai/playground"},{"item":"Help Center","icon":"circle-question","pages":[{"title":"Help Center","href":"/guide/account-and-payments"}]},{"item":"Learning and support","icon":"book-open","pages":[{"title":"Learning and support","href":"/guide/compact-conversation-history"}]},{"item":"Legal","icon":"file-text","pages":[{"title":"Legal","href":"/agreement/modeluse"}]},{"item":"Changelog","icon":"list","pages":[{"title":"Changelog","href":"/platform-changelog"}]}],"pages":[{"title":"Resources","href":"/api/join-the-community"}]}]},"basePath":"","title":"Update a Session - Kimi API Platform","deploymentId":"dpl_hSqyvJ4yQMj8zFViHgqnZFPm1xMv","buildId":"dpl_hSqyvJ4yQMj8zFViHgqnZFPm1xMv","dynamics":["10e4515597","c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["BannerMarkdown-CnvXEoCZ.js","dist-B4jGo7gd.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js","OpenApiReferenceProvider-dMMLDTIU.js","snippetPresets-QcUypRGT.js","utils-Br4-Z8t0.js","style-to-object-BY3JEAdk.js","utils-GmDMK9BG.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-CImT44J1.js","conditional-requirements-CFM0id0Q.js","cloneDeep-De0u6l-0.js","_Uint8Array-DFGmIAJe.js","isObject-FP1Yky1u.js","Page-_65rMYFd.js","api-description-markdown-nWfwWSzV.js","DynamicMarkdown-C-ybrQe5.js","CodeSnippet-DV5Lj4DY.js","use-playground-group-access-CM_BSfmB.js","SectionHeading-mysGfPJl.js","ApiExamples-eUm2Ge_e.js","usePlaygroundInputsStore-BAilauYF.js","shallow-Z0k_fL-l.js","isEqual-BBOkDGmR.js","CodeSnippets-DORhwN-0.js","MethodPill-B29O_3ra.js","getPastedJson-Bnk6wgbx.js","Check2Icon-CWFt9B5t.js","axios-CsQoIw0U.js","Markdown-B2fY8v6N.js","AssistantPageLink-BsAGvIMN.js"]}