Errors
A failed call answers with an HTTP status and a JSON body holding an error object: a stable code to branch on, a message a person can read, and sometimes details.
The error envelope
{
"error": {
"code": "SUBSCRIPTION_PAYMENT_REQUIRED",
"message": "Your last payment didn't go through. Update your payment method to keep using Scaffold.",
"details": {
"reason": "payment"
}
}
}Branch on the code; the message is written for a person to read.
Codes
71 documented
AUTH_CODE_REQUIRED400The 6-digit code is missing.
Returned by POST /billing/subscription/cancelBILLING_NOT_REACTIVATABLE400There is no scheduled cancellation, or the paid period already ended.
Returned by POST /billing/subscription/reactivateBILLING_PLAN_INVALID400Unsupported plan. BILLING_PLAN_NOT_PURCHASABLE — starter (Free) needs no checkout.
BILLING_PLAN_NOT_PURCHASABLE400BILLING_PLAN_INVALID — unsupported plan. BILLING_PLAN_NOT_PURCHASABLE — starter (Free) needs no checkout.
Returned by POST /billing/checkout/sessionBILLING_PLAN_UNCHANGED400Returned by POST /billing/subscription/changeDOCUMENT_DIRECT_EDIT_INVALID400DOCUMENT_DIRECT_EDIT_INVALID (bad shape, or no signed-in person) or DOCUMENT_DIRECT_EDIT_UNSUPPORTED with details.reason structure (a line, tab or paragraph break) or unsupported (a paragraph holding a link, field, content control, picture or other content the edit can't map, or a character a Word document can't hold).
Returned by POST /documents/{documentId}/direct-editsDOCUMENT_DIRECT_EDIT_UNSUPPORTED400409DOCUMENT_DIRECT_EDIT_INVALID (bad shape, or no signed-in person) or DOCUMENT_DIRECT_EDIT_UNSUPPORTED with details.reason structure (a line, tab or paragraph break) or unsupported (a paragraph holding a link, field, content control, picture or other content the edit can't map, or a character a Word document can't hold).
Returned by POST /documents/{documentId}/direct-editsDOCUMENT_EDIT_OPERATIONS_INVALID400No edits, more than 64, or one edit longer than 100 KB.
Returned by POST /documents/{documentId}/edits/batchDOCUMENT_EVENT_INVALID400Any other event, key or value.
Returned by POST /documents/{documentId}/eventsDOCUMENT_EXPORT_AUTHOR_UNKNOWN400DOCUMENT_EXPORT_COPY_INVALID — copy is not clean, redline or working. DOCUMENT_EXPORT_AUTHOR_UNKNOWN — a redline or a working copy needs a signed-in person's name. ENGINE_DOCX_INVALID — Scaffold couldn't take everything internal out (or put a change in the person's name), so it sends no copy.
Returned by GET /documents/{documentId}/exportDOCUMENT_EXPORT_COPY_INVALID400Copy is not clean, redline or working. DOCUMENT_EXPORT_AUTHOR_UNKNOWN — a redline or a working copy needs a signed-in person's name. ENGINE_DOCX_INVALID — Scaffold couldn't take everything internal out (or put a change in the person's name), so it sends no copy.
Returned by GET /documents/{documentId}/exportDOCUMENT_REVISION_DECISIONS_REQUIRED400Choose at least one tracked change decision.
Returned by POST /documents/{documentId}/revisions/applyDOCUMENT_SUGGESTION_AUTHOR_INVALID400DOCUMENT_SUGGESTION_INVALID (bad shape, no such paragraph, or a paragraph holding a link, field, content control or picture: details { reason: "unsupported", holds: content | link | word_may_overwrite | special_characters | new_paragraph_text }) or DOCUMENT_SUGGESTION_AUTHOR_INVALID (no signed-in person, or a name that reads as Scaffold Assistant's).
Returned by POST /documents/{documentId}/suggestionsDOCUMENT_SUGGESTION_INVALID400DOCUMENT_SUGGESTION_INVALID (bad shape, no such paragraph, or a paragraph holding a link, field, content control or picture: details { reason: "unsupported", holds: content | link | word_may_overwrite | special_characters | new_paragraph_text }) or DOCUMENT_SUGGESTION_AUTHOR_INVALID (no signed-in person, or a name that reads as Scaffold Assistant's).
Returned by POST /documents/{documentId}/suggestionsDOCUMENT_UNDO_INVALID400expected_content_sha256 is missing.
DOCUMENT_XML_PATCH_PAYLOAD_INVALID400expected_xml, replacement_xml, or target_xpath was missing or empty, or an XML fragment was longer than 256 KB.
Returned by POST /documents/{documentId}/edits/xml-patchENGINE_DOCX_INVALID400DOCUMENT_EXPORT_COPY_INVALID — copy is not clean, redline or working. DOCUMENT_EXPORT_AUTHOR_UNKNOWN — a redline or a working copy needs a signed-in person's name. ENGINE_DOCX_INVALID — Scaffold couldn't take everything internal out (or put a change in the person's name), so it sends no copy.
Returned by GET /documents/{documentId}/exportSSO_HANDOFF_INVALID400Unknown, used or expired handoff code.
Returned by POST /auth/sso/exchangeUPLOAD_PART_NUMBERS_INVALID400More than 10,000 part numbers, or one outside 1 to 10,000.
AUTH_SESSION_INVALID401Returned by POST /auth/sessions/revoke-allAUTH_SESSION_REQUIRED401FREE_DOCUMENT_LIMIT_REACHED402The org's paid plan cannot be used right now. Returned by every gated work-product route (uploads, documents, runs), not only this one. SUBSCRIPTION_PAYMENT_REQUIRED is the only lock: an open Stripe payment problem. A plan limit on Free returns FREE_DOCUMENT_LIMIT_REACHED or FREE_TEMPLATE_LIMIT_REACHED.
Returned by POST /uploadsFREE_TEMPLATE_LIMIT_REACHED402The org's paid plan cannot be used right now. Returned by every gated work-product route (uploads, documents, runs), not only this one. SUBSCRIPTION_PAYMENT_REQUIRED is the only lock: an open Stripe payment problem. A plan limit on Free returns FREE_DOCUMENT_LIMIT_REACHED or FREE_TEMPLATE_LIMIT_REACHED.
Returned by POST /uploadsSUBSCRIPTION_PAYMENT_REQUIRED402The org's paid plan cannot be used right now. Returned by every gated work-product route (uploads, documents, runs), not only this one. SUBSCRIPTION_PAYMENT_REQUIRED is the only lock: an open Stripe payment problem. A plan limit on Free returns FREE_DOCUMENT_LIMIT_REACHED or FREE_TEMPLATE_LIMIT_REACHED.
Returned by POST /uploadsBILLING_ROLE_REQUIRED403Only an org owner or admin can manage billing; members can still read the subscription and entitlements.
BILLING_TESTER_CODE_INVALID403The tester access code is invalid or not enabled. Also BILLING_ROLE_REQUIRED — only an org owner or admin can manage billing; members can still read the subscription and entitlements.
Returned by POST /billing/checkout/sessionINVITE_REQUIRED403Sign-up named an existing orgId without a valid invitation; joining an organization takes an invite.
Returned by POST /auth/verifyORG_SCOPE_FORBIDDEN403STORAGE_KEY_FORBIDDEN — storageKey is not under this org's prefix in Scaffold's bucket; ORG_SCOPE_FORBIDDEN — it is not for this upload id.
Returned by POST /uploads/multipart/{uploadId}/part-urlREVISION_DECISION_REQUIRES_PERSON403With record_decision false (the agent withdrawing its own proposals), a requested change was not made by this caller's agent: its author is not exactly the caller's agentAuthor ("Scaffold Assistant for <email>"). Another user's "Scaffold Assistant for ..." change, or the legacy "Scaffold Assistant (Claude)", is a person's to decide, in the review pane. error.details.change_ids lists the refused ids; nothing is applied.
Returned by POST /documents/{documentId}/revisions/applySECURITY_VERIFICATION_FAILED403The code was wrong or expired. Also BILLING_ROLE_REQUIRED — only an org owner or admin can manage billing; members can still read the subscription and entitlements.
Returned by POST /billing/subscription/cancelSTORAGE_KEY_FORBIDDEN403StorageKey is not under this org's prefix in Scaffold's bucket; ORG_SCOPE_FORBIDDEN — it is not for this upload id.
AUTH_USER_NOT_FOUND404No active account exists for this email in the requested organization. Sign up first (intent sign_up).
Returned by POST /auth/verifyDOCUMENT_DECISION_NOT_FOUND404DOCUMENT_NOT_FOUND — not a document this person can open. DOCUMENT_DECISION_NOT_FOUND — no such decision on this document (for example, it was undone already).
DOCUMENT_NOT_FOUND404Not a document this person can open. DOCUMENT_DECISION_NOT_FOUND — no such decision on this document (for example, it was undone already).
BILLING_FREE_NOT_AVAILABLE409The workspace is on a paid plan (live, ended or with a payment problem); manage it from Billing instead.
Returned by POST /billing/free/startBILLING_PORTAL_UNAVAILABLE409503The org has no Stripe customer on file (pilot/comp grant, or never checked out).
Returned by POST /billing/portalBLOB_STORE_NOT_CONFIGURED409This deployment has no blob store configured.
Returned by POST /uploads/multipart/initiateDOCUMENT_COMPARE_CANT_CARRY_CONTENT409Nothing was written. error.code says why: DOCUMENT_COMPARE_REVERT_OFF, DOCUMENT_COMPARE_WOULD_LOSE_PENDING_CHANGES, DOCUMENT_COMPARE_WOULD_APPROVE_PENDING_CHANGES (the side taken from has pending changes), DOCUMENT_COMPARE_CANT_CARRY_CONTENT, DOCUMENT_COMPARE_NOT_CHECKED, DOCUMENT_COMPARE_STALE (a side changed after the compare opened, a version was deleted, it had to be worked out again, or compare_generation is old or missing: open it again), DOCUMENT_COMPARE_NEWER_VERSION (a side's document has a newer version, in details.latestDocumentId and details.latestVersion: compare against it), DOCUMENT_COMPARE_SESSION_CHANGED (another decision landed first) or DOCUMENT_COMPARE_DECISION_CONFLICT (already decided the other way).
Returned by POST /documents/compare/applyDOCUMENT_COMPARE_DECISION_CONFLICT409Nothing was written. error.code says why: DOCUMENT_COMPARE_REVERT_OFF, DOCUMENT_COMPARE_WOULD_LOSE_PENDING_CHANGES, DOCUMENT_COMPARE_WOULD_APPROVE_PENDING_CHANGES (the side taken from has pending changes), DOCUMENT_COMPARE_CANT_CARRY_CONTENT, DOCUMENT_COMPARE_NOT_CHECKED, DOCUMENT_COMPARE_STALE (a side changed after the compare opened, a version was deleted, it had to be worked out again, or compare_generation is old or missing: open it again), DOCUMENT_COMPARE_NEWER_VERSION (a side's document has a newer version, in details.latestDocumentId and details.latestVersion: compare against it), DOCUMENT_COMPARE_SESSION_CHANGED (another decision landed first) or DOCUMENT_COMPARE_DECISION_CONFLICT (already decided the other way).
Returned by POST /documents/compare/applyDOCUMENT_COMPARE_NEWER_VERSION409Nothing was written. error.code says why: DOCUMENT_COMPARE_REVERT_OFF, DOCUMENT_COMPARE_WOULD_LOSE_PENDING_CHANGES, DOCUMENT_COMPARE_WOULD_APPROVE_PENDING_CHANGES (the side taken from has pending changes), DOCUMENT_COMPARE_CANT_CARRY_CONTENT, DOCUMENT_COMPARE_NOT_CHECKED, DOCUMENT_COMPARE_STALE (a side changed after the compare opened, a version was deleted, it had to be worked out again, or compare_generation is old or missing: open it again), DOCUMENT_COMPARE_NEWER_VERSION (a side's document has a newer version, in details.latestDocumentId and details.latestVersion: compare against it), DOCUMENT_COMPARE_SESSION_CHANGED (another decision landed first) or DOCUMENT_COMPARE_DECISION_CONFLICT (already decided the other way).
Returned by POST /documents/compare/applyDOCUMENT_COMPARE_NOT_CHECKED409Nothing was written. error.code says why: DOCUMENT_COMPARE_REVERT_OFF, DOCUMENT_COMPARE_WOULD_LOSE_PENDING_CHANGES, DOCUMENT_COMPARE_WOULD_APPROVE_PENDING_CHANGES (the side taken from has pending changes), DOCUMENT_COMPARE_CANT_CARRY_CONTENT, DOCUMENT_COMPARE_NOT_CHECKED, DOCUMENT_COMPARE_STALE (a side changed after the compare opened, a version was deleted, it had to be worked out again, or compare_generation is old or missing: open it again), DOCUMENT_COMPARE_NEWER_VERSION (a side's document has a newer version, in details.latestDocumentId and details.latestVersion: compare against it), DOCUMENT_COMPARE_SESSION_CHANGED (another decision landed first) or DOCUMENT_COMPARE_DECISION_CONFLICT (already decided the other way).
Returned by POST /documents/compare/applyDOCUMENT_COMPARE_REVERT_OFF409Nothing was written. error.code says why: DOCUMENT_COMPARE_REVERT_OFF, DOCUMENT_COMPARE_WOULD_LOSE_PENDING_CHANGES, DOCUMENT_COMPARE_WOULD_APPROVE_PENDING_CHANGES (the side taken from has pending changes), DOCUMENT_COMPARE_CANT_CARRY_CONTENT, DOCUMENT_COMPARE_NOT_CHECKED, DOCUMENT_COMPARE_STALE (a side changed after the compare opened, a version was deleted, it had to be worked out again, or compare_generation is old or missing: open it again), DOCUMENT_COMPARE_NEWER_VERSION (a side's document has a newer version, in details.latestDocumentId and details.latestVersion: compare against it), DOCUMENT_COMPARE_SESSION_CHANGED (another decision landed first) or DOCUMENT_COMPARE_DECISION_CONFLICT (already decided the other way).
Returned by POST /documents/compare/applyDOCUMENT_COMPARE_SESSION_CHANGED409Nothing was written. error.code says why: DOCUMENT_COMPARE_REVERT_OFF, DOCUMENT_COMPARE_WOULD_LOSE_PENDING_CHANGES, DOCUMENT_COMPARE_WOULD_APPROVE_PENDING_CHANGES (the side taken from has pending changes), DOCUMENT_COMPARE_CANT_CARRY_CONTENT, DOCUMENT_COMPARE_NOT_CHECKED, DOCUMENT_COMPARE_STALE (a side changed after the compare opened, a version was deleted, it had to be worked out again, or compare_generation is old or missing: open it again), DOCUMENT_COMPARE_NEWER_VERSION (a side's document has a newer version, in details.latestDocumentId and details.latestVersion: compare against it), DOCUMENT_COMPARE_SESSION_CHANGED (another decision landed first) or DOCUMENT_COMPARE_DECISION_CONFLICT (already decided the other way).
Returned by POST /documents/compare/applyDOCUMENT_COMPARE_STALE409Nothing was written. error.code says why: DOCUMENT_COMPARE_REVERT_OFF, DOCUMENT_COMPARE_WOULD_LOSE_PENDING_CHANGES, DOCUMENT_COMPARE_WOULD_APPROVE_PENDING_CHANGES (the side taken from has pending changes), DOCUMENT_COMPARE_CANT_CARRY_CONTENT, DOCUMENT_COMPARE_NOT_CHECKED, DOCUMENT_COMPARE_STALE (a side changed after the compare opened, a version was deleted, it had to be worked out again, or compare_generation is old or missing: open it again), DOCUMENT_COMPARE_NEWER_VERSION (a side's document has a newer version, in details.latestDocumentId and details.latestVersion: compare against it), DOCUMENT_COMPARE_SESSION_CHANGED (another decision landed first) or DOCUMENT_COMPARE_DECISION_CONFLICT (already decided the other way).
Returned by POST /documents/compare/applyDOCUMENT_COMPARE_WOULD_APPROVE_PENDING_CHANGES409Nothing was written. error.code says why: DOCUMENT_COMPARE_REVERT_OFF, DOCUMENT_COMPARE_WOULD_LOSE_PENDING_CHANGES, DOCUMENT_COMPARE_WOULD_APPROVE_PENDING_CHANGES (the side taken from has pending changes), DOCUMENT_COMPARE_CANT_CARRY_CONTENT, DOCUMENT_COMPARE_NOT_CHECKED, DOCUMENT_COMPARE_STALE (a side changed after the compare opened, a version was deleted, it had to be worked out again, or compare_generation is old or missing: open it again), DOCUMENT_COMPARE_NEWER_VERSION (a side's document has a newer version, in details.latestDocumentId and details.latestVersion: compare against it), DOCUMENT_COMPARE_SESSION_CHANGED (another decision landed first) or DOCUMENT_COMPARE_DECISION_CONFLICT (already decided the other way).
Returned by POST /documents/compare/applyDOCUMENT_COMPARE_WOULD_LOSE_PENDING_CHANGES409Nothing was written. error.code says why: DOCUMENT_COMPARE_REVERT_OFF, DOCUMENT_COMPARE_WOULD_LOSE_PENDING_CHANGES, DOCUMENT_COMPARE_WOULD_APPROVE_PENDING_CHANGES (the side taken from has pending changes), DOCUMENT_COMPARE_CANT_CARRY_CONTENT, DOCUMENT_COMPARE_NOT_CHECKED, DOCUMENT_COMPARE_STALE (a side changed after the compare opened, a version was deleted, it had to be worked out again, or compare_generation is old or missing: open it again), DOCUMENT_COMPARE_NEWER_VERSION (a side's document has a newer version, in details.latestDocumentId and details.latestVersion: compare against it), DOCUMENT_COMPARE_SESSION_CHANGED (another decision landed first) or DOCUMENT_COMPARE_DECISION_CONFLICT (already decided the other way).
Returned by POST /documents/compare/applyDOCUMENT_DIRECT_EDIT_BLOCKED409DOCUMENT_EDIT_CONFLICT (stale expected hash), DOCUMENT_DIRECT_EDIT_STALE (before_text no longer matches the paragraph, or there is no such paragraph), DOCUMENT_DIRECT_EDIT_BLOCKED (details { reason, changeIds, author }: touches_change, the edit changes words inside a pending change, or decide_first when SCAFFOLD_SUGGEST_BESIDE_PENDING=off and the edit sits right against one) or DOCUMENT_PENDING_CHANGES_DROPPED. Right up to and touching a change is allowed. A 400 DOCUMENT_DIRECT_EDIT_UNSUPPORTED with details.reason foreign_mark means someone deleted the whole paragraph, or inserted, deleted or merged its row or cell.
Returned by POST /documents/{documentId}/direct-editsDOCUMENT_DIRECT_EDIT_STALE409DOCUMENT_EDIT_CONFLICT (stale expected hash), DOCUMENT_DIRECT_EDIT_STALE (before_text no longer matches the paragraph, or there is no such paragraph), DOCUMENT_DIRECT_EDIT_BLOCKED (details { reason, changeIds, author }: touches_change, the edit changes words inside a pending change, or decide_first when SCAFFOLD_SUGGEST_BESIDE_PENDING=off and the edit sits right against one) or DOCUMENT_PENDING_CHANGES_DROPPED. Right up to and touching a change is allowed. A 400 DOCUMENT_DIRECT_EDIT_UNSUPPORTED with details.reason foreign_mark means someone deleted the whole paragraph, or inserted, deleted or merged its row or cell.
Returned by POST /documents/{documentId}/direct-editsDOCUMENT_EDIT_CONFLICT409The document changed after editing began, or the save would accept or remove a pending tracked change (DOCUMENT_PENDING_CHANGES_DROPPED; details.dropped, and with a carry details.reason: touches_change, structure, unsupported, text_mismatch, not_carried or too_large). Nothing is stored.
DOCUMENT_EXPORT_CHANGES_OUTSIDE_BODY409DOCUMENT_EXPORT_HAS_OPEN_CHANGES — clean or redline, and the document still has open changes; decide them first, or take the working copy (details.openChanges). DOCUMENT_EXPORT_CHANGES_OUTSIDE_BODY — a clean copy found tracked changes in a header, footer, footnote or style, which only Word can decide. DOCUMENT_EXPORT_NO_EARLIER_VERSION — no earlier version to mark up against; download a clean copy. DOCUMENT_EXPORT_REDLINE_UNFAITHFUL — a redline couldn't show the differences faithfully; details.reason is base_has_changes (the earlier version has tracked changes of its own), cant_carry (a picture, table, link or field changed) or side_parts (a header, footer or note changed), and the message says to use Compare instead.
Returned by GET /documents/{documentId}/exportDOCUMENT_EXPORT_HAS_OPEN_CHANGES409Clean or redline, and the document still has open changes; decide them first, or take the working copy (details.openChanges). DOCUMENT_EXPORT_CHANGES_OUTSIDE_BODY — a clean copy found tracked changes in a header, footer, footnote or style, which only Word can decide. DOCUMENT_EXPORT_NO_EARLIER_VERSION — no earlier version to mark up against; download a clean copy. DOCUMENT_EXPORT_REDLINE_UNFAITHFUL — a redline couldn't show the differences faithfully; details.reason is base_has_changes (the earlier version has tracked changes of its own), cant_carry (a picture, table, link or field changed) or side_parts (a header, footer or note changed), and the message says to use Compare instead.
Returned by GET /documents/{documentId}/exportDOCUMENT_EXPORT_NO_EARLIER_VERSION409DOCUMENT_EXPORT_HAS_OPEN_CHANGES — clean or redline, and the document still has open changes; decide them first, or take the working copy (details.openChanges). DOCUMENT_EXPORT_CHANGES_OUTSIDE_BODY — a clean copy found tracked changes in a header, footer, footnote or style, which only Word can decide. DOCUMENT_EXPORT_NO_EARLIER_VERSION — no earlier version to mark up against; download a clean copy. DOCUMENT_EXPORT_REDLINE_UNFAITHFUL — a redline couldn't show the differences faithfully; details.reason is base_has_changes (the earlier version has tracked changes of its own), cant_carry (a picture, table, link or field changed) or side_parts (a header, footer or note changed), and the message says to use Compare instead.
Returned by GET /documents/{documentId}/exportDOCUMENT_EXPORT_REDLINE_UNFAITHFUL409DOCUMENT_EXPORT_HAS_OPEN_CHANGES — clean or redline, and the document still has open changes; decide them first, or take the working copy (details.openChanges). DOCUMENT_EXPORT_CHANGES_OUTSIDE_BODY — a clean copy found tracked changes in a header, footer, footnote or style, which only Word can decide. DOCUMENT_EXPORT_NO_EARLIER_VERSION — no earlier version to mark up against; download a clean copy. DOCUMENT_EXPORT_REDLINE_UNFAITHFUL — a redline couldn't show the differences faithfully; details.reason is base_has_changes (the earlier version has tracked changes of its own), cant_carry (a picture, table, link or field changed) or side_parts (a header, footer or note changed), and the message says to use Compare instead.
Returned by GET /documents/{documentId}/exportDOCUMENT_NOT_LATEST409The document isn't the latest version in its series, so nothing was saved: edit the latest version (details.latestDocumentId, details.latestVersion).
DOCUMENT_PENDING_CHANGES_DROPPED409The document changed after editing began (DOCUMENT_EDIT_CONFLICT), or the save would accept or remove a pending tracked change (DOCUMENT_PENDING_CHANGES_DROPPED; details.dropped, and with a carry details.reason: touches_change, structure, unsupported, text_mismatch, not_carried or too_large). Nothing is stored.
DOCUMENT_SUGGESTION_BLOCKED409DOCUMENT_EDIT_CONFLICT (stale expected hash), DOCUMENT_SUGGESTION_STALE (before_text no longer matches the paragraph), DOCUMENT_SUGGESTION_BLOCKED or DOCUMENT_PENDING_CHANGES_DROPPED (details { dropped }: the result lost someone else's pending change; nothing is stored). A suggestion may sit right up to and touching anyone's pending change; only the characters inside another author's change are protected. BLOCKED's details say why and whose change: { reason, changeIds, author }, reason touches_change (the edit changes words inside another author's change), moves (the paragraph has moved text), foreign_mark (another author added or removed the whole paragraph, row or cell), inside_yours (someone else's change sits inside one of yours), own_beside_theirs (SCAFFOLD_SUGGEST_BESIDE_PENDING=first_only: re-editing your own suggestion beside someone else's change) or decide_first (=off: any paragraph with someone else's change). An older engine sends no details.
Returned by POST /documents/{documentId}/suggestionsDOCUMENT_SUGGESTION_STALE409DOCUMENT_EDIT_CONFLICT (stale expected hash), DOCUMENT_SUGGESTION_STALE (before_text no longer matches the paragraph), DOCUMENT_SUGGESTION_BLOCKED or DOCUMENT_PENDING_CHANGES_DROPPED (details { dropped }: the result lost someone else's pending change; nothing is stored). A suggestion may sit right up to and touching anyone's pending change; only the characters inside another author's change are protected. BLOCKED's details say why and whose change: { reason, changeIds, author }, reason touches_change (the edit changes words inside another author's change), moves (the paragraph has moved text), foreign_mark (another author added or removed the whole paragraph, row or cell), inside_yours (someone else's change sits inside one of yours), own_beside_theirs (SCAFFOLD_SUGGEST_BESIDE_PENDING=first_only: re-editing your own suggestion beside someone else's change) or decide_first (=off: any paragraph with someone else's change). An older engine sends no details.
Returned by POST /documents/{documentId}/suggestionsDOCUMENT_TEXT_AMBIGUOUS_MATCH409find_text matched more than one place; or the document isn't the latest version in its series (DOCUMENT_NOT_LATEST, with details.latestDocumentId and details.latestVersion), so nothing was saved: edit the latest version.
DOCUMENT_UNDO_STALE409DOCUMENT_EDIT_CONFLICT — the document changed since the pane read it (a stale expected_content_sha256). DOCUMENT_UNDO_STALE — "This paragraph changed after the decision, so it can't be undone here." DOCUMENT_UNDO_UNAVAILABLE — the decision has no snapshot, or it was made in the compare view.
DOCUMENT_UNDO_UNAVAILABLE409DOCUMENT_EDIT_CONFLICT — the document changed since the pane read it (a stale expected_content_sha256). DOCUMENT_UNDO_STALE — "This paragraph changed after the decision, so it can't be undone here." DOCUMENT_UNDO_UNAVAILABLE — the decision has no snapshot, or it was made in the compare view.
SCAFFOLD_SUGGEST_BESIDE_PENDING409DOCUMENT_EDIT_CONFLICT (stale expected hash), DOCUMENT_SUGGESTION_STALE (before_text no longer matches the paragraph), DOCUMENT_SUGGESTION_BLOCKED or DOCUMENT_PENDING_CHANGES_DROPPED (details { dropped }: the result lost someone else's pending change; nothing is stored). A suggestion may sit right up to and touching anyone's pending change; only the characters inside another author's change are protected. BLOCKED's details say why and whose change: { reason, changeIds, author }, reason touches_change (the edit changes words inside another author's change), moves (the paragraph has moved text), foreign_mark (another author added or removed the whole paragraph, row or cell), inside_yours (someone else's change sits inside one of yours), own_beside_theirs (SCAFFOLD_SUGGEST_BESIDE_PENDING=first_only: re-editing your own suggestion beside someone else's change) or decide_first (=off: any paragraph with someone else's change). An older engine sends no details.
UPLOAD_DOWNLOAD_UNAVAILABLE409No blob storage is configured, or no file is stored yet.
Returned by GET /uploads/{uploadId}/downloadDOCUMENT_EDIT_HIDES_TEXT422No items could be applied, or atomic mode rejected a mixed-validity batch (DOCUMENT_EDIT_TEXT_NOT_FOUND); or an edit's op can't be made as a tracked change, such as move_block, insert_variable_token or insert_conditional_section, and nothing was applied (DOCUMENT_EDIT_OP_UNTRACKED, with untrackedEdits and trackedOps); or DOCUMENT_EDIT_HIDES_TEXT — the text the edit leaves wouldn't show to a reviewer (hidden, too close in color to what is behind it, under 4 points, off its line, a w14 fill that paints it out, out of room in its page, cell, text box or frame, newly in a symbol font or, in new text, struck through, holding Unicode tag characters or a bidi override, where Word doesn't draw it, or where Word replaces it), so nothing was saved. details.reason says why and what to do, details.xml the XML behind it, details.changeId and details.text the change and its words. Or DOCUMENT_EDIT_OVERLAPS_PENDING_CHANGE — the edit would remove, rewrite or hold a pending change (a person's insertion, deletion, move, formatting change, deleted paragraph mark or table row, or the agent's own still pending, from an earlier request or an earlier edit in this one), or cross the edge of a comment's range, so nothing was saved, atomic or not. details.pendingChange names it ({changeId, author, kind}; kind "comment" for a comment), details.ownChange says whether it is the agent's own (details.sameRequest when an earlier edit in this request made it), details.editIndex the edit (batch only), and details.guidance says what to do: decide that change first (accept or reject it), or edit text outside it; for the agent's own, revert it with revert_revisions and make the whole edit again, or (same request) make it as one edit; for a comment, edit wholly inside or outside its range. Formatting wholly inside the agent's own pending insertion is allowed.
DOCUMENT_EDIT_OP_UNTRACKED422No items could be applied, or atomic mode rejected a mixed-validity batch (DOCUMENT_EDIT_TEXT_NOT_FOUND); or an edit's op can't be made as a tracked change, such as move_block, insert_variable_token or insert_conditional_section, and nothing was applied (DOCUMENT_EDIT_OP_UNTRACKED, with untrackedEdits and trackedOps); or DOCUMENT_EDIT_HIDES_TEXT — the text the edit leaves wouldn't show to a reviewer (hidden, too close in color to what is behind it, under 4 points, off its line, a w14 fill that paints it out, out of room in its page, cell, text box or frame, newly in a symbol font or, in new text, struck through, holding Unicode tag characters or a bidi override, where Word doesn't draw it, or where Word replaces it), so nothing was saved. details.reason says why and what to do, details.xml the XML behind it, details.changeId and details.text the change and its words. Or DOCUMENT_EDIT_OVERLAPS_PENDING_CHANGE — the edit would remove, rewrite or hold a pending change (a person's insertion, deletion, move, formatting change, deleted paragraph mark or table row, or the agent's own still pending, from an earlier request or an earlier edit in this one), or cross the edge of a comment's range, so nothing was saved, atomic or not. details.pendingChange names it ({changeId, author, kind}; kind "comment" for a comment), details.ownChange says whether it is the agent's own (details.sameRequest when an earlier edit in this request made it), details.editIndex the edit (batch only), and details.guidance says what to do: decide that change first (accept or reject it), or edit text outside it; for the agent's own, revert it with revert_revisions and make the whole edit again, or (same request) make it as one edit; for a comment, edit wholly inside or outside its range. Formatting wholly inside the agent's own pending insertion is allowed.
Returned by POST /documents/{documentId}/edits/batchDOCUMENT_EDIT_OVERLAPS_PENDING_CHANGE422No items could be applied, or atomic mode rejected a mixed-validity batch (DOCUMENT_EDIT_TEXT_NOT_FOUND); or an edit's op can't be made as a tracked change, such as move_block, insert_variable_token or insert_conditional_section, and nothing was applied (DOCUMENT_EDIT_OP_UNTRACKED, with untrackedEdits and trackedOps); or DOCUMENT_EDIT_HIDES_TEXT — the text the edit leaves wouldn't show to a reviewer (hidden, too close in color to what is behind it, under 4 points, off its line, a w14 fill that paints it out, out of room in its page, cell, text box or frame, newly in a symbol font or, in new text, struck through, holding Unicode tag characters or a bidi override, where Word doesn't draw it, or where Word replaces it), so nothing was saved. details.reason says why and what to do, details.xml the XML behind it, details.changeId and details.text the change and its words. Or DOCUMENT_EDIT_OVERLAPS_PENDING_CHANGE — the edit would remove, rewrite or hold a pending change (a person's insertion, deletion, move, formatting change, deleted paragraph mark or table row, or the agent's own still pending, from an earlier request or an earlier edit in this one), or cross the edge of a comment's range, so nothing was saved, atomic or not. details.pendingChange names it ({changeId, author, kind}; kind "comment" for a comment), details.ownChange says whether it is the agent's own (details.sameRequest when an earlier edit in this request made it), details.editIndex the edit (batch only), and details.guidance says what to do: decide that change first (accept or reject it), or edit text outside it; for the agent's own, revert it with revert_revisions and make the whole edit again, or (same request) make it as one edit; for a comment, edit wholly inside or outside its range. Formatting wholly inside the agent's own pending insertion is allowed.
DOCUMENT_EDIT_TEXT_NOT_FOUND422No items could be applied, or atomic mode rejected a mixed-validity batch; or an edit's op can't be made as a tracked change, such as move_block, insert_variable_token or insert_conditional_section, and nothing was applied (DOCUMENT_EDIT_OP_UNTRACKED, with untrackedEdits and trackedOps); or DOCUMENT_EDIT_HIDES_TEXT — the text the edit leaves wouldn't show to a reviewer (hidden, too close in color to what is behind it, under 4 points, off its line, a w14 fill that paints it out, out of room in its page, cell, text box or frame, newly in a symbol font or, in new text, struck through, holding Unicode tag characters or a bidi override, where Word doesn't draw it, or where Word replaces it), so nothing was saved. details.reason says why and what to do, details.xml the XML behind it, details.changeId and details.text the change and its words. Or DOCUMENT_EDIT_OVERLAPS_PENDING_CHANGE — the edit would remove, rewrite or hold a pending change (a person's insertion, deletion, move, formatting change, deleted paragraph mark or table row, or the agent's own still pending, from an earlier request or an earlier edit in this one), or cross the edge of a comment's range, so nothing was saved, atomic or not. details.pendingChange names it ({changeId, author, kind}; kind "comment" for a comment), details.ownChange says whether it is the agent's own (details.sameRequest when an earlier edit in this request made it), details.editIndex the edit (batch only), and details.guidance says what to do: decide that change first (accept or reject it), or edit text outside it; for the agent's own, revert it with revert_revisions and make the whole edit again, or (same request) make it as one edit; for a comment, edit wholly inside or outside its range. Formatting wholly inside the agent's own pending insertion is allowed.
Returned by POST /documents/{documentId}/edits/batchDOCUMENT_TEXT_NOT_FOUND422find_text was not found, occurrence was out of range, or the edit produced no tracked revisions; or DOCUMENT_EDIT_HIDES_TEXT — the text the edit leaves wouldn't show to a reviewer (hidden, too close in color to what is behind it, under 4 points, off its line, a w14 fill that paints it out, out of room in its page, cell, text box or frame, newly in a symbol font or, in new text, struck through, holding Unicode tag characters or a bidi override, where Word doesn't draw it, or where Word replaces it), so nothing was saved. details.reason says why and what to do, details.xml the XML behind it, details.changeId and details.text the change and its words. Or DOCUMENT_EDIT_OVERLAPS_PENDING_CHANGE — the edit would remove, rewrite or hold a pending change (a person's insertion, deletion, move, formatting change, deleted paragraph mark or table row, or the agent's own still pending, from an earlier request or an earlier edit in this one), or cross the edge of a comment's range, so nothing was saved, atomic or not. details.pendingChange names it ({changeId, author, kind}; kind "comment" for a comment), details.ownChange says whether it is the agent's own (details.sameRequest when an earlier edit in this request made it), details.editIndex the edit (batch only), and details.guidance says what to do: decide that change first (accept or reject it), or edit text outside it; for the agent's own, revert it with revert_revisions and make the whole edit again, or (same request) make it as one edit; for a comment, edit wholly inside or outside its range. Formatting wholly inside the agent's own pending insertion is allowed.
DOCUMENT_XML_PATCH_REVISIONS_REQUIRED422The patch itself made no tracked change, whatever else the document has pending, so nothing was saved; or DOCUMENT_EDIT_HIDES_TEXT — the text the edit leaves wouldn't show to a reviewer (hidden, too close in color to what is behind it, under 4 points, off its line, a w14 fill that paints it out, out of room in its page, cell, text box or frame, newly in a symbol font or, in new text, struck through, holding Unicode tag characters or a bidi override, where Word doesn't draw it, or where Word replaces it), so nothing was saved. details.reason says why and what to do, details.xml the XML behind it, details.changeId and details.text the change and its words. Or DOCUMENT_EDIT_OVERLAPS_PENDING_CHANGE — the edit would remove, rewrite or hold a pending change (a person's insertion, deletion, move, formatting change, deleted paragraph mark or table row, or the agent's own still pending, from an earlier request or an earlier edit in this one), or cross the edge of a comment's range, so nothing was saved, atomic or not. details.pendingChange names it ({changeId, author, kind}; kind "comment" for a comment), details.ownChange says whether it is the agent's own (details.sameRequest when an earlier edit in this request made it), details.editIndex the edit (batch only), and details.guidance says what to do: decide that change first (accept or reject it), or edit text outside it; for the agent's own, revert it with revert_revisions and make the whole edit again, or (same request) make it as one edit; for a comment, edit wholly inside or outside its range. Formatting wholly inside the agent's own pending insertion is allowed.
Returned by POST /documents/{documentId}/edits/xml-patchBILLING_CHECKOUT_RATE_LIMITED429Returned by POST /billing/checkout/sessionSSO_EXCHANGE_RATE_LIMITED429Returned by POST /auth/sso/exchangeSTRIPE_PORTAL_SESSION_FAILED502Stripe did not return a portal session.
Returned by POST /billing/portal