Doc body

Read the doc body

Returns the workspace's doc body as ProseMirror JSON. 403 if the workspace is in table mode.

get/api/workspaces/{slug}/doc

Request

  • Base URL
    https://trydock.ai
  • Auth
    HTTP bearer

Path parameters

slugstring required

Query parameters

surfacestring

Surface slug for multi-doc workspaces. Omit for the primary doc surface.

format'json' | 'markdown' | 'text'

Response shape: json (ProseMirror, default) · markdown (CommonMark + GFM, useful for LLM context or textual diff) · text (plain text, no formatting marks). Overrides Accept header.

Response

Doc body.

contentunknown
markdownstring

CommonMark + GFM. Returned when ?format=markdown (or Accept: text/markdown with no ?format).

textstring

Plain text, formatting marks stripped. Returned when ?format=text (or Accept: text/plain with no ?format).

updatedAtstring date-time required
updatedBystring required

Changes

No recorded changes to this operation across all 2 revisions of this API.