Skip to content
Navigation

Read a markdown document

The markdown behind a text/markdown artifact, at its current version — what the editor opens at /documents/:artifactId. readOnly is true for a caller who may read the session but not write it, so the editor can say so instead of failing a save. Authorization: the same gate as every session route — work_session:read (or comment to write) on the session, OR space:contribute on one of its linked spaces; a desk session only for its owner. Any denial is 404.

GET
https://api.cloudraker.com/workspace/sessions/{sessionId}/artifacts/{artifactId}/content
Try it
Path parameters
Live API request

Authorization

  • bearerAuth
    HTTP
    required

Path parameters

  • sessionId
    string
    required
  • artifactId
    string
    required

Returns

200

The document.

JSON
  • artifactId
    string
    required
  • name
    string
    required
  • version
    integer
    required
    maximum: 9007199254740991 · minimum: -9007199254740991
  • markdown
    string
    required
  • readOnly
    boolean
    required
  • editorState
    optional

    Any of the following:

    • string
    • null

404

No such session or artifact, or the caller may not see it.
JSON
  • error
    string
    required

    The sentence a human reads.

  • error_code
    string
    required

    The stable snake_case branch key.

  • issues
    optional
    array of
    object

    Per-field detail, present only on a validation failure.

    • path
      string
      required
    • code
      string
      required
    • message
      string
      required

409

artifact_not_ready — the bytes are not stored or parsed yet (retryable); document_version_conflict — a save whose baseVersion is behind the current version.
JSON
  • error
    string
    required

    The sentence a human reads.

  • error_code
    string
    required

    The stable snake_case branch key.

  • issues
    optional
    array of
    object

    Per-field detail, present only on a validation failure.

    • path
      string
      required
    • code
      string
      required
    • message
      string
      required

422

artifact_not_markdown — the artifact is not a document.
JSON
  • error
    string
    required

    The sentence a human reads.

  • error_code
    string
    required

    The stable snake_case branch key.

  • issues
    optional
    array of
    object

    Per-field detail, present only on a validation failure.

    • path
      string
      required
    • code
      string
      required
    • message
      string
      required

Type to search…

↑↓ navigate↵ selectEsc close