Skip to content
Navigation

Preview a document as a PDF

The same render as compose, streamed back as raw application/pdf bytes. It stores NOTHING: no file, no artifact, no timeline entry — the editor debounces this on every keystroke and a session must not fill up with drafts. 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.

POST
https://api.cloudraker.com/workspace/sessions/{sessionId}/artifacts/{artifactId}/preview
Try it
Path parameters
Request body
Live API request

This request can change data or incur charges for the selected organization.

Authorization

  • bearerAuth
    HTTP
    required

Path parameters

  • sessionId
    string
    required
  • artifactId
    string
    required

Request body JSON required

  • styleProfileId
    optional
    string
    maxLength: 128 · minLength: 1

Returns

200

The rendered PDF.

400

Validation Error
JSON
  • success
    false
    required
  • error
    array of
    unknown
    required
  • data
    unknown
    required

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