Get a Session by ID or create a new Session with the given ID.
If Session ID is provided as a parameter, it verifies the Session is in the Workspace.
Otherwise, it uses the session_id from the JWT for verification.
Optional list of (unprefixed) scope names to add this session to. Each scope is created if it does not exist yet. If the session already has messages, its existing documents are backfilled into the scope asynchronously.
{"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-or-create-session","slug":"/v3/api-reference/endpoint/sessions/get-or-create-session","pageMetadata":{"openapi":"post /v3/workspaces/{workspace_id}/sessions","title":"Get Or Create Session","description":"Get a Session by ID or create a new Session with the given ID.\n\nIf Session ID is provided as a parameter, it verifies the Session is in the Workspace.\nOtherwise, it uses the session_id from the JWT for verification.","href":"/v3/api-reference/endpoint/sessions/get-or-create-session"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Get a Session by ID or create a new Session with the given ID.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"If Session ID is provided as a parameter, it verifies the Session is in the Workspace.\\nOtherwise, it uses the session_id from the JWT for verification.\"\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":{"openapi":"post /v3/workspaces/{workspace_id}/sessions","title":"Get Or Create Session","description":"Get a Session by ID or create a new Session with the given ID.\n\nIf Session ID is provided as a parameter, it verifies the Session is in the Workspace.\nOtherwise, it uses the session_id from the JWT for verification.","href":"/v3/api-reference/endpoint/sessions/get-or-create-session"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/plasticlabs/7b27419a986dcdea/posthog-consent.js"],"openApiReferenceData":{"operation":{"tags":["sessions"],"summary":"Get Or Create Session","description":"Get a Session by ID or create a new Session with the given ID.\n\nIf Session ID is provided as a parameter, it verifies the Session is in the Workspace.\nOtherwise, it uses the session_id from the JWT for verification.","operationId":"get_or_create_session_v3_workspaces__workspace_id__sessions_post","security":["6dd89bec-5b49-4d60-94fe-577996273483"],"parameters":["edcb6b8e-808d-44ce-9639-aea739e652c8"],"requestBody":"b1f22f7c-c7ec-4f83-9f69-c1e5d105ee13","responses":{"200":"6f394763-bff3-49eb-bf96-cb71d5052c8e","422":"23538b18-3639-438b-94ea-3c8c1d75e92f"},"method":"post","type":"path","servers":["a0b9f024-21b2-45d7-9ae8-f2e30421a4cb"],"path":"/v3/workspaces/{workspace_id}/sessions","baseUrlOptions":["https://api.honcho.dev"],"title":"Get Or Create Session","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"edcb6b8e-808d-44ce-9639-aea739e652c8":{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id","isRequired":true,"uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"id":{"type":"string","maxLength":512,"minLength":1,"pattern":"^[a-zA-Z0-9_-]+$","title":"Id","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"metadata":{"oneOf":[{"type":"object","title":"Metadata","additionalProperties":true,"uniqueKey":"metadata.oneOf.0","typeLabel":"Metadata · object"},{"type":"null","title":"Metadata","uniqueKey":"metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"metadata","typeLabel":"Metadata · object | null"},"peers":{"oneOf":[{"type":"object","title":"Peers","additionalProperties":{"properties":{"observe_me":{"oneOf":[{"type":"boolean","title":"Observe Me","description":"Whether Honcho will use reasoning to form a representation of this peer","uniqueKey":"peers.oneOf.0.additionalProperties.observe_me.oneOf.0","typeLabel":"boolean"},{"type":"null","title":"Observe Me","description":"Whether Honcho will use reasoning to form a representation of this peer","uniqueKey":"peers.oneOf.0.additionalProperties.observe_me.oneOf.1","typeLabel":"null"}],"uniqueKey":"peers.oneOf.0.additionalProperties.observe_me","typeLabel":"boolean | null"},"observe_others":{"oneOf":[{"type":"boolean","title":"Observe Others","description":"Whether this peer should form a session-level theory-of-mind representation of other peers in the session","uniqueKey":"peers.oneOf.0.additionalProperties.observe_others.oneOf.0","typeLabel":"boolean"},{"type":"null","title":"Observe Others","description":"Whether this peer should form a session-level theory-of-mind representation of other peers in the session","uniqueKey":"peers.oneOf.0.additionalProperties.observe_others.oneOf.1","typeLabel":"null"}],"uniqueKey":"peers.oneOf.0.additionalProperties.observe_others","typeLabel":"boolean | null"}},"type":"object","title":"SessionPeerConfig","uniqueKey":"peers.oneOf.0.additionalProperties","typeLabel":"SessionPeerConfig · object"},"uniqueKey":"peers.oneOf.0","typeLabel":"Peers · object"},{"type":"null","title":"Peers","uniqueKey":"peers.oneOf.1","typeLabel":"null"}],"uniqueKey":"peers","typeLabel":"Peers · object | null"},"configuration":{"oneOf":[{"type":"object","title":"SessionConfiguration","description":"The set of options that can be in a session DB-level configuration dictionary.\n\nAll fields are optional. Session-level configuration overrides workspace-level configuration, which overrides global configuration.","properties":{"custom_instructions":{"oneOf":[{"type":"string","title":"Custom Instructions","description":"Custom instructions shared by the deriver, summarizer, dialectic, and dreamer. A module's own custom_instructions at the same level takes precedence, and session-level values beat workspace-level ones. Messages can only override reasoning.custom_instructions.","uniqueKey":"configuration.oneOf.0.custom_instructions.oneOf.0","typeLabel":"string"},{"type":"null","title":"Custom Instructions","description":"Custom instructions shared by the deriver, summarizer, dialectic, and dreamer. A module's own custom_instructions at the same level takes precedence, and session-level values beat workspace-level ones. Messages can only override reasoning.custom_instructions.","uniqueKey":"configuration.oneOf.0.custom_instructions.oneOf.1","typeLabel":"null"}],"uniqueKey":"configuration.oneOf.0.custom_instructions","typeLabel":"string | null"},"reasoning":{"oneOf":[{"type":"object","title":"ReasoningConfiguration","description":"Configuration for reasoning functionality.","properties":{"enabled":{"oneOf":[{"type":"boolean","title":"Enabled","description":"Whether to enable reasoning functionality.","uniqueKey":"configuration.oneOf.0.reasoning.oneOf.0.enabled.oneOf.0","typeLabel":"boolean"},{"type":"null","title":"Enabled","description":"Whether to enable reasoning functionality.","uniqueKey":"configuration.oneOf.0.reasoning.oneOf.0.enabled.oneOf.1","typeLabel":"null"}],"uniqueKey":"configuration.oneOf.0.reasoning.oneOf.0.enabled","typeLabel":"boolean | null"},"custom_instructions":{"oneOf":[{"type":"string","title":"Custom Instructions","description":"Custom instructions for the deriver. Overrides the top-level custom_instructions at the same level. Set to an empty string to explicitly use none.","uniqueKey":"configuration.oneOf.0.reasoning.oneOf.0.custom_instructions.oneOf.0","typeLabel":"string"},{"type":"null","title":"Custom Instructions","description":"Custom instructions for the deriver. Overrides the top-level custom_instructions at the same level. Set to an empty string to explicitly use none.","uniqueKey":"configuration.oneOf.0.reasoning.oneOf.0.custom_instructions.oneOf.1","typeLabel":"null"}],"uniqueKey":"configuration.oneOf.0.reasoning.oneOf.0.custom_instructions","typeLabel":"string | null"}},"uniqueKey":"configuration.oneOf.0.reasoning.oneOf.0","typeLabel":"ReasoningConfiguration · object"},{"type":"null","description":"Configuration for reasoning functionality.","uniqueKey":"configuration.oneOf.0.reasoning.oneOf.1","typeLabel":"null"}],"uniqueKey":"configuration.oneOf.0.reasoning","typeLabel":"ReasoningConfiguration · object | null"},"peer_card":{"oneOf":[{"type":"object","title":"PeerCardConfiguration","description":"Configuration for peer card functionality. If reasoning is disabled, peer cards will also be disabled and these settings will be ignored.","properties":{"use":{"oneOf":[{"type":"boolean","title":"Use","description":"Whether to use peer card related to this peer during reasoning process.","uniqueKey":"configuration.oneOf.0.peer_card.oneOf.0.use.oneOf.0","typeLabel":"boolean"},{"type":"null","title":"Use","description":"Whether to use peer card related to this peer during reasoning process.","uniqueKey":"configuration.oneOf.0.peer_card.oneOf.0.use.oneOf.1","typeLabel":"null"}],"uniqueKey":"configuration.oneOf.0.peer_card.oneOf.0.use","typeLabel":"boolean | null"},"create":{"oneOf":[{"type":"boolean","title":"Create","description":"Whether to generate peer card based on content.","uniqueKey":"configuration.oneOf.0.peer_card.oneOf.0.create.oneOf.0","typeLabel":"boolean"},{"type":"null","title":"Create","description":"Whether to generate peer card based on content.","uniqueKey":"configuration.oneOf.0.peer_card.oneOf.0.create.oneOf.1","typeLabel":"null"}],"uniqueKey":"configuration.oneOf.0.peer_card.oneOf.0.create","typeLabel":"boolean | null"},"custom_instructions":{"oneOf":[{"type":"string","title":"Custom Instructions","description":"Custom instructions for peer card updates. Added on top of the dream instructions and applied within the peer card's allowed entry kinds. Does not fall back to the top-level custom_instructions.","uniqueKey":"configuration.oneOf.0.peer_card.oneOf.0.custom_instructions.oneOf.0","typeLabel":"string"},{"type":"null","title":"Custom Instructions","description":"Custom instructions for peer card updates. Added on top of the dream instructions and applied within the peer card's allowed entry kinds. Does not fall back to the top-level custom_instructions.","uniqueKey":"configuration.oneOf.0.peer_card.oneOf.0.custom_instructions.oneOf.1","typeLabel":"null"}],"uniqueKey":"configuration.oneOf.0.peer_card.oneOf.0.custom_instructions","typeLabel":"string | null"}},"uniqueKey":"configuration.oneOf.0.peer_card.oneOf.0","typeLabel":"PeerCardConfiguration · object"},{"type":"null","description":"Configuration for peer card functionality. If reasoning is disabled, peer cards will also be disabled and these settings will be ignored.","uniqueKey":"configuration.oneOf.0.peer_card.oneOf.1","typeLabel":"null"}],"uniqueKey":"configuration.oneOf.0.peer_card","typeLabel":"PeerCardConfiguration · object | null"},"summary":{"oneOf":[{"type":"object","title":"SummaryConfiguration","description":"Configuration for summary functionality.","properties":{"enabled":{"oneOf":[{"type":"boolean","title":"Enabled","description":"Whether to enable summary functionality.","uniqueKey":"configuration.oneOf.0.summary.oneOf.0.enabled.oneOf.0","typeLabel":"boolean"},{"type":"null","title":"Enabled","description":"Whether to enable summary functionality.","uniqueKey":"configuration.oneOf.0.summary.oneOf.0.enabled.oneOf.1","typeLabel":"null"}],"uniqueKey":"configuration.oneOf.0.summary.oneOf.0.enabled","typeLabel":"boolean | null"},"messages_per_short_summary":{"oneOf":[{"type":"integer","title":"Messages Per Short Summary","description":"Number of messages per short summary. Must be positive, greater than or equal to 10, and less than messages_per_long_summary.","minimum":10,"uniqueKey":"configuration.oneOf.0.summary.oneOf.0.messages_per_short_summary.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Messages Per Short Summary","description":"Number of messages per short summary. Must be positive, greater than or equal to 10, and less than messages_per_long_summary.","uniqueKey":"configuration.oneOf.0.summary.oneOf.0.messages_per_short_summary.oneOf.1","typeLabel":"null"}],"uniqueKey":"configuration.oneOf.0.summary.oneOf.0.messages_per_short_summary","typeLabel":"integer | null"},"messages_per_long_summary":{"oneOf":[{"type":"integer","title":"Messages Per Long Summary","description":"Number of messages per long summary. Must be positive, greater than or equal to 20, and greater than messages_per_short_summary.","minimum":20,"uniqueKey":"configuration.oneOf.0.summary.oneOf.0.messages_per_long_summary.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Messages Per Long Summary","description":"Number of messages per long summary. Must be positive, greater than or equal to 20, and greater than messages_per_short_summary.","uniqueKey":"configuration.oneOf.0.summary.oneOf.0.messages_per_long_summary.oneOf.1","typeLabel":"null"}],"uniqueKey":"configuration.oneOf.0.summary.oneOf.0.messages_per_long_summary","typeLabel":"integer | null"},"custom_instructions":{"oneOf":[{"type":"string","title":"Custom Instructions","description":"Custom instructions for session summaries. Overrides the top-level custom_instructions at the same level. Set to an empty string to explicitly use none.","uniqueKey":"configuration.oneOf.0.summary.oneOf.0.custom_instructions.oneOf.0","typeLabel":"string"},{"type":"null","title":"Custom Instructions","description":"Custom instructions for session summaries. Overrides the top-level custom_instructions at the same level. Set to an empty string to explicitly use none.","uniqueKey":"configuration.oneOf.0.summary.oneOf.0.custom_instructions.oneOf.1","typeLabel":"null"}],"uniqueKey":"configuration.oneOf.0.summary.oneOf.0.custom_instructions","typeLabel":"string | null"}},"uniqueKey":"configuration.oneOf.0.summary.oneOf.0","typeLabel":"SummaryConfiguration · object"},{"type":"null","description":"Configuration for summary functionality.","uniqueKey":"configuration.oneOf.0.summary.oneOf.1","typeLabel":"null"}],"uniqueKey":"configuration.oneOf.0.summary","typeLabel":"SummaryConfiguration · object | null"},"dream":{"oneOf":[{"type":"object","title":"DreamConfiguration","description":"Configuration for dream functionality. If reasoning is disabled, dreams will also be disabled and these settings will be ignored.","properties":{"enabled":{"oneOf":[{"type":"boolean","title":"Enabled","description":"Whether to enable dream functionality. If reasoning is disabled, dreams will also be disabled and this setting will be ignored.","uniqueKey":"configuration.oneOf.0.dream.oneOf.0.enabled.oneOf.0","typeLabel":"boolean"},{"type":"null","title":"Enabled","description":"Whether to enable dream functionality. If reasoning is disabled, dreams will also be disabled and this setting will be ignored.","uniqueKey":"configuration.oneOf.0.dream.oneOf.0.enabled.oneOf.1","typeLabel":"null"}],"uniqueKey":"configuration.oneOf.0.dream.oneOf.0.enabled","typeLabel":"boolean | null"},"custom_instructions":{"oneOf":[{"type":"string","title":"Custom Instructions","description":"Custom instructions for dreams. Overrides the top-level custom_instructions at the same level. Set to an empty string to explicitly use none.","uniqueKey":"configuration.oneOf.0.dream.oneOf.0.custom_instructions.oneOf.0","typeLabel":"string"},{"type":"null","title":"Custom Instructions","description":"Custom instructions for dreams. Overrides the top-level custom_instructions at the same level. Set to an empty string to explicitly use none.","uniqueKey":"configuration.oneOf.0.dream.oneOf.0.custom_instructions.oneOf.1","typeLabel":"null"}],"uniqueKey":"configuration.oneOf.0.dream.oneOf.0.custom_instructions","typeLabel":"string | null"}},"uniqueKey":"configuration.oneOf.0.dream.oneOf.0","typeLabel":"DreamConfiguration · object"},{"type":"null","description":"Configuration for dream functionality. If reasoning is disabled, dreams will also be disabled and these settings will be ignored.","uniqueKey":"configuration.oneOf.0.dream.oneOf.1","typeLabel":"null"}],"uniqueKey":"configuration.oneOf.0.dream","typeLabel":"DreamConfiguration · object | null"},"dialectic":{"oneOf":[{"type":"object","title":"DialecticConfiguration","description":"Configuration for the dialectic chat endpoints.","properties":{"custom_instructions":{"oneOf":[{"type":"string","title":"Custom Instructions","description":"Custom instructions for the dialectic chat endpoints. Overrides the top-level custom_instructions at the same level. Set to an empty string to explicitly use none.","uniqueKey":"configuration.oneOf.0.dialectic.oneOf.0.custom_instructions.oneOf.0","typeLabel":"string"},{"type":"null","title":"Custom Instructions","description":"Custom instructions for the dialectic chat endpoints. Overrides the top-level custom_instructions at the same level. Set to an empty string to explicitly use none.","uniqueKey":"configuration.oneOf.0.dialectic.oneOf.0.custom_instructions.oneOf.1","typeLabel":"null"}],"uniqueKey":"configuration.oneOf.0.dialectic.oneOf.0.custom_instructions","typeLabel":"string | null"}},"uniqueKey":"configuration.oneOf.0.dialectic.oneOf.0","typeLabel":"DialecticConfiguration · object"},{"type":"null","description":"Configuration for the dialectic chat endpoints.","uniqueKey":"configuration.oneOf.0.dialectic.oneOf.1","typeLabel":"null"}],"uniqueKey":"configuration.oneOf.0.dialectic","typeLabel":"DialecticConfiguration · object | null"}},"additionalProperties":true,"uniqueKey":"configuration.oneOf.0","typeLabel":"SessionConfiguration · object"},{"type":"null","uniqueKey":"configuration.oneOf.1","typeLabel":"null"}],"uniqueKey":"configuration","typeLabel":"SessionConfiguration · object | null"},"scopes":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"scopes.oneOf.0.items.[INDEX]","typeLabel":"string"},"title":"Scopes","description":"Optional list of (unprefixed) scope names to add this session to. Each scope is created if it does not exist yet. If the session already has messages, its existing documents are backfilled into the scope asynchronously.","maxItems":100,"uniqueKey":"scopes.oneOf.0","typeLabel":"string[]"},{"type":"null","title":"Scopes","description":"Optional list of (unprefixed) scope names to add this session to. Each scope is created if it does not exist yet. If the session already has messages, its existing documents are backfilled into the scope asynchronously.","uniqueKey":"scopes.oneOf.1","typeLabel":"null"}],"uniqueKey":"scopes","typeLabel":"string[] | null"}},"type":"object","required":["id"],"title":"SessionCreate","description":"Session creation parameters","uniqueKey":"","typeLabel":"SessionCreate · object"},"examples":{"Example":{"title":"Example","value":{"id":"\u003cstring>","metadata":{},"peers":{},"configuration":{"custom_instructions":"\u003cstring>","reasoning":{"enabled":true,"custom_instructions":"\u003cstring>"},"peer_card":{"use":true,"create":true,"custom_instructions":"\u003cstring>"},"summary":{"enabled":true,"messages_per_short_summary":11,"messages_per_long_summary":21,"custom_instructions":"\u003cstring>"},"dream":{"enabled":true,"custom_instructions":"\u003cstring>"},"dialectic":{"custom_instructions":"\u003cstring>"}},"scopes":["\u003cstring>"]}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"6f394763-bff3-49eb-bf96-cb71d5052c8e":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"string","title":"Id","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"uid":{"type":"string","title":"Uid","description":"Immutable identifier Honcho assigns to this session. `id` is the name the client chose; `uid` is generated by the server.","isRequired":true,"uniqueKey":"uid","typeLabel":"string"},"is_active":{"type":"boolean","title":"Is Active","isRequired":true,"uniqueKey":"is_active","typeLabel":"boolean"},"workspace_id":{"type":"string","title":"Workspace Id","isRequired":true,"uniqueKey":"workspace_id","typeLabel":"string"},"created_at":{"type":"string","format":"date-time","title":"Created At","isRequired":true,"uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata","uniqueKey":"metadata","typeLabel":"Metadata · object"},"configuration":{"additionalProperties":true,"type":"object","title":"Configuration","uniqueKey":"configuration","typeLabel":"Configuration · object"},"scopes":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"scopes.oneOf.0.items.[INDEX]","typeLabel":"string"},"title":"Scopes","description":"Names of the scopes this session is an active member of. Only returned by the session list when `include_scopes` is true.","uniqueKey":"scopes.oneOf.0","typeLabel":"string[]"},{"type":"null","title":"Scopes","description":"Names of the scopes this session is an active member of. Only returned by the session list when `include_scopes` is true.","uniqueKey":"scopes.oneOf.1","typeLabel":"null"}],"uniqueKey":"scopes","typeLabel":"string[] | null"}},"type":"object","required":["id","uid","is_active","workspace_id","created_at"],"title":"Session","uniqueKey":"","typeLabel":"Session · object"},"examples":{"Example":{"title":"Example","value":{"id":"\u003cstring>","uid":"\u003cstring>","is_active":true,"workspace_id":"\u003cstring>","created_at":"2023-11-07T05:31:56Z","metadata":{},"configuration":{},"scopes":["\u003cstring>"]}}},"exampleType":"generated"}},"exampleType":"generated"},"23538b18-3639-438b-94ea-3c8c1d75e92f":{"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":{"6dd89bec-5b49-4d60-94fe-577996273483":{"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 Or Create Session - Honcho","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-27T17:33:43.744Z","originalFileLocation":"v3/api-reference/endpoint/sessions/get-or-create-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=\"Get a Session by ID or create a new Session with the given ID. If Session ID is provided as a parameter, it verifies the Session is in the Workspace. Otherwise, it uses the session_id from the JWT for verification.\">\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 Or Create Session - Honcho\">\u003cmeta data-mint-head property=\"og:description\" content=\"Get a Session by ID or create a new Session with the given ID. If Session ID is provided as a parameter, it verifies the Session is in the Workspace. Otherwise, it uses the session_id from the JWT for verification.\">\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-or-create-session\">\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+Or+Create+Session\u0026amp;description=Get+a+Session+by+ID+or+create+a+new+Session+with+the+given+ID.%0A%0AIf+Session+ID+is+provided+as+a+parameter%2C+it+verifies+the+Session+is+in+the+Workspace.%0AOtherwise\u0026amp;theme=f6a7151d44163e9cebee0751\u0026amp;signature=6ca3f970361b6bb42fcdfd26532d0bb02b8ff50c3b0618a2db3f1714753a1472\">\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 Or Create Session - Honcho\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Get a Session by ID or create a new Session with the given ID. If Session ID is provided as a parameter, it verifies the Session is in the Workspace. Otherwise, it uses the session_id from the JWT for verification.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://plasticlabs.mintlify.site/docs/_mintlify/api/og/v2?division=sessions\u0026amp;title=Get+Or+Create+Session\u0026amp;description=Get+a+Session+by+ID+or+create+a+new+Session+with+the+given+ID.%0A%0AIf+Session+ID+is+provided+as+a+parameter%2C+it+verifies+the+Session+is+in+the+Workspace.%0AOtherwise\u0026amp;theme=f6a7151d44163e9cebee0751\u0026amp;signature=6ca3f970361b6bb42fcdfd26532d0bb02b8ff50c3b0618a2db3f1714753a1472\">\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-or-create-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/v3/api-reference/endpoint/sessions/get-or-create-session.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-or-create-session#webpage\",\"url\":\"https://honcho.dev/docs/v3/api-reference/endpoint/sessions/get-or-create-session\",\"name\":\"Get Or Create Session\",\"description\":\"Get a Session by ID or create a new Session with the given ID. If Session ID is provided as a parameter, it verifies the Session is in the Workspace. Otherwise, it uses the session_id from the JWT for verification.\",\"dateModified\":\"2026-01-27T17:33:43.744Z\",\"isPartOf\":{\"@id\":\"https://honcho.dev/docs#website\"},\"breadcrumb\":{\"@id\":\"https://honcho.dev/docs/v3/api-reference/endpoint/sessions/get-or-create-session#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://honcho.dev/docs/v3/api-reference/endpoint/sessions/get-or-create-session#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Honcho\",\"item\":\"https://honcho.dev/docs\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get Or Create Session\",\"item\":\"https://honcho.dev/docs/v3/api-reference/endpoint/sessions/get-or-create-session\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://honcho.dev/docs/v3/api-reference/endpoint/sessions/get-or-create-session#apireference\",\"headline\":\"Get Or Create Session\",\"name\":\"Get Or Create Session\",\"description\":\"Get a Session by ID or create a new Session with the given ID. If Session ID is provided as a parameter, it verifies the Session is in the Workspace. Otherwise, it uses the session_id from the JWT for verification.\",\"url\":\"https://honcho.dev/docs/v3/api-reference/endpoint/sessions/get-or-create-session\",\"mainEntityOfPage\":{\"@id\":\"https://honcho.dev/docs/v3/api-reference/endpoint/sessions/get-or-create-session#webpage\"},\"dateModified\":\"2026-01-27T17:33:43.744Z\",\"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","description":"Search a Peer's messages, optionally filtered by various criteria.","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","description":"Get all Sessions for a Workspace, paginated with optional filters.\n\nPass `scope` to list only a scope's member sessions (404 if the scope does\nnot exist), or `in_no_scope` to list only sessions that are in no scope.","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","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","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 Or Create Session - 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"]}