import { Orchata } from '@orchata-ai/sdk';const client = new Orchata({ apiKey: 'oai_your_api_key' });// Add a new item to a to-do list without fetching firstconst { document } = await client.documents.append('doc_123', { spaceId: 'space_123', content: '- [ ] New task added by AI'});
Append content to an existing document. Fetches current content, appends new content, and regenerates embeddings synchronously.
POST
/
api
/
documents
/
{id}
/
append
TypeScript SDK
import { Orchata } from '@orchata-ai/sdk';const client = new Orchata({ apiKey: 'oai_your_api_key' });// Add a new item to a to-do list without fetching firstconst { document } = await client.documents.append('doc_123', { spaceId: 'space_123', content: '- [ ] New task added by AI'});
{"docsConfig":{"theme":"linden","$schema":"https://mintlify.com/docs.json","name":"Orchata","colors":{"primary":"#FA8565","light":"#FA8565","dark":"#FA8565"},"logo":{"light":"https://cdn.orchata.ai/img/orchata-logo-light.svg","dark":"https://cdn.orchata.ai/img/orchata-logo-dark.svg"},"favicon":"/favicon.ico","background":{"decoration":"grid","color":{"light":"#FDF5DF","dark":"#1C1827"}},"navbar":{"links":[{"href":"mailto:support@orchata.ai","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.orchata.ai"}},"footer":{"socials":{"github":"https://github.com/orchata-ai"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Back to Site","icon":"home","href":"https://orchata.ai"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"orchatalabs","hasAudioNarration":false,"actualSubdomain":"orchatalabs","customDomains":["orchata.ai"],"gitSource":{"type":"github","owner":"orchata-ai","repo":"orchata-rag","deployBranch":"develop","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6ae940c687cae518f465a8c7:success","clientVersion":"0.0.4111","searchFilterCounts":[{"language":"default","tag":"API Reference","count":22},{"language":"default","tag":"Endpoints","count":21},{"language":"default","tag":"Guides","count":18},{"language":"default","tag":"Documents","count":10},{"language":"default","tag":"Spaces","count":6},{"language":"default","tag":"Getting Started","count":5},{"language":"default","tag":"AI Tool Setup","count":4},{"language":"default","tag":"TypeScript SDK","count":4},{"language":"default","tag":"MCP Server","count":3},{"language":"default","tag":"Admin","count":3}]},"assistantConfig":{"enableStarterQuestions":false},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/documents/append-to-document","slug":"/api-reference/documents/append-to-document","pageMetadata":{"title":"Append to Document","description":"Append content to an existing document. Fetches current content, appends new content, and regenerates embeddings synchronously.","deprecated":null,"version":null,"openapi":"api/openapi.json post /api/documents/{id}/append","href":"/api-reference/documents/append-to-document","autogeneratedByOpenApi":true,"hidden":false},"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: \"Append content to an existing document. Fetches current content, appends new content, and regenerates embeddings synchronously.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Append to Document","description":"Append content to an existing document. Fetches current content, appends new content, and regenerates embeddings synchronously.","deprecated":null,"version":null,"openapi":"api/openapi.json post /api/documents/{id}/append","href":"/api-reference/documents/append-to-document","autogeneratedByOpenApi":true,"hidden":false}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Documents"],"summary":"Append to Document","description":"Append content to an existing document. Fetches current content, appends new content, and regenerates embeddings synchronously.","x-codeSamples":[{"lang":"typescript","label":"TypeScript SDK","source":"import { Orchata } from '@orchata-ai/sdk';\n\nconst client = new Orchata({ apiKey: 'oai_your_api_key' });\n\n// Add a new item to a to-do list without fetching first\nconst { document } = await client.documents.append('doc_123', {\n spaceId: 'space_123',\n content: '- [ ] New task added by AI'\n});"}],"parameters":["8ce3d723-d2d3-460d-bbed-6d7121b9cf6b"],"requestBody":"f5012201-9ae1-43ad-90f2-b9f7faf80dc6","responses":{"200":"93d52c9b-c4c0-43df-b409-ebd18d8e4ddf","401":"26c7612c-3a04-49f8-bd1b-fe937d28e6f1","403":"dc2dc2d8-341d-4d0d-9055-7087f3913700","404":"bc3a08ef-42ef-49e5-a92d-b50203063e58"},"method":"post","type":"path","servers":["27616fde-a7f5-4ae5-a362-1fb86892a734"],"security":["c7c83795-2758-4207-b371-e5b1dceae23c"],"path":"/api/documents/{id}/append","baseUrlOptions":["https://api.orchata.ai"],"title":"Append to Document","codeSamples":[{"label":"TypeScript SDK","lang":"typescript","source":"import { Orchata } from '@orchata-ai/sdk';\n\nconst client = new Orchata({ apiKey: 'oai_your_api_key' });\n\n// Add a new item to a to-do list without fetching first\nconst { document } = await client.documents.append('doc_123', {\n spaceId: 'space_123',\n content: '- [ ] New task added by AI'\n});"}],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{"8ce3d723-d2d3-460d-bbed-6d7121b9cf6b":{"schema":{"type":"string","example":"document_123","isRequired":true,"uniqueKey":"","typeLabel":"string"},"required":true,"name":"id","in":"path"}},"requestBody":{"description":"Content to append","content":{"application/json":{"schema":{"type":"object","properties":{"spaceId":{"type":"string","description":"The ID of the space containing the document","example":"space_123","isRequired":true,"uniqueKey":"spaceId","typeLabel":"string"},"content":{"type":"string","minLength":1,"maxLength":10000000,"description":"Content to append to the document (max 10MB)","example":"\n- New item added","isRequired":true,"uniqueKey":"content","typeLabel":"string"},"separator":{"type":"string","description":"Separator between existing and new content (default: '\\n\\n')","example":"\n\n","uniqueKey":"separator","typeLabel":"string"}},"required":["spaceId","content"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"spaceId":"space_123","content":"\n- New item added","separator":"\n\n"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"93d52c9b-c4c0-43df-b409-ebd18d8e4ddf":{"description":"Content appended successfully","content":{"application/json":{"schema":{"type":"object","properties":{"document":{"type":"object","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"document.id","typeLabel":"string"},"orgId":{"type":"string","isRequired":true,"uniqueKey":"document.orgId","typeLabel":"string"},"spaceId":{"type":"string","isRequired":true,"uniqueKey":"document.spaceId","typeLabel":"string"},"filename":{"type":"string","isRequired":true,"uniqueKey":"document.filename","typeLabel":"string"},"mimeType":{"type":"string","isRequired":true,"uniqueKey":"document.mimeType","typeLabel":"string"},"fileSize":{"type":"string","isRequired":true,"uniqueKey":"document.fileSize","typeLabel":"string"},"storageUrl":{"type":"string","isRequired":true,"uniqueKey":"document.storageUrl","typeLabel":"string"},"status":{"type":"string","isRequired":true,"uniqueKey":"document.status","typeLabel":"string"},"errorMessage":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"document.errorMessage.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"document.errorMessage.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"document.errorMessage","typeLabel":"string | null"},"embeddingModel":{"type":"string","isRequired":true,"uniqueKey":"document.embeddingModel","typeLabel":"string"},"indexingType":{"type":"string","isRequired":true,"uniqueKey":"document.indexingType","typeLabel":"string"},"createdAt":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"document.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"document.updatedAt","typeLabel":"string\u003cdate-time>"},"metadata":{"oneOf":[{}],"uniqueKey":"document.metadata","typeLabel":"any"}},"required":["id","orgId","spaceId","filename","mimeType","fileSize","storageUrl","status","errorMessage","embeddingModel","indexingType","createdAt","updatedAt"],"isRequired":true,"uniqueKey":"document","typeLabel":"object"}},"required":["document"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"document":{"id":"\u003cstring>","orgId":"\u003cstring>","spaceId":"\u003cstring>","filename":"\u003cstring>","mimeType":"\u003cstring>","fileSize":"\u003cstring>","storageUrl":"\u003cstring>","status":"\u003cstring>","errorMessage":"\u003cstring>","embeddingModel":"\u003cstring>","indexingType":"\u003cstring>","createdAt":"2023-11-07T05:31:56Z","updatedAt":"2023-11-07T05:31:56Z","metadata":"\u003cunknown>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"26c7612c-3a04-49f8-bd1b-fe937d28e6f1":{"description":"Authentication required","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"dc2dc2d8-341d-4d0d-9055-7087f3913700":{"description":"Insufficient permissions","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"bc3a08ef-42ef-49e5-a92d-b50203063e58":{"description":"Document not found","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"c7c83795-2758-4207-b371-e5b1dceae23c":{"ApiKey":{"type":"apiKey","in":"header","name":"Oai-Api-Key","scopes":[]}}},"servers":{"27616fde-a7f5-4ae5-a362-1fb86892a734":{"url":"https://api.orchata.ai","description":"Orchata API Server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"Oai-Api-Key","scopes":[]},"schema":{"title":"Oai-Api-Key","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKey","name":"Oai-Api-Key"}],"title":"ApiKey"}]},"originalFileLocation":"api/openapi.json"},"subdomain":"orchatalabs","siteName":"Orchata","title":"Append to Document - Orchata","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-02-10T14:43:26.177Z","originalFileLocation":"api-reference/documents/append-to-document.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=\"Append content to an existing document. Fetches current content, appends new content, and regenerates embeddings synchronously.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Orchata\">\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/orchatalabs/UANI6yfg0lJWC1cq/_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/orchatalabs/UANI6yfg0lJWC1cq/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/orchatalabs/UANI6yfg0lJWC1cq/_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/orchatalabs/UANI6yfg0lJWC1cq/_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/orchatalabs/UANI6yfg0lJWC1cq/_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/orchatalabs/UANI6yfg0lJWC1cq/_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/orchatalabs/UANI6yfg0lJWC1cq/_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/orchatalabs/UANI6yfg0lJWC1cq/_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/orchatalabs/UANI6yfg0lJWC1cq/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Append to Document - Orchata\">\u003cmeta data-mint-head property=\"og:description\" content=\"Append content to an existing document. Fetches current content, appends new content, and regenerates embeddings synchronously.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Orchata\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://orchata.ai/docs/api-reference/documents/append-to-document\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://orchatalabs.mintlify.site/docs/_mintlify/api/og/v2?division=Documents\u0026amp;title=Append+to+Document\u0026amp;description=Append+content+to+an+existing+document.+Fetches+current+content%2C+appends+new+content%2C+and+regenerates+embeddings+synchronously.\u0026amp;theme=733c0f40f2f162a3cf9276b1\u0026amp;signature=d7ddb5cffb167ef94174bf523c57270c1e4823f53345f7b33052f271006b8324\">\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=\"Append to Document - Orchata\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Append content to an existing document. Fetches current content, appends new content, and regenerates embeddings synchronously.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://orchatalabs.mintlify.site/docs/_mintlify/api/og/v2?division=Documents\u0026amp;title=Append+to+Document\u0026amp;description=Append+content+to+an+existing+document.+Fetches+current+content%2C+appends+new+content%2C+and+regenerates+embeddings+synchronously.\u0026amp;theme=733c0f40f2f162a3cf9276b1\u0026amp;signature=d7ddb5cffb167ef94174bf523c57270c1e4823f53345f7b33052f271006b8324\">\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/orchatalabs/UANI6yfg0lJWC1cq/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Orchata\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#FA8565\">\u003clink data-mint-head rel=\"canonical\" href=\"https://orchata.ai/docs/api-reference/documents/append-to-document\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/documents/append-to-document.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://orchata.ai/#organization\",\"name\":\"Orchata\",\"url\":\"https://orchata.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://cdn.orchata.ai/img/orchata-logo-light.svg\"}},{\"@type\":\"WebSite\",\"@id\":\"https://orchata.ai/docs#website\",\"name\":\"Orchata\",\"url\":\"https://orchata.ai/docs\",\"publisher\":{\"@id\":\"https://orchata.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://orchata.ai/docs/api-reference/documents/append-to-document#webpage\",\"url\":\"https://orchata.ai/docs/api-reference/documents/append-to-document\",\"name\":\"Append to Document\",\"description\":\"Append content to an existing document. Fetches current content, appends new content, and regenerates embeddings synchronously.\",\"dateModified\":\"2026-02-10T14:43:26.177Z\",\"isPartOf\":{\"@id\":\"https://orchata.ai/docs#website\"},\"breadcrumb\":{\"@id\":\"https://orchata.ai/docs/api-reference/documents/append-to-document#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://orchata.ai/docs/api-reference/documents/append-to-document#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://orchata.ai/docs/api-reference/admin/get-platform-analytics\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Documents\",\"item\":\"https://orchata.ai/docs/api-reference/documents/list-documents\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Append to Document\",\"item\":\"https://orchata.ai/docs/api-reference/documents/append-to-document\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://orchata.ai/docs/api-reference/documents/append-to-document#apireference\",\"headline\":\"Append to Document\",\"name\":\"Append to Document\",\"description\":\"Append content to an existing document. Fetches current content, appends new content, and regenerates embeddings synchronously.\",\"url\":\"https://orchata.ai/docs/api-reference/documents/append-to-document\",\"mainEntityOfPage\":{\"@id\":\"https://orchata.ai/docs/api-reference/documents/append-to-document#webpage\"},\"dateModified\":\"2026-02-10T14:43:26.177Z\",\"publisher\":{\"@id\":\"https://orchata.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://orchata.ai/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Orchata\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Orchata\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/api-reference/documents/append-to-document.md","siteName":"Orchata","nav":{"global":{"anchors":[{"anchor":"Back to Site","icon":"home","href":"https://orchata.ai"}]},"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"API Reference","groups":[{"group":"API Documentation","pages":[{"title":"API Reference","href":"/api-reference/introduction","hidden":false}]},{"group":"Endpoints","pages":[{"group":"Admin","pages":[{"title":"Get Platform Analytics","deprecated":null,"version":null,"openapi":"api/openapi.json get /api/admin/analytics","href":"/api-reference/admin/get-platform-analytics"},{"title":"Get Documents Over Time","deprecated":null,"version":null,"openapi":"api/openapi.json get /api/admin/analytics/documents","href":"/api-reference/admin/get-documents-over-time"},{"title":"Get Users Over Time","deprecated":null,"version":null,"openapi":"api/openapi.json get /api/admin/analytics/users","href":"/api-reference/admin/get-users-over-time"}]},{"group":"Spaces","pages":[{"title":"List Spaces","deprecated":null,"version":null,"openapi":"api/openapi.json get /api/spaces","href":"/api-reference/spaces/list-spaces"},{"title":"Create Space","deprecated":null,"version":null,"openapi":"api/openapi.json post /api/spaces","href":"/api-reference/spaces/create-space"},{"title":"Get Space","deprecated":null,"version":null,"openapi":"api/openapi.json get /api/spaces/{id}","href":"/api-reference/spaces/get-space"},{"title":"Delete Space","deprecated":null,"version":null,"openapi":"api/openapi.json delete /api/spaces/{id}","href":"/api-reference/spaces/delete-space"},{"title":"Update Space","deprecated":null,"version":null,"openapi":"api/openapi.json patch /api/spaces/{id}","href":"/api-reference/spaces/update-space"},{"title":"Get Space Limits","deprecated":null,"version":null,"openapi":"api/openapi.json get /api/spaces/{id}/limits","href":"/api-reference/spaces/get-space-limits"}]},{"group":"Documents","pages":[{"title":"List Documents","deprecated":null,"version":null,"openapi":"api/openapi.json get /api/documents","href":"/api-reference/documents/list-documents"},{"title":"Upsert Document","deprecated":null,"version":null,"openapi":"api/openapi.json put /api/documents","href":"/api-reference/documents/upsert-document"},{"title":"Upload Document","deprecated":null,"version":null,"openapi":"api/openapi.json post /api/documents","href":"/api-reference/documents/upload-document"},{"title":"Batch Upload Documents","deprecated":null,"version":null,"openapi":"api/openapi.json post /api/documents/batch","href":"/api-reference/documents/batch-upload-documents"},{"title":"Get Document by Filename","deprecated":null,"version":null,"openapi":"api/openapi.json get /api/documents/by-filename","href":"/api-reference/documents/get-document-by-filename"},{"title":"Get Document","deprecated":null,"version":null,"openapi":"api/openapi.json get /api/documents/{id}","href":"/api-reference/documents/get-document"},{"title":"Delete Document","deprecated":null,"version":null,"openapi":"api/openapi.json delete /api/documents/{id}","href":"/api-reference/documents/delete-document"},{"title":"Update Document","deprecated":null,"version":null,"openapi":"api/openapi.json patch /api/documents/{id}","href":"/api-reference/documents/update-document"},{"title":"Get Processed Document Content","description":"Retrieve the processed markdown content for a document. Only available for documents with COMPLETED status.","deprecated":null,"version":null,"openapi":"api/openapi.json get /api/documents/{id}/content","href":"/api-reference/documents/get-processed-document-content"},{"title":"Append to Document","deprecated":null,"version":null,"openapi":"api/openapi.json post /api/documents/{id}/append","href":"/api-reference/documents/append-to-document"}]},{"group":"Queries","pages":[{"title":"Query Spaces","description":"Query one or more spaces for similar content. Accepts a single space ID or array of space IDs. Results are merged and globally ranked by default, or can be grouped by space.","deprecated":null,"version":null,"openapi":"api/openapi.json post /api/query","href":"/api-reference/queries/query-spaces"},{"title":"Smart Query - Discover Relevant Spaces","deprecated":null,"version":null,"openapi":"api/openapi.json post /api/query/smart","href":"/api-reference/queries/smart-query--discover-relevant-spaces"}]}]}]}]},"basePath":"","title":"Append to Document - Orchata","buildId":"dpl_6PxPD4Fj1JDU9BJxEHvfdUmxKThw","deploymentId":"dpl_6PxPD4Fj1JDU9BJxEHvfdUmxKThw","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CASS2Vpq.js","utils-4k9fyWRu.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-UU-UueZb.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-BgJ0LOYq.js","snippetPresets-CMgzlMR-.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BzEJegkK.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CZuQIZdk.js","shallow-Bw5arfMA.js","getApiPlaygroundDisplay-Ds834aVN.js","CodeSnippet-CKzmjw9L.js","CodeSnippets-BRpgomdp.js","Page-DvEUoD2H.js","getPastedJson-B0N-Tn76.js","icon-DASMs9nC.js","MethodPill-BA6DBLqx.js","DuplicateIcon-BMT5qfbJ.js","createIcon-CNfwVWPx.js","DynamicMarkdown-JYyBNlrJ.js","SectionHeading-BbZnmz8a.js","axios-vUo_bRtp.js","Markdown-LUU0YLpA.js","clsx-Di4ek5Ae.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-VEVWQCR4.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-CPszyu99.js"]}