{
"error": {
"code": "not_found",
"message": "No such document."
}
}
{
"error": {
"code": "not_found",
"message": "No such document."
}
}
{
"error": {
"code": "not_found",
"message": "No such document."
}
}
{
"error": {
"code": "not_found",
"message": "No such document."
}
}
Threads
Accept a suggestion
Applies the proposed text of an open suggestion to the document (through the collaborative session) and marks the thread accepted. Requires write access on the document; API keys with edit access accept as their agent identity.
POST
/
api
/
threads
/
{id}
/
accept
Accept a suggestion
curl --request POST \ --url https://scribe.skeptrune.com/api/threads/{id}/accept \ --cookie scribe_session=
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Scribe","description":"Collaborative markdown WYSIWYG editor built on Cloudflare, with an API-first design.","colors":{"primary":"#57534e","light":"#d6d3d1","dark":"#44403c"},"background":{"color":{"light":"#fafaf9","dark":"#0c0a09"}},"navbar":{"primary":{"type":"button","label":"Open Scribe","href":"https://scribe.skeptrune.com"}},"footer":{"socials":{"github":"https://github.com/mintlify/scribe"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"scribeskept","hasAudioNarration":false,"actualSubdomain":"scribeskept","customDomains":["demo.skeptrune.com"],"gitSource":{"type":"github","owner":"skeptrunedev","repo":"scribe-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae95c546c00b4612dbc64ba:success","clientVersion":"0.0.4111","searchFilterCounts":[{"language":"default","tag":"API reference","count":50},{"language":"default","tag":"Docs","count":8},{"language":"default","tag":"Documentation","count":7},{"language":"default","tag":"Threads","count":7},{"language":"default","tag":"Shares","count":6},{"language":"default","tag":"Folders","count":4},{"language":"default","tag":"Me","count":4},{"language":"default","tag":"Organization","count":4},{"language":"default","tag":"API Keys","count":3},{"language":"default","tag":"Members","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/help-center","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/threads/accept-a-suggestion","slug":"/api-reference/threads/accept-a-suggestion","pageMetadata":{"title":"Accept a suggestion","description":"Applies the proposed text of an open suggestion to the document (through the collaborative session) and marks the thread accepted. Requires write access on the document; API keys with edit access accept as their agent identity.","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json post /api/threads/{id}/accept","href":"/api-reference/threads/accept-a-suggestion","autogeneratedByOpenApi":true},"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: \"Applies the proposed text of an open suggestion to the document (through the collaborative session) and marks the thread accepted. Requires write access on the document; API keys with edit access accept as their agent identity.\"\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":"Accept a suggestion","description":"Applies the proposed text of an open suggestion to the document (through the collaborative session) and marks the thread accepted. Requires write access on the document; API keys with edit access accept as their agent identity.","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json post /api/threads/{id}/accept","href":"/api-reference/threads/accept-a-suggestion","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Threads"],"summary":"Accept a suggestion","description":"Applies the proposed text of an open suggestion to the document (through the collaborative session) and marks the thread accepted. Requires write access on the document; API keys with edit access accept as their agent identity.","operationId":"acceptSuggestion","security":["cac44696-16f7-4ec1-b1e1-aaafdaf07a00","b5535b9a-2fc9-4dfe-8a98-7b42e7eb627c"],"parameters":["5f3fc4aa-5ef9-4be0-832f-351fe7a709c7"],"responses":{"200":"24908132-bfcb-420e-a912-704473a2bce4","401":"06962d17-b17d-418a-8f67-df36583c643a","403":"7c7d2774-3aa1-476a-9263-f8871ee34566","404":"c593e2e7-179f-41d7-9010-76918b4b1a30","409":"6f799d98-8ce3-46f9-b6ff-0f92363db464"},"method":"post","type":"path","servers":["563ebf6e-9bdc-4d2b-b429-c4af5c386ebb"],"path":"/api/threads/{id}/accept","baseUrlOptions":["https://scribe.skeptrune.com"],"title":"Accept a suggestion","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"5f3fc4aa-5ef9-4be0-832f-351fe7a709c7":{"schema":{"type":"string","isRequired":true,"description":"Id of the suggestion thread to accept.","uniqueKey":"","typeLabel":"string"},"required":true,"description":"Id of the suggestion thread to accept.","name":"id","in":"path"}},"responses":{"24908132-bfcb-420e-a912-704473a2bce4":{"description":"The suggestion was processed.","content":{"application/json":{"schema":{"type":"object","properties":{"applied":{"type":"boolean","description":"Whether the proposed text was applied to the document.","example":true,"isRequired":true,"uniqueKey":"applied","typeLabel":"boolean"},"thread":{"type":"object","properties":{"id":{"type":"string","description":"Thread id.","example":"thr_5aBcDeFgHiJkLmNoPq6r","isRequired":true,"uniqueKey":"thread.id","typeLabel":"string"},"docId":{"type":"string","description":"Document the thread is anchored to.","example":"doc_S9tUvWxYzAbCdEfGh12i","isRequired":true,"uniqueKey":"thread.docId","typeLabel":"string"},"kind":{"type":"string","enum":["comment","suggestion"],"description":"Kind of discussion thread.","example":"comment","isRequired":true,"uniqueKey":"thread.kind","typeLabel":"enum\u003cstring>"},"anchorJson":{"type":"string","description":"Serialized Yjs relative positions ({from,to}) anchoring the thread.","example":"{\"from\":{\"type\":\"relative\",\"item\":10},\"to\":{\"type\":\"relative\",\"item\":24}}","isRequired":true,"uniqueKey":"thread.anchorJson","typeLabel":"string"},"quotedText":{"oneOf":[{"type":"string","description":"Text that was selected when the thread was created.","example":"ship in Q2","isRequired":true,"uniqueKey":"thread.quotedText.oneOf.0","typeLabel":"string"},{"type":"null","description":"Text that was selected when the thread was created.","example":"ship in Q2","isRequired":true,"uniqueKey":"thread.quotedText.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"thread.quotedText","typeLabel":"string | null"},"proposedText":{"oneOf":[{"type":"string","description":"Replacement text (suggestions only).","example":"ship in Q3","isRequired":true,"uniqueKey":"thread.proposedText.oneOf.0","typeLabel":"string"},{"type":"null","description":"Replacement text (suggestions only).","example":"ship in Q3","isRequired":true,"uniqueKey":"thread.proposedText.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"thread.proposedText","typeLabel":"string | null"},"status":{"type":"string","enum":["open","resolved","accepted","rejected"],"description":"Current lifecycle status of the thread.","example":"open","isRequired":true,"uniqueKey":"thread.status","typeLabel":"enum\u003cstring>"},"createdBy":{"type":"string","description":"User id of the thread creator.","example":"usr_V1StGXR8_Z5jdHi6BmyT","isRequired":true,"uniqueKey":"thread.createdBy","typeLabel":"string"},"createdByName":{"oneOf":[{"type":"string","description":"Display name of the thread creator — the creator's name or handle (agent creators carry the name of their API key). Null when the creator row no longer exists.","example":"Ada Lovelace","isRequired":true,"uniqueKey":"thread.createdByName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name of the thread creator — the creator's name or handle (agent creators carry the name of their API key). Null when the creator row no longer exists.","example":"Ada Lovelace","isRequired":true,"uniqueKey":"thread.createdByName.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"thread.createdByName","typeLabel":"string | null"},"createdByKind":{"oneOf":[{"type":"string","enum":["human","agent",null],"description":"Whether the thread creator is a person ('human') or an API-key agent identity ('agent'). Null when the creator row no longer exists.","example":"human","isRequired":true,"uniqueKey":"thread.createdByKind.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["human","agent",null],"description":"Whether the thread creator is a person ('human') or an API-key agent identity ('agent'). Null when the creator row no longer exists.","example":"human","isRequired":true,"uniqueKey":"thread.createdByKind.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"thread.createdByKind","typeLabel":"enum\u003cstring> | null"},"createdAt":{"type":"integer","description":"When the thread was started (epoch milliseconds).","example":1752624000000,"isRequired":true,"uniqueKey":"thread.createdAt","typeLabel":"integer"},"updatedAt":{"type":"integer","description":"When the thread last changed (epoch milliseconds).","example":1752624000000,"isRequired":true,"uniqueKey":"thread.updatedAt","typeLabel":"integer"},"resolvedBy":{"oneOf":[{"type":"string","description":"User id who resolved/accepted/rejected the thread, or null.","example":"usr_V1StGXR8_Z5jdHi6BmyT","isRequired":true,"uniqueKey":"thread.resolvedBy.oneOf.0","typeLabel":"string"},{"type":"null","description":"User id who resolved/accepted/rejected the thread, or null.","example":"usr_V1StGXR8_Z5jdHi6BmyT","isRequired":true,"uniqueKey":"thread.resolvedBy.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"thread.resolvedBy","typeLabel":"string | null"},"resolvedAt":{"oneOf":[{"type":"integer","description":"When the thread left the open state, or null.","example":1752624000000,"isRequired":true,"uniqueKey":"thread.resolvedAt.oneOf.0","typeLabel":"integer"},{"type":"null","description":"When the thread left the open state, or null.","example":1752624000000,"isRequired":true,"uniqueKey":"thread.resolvedAt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"thread.resolvedAt","typeLabel":"integer | null"}},"required":["id","docId","kind","anchorJson","quotedText","proposedText","status","createdBy","createdByName","createdByKind","createdAt","updatedAt","resolvedBy","resolvedAt"],"description":"A comment or suggestion thread anchored to a document range.","example":{"id":"thr_5aBcDeFgHiJkLmNoPq6r","docId":"doc_S9tUvWxYzAbCdEfGh12i","kind":"comment","anchorJson":"{\"from\":{\"type\":\"relative\",\"item\":10},\"to\":{\"type\":\"relative\",\"item\":24}}","quotedText":"ship in Q2","proposedText":null,"status":"open","createdBy":"usr_V1StGXR8_Z5jdHi6BmyT","createdByName":"Ada Lovelace","createdByKind":"human","createdAt":1752624000000,"updatedAt":1752624000000,"resolvedBy":null,"resolvedAt":null},"isRequired":true,"uniqueKey":"thread","typeLabel":"object"}},"required":["applied","thread"],"description":"Result of accepting a suggestion.","example":{"applied":true,"thread":{"id":"thr_5aBcDeFgHiJkLmNoPq6r","docId":"doc_S9tUvWxYzAbCdEfGh12i","kind":"comment","anchorJson":"{\"from\":{\"type\":\"relative\",\"item\":10},\"to\":{\"type\":\"relative\",\"item\":24}}","quotedText":"ship in Q2","proposedText":null,"status":"accepted","createdBy":"usr_V1StGXR8_Z5jdHi6BmyT","createdByName":"Ada Lovelace","createdByKind":"human","createdAt":1752624000000,"updatedAt":1752624000000,"resolvedBy":null,"resolvedAt":null}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"applied":true,"thread":{"id":"thr_5aBcDeFgHiJkLmNoPq6r","docId":"doc_S9tUvWxYzAbCdEfGh12i","kind":"comment","anchorJson":"{\"from\":{\"type\":\"relative\",\"item\":10},\"to\":{\"type\":\"relative\",\"item\":24}}","quotedText":"ship in Q2","proposedText":null,"status":"accepted","createdBy":"usr_V1StGXR8_Z5jdHi6BmyT","createdByName":"Ada Lovelace","createdByKind":"human","createdAt":1752624000000,"updatedAt":1752624000000,"resolvedBy":null,"resolvedAt":null}}}},"exampleType":"generated"}},"exampleType":"generated"},"06962d17-b17d-418a-8f67-df36583c643a":{"description":"Returned when a suggestion is accepted without a user session or agent-backed API key.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["validation_error","unauthorized","user_session_required","forbidden","not_found","conflict","payload_too_large","unsupported_media_type","internal_error"],"description":"Stable machine-readable error code.","example":"not_found","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable explanation of the error.","example":"No such document.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["code","message"],"description":"Error detail.","example":{"code":"not_found","message":"No such document."},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"description":"Standard error envelope returned by every non-2xx response.","example":{"error":{"code":"not_found","message":"No such document."}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"not_found","message":"No such document."}}}},"exampleType":"generated"}},"exampleType":"generated"},"7c7d2774-3aa1-476a-9263-f8871ee34566":{"description":"Returned when the caller has no write access while accepting the suggestion.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["validation_error","unauthorized","user_session_required","forbidden","not_found","conflict","payload_too_large","unsupported_media_type","internal_error"],"description":"Stable machine-readable error code.","example":"not_found","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable explanation of the error.","example":"No such document.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["code","message"],"description":"Error detail.","example":{"code":"not_found","message":"No such document."},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"description":"Standard error envelope returned by every non-2xx response.","example":{"error":{"code":"not_found","message":"No such document."}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"not_found","message":"No such document."}}}},"exampleType":"generated"}},"exampleType":"generated"},"c593e2e7-179f-41d7-9010-76918b4b1a30":{"description":"Returned when the suggestion thread to accept does not exist.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["validation_error","unauthorized","user_session_required","forbidden","not_found","conflict","payload_too_large","unsupported_media_type","internal_error"],"description":"Stable machine-readable error code.","example":"not_found","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable explanation of the error.","example":"No such document.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["code","message"],"description":"Error detail.","example":{"code":"not_found","message":"No such document."},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"description":"Standard error envelope returned by every non-2xx response.","example":{"error":{"code":"not_found","message":"No such document."}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"not_found","message":"No such document."}}}},"exampleType":"generated"}},"exampleType":"generated"},"6f799d98-8ce3-46f9-b6ff-0f92363db464":{"description":"Returned when the thread is not an open suggestion, or its anchor no longer resolves.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["validation_error","unauthorized","user_session_required","forbidden","not_found","conflict","payload_too_large","unsupported_media_type","internal_error"],"description":"Stable machine-readable error code.","example":"not_found","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable explanation of the error.","example":"No such document.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["code","message"],"description":"Error detail.","example":{"code":"not_found","message":"No such document."},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"description":"Standard error envelope returned by every non-2xx response.","example":{"error":{"code":"not_found","message":"No such document."}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"not_found","message":"No such document."}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"cac44696-16f7-4ec1-b1e1-aaafdaf07a00":{"cookieAuth":{"type":"apiKey","in":"cookie","name":"scribe_session","description":"Browser session cookie set by the WorkOS sign-in flow.","scopes":[]}},"b5535b9a-2fc9-4dfe-8a98-7b42e7eb627c":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Org-scoped API key token (scrb_agt_...) created via POST /api/org/api-keys. The key acts as its agent identity — a member-like user that owns documents, authors comments, and appears in activity feeds.","scopes":[]}}},"servers":{"563ebf6e-9bdc-4d2b-b429-c4af5c386ebb":{"url":"https://scribe.skeptrune.com","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"cookie","name":"scribe_session","description":"Browser session cookie set by the WorkOS sign-in flow.","scopes":[]},"schema":{"title":"scribe_session","type":"string","description":"Browser session cookie set by the WorkOS sign-in flow.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"cookieAuth","name":"scribe_session"}],"title":"cookieAuth"},{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Org-scoped API key token (scrb_agt_...) created via POST /api/org/api-keys. The key acts as its agent identity — a member-like user that owns documents, authors comments, and appears in activity feeds.","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Org-scoped API key token (scrb_agt_...) created via POST /api/org/api-keys. The key acts as its agent identity — a member-like user that owns documents, authors comments, and appears in activity feeds.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"help-center/api-reference/openapi.json"},"subdomain":"scribeskept","siteName":"Scribe","title":"Accept a suggestion - Scribe","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-17T06:04:56.771Z","originalFileLocation":"api-reference/threads/accept-a-suggestion.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=\"Applies the proposed text of an open suggestion to the document (through the collaborative session) and marks the thread accepted. Requires write access on the document; API keys with edit access accept as their agent identity.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Scribe\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/scribeskept/_generated/favicon/apple-touch-icon.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/scribeskept/_generated/favicon/favicon-32x32.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/scribeskept/_generated/favicon/favicon-16x16.png?v=3\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/scribeskept/_generated/favicon/favicon.ico?v=3\">\u003cmeta data-mint-head property=\"og:title\" content=\"Accept a suggestion - Scribe\">\u003cmeta data-mint-head property=\"og:description\" content=\"Applies the proposed text of an open suggestion to the document (through the collaborative session) and marks the thread accepted. Requires write access on the document; API keys with edit access accept as their agent identity.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Scribe\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://demo.skeptrune.com/api-reference/threads/accept-a-suggestion\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://scribeskept.mintlify.site/_mintlify/api/og/v2?division=Threads\u0026amp;title=Accept+a+suggestion\u0026amp;description=Applies+the+proposed+text+of+an+open+suggestion+to+the+document+%28through+the+collaborative+session%29+and+marks+the+thread+accepted.+Requires+write+access+on+the+\u0026amp;theme=84b3a3a3d031a8d5a20353bf\u0026amp;signature=2ce4c65a097ed340d6a2ff5c84cab25663bae871e791193a0276050986e0defa\">\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=\"Accept a suggestion - Scribe\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Applies the proposed text of an open suggestion to the document (through the collaborative session) and marks the thread accepted. Requires write access on the document; API keys with edit access accept as their agent identity.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://scribeskept.mintlify.site/_mintlify/api/og/v2?division=Threads\u0026amp;title=Accept+a+suggestion\u0026amp;description=Applies+the+proposed+text+of+an+open+suggestion+to+the+document+%28through+the+collaborative+session%29+and+marks+the+thread+accepted.+Requires+write+access+on+the+\u0026amp;theme=84b3a3a3d031a8d5a20353bf\u0026amp;signature=2ce4c65a097ed340d6a2ff5c84cab25663bae871e791193a0276050986e0defa\">\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=\"https://mintlify.s3.us-west-1.amazonaws.com/scribeskept/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Scribe\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#57534e\">\u003clink data-mint-head rel=\"canonical\" href=\"https://demo.skeptrune.com/api-reference/threads/accept-a-suggestion\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/threads/accept-a-suggestion.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://demo.skeptrune.com/#organization\",\"name\":\"Scribe\",\"url\":\"https://demo.skeptrune.com\"},{\"@type\":\"WebSite\",\"@id\":\"https://demo.skeptrune.com#website\",\"name\":\"Scribe\",\"url\":\"https://demo.skeptrune.com\",\"publisher\":{\"@id\":\"https://demo.skeptrune.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://demo.skeptrune.com/api-reference/threads/accept-a-suggestion#webpage\",\"url\":\"https://demo.skeptrune.com/api-reference/threads/accept-a-suggestion\",\"name\":\"Accept a suggestion\",\"description\":\"Applies the proposed text of an open suggestion to the document (through the collaborative session) and marks the thread accepted. Requires write access on the document; API keys with edit access accept as their agent identity.\",\"dateModified\":\"2026-07-17T06:04:56.771Z\",\"isPartOf\":{\"@id\":\"https://demo.skeptrune.com#website\"},\"breadcrumb\":{\"@id\":\"https://demo.skeptrune.com/api-reference/threads/accept-a-suggestion#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://demo.skeptrune.com/api-reference/threads/accept-a-suggestion#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Threads\",\"item\":\"https://demo.skeptrune.com/api-reference/threads/list-threads-of-a-document\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Accept a suggestion\",\"item\":\"https://demo.skeptrune.com/api-reference/threads/accept-a-suggestion\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://demo.skeptrune.com/api-reference/threads/accept-a-suggestion#apireference\",\"headline\":\"Accept a suggestion\",\"name\":\"Accept a suggestion\",\"description\":\"Applies the proposed text of an open suggestion to the document (through the collaborative session) and marks the thread accepted. Requires write access on the document; API keys with edit access accept as their agent identity.\",\"url\":\"https://demo.skeptrune.com/api-reference/threads/accept-a-suggestion\",\"mainEntityOfPage\":{\"@id\":\"https://demo.skeptrune.com/api-reference/threads/accept-a-suggestion#webpage\"},\"dateModified\":\"2026-07-17T06:04:56.771Z\",\"publisher\":{\"@id\":\"https://demo.skeptrune.com/#organization\"},\"isPartOf\":{\"@id\":\"https://demo.skeptrune.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Scribe\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Scribe\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/threads/accept-a-suggestion.md","siteName":"Scribe","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/help-center"}]},{"tab":"API reference","groups":[{"group":"Using the API","pages":[{"title":"API overview","href":"/help-center/api-reference/overview"}]},{"group":"Health","pages":[{"title":"Health check","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json get /api/health","href":"/api-reference/health/health-check"}]},{"group":"Me","pages":[{"title":"Get my profile","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json get /api/me","href":"/api-reference/me/get-my-profile"},{"title":"Update my profile","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json patch /api/me","href":"/api-reference/me/update-my-profile"},{"title":"Upload my avatar","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json put /api/me/avatar","href":"/api-reference/me/upload-my-avatar"},{"title":"Delete my avatar","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json delete /api/me/avatar","href":"/api-reference/me/delete-my-avatar"}]},{"group":"Organization","pages":[{"title":"Get the current organization","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json get /api/org","href":"/api-reference/organization/get-the-current-organization"},{"title":"Update the organization","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json patch /api/org","href":"/api-reference/organization/update-the-organization"},{"title":"Upload the organization icon","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json put /api/org/icon","href":"/api-reference/organization/upload-the-organization-icon"},{"title":"Delete the organization icon","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json delete /api/org/icon","href":"/api-reference/organization/delete-the-organization-icon"}]},{"group":"Members","pages":[{"title":"List members and pending invites","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json get /api/org/members","href":"/api-reference/members/list-members-and-pending-invites"},{"title":"Remove a member","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json delete /api/org/members/{userId}","href":"/api-reference/members/remove-a-member"},{"title":"Change a member role","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json patch /api/org/members/{userId}","href":"/api-reference/members/change-a-member-role"}]},{"group":"Invites","pages":[{"title":"Invite a member","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json post /api/org/invites","href":"/api-reference/invites/invite-a-member"},{"title":"Revoke an invite","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json delete /api/org/invites/{id}","href":"/api-reference/invites/revoke-an-invite"}]},{"group":"API Keys","pages":[{"title":"List API keys","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json get /api/org/api-keys","href":"/api-reference/api-keys/list-api-keys"},{"title":"Create an API key","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json post /api/org/api-keys","href":"/api-reference/api-keys/create-an-api-key"},{"title":"Revoke an API key","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json delete /api/org/api-keys/{id}","href":"/api-reference/api-keys/revoke-an-api-key"}]},{"group":"Folders","pages":[{"title":"List folders","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json get /api/folders","href":"/api-reference/folders/list-folders"},{"title":"Create a folder","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json post /api/folders","href":"/api-reference/folders/create-a-folder"},{"title":"Delete a folder","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json delete /api/folders/{id}","href":"/api-reference/folders/delete-a-folder"},{"title":"Rename or move a folder","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json patch /api/folders/{id}","href":"/api-reference/folders/rename-or-move-a-folder"}]},{"group":"Docs","pages":[{"title":"List documents","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json get /api/docs","href":"/api-reference/docs/list-documents"},{"title":"Create a document","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json post /api/docs","href":"/api-reference/docs/create-a-document"},{"title":"List trashed documents","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json get /api/trash","href":"/api-reference/docs/list-trashed-documents"},{"title":"Get a document","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json get /api/docs/{id}","href":"/api-reference/docs/get-a-document"},{"title":"Trash a document","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json delete /api/docs/{id}","href":"/api-reference/docs/trash-a-document"},{"title":"Update a document","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json patch /api/docs/{id}","href":"/api-reference/docs/update-a-document"},{"title":"Restore a document from the trash","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json post /api/docs/{id}/restore","href":"/api-reference/docs/restore-a-document-from-the-trash"},{"title":"Permanently delete a document","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json delete /api/docs/{id}/purge","href":"/api-reference/docs/permanently-delete-a-document"}]},{"group":"Content","pages":[{"title":"Get document content","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json get /api/docs/{id}/content","href":"/api-reference/content/get-document-content"},{"title":"Replace document content","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json put /api/docs/{id}/content","href":"/api-reference/content/replace-document-content"}]},{"group":"Shares","pages":[{"title":"List document shares","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json get /api/docs/{id}/shares","href":"/api-reference/shares/list-document-shares"},{"title":"Share with a user by email","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json post /api/docs/{id}/shares","href":"/api-reference/shares/share-with-a-user-by-email"},{"title":"Share with a user (upsert)","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json put /api/docs/{id}/shares/{userId}","href":"/api-reference/shares/share-with-a-user-upsert"},{"title":"Remove a share","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json delete /api/docs/{id}/shares/{userId}","href":"/api-reference/shares/remove-a-share"},{"title":"Enable the public link","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json post /api/docs/{id}/public-link","href":"/api-reference/shares/enable-the-public-link"},{"title":"Disable the public link","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json delete /api/docs/{id}/public-link","href":"/api-reference/shares/disable-the-public-link"}]},{"group":"Public","pages":[{"title":"Read a publicly linked document","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json get /api/public/{publicToken}","href":"/api-reference/public/read-a-publicly-linked-document"}]},{"group":"Search","pages":[{"title":"Search documents","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json get /api/search","href":"/api-reference/search/search-documents"}]},{"group":"Threads","pages":[{"title":"List threads of a document","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json get /api/docs/{id}/threads","href":"/api-reference/threads/list-threads-of-a-document"},{"title":"Start a thread","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json post /api/docs/{id}/threads","href":"/api-reference/threads/start-a-thread"},{"title":"Reply to a thread","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json post /api/threads/{id}/messages","href":"/api-reference/threads/reply-to-a-thread"},{"title":"Resolve a thread","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json post /api/threads/{id}/resolve","href":"/api-reference/threads/resolve-a-thread"},{"title":"Reopen a thread","description":"Reopens a resolved or rejected thread. Accepted suggestions cannot be reopened (their text was applied). Requires comment access on the document; API keys with edit access reopen as their agent identity.","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json post /api/threads/{id}/reopen","href":"/api-reference/threads/reopen-a-thread"},{"title":"Accept a suggestion","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json post /api/threads/{id}/accept","href":"/api-reference/threads/accept-a-suggestion"},{"title":"Reject a suggestion","description":"Marks an open suggestion as rejected without changing the document. Requires write access; API keys with edit access reject as their agent identity.","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json post /api/threads/{id}/reject","href":"/api-reference/threads/reject-a-suggestion"}]},{"group":"Activity","pages":[{"title":"Document activity feed","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json get /api/docs/{id}/activity","href":"/api-reference/activity/document-activity-feed"},{"title":"Organization activity feed","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json get /api/org/activity","href":"/api-reference/activity/organization-activity-feed"}]},{"group":"Uploads","pages":[{"title":"Fetch an uploaded image","deprecated":null,"version":null,"openapi":"/help-center/api-reference/openapi.json get /api/uploads/{namespace}/{ownerId}/{file}","href":"/api-reference/uploads/fetch-an-uploaded-image"}]}]}]},"basePath":"","title":"Accept a suggestion - Scribe","buildId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","deploymentId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CybtLBIt.js","utils-BMLj2fvV.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-B6In562Y.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Dr8Mfhp9.js","snippetPresets-2rmQvMVl.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-WMqJYdZj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CJ-MlPHu.js","shallow-dY3TMRCk.js","getApiPlaygroundDisplay-v-1B2bKm.js","CodeSnippet-BDhiTB7U.js","CodeSnippets-D9hnzQcS.js","Page-C4GwDT3_.js","getPastedJson-Th2V45jI.js","icon-BQXch1W9.js","MethodPill-BCqUneP3.js","DuplicateIcon-Q_-bhurZ.js","createIcon-DUjLHRqp.js","DynamicMarkdown-B-f2cqXQ.js","SectionHeading-Da5NsV4v.js","axios-vUo_bRtp.js","Markdown-D13FWkIM.js","clsx-D3Isdib3.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-C-XZBk9h.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink--qIqmmVG.js"]}