Produce a context object from the Session. The caller provides an optional token limit which the entire context must fit into.
If not provided, the context will be exhaustive (within configured max tokens). To do this, we allocate 40% of the token limit
to the summary, and 60% to recent messages — as many as can fit. Note that the summary will usually take up less space than
this. If the caller does not want a summary, we allocate all the tokens to recent messages.
Number of tokens to use for the context. Includes summary if set to true. Includes representation and peer card if they are included in the response. If not provided, the context will be exhaustive (within 100000 tokens)
The target of the perspective. If given without peer_perspective, will get the Honcho-level representation and peer card for this peer. If given with peer_perspective, will get the representation and card for this peer from the perspective of that peer.
A peer to get context for. If given, response will attempt to include representation and card from the perspective of that peer. Must be provided with peer_target.
An (unprefixed) scope name to use as the perspective source: the representation and peer card of peer_target are read from the scope's observations instead of the global (or peer_perspective) view. Must be provided with peer_target; mutually exclusive with peer_perspective. Requires a workspace- or admin-level key.
Optional allowlist of session IDs confining the representation of peer_target to those sessions. This session must be one of them. Recall is restricted to conclusions stated directly in the allowed sessions — conclusions synthesized across sessions are excluded, since their provenance cannot be proven to sit inside the allowlist — and the peer card is omitted for the same reason. Mutually exclusive with scope and limit_to_session. A peer-scoped key must be an active member of every session named. The 1,000-session cap shared with the recall endpoints applies but is not reachable here: these are repeated query parameters, so a long list exceeds the request-line limit of the server or any proxy in front of it (a 414/431, not a 422) at a few hundred entries. Use a named scope for large or reusable session sets.
Whether to limit the representation to the session (as opposed to everything known about the target peer). Narrows recall the same way sessions does, so the same restrictions apply: explicit-only conclusions, and the peer card is omitted because it carries no per-session provenance.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Honcho","colors":{"primary":"#66AAFF","light":"#86BCF2","dark":"#151E27"},"logo":{"light":"https://mintcdn.com/plasticlabs/Tnh_xfGaSgXYiKRy/logo/honcho-dark.svg?fit=max\u0026auto=format\u0026n=Tnh_xfGaSgXYiKRy\u0026q=85\u0026s=5ea9abc83421c35574fc8baf38d67172","dark":"https://mintcdn.com/plasticlabs/Tnh_xfGaSgXYiKRy/logo/honcho-light.svg?fit=max\u0026auto=format\u0026n=Tnh_xfGaSgXYiKRy\u0026q=85\u0026s=44f6093c094ec1438eddfa6d6cf6412a"},"favicon":"https://mintcdn.com/plasticlabs/Tnh_xfGaSgXYiKRy/favicon.svg?fit=max\u0026auto=format\u0026n=Tnh_xfGaSgXYiKRy\u0026q=85\u0026s=a064f4bc53a4deaf55fcf76d863005a7","api":{"openapi":["v3/openapi.json"]},"navbar":{"primary":{"type":"github","href":"https://github.com/plastic-labs/honcho"}},"footer":{"socials":{"twitter":"https://x.com/honchodotdev","github":"https://github.com/plastic-labs/honcho","discord":"https://discord.gg/honcho","linkedin":"https://www.linkedin.com/company/plasticlabs","youtube":"https://www.youtube.com/@plasticlabs"}},"integrations":{"gtm":{"tagId":"GTM-NSPT9PJF"}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"plasticlabs","hasAudioNarration":false,"actualSubdomain":"plasticlabs","customDomains":["honcho.dev"],"gitSource":{"type":"github","owner":"plastic-labs","repo":"honcho","deployBranch":"main","contentDirectory":"docs","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6aeba46b04977880e7f32544","collectionId":"281bcf45-d6e4-4bea-ac54-2d55028f18af","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6aeba46b04977880e7f32544"},"feedback":{"issues":true,"edits":true,"thumbs":true,"agentFeedback":true},"entitlements":{},"buildId":"6aed07854e65e47d17b8fc7e","clientVersion":"0.0.4076","searchFilterCounts":[{"language":"default","tag":"API Reference","count":57},{"language":"default","tag":"Documentation","count":30},{"language":"default","tag":"Integrations","count":26},{"language":"default","tag":"Features","count":19},{"language":"default","tag":"Advanced","count":16},{"language":"default","tag":"sessions","count":14},{"language":"default","tag":"peers","count":10},{"language":"default","tag":"workspaces","count":8},{"language":"default","tag":"scopes","count":7},{"language":"default","tag":"Coding Agents","count":7}]},"assistantConfig":{},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".dark img[src^=\"https://cdn.jsdelivr.net/\"]{filter:invert(1)}"}],"page":{"pagePath":"v3/api-reference/endpoint/sessions/get-session-context","slug":"/v3/api-reference/endpoint/sessions/get-session-context","pageMetadata":{"openapi":"get /v3/workspaces/{workspace_id}/sessions/{session_id}/context","title":"Get Session Context","description":"Produce a context object from the Session. The caller provides an optional token limit which the entire context must fit into.\nIf not provided, the context will be exhaustive (within configured max tokens). To do this, we allocate 40% of the token limit\nto the summary, and 60% to recent messages -- as many as can fit. Note that the summary will usually take up less space than\nthis. If the caller does not want a summary, we allocate all the tokens to recent messages.","href":"/v3/api-reference/endpoint/sessions/get-session-context"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Produce a context object from the Session. The caller provides an optional token limit which the entire context must fit into.\\nIf not provided, the context will be exhaustive (within configured max tokens). To do this, we allocate 40% of the token limit\\nto the summary, and 60% to recent messages — as many as can fit. Note that the summary will usually take up less space than\\nthis. If the caller does not want a summary, we allocate all the tokens to recent messages.\"\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":{"openapi":"get /v3/workspaces/{workspace_id}/sessions/{session_id}/context","title":"Get Session Context","description":"Produce a context object from the Session. The caller provides an optional token limit which the entire context must fit into.\nIf not provided, the context will be exhaustive (within configured max tokens). To do this, we allocate 40% of the token limit\nto the summary, and 60% to recent messages -- as many as can fit. Note that the summary will usually take up less space than\nthis. If the caller does not want a summary, we allocate all the tokens to recent messages.","href":"/v3/api-reference/endpoint/sessions/get-session-context"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/plasticlabs/7b27419a986dcdea/posthog-consent.js"],"openApiReferenceData":{"operation":{"tags":["sessions"],"summary":"Get Session Context","description":"Produce a context object from the Session. The caller provides an optional token limit which the entire context must fit into.\nIf not provided, the context will be exhaustive (within configured max tokens). To do this, we allocate 40% of the token limit\nto the summary, and 60% to recent messages -- as many as can fit. Note that the summary will usually take up less space than\nthis. If the caller does not want a summary, we allocate all the tokens to recent messages.","operationId":"get_session_context_v3_workspaces__workspace_id__sessions__session_id__context_get","security":["f03d5654-a039-4cdb-8ee5-496391002f43"],"parameters":["863cec4d-b6f3-455a-9a4e-de169d5b30b9","1c634c6b-9419-442c-bcfd-5f3ee9370451","57d38420-8ea1-445e-a77d-bae1dc516063","1ba5374c-3270-4b67-bd0b-dc33ec0d960f","2e2da192-4bab-4e1b-aedc-274345b99405","16ed8574-a84a-4ae8-91e5-d823e192851f","6b07cfbe-960a-49ff-b645-6a993fa58aba","c77f202a-6070-4e7b-96cf-dc123cfb05d9","61662ab2-968f-4244-99c9-206c87d098b2","7cb74dc7-6442-4327-b6d0-cfac739970ff","37d73ba5-c597-4969-8348-fe618d3d894d","885e45cc-a0fb-429a-97df-ca5498dd56e2","ae4e4b3f-cb3e-4b8b-bfee-bac8a3745f53","577ee0c6-6874-44c3-b860-2a1f2fa79574"],"responses":{"200":"e8a13d17-14e3-4e76-b575-bb11568e01ad","422":"59072de8-bcee-4a41-9823-f56647347125"},"method":"get","type":"path","servers":["a0b9f024-21b2-45d7-9ae8-f2e30421a4cb"],"path":"/v3/workspaces/{workspace_id}/sessions/{session_id}/context","baseUrlOptions":["https://api.honcho.dev"],"title":"Get Session Context","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"863cec4d-b6f3-455a-9a4e-de169d5b30b9":{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id","isRequired":true,"uniqueKey":"","typeLabel":"string"}},"1c634c6b-9419-442c-bcfd-5f3ee9370451":{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id","isRequired":true,"uniqueKey":"","typeLabel":"string"}},"57d38420-8ea1-445e-a77d-bae1dc516063":{"name":"tokens","in":"query","required":false,"schema":{"oneOf":[{"type":"integer","title":"Tokens","description":"Number of tokens to use for the context. Includes summary if set to true. Includes representation and peer card if they are included in the response. If not provided, the context will be exhaustive (within 100000 tokens)","maximum":100000,"uniqueKey":"oneOf.0","typeLabel":"integer"},{"type":"null","title":"Tokens","description":"Number of tokens to use for the context. Includes summary if set to true. Includes representation and peer card if they are included in the response. If not provided, the context will be exhaustive (within 100000 tokens)","uniqueKey":"oneOf.1","typeLabel":"null"}],"isRequired":false,"uniqueKey":"","typeLabel":"integer | null"},"description":"Number of tokens to use for the context. Includes summary if set to true. Includes representation and peer card if they are included in the response. If not provided, the context will be exhaustive (within 100000 tokens)"},"1ba5374c-3270-4b67-bd0b-dc33ec0d960f":{"name":"search_query","in":"query","required":false,"schema":{"oneOf":[{"type":"string","title":"Search Query","description":"A query string used to fetch semantically relevant conclusions","uniqueKey":"oneOf.0","typeLabel":"string"},{"type":"null","title":"Search Query","description":"A query string used to fetch semantically relevant conclusions","uniqueKey":"oneOf.1","typeLabel":"null"}],"isRequired":false,"uniqueKey":"","typeLabel":"string | null"},"description":"A query string used to fetch semantically relevant conclusions"},"2e2da192-4bab-4e1b-aedc-274345b99405":{"name":"summary","in":"query","required":false,"schema":{"type":"boolean","description":"Whether or not to include a summary *if* one is available for the session","default":true,"title":"Summary","isRequired":false,"uniqueKey":"","typeLabel":"boolean"},"description":"Whether or not to include a summary *if* one is available for the session"},"16ed8574-a84a-4ae8-91e5-d823e192851f":{"name":"peer_target","in":"query","required":false,"schema":{"oneOf":[{"type":"string","title":"Peer Target","description":"The target of the perspective. If given without `peer_perspective`, will get the Honcho-level representation and peer card for this peer. If given with `peer_perspective`, will get the representation and card for this peer *from the perspective of that peer*.","uniqueKey":"oneOf.0","typeLabel":"string"},{"type":"null","title":"Peer Target","description":"The target of the perspective. If given without `peer_perspective`, will get the Honcho-level representation and peer card for this peer. If given with `peer_perspective`, will get the representation and card for this peer *from the perspective of that peer*.","uniqueKey":"oneOf.1","typeLabel":"null"}],"isRequired":false,"uniqueKey":"","typeLabel":"string | null"},"description":"The target of the perspective. If given without `peer_perspective`, will get the Honcho-level representation and peer card for this peer. If given with `peer_perspective`, will get the representation and card for this peer *from the perspective of that peer*."},"6b07cfbe-960a-49ff-b645-6a993fa58aba":{"name":"peer_perspective","in":"query","required":false,"schema":{"oneOf":[{"type":"string","title":"Peer Perspective","description":"A peer to get context for. If given, response will attempt to include representation and card from the perspective of that peer. Must be provided with `peer_target`.","uniqueKey":"oneOf.0","typeLabel":"string"},{"type":"null","title":"Peer Perspective","description":"A peer to get context for. If given, response will attempt to include representation and card from the perspective of that peer. Must be provided with `peer_target`.","uniqueKey":"oneOf.1","typeLabel":"null"}],"isRequired":false,"uniqueKey":"","typeLabel":"string | null"},"description":"A peer to get context for. If given, response will attempt to include representation and card from the perspective of that peer. Must be provided with `peer_target`."},"c77f202a-6070-4e7b-96cf-dc123cfb05d9":{"name":"scope","in":"query","required":false,"schema":{"oneOf":[{"type":"string","title":"Scope","description":"An (unprefixed) scope name to use as the perspective source: the representation and peer card of `peer_target` are read from the scope's observations instead of the global (or `peer_perspective`) view. Must be provided with `peer_target`; mutually exclusive with `peer_perspective`. Requires a workspace- or admin-level key.","uniqueKey":"oneOf.0","typeLabel":"string"},{"type":"null","title":"Scope","description":"An (unprefixed) scope name to use as the perspective source: the representation and peer card of `peer_target` are read from the scope's observations instead of the global (or `peer_perspective`) view. Must be provided with `peer_target`; mutually exclusive with `peer_perspective`. Requires a workspace- or admin-level key.","uniqueKey":"oneOf.1","typeLabel":"null"}],"isRequired":false,"uniqueKey":"","typeLabel":"string | null"},"description":"An (unprefixed) scope name to use as the perspective source: the representation and peer card of `peer_target` are read from the scope's observations instead of the global (or `peer_perspective`) view. Must be provided with `peer_target`; mutually exclusive with `peer_perspective`. Requires a workspace- or admin-level key."},"61662ab2-968f-4244-99c9-206c87d098b2":{"name":"sessions","in":"query","required":false,"schema":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"oneOf.0.items.[INDEX]","typeLabel":"string"},"title":"Sessions","description":"Optional allowlist of session IDs confining the representation of `peer_target` to those sessions. This session must be one of them. Recall is restricted to conclusions stated directly in the allowed sessions — conclusions synthesized across sessions are excluded, since their provenance cannot be proven to sit inside the allowlist — and the peer card is omitted for the same reason. Mutually exclusive with `scope` and `limit_to_session`. A peer-scoped key must be an active member of every session named. The 1,000-session cap shared with the recall endpoints applies but is not reachable here: these are repeated query parameters, so a long list exceeds the request-line limit of the server or any proxy in front of it (a 414/431, not a 422) at a few hundred entries. Use a named `scope` for large or reusable session sets.","uniqueKey":"oneOf.0","typeLabel":"string[]"},{"type":"null","title":"Sessions","description":"Optional allowlist of session IDs confining the representation of `peer_target` to those sessions. This session must be one of them. Recall is restricted to conclusions stated directly in the allowed sessions — conclusions synthesized across sessions are excluded, since their provenance cannot be proven to sit inside the allowlist — and the peer card is omitted for the same reason. Mutually exclusive with `scope` and `limit_to_session`. A peer-scoped key must be an active member of every session named. The 1,000-session cap shared with the recall endpoints applies but is not reachable here: these are repeated query parameters, so a long list exceeds the request-line limit of the server or any proxy in front of it (a 414/431, not a 422) at a few hundred entries. Use a named `scope` for large or reusable session sets.","uniqueKey":"oneOf.1","typeLabel":"null"}],"isRequired":false,"uniqueKey":"","typeLabel":"string[] | null"},"description":"Optional allowlist of session IDs confining the representation of `peer_target` to those sessions. This session must be one of them. Recall is restricted to conclusions stated directly in the allowed sessions — conclusions synthesized across sessions are excluded, since their provenance cannot be proven to sit inside the allowlist — and the peer card is omitted for the same reason. Mutually exclusive with `scope` and `limit_to_session`. A peer-scoped key must be an active member of every session named. The 1,000-session cap shared with the recall endpoints applies but is not reachable here: these are repeated query parameters, so a long list exceeds the request-line limit of the server or any proxy in front of it (a 414/431, not a 422) at a few hundred entries. Use a named `scope` for large or reusable session sets."},"7cb74dc7-6442-4327-b6d0-cfac739970ff":{"name":"limit_to_session","in":"query","required":false,"schema":{"type":"boolean","description":"Whether to limit the representation to the session (as opposed to everything known about the target peer). Narrows recall the same way `sessions` does, so the same restrictions apply: explicit-only conclusions, and the peer card is omitted because it carries no per-session provenance.","default":false,"title":"Limit To Session","isRequired":false,"uniqueKey":"","typeLabel":"boolean"},"description":"Whether to limit the representation to the session (as opposed to everything known about the target peer). Narrows recall the same way `sessions` does, so the same restrictions apply: explicit-only conclusions, and the peer card is omitted because it carries no per-session provenance."},"37d73ba5-c597-4969-8348-fe618d3d894d":{"name":"search_top_k","in":"query","required":false,"schema":{"oneOf":[{"type":"integer","title":"Search Top K","description":"Only used if `search_query` is provided. The number of semantic-search-retrieved conclusions to include in the representation","maximum":100,"minimum":1,"uniqueKey":"oneOf.0","typeLabel":"integer"},{"type":"null","title":"Search Top K","description":"Only used if `search_query` is provided. The number of semantic-search-retrieved conclusions to include in the representation","uniqueKey":"oneOf.1","typeLabel":"null"}],"isRequired":false,"uniqueKey":"","typeLabel":"integer | null"},"description":"Only used if `search_query` is provided. The number of semantic-search-retrieved conclusions to include in the representation"},"885e45cc-a0fb-429a-97df-ca5498dd56e2":{"name":"search_max_distance","in":"query","required":false,"schema":{"oneOf":[{"type":"number","title":"Search Max Distance","description":"Only used if `search_query` is provided. The maximum distance to search for semantically relevant conclusions","maximum":1,"minimum":0,"uniqueKey":"oneOf.0","typeLabel":"number"},{"type":"null","title":"Search Max Distance","description":"Only used if `search_query` is provided. The maximum distance to search for semantically relevant conclusions","uniqueKey":"oneOf.1","typeLabel":"null"}],"isRequired":false,"uniqueKey":"","typeLabel":"number | null"},"description":"Only used if `search_query` is provided. The maximum distance to search for semantically relevant conclusions"},"ae4e4b3f-cb3e-4b8b-bfee-bac8a3745f53":{"name":"include_most_frequent","in":"query","required":false,"schema":{"type":"boolean","description":"Only used if `search_query` is provided. Whether to include the most frequent conclusions in the representation","default":false,"title":"Include Most Frequent","isRequired":false,"uniqueKey":"","typeLabel":"boolean"},"description":"Only used if `search_query` is provided. Whether to include the most frequent conclusions in the representation"},"577ee0c6-6874-44c3-b860-2a1f2fa79574":{"name":"max_conclusions","in":"query","required":false,"schema":{"oneOf":[{"type":"integer","title":"Max Conclusions","description":"Only used if `search_query` is provided. The maximum number of conclusions to include in the representation","maximum":100,"minimum":1,"uniqueKey":"oneOf.0","typeLabel":"integer"},{"type":"null","title":"Max Conclusions","description":"Only used if `search_query` is provided. The maximum number of conclusions to include in the representation","uniqueKey":"oneOf.1","typeLabel":"null"}],"isRequired":false,"uniqueKey":"","typeLabel":"integer | null"},"description":"Only used if `search_query` is provided. The maximum number of conclusions to include in the representation"}},"responses":{"e8a13d17-14e3-4e76-b575-bb11568e01ad":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"string","title":"Id","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"messages":{"items":{"properties":{"id":{"type":"string","title":"Id","isRequired":true,"uniqueKey":"messages.items.[INDEX].id","typeLabel":"string"},"content":{"type":"string","title":"Content","isRequired":true,"uniqueKey":"messages.items.[INDEX].content","typeLabel":"string"},"peer_id":{"type":"string","title":"Peer Id","isRequired":true,"uniqueKey":"messages.items.[INDEX].peer_id","typeLabel":"string"},"session_id":{"type":"string","title":"Session Id","isRequired":true,"uniqueKey":"messages.items.[INDEX].session_id","typeLabel":"string"},"created_at":{"type":"string","format":"date-time","title":"Created At","isRequired":true,"uniqueKey":"messages.items.[INDEX].created_at","typeLabel":"string\u003cdate-time>"},"workspace_id":{"type":"string","title":"Workspace Id","isRequired":true,"uniqueKey":"messages.items.[INDEX].workspace_id","typeLabel":"string"},"token_count":{"type":"integer","title":"Token Count","isRequired":true,"uniqueKey":"messages.items.[INDEX].token_count","typeLabel":"integer"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata","uniqueKey":"messages.items.[INDEX].metadata","typeLabel":"Metadata · object"}},"type":"object","required":["id","content","peer_id","session_id","created_at","workspace_id","token_count"],"title":"Message","uniqueKey":"messages.items.[INDEX]","typeLabel":"Message · object"},"type":"array","title":"Messages","isRequired":true,"uniqueKey":"messages","typeLabel":"Message · object[]"},"summary":{"oneOf":[{"type":"object","title":"Summary","description":"The summary if available","required":["content","message_id","summary_type","created_at","token_count"],"properties":{"content":{"type":"string","title":"Content","description":"The summary text","isRequired":true,"uniqueKey":"summary.oneOf.0.content","typeLabel":"string"},"message_id":{"type":"string","title":"Message Id","description":"The public ID of the message that this summary covers up to","isRequired":true,"uniqueKey":"summary.oneOf.0.message_id","typeLabel":"string"},"summary_type":{"type":"string","title":"Summary Type","description":"The type of summary (short or long)","isRequired":true,"uniqueKey":"summary.oneOf.0.summary_type","typeLabel":"string"},"created_at":{"type":"string","title":"Created At","description":"The timestamp of when the summary was created (ISO format)","isRequired":true,"uniqueKey":"summary.oneOf.0.created_at","typeLabel":"string"},"token_count":{"type":"integer","title":"Token Count","description":"The number of tokens in the summary text","isRequired":true,"uniqueKey":"summary.oneOf.0.token_count","typeLabel":"integer"}},"uniqueKey":"summary.oneOf.0","typeLabel":"Summary · object"},{"type":"null","description":"The summary if available","uniqueKey":"summary.oneOf.1","typeLabel":"null"}],"uniqueKey":"summary","typeLabel":"Summary · object | null"},"peer_representation":{"oneOf":[{"type":"string","title":"Peer Representation","description":"A curated subset of a peer representation, if context is requested from a specific perspective","uniqueKey":"peer_representation.oneOf.0","typeLabel":"string"},{"type":"null","title":"Peer Representation","description":"A curated subset of a peer representation, if context is requested from a specific perspective","uniqueKey":"peer_representation.oneOf.1","typeLabel":"null"}],"uniqueKey":"peer_representation","typeLabel":"string | null"},"peer_card":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"peer_card.oneOf.0.items.[INDEX]","typeLabel":"string"},"title":"Peer Card","description":"The peer card, if context is requested from a specific perspective","uniqueKey":"peer_card.oneOf.0","typeLabel":"string[]"},{"type":"null","title":"Peer Card","description":"The peer card, if context is requested from a specific perspective","uniqueKey":"peer_card.oneOf.1","typeLabel":"null"}],"uniqueKey":"peer_card","typeLabel":"string[] | null"}},"type":"object","required":["id","messages"],"title":"SessionContext","uniqueKey":"","typeLabel":"SessionContext · object"},"examples":{"Example":{"title":"Example","value":{"id":"\u003cstring>","messages":[{"id":"\u003cstring>","content":"\u003cstring>","peer_id":"\u003cstring>","session_id":"\u003cstring>","created_at":"2023-11-07T05:31:56Z","workspace_id":"\u003cstring>","token_count":123,"metadata":{}}],"summary":{"content":"\u003cstring>","message_id":"\u003cstring>","summary_type":"\u003cstring>","created_at":"\u003cstring>","token_count":123},"peer_representation":"\u003cstring>","peer_card":["\u003cstring>"]}}},"exampleType":"generated"}},"exampleType":"generated"},"59072de8-bcee-4a41-9823-f56647347125":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"oneOf":[{"type":"string","uniqueKey":"detail.items.[INDEX].loc.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"integer","uniqueKey":"detail.items.[INDEX].loc.items.[INDEX].oneOf.1","typeLabel":"integer"}],"uniqueKey":"detail.items.[INDEX].loc.items.[INDEX]","typeLabel":"string | integer"},"type":"array","title":"Location","isRequired":true,"uniqueKey":"detail.items.[INDEX].loc","typeLabel":"(string | integer)[]"},"msg":{"type":"string","title":"Message","isRequired":true,"uniqueKey":"detail.items.[INDEX].msg","typeLabel":"string"},"type":{"type":"string","title":"Error Type","isRequired":true,"uniqueKey":"detail.items.[INDEX].type","typeLabel":"string"},"input":{"oneOf":[{"title":"Input"}],"uniqueKey":"detail.items.[INDEX].input","typeLabel":"any"},"ctx":{"type":"object","title":"Context","uniqueKey":"detail.items.[INDEX].ctx","typeLabel":"Context · object"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError","uniqueKey":"detail.items.[INDEX]","typeLabel":"ValidationError · object"},"type":"array","title":"Detail","uniqueKey":"detail","typeLabel":"ValidationError · object[]"}},"type":"object","title":"HTTPValidationError","uniqueKey":"","typeLabel":"HTTPValidationError · object"},"examples":{"Example":{"title":"Example","value":{"detail":[{"loc":["\u003cstring>"],"msg":"\u003cstring>","type":"\u003cstring>","input":"\u003cunknown>","ctx":{}}]}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"f03d5654-a039-4cdb-8ee5-496391002f43":{"HTTPBearer":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"HTTPBearer"}}},"servers":{"a0b9f024-21b2-45d7-9ae8-f2e30421a4cb":{"url":"https://api.honcho.dev","description":"Production SaaS Platform"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"HTTPBearer"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"HTTPBearer","name":"Authorization"}],"title":"HTTPBearer"}]},"originalFileLocation":"v3/openapi.json"},"subdomain":"plasticlabs","siteName":"Honcho","title":"Get Session Context - Honcho","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-27T17:33:43.741Z","originalFileLocation":"v3/api-reference/endpoint/sessions/get-session-context.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=\"Produce a context object from the Session. The caller provides an optional token limit which the entire context must fit into. If not provided, the context will be exhaustive (within configured max tokens). To do this, we allocate 40% of the token limit to the summary, and 60% to recent messages -- as many as can fit. Note that the summary will usually take up less space than this. If the caller does not want a summary, we allocate all the tokens to recent messages.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Honcho\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/plasticlabs/poYIg0pscrQ64eaT/_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/plasticlabs/poYIg0pscrQ64eaT/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/plasticlabs/poYIg0pscrQ64eaT/_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/plasticlabs/poYIg0pscrQ64eaT/_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/plasticlabs/poYIg0pscrQ64eaT/_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/plasticlabs/poYIg0pscrQ64eaT/_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/plasticlabs/poYIg0pscrQ64eaT/_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/plasticlabs/poYIg0pscrQ64eaT/_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/plasticlabs/poYIg0pscrQ64eaT/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get Session Context - Honcho\">\u003cmeta data-mint-head property=\"og:description\" content=\"Produce a context object from the Session. The caller provides an optional token limit which the entire context must fit into. If not provided, the context will be exhaustive (within configured max tokens). To do this, we allocate 40% of the token limit to the summary, and 60% to recent messages -- as many as can fit. Note that the summary will usually take up less space than this. If the caller does not want a summary, we allocate all the tokens to recent messages.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Honcho\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://honcho.dev/docs/v3/api-reference/endpoint/sessions/get-session-context\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://plasticlabs.mintlify.site/docs/_mintlify/api/og/v2?division=sessions\u0026amp;title=Get+Session+Context\u0026amp;description=Produce+a+context+object+from+the+Session.+The+caller+provides+an+optional+token+limit+which+the+entire+context+must+fit+into.%0AIf+not+provided%2C+the+context+will\u0026amp;theme=f6a7151d44163e9cebee0751\u0026amp;signature=3c7ca6e093cfeb7db168525a0edde6b85007e76cf45abfb228345f8b91893c8a\">\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=\"Get Session Context - Honcho\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Produce a context object from the Session. The caller provides an optional token limit which the entire context must fit into. If not provided, the context will be exhaustive (within configured max tokens). To do this, we allocate 40% of the token limit to the summary, and 60% to recent messages -- as many as can fit. Note that the summary will usually take up less space than this. If the caller does not want a summary, we allocate all the tokens to recent messages.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://plasticlabs.mintlify.site/docs/_mintlify/api/og/v2?division=sessions\u0026amp;title=Get+Session+Context\u0026amp;description=Produce+a+context+object+from+the+Session.+The+caller+provides+an+optional+token+limit+which+the+entire+context+must+fit+into.%0AIf+not+provided%2C+the+context+will\u0026amp;theme=f6a7151d44163e9cebee0751\u0026amp;signature=3c7ca6e093cfeb7db168525a0edde6b85007e76cf45abfb228345f8b91893c8a\">\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/plasticlabs/poYIg0pscrQ64eaT/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Honcho\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#66AAFF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://honcho.dev/docs/v3/api-reference/endpoint/sessions/get-session-context\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/v3/api-reference/endpoint/sessions/get-session-context.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://honcho.dev/#organization\",\"name\":\"Honcho\",\"url\":\"https://honcho.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/plasticlabs/Tnh_xfGaSgXYiKRy/logo/honcho-dark.svg?fit=max\u0026auto=format\u0026n=Tnh_xfGaSgXYiKRy\u0026q=85\u0026s=5ea9abc83421c35574fc8baf38d67172\"}},{\"@type\":\"WebSite\",\"@id\":\"https://honcho.dev/docs#website\",\"name\":\"Honcho\",\"url\":\"https://honcho.dev/docs\",\"publisher\":{\"@id\":\"https://honcho.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://honcho.dev/docs/v3/api-reference/endpoint/sessions/get-session-context#webpage\",\"url\":\"https://honcho.dev/docs/v3/api-reference/endpoint/sessions/get-session-context\",\"name\":\"Get Session Context\",\"description\":\"Produce a context object from the Session. The caller provides an optional token limit which the entire context must fit into. If not provided, the context will be exhaustive (within configured max tokens). To do this, we allocate 40% of the token limit to the summary, and 60% to recent messages -- as many as can fit. Note that the summary will usually take up less space than this. If the caller does not want a summary, we allocate all the tokens to recent messages.\",\"dateModified\":\"2026-01-27T17:33:43.741Z\",\"isPartOf\":{\"@id\":\"https://honcho.dev/docs#website\"},\"breadcrumb\":{\"@id\":\"https://honcho.dev/docs/v3/api-reference/endpoint/sessions/get-session-context#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://honcho.dev/docs/v3/api-reference/endpoint/sessions/get-session-context#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"sessions\",\"item\":\"https://honcho.dev/docs/v3/api-reference/endpoint/sessions/get-or-create-session\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get Session Context\",\"item\":\"https://honcho.dev/docs/v3/api-reference/endpoint/sessions/get-session-context\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://honcho.dev/docs/v3/api-reference/endpoint/sessions/get-session-context#apireference\",\"headline\":\"Get Session Context\",\"name\":\"Get Session Context\",\"description\":\"Produce a context object from the Session. The caller provides an optional token limit which the entire context must fit into. If not provided, the context will be exhaustive (within configured max tokens). To do this, we allocate 40% of the token limit to the summary, and 60% to recent messages -- as many as can fit. Note that the summary will usually take up less space than this. If the caller does not want a summary, we allocate all the tokens to recent messages.\",\"url\":\"https://honcho.dev/docs/v3/api-reference/endpoint/sessions/get-session-context\",\"mainEntityOfPage\":{\"@id\":\"https://honcho.dev/docs/v3/api-reference/endpoint/sessions/get-session-context#webpage\"},\"dateModified\":\"2026-01-27T17:33:43.741Z\",\"publisher\":{\"@id\":\"https://honcho.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://honcho.dev/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Honcho\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Honcho","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/v3/documentation/introduction/overview"}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/v3/guides/overview"}]},{"tab":"Open Source","pages":[{"title":"Open Source","href":"/v3/contributing/self-hosting"}]},{"tab":"API Reference","groups":[{"group":"API Documentation","pages":[{"title":"Introduction","href":"/v3/api-reference/introduction"}]},{"group":"workspaces","pages":[{"openapi":"post /v3/workspaces","title":"Get Or Create Workspace","href":"/v3/api-reference/endpoint/workspaces/get-or-create-workspace"},{"openapi":"post /v3/workspaces/list","title":"Get All Workspaces","href":"/v3/api-reference/endpoint/workspaces/get-all-workspaces"},{"openapi":"put /v3/workspaces/{workspace_id}","title":"Update Workspace","href":"/v3/api-reference/endpoint/workspaces/update-workspace"},{"openapi":"delete /v3/workspaces/{workspace_id}","title":"Delete Workspace","href":"/v3/api-reference/endpoint/workspaces/delete-workspace"},{"openapi":"post /v3/workspaces/{workspace_id}/search","title":"Search Workspace","href":"/v3/api-reference/endpoint/workspaces/search-workspace"},{"openapi":"post /v3/workspaces/{workspace_id}/chat","title":"Workspace Chat","href":"/v3/api-reference/endpoint/workspaces/chat-workspace"},{"openapi":"get /v3/workspaces/{workspace_id}/queue/status","title":"Get Queue Status","href":"/v3/api-reference/endpoint/workspaces/get-queue-status"},{"openapi":"post /v3/workspaces/{workspace_id}/schedule_dream","title":"Schedule Dream","href":"/v3/api-reference/endpoint/workspaces/schedule-dream"}]},{"group":"dreams","pages":[{"openapi":"post /v3/workspaces/{workspace_id}/dreams/list","title":"List Dreams","href":"/v3/api-reference/endpoint/dreams/list-dreams"},{"openapi":"get /v3/workspaces/{workspace_id}/dreams/{run_id}","title":"Get Dream","href":"/v3/api-reference/endpoint/dreams/get-dream"}]},{"group":"peers","pages":[{"openapi":"post /v3/workspaces/{workspace_id}/peers/list","title":"Get Peers","href":"/v3/api-reference/endpoint/peers/get-peers"},{"openapi":"post /v3/workspaces/{workspace_id}/peers","title":"Get Or Create Peer","href":"/v3/api-reference/endpoint/peers/get-or-create-peer"},{"openapi":"put /v3/workspaces/{workspace_id}/peers/{peer_id}","title":"Update Peer","href":"/v3/api-reference/endpoint/peers/update-peer"},{"openapi":"post /v3/workspaces/{workspace_id}/peers/{peer_id}/sessions","title":"Get Sessions For Peer","href":"/v3/api-reference/endpoint/peers/get-sessions-for-peer"},{"openapi":"post /v3/workspaces/{workspace_id}/peers/{peer_id}/chat","title":"Peer Chat","href":"/v3/api-reference/endpoint/peers/chat"},{"openapi":"post /v3/workspaces/{workspace_id}/peers/{peer_id}/representation","title":"Get Representation","href":"/v3/api-reference/endpoint/peers/get-representation"},{"openapi":"get /v3/workspaces/{workspace_id}/peers/{peer_id}/card","title":"Get Peer Card","href":"/v3/api-reference/endpoint/peers/get-peer-card"},{"openapi":"put /v3/workspaces/{workspace_id}/peers/{peer_id}/card","title":"Set Peer Card","href":"/v3/api-reference/endpoint/peers/set-peer-card"},{"openapi":"get /v3/workspaces/{workspace_id}/peers/{peer_id}/context","title":"Get Peer Context","href":"/v3/api-reference/endpoint/peers/get-peer-context"},{"openapi":"post /v3/workspaces/{workspace_id}/peers/{peer_id}/search","title":"Search Peer","href":"/v3/api-reference/endpoint/peers/search-peer"}]},{"group":"sessions","pages":[{"openapi":"post /v3/workspaces/{workspace_id}/sessions","title":"Get Or Create Session","href":"/v3/api-reference/endpoint/sessions/get-or-create-session"},{"openapi":"post /v3/workspaces/{workspace_id}/sessions/list","title":"Get Sessions","href":"/v3/api-reference/endpoint/sessions/get-sessions"},{"openapi":"put /v3/workspaces/{workspace_id}/sessions/{session_id}","title":"Update Session","href":"/v3/api-reference/endpoint/sessions/update-session"},{"openapi":"delete /v3/workspaces/{workspace_id}/sessions/{session_id}","title":"Delete Session","href":"/v3/api-reference/endpoint/sessions/delete-session"},{"openapi":"post /v3/workspaces/{workspace_id}/sessions/{session_id}/clone","title":"Clone Session","href":"/v3/api-reference/endpoint/sessions/clone-session"},{"openapi":"get /v3/workspaces/{workspace_id}/sessions/{session_id}/peers","title":"Get Session Peers","href":"/v3/api-reference/endpoint/sessions/get-session-peers"},{"openapi":"put /v3/workspaces/{workspace_id}/sessions/{session_id}/peers","title":"Set Session Peers","href":"/v3/api-reference/endpoint/sessions/set-session-peers"},{"openapi":"post /v3/workspaces/{workspace_id}/sessions/{session_id}/peers","title":"Add Peers To Session","href":"/v3/api-reference/endpoint/sessions/add-peers-to-session"},{"openapi":"delete /v3/workspaces/{workspace_id}/sessions/{session_id}/peers","title":"Remove Peers From Session","href":"/v3/api-reference/endpoint/sessions/remove-peers-from-session"},{"openapi":"get /v3/workspaces/{workspace_id}/sessions/{session_id}/peers/{peer_id}/config","title":"Get Peer Config","href":"/v3/api-reference/endpoint/sessions/get-peer-config"},{"openapi":"put /v3/workspaces/{workspace_id}/sessions/{session_id}/peers/{peer_id}/config","title":"Set Peer Config","description":"Set the configuration for a Peer in a Session.","href":"/v3/api-reference/endpoint/sessions/set-peer-config"},{"openapi":"get /v3/workspaces/{workspace_id}/sessions/{session_id}/context","title":"Get Session Context","href":"/v3/api-reference/endpoint/sessions/get-session-context"},{"openapi":"get /v3/workspaces/{workspace_id}/sessions/{session_id}/summaries","title":"Get Session Summaries","description":"Get available summaries for a Session.\n\nReturns both short and long summaries if available, including metadata like\nthe message ID they cover up to, creation timestamp, and token count.","href":"/v3/api-reference/endpoint/sessions/get-session-summaries"},{"openapi":"post /v3/workspaces/{workspace_id}/sessions/{session_id}/search","title":"Search Session","href":"/v3/api-reference/endpoint/sessions/search-session"}]},{"group":"scopes","pages":[{"openapi":"post /v3/workspaces/{workspace_id}/scopes","title":"Get Or Create Scope","href":"/v3/api-reference/endpoint/scopes/get-or-create-scope"},{"openapi":"post /v3/workspaces/{workspace_id}/scopes/list","title":"Get Scopes","href":"/v3/api-reference/endpoint/scopes/get-scopes"},{"openapi":"get /v3/workspaces/{workspace_id}/scopes/{scope_id}","title":"Get Scope","href":"/v3/api-reference/endpoint/scopes/get-scope"},{"openapi":"post /v3/workspaces/{workspace_id}/scopes/{scope_id}/sessions","title":"Add Sessions To Scope","href":"/v3/api-reference/endpoint/scopes/add-sessions-to-scope"},{"openapi":"post /v3/workspaces/{workspace_id}/scopes/{scope_id}/sessions/list","title":"Get Scope Sessions","href":"/v3/api-reference/endpoint/scopes/get-scope-sessions"},{"openapi":"delete /v3/workspaces/{workspace_id}/scopes/{scope_id}/sessions/{session_id}","title":"Remove Session From Scope","href":"/v3/api-reference/endpoint/scopes/remove-session-from-scope"},{"openapi":"get /v3/workspaces/{workspace_id}/scopes/{scope_id}/status","title":"Get Scope Status","href":"/v3/api-reference/endpoint/scopes/get-scope-status"}]},{"group":"messages","pages":[{"openapi":"post /v3/workspaces/{workspace_id}/sessions/{session_id}/messages","title":"Create Messages For Session","href":"/v3/api-reference/endpoint/messages/create-messages-for-session"},{"openapi":"post /v3/workspaces/{workspace_id}/sessions/{session_id}/messages/list","title":"Get Messages","href":"/v3/api-reference/endpoint/messages/get-messages"},{"openapi":"get /v3/workspaces/{workspace_id}/sessions/{session_id}/messages/{message_id}","title":"Get Message","href":"/v3/api-reference/endpoint/messages/get-message"},{"openapi":"put /v3/workspaces/{workspace_id}/sessions/{session_id}/messages/{message_id}","title":"Update Message","href":"/v3/api-reference/endpoint/messages/update-message"},{"openapi":"post /v3/workspaces/{workspace_id}/sessions/{session_id}/messages/upload","title":"Create Messages With File","href":"/v3/api-reference/endpoint/messages/create-messages-with-file"}]},{"group":"conclusions","pages":[{"openapi":"post /v3/workspaces/{workspace_id}/conclusions","title":"Create Conclusions","href":"/v3/api-reference/endpoint/conclusions/create-conclusions"},{"openapi":"post /v3/workspaces/{workspace_id}/conclusions/list","title":"List Conclusions","href":"/v3/api-reference/endpoint/conclusions/list-conclusions"},{"openapi":"post /v3/workspaces/{workspace_id}/conclusions/query","title":"Query Conclusions","href":"/v3/api-reference/endpoint/conclusions/query-conclusions"},{"openapi":"get /v3/workspaces/{workspace_id}/conclusions/{conclusion_id}","title":"Get Conclusion","href":"/v3/api-reference/endpoint/conclusions/get-conclusion"},{"openapi":"delete /v3/workspaces/{workspace_id}/conclusions/{conclusion_id}","title":"Delete Conclusion","href":"/v3/api-reference/endpoint/conclusions/delete-conclusion"}]},{"group":"webhooks","pages":[{"openapi":"get /v3/workspaces/{workspace_id}/webhooks","title":"List Webhook Endpoints","href":"/v3/api-reference/endpoint/webhooks/list-webhook-endpoints"},{"openapi":"post /v3/workspaces/{workspace_id}/webhooks","title":"Get Or Create Webhook Endpoint","href":"/v3/api-reference/endpoint/webhooks/get-or-create-webhook-endpoint"},{"openapi":"delete /v3/workspaces/{workspace_id}/webhooks/{endpoint_id}","title":"Delete Webhook Endpoint","href":"/v3/api-reference/endpoint/webhooks/delete-webhook-endpoint"},{"openapi":"get /v3/workspaces/{workspace_id}/webhooks/test","title":"Test Emit","href":"/v3/api-reference/endpoint/webhooks/test-emit"}]},{"group":"miscellaneous","pages":[{"openapi":"post /v3/keys","title":"Create Key","href":"/v3/api-reference/endpoint/keys/create-key"}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog/introduction"}]}]},"basePath":"","title":"Get Session Context - Honcho","buildId":"dpl_ATnXPMW25DMPUr9VBw6kL6MfBt6T","deploymentId":"dpl_ATnXPMW25DMPUr9VBw6kL6MfBt6T","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CNqlzjVB.js","utils-BqFiXZ79.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-CnR4QBe6.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-BY2ZM1OO.js","snippetPresets-x-8ACO8V.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-Ch-SJE05.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CqqG_0NE.js","shallow-BXrZ2b0C.js","getApiPlaygroundDisplay-n7J_wkjq.js","CodeSnippet-CQsp4vyQ.js","CodeSnippets-BfuHqvZx.js","Page-CTxrMSpo.js","getPastedJson-BjrGIK1i.js","icon-7iLZnVOC.js","MethodPill-TBS1m84e.js","DuplicateIcon-BNMrV4Vs.js","createIcon-C5kCqeU2.js","DynamicMarkdown-Bq09mRwR.js","SectionHeading-G4Bflf5Q.js","axios-vUo_bRtp.js","Markdown-BTUds0aX.js","clsx-6wHzaN2_.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BPypQKlo.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-o6bee4ro.js"]}