Skip to content
Navigation

Render a sample PDF in this style profile

Composes a fixed sample document — heading, prose, a list, a table and a quote — through the profile’s typst template and answers the PDF bytes (application/pdf). It is what the Brand page previews. Authorization: any member.

POST
https://api.cloudraker.com/style-profiles/{profileId}/sample
Try it
Path parameters
Live API request

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

Authorization

  • bearerAuth
    HTTP
    required

Path parameters

  • profileId
    string
    required
    maxLength: 128 · minLength: 1

Returns

200

The sample PDF.

400

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

404

not_found — no such style profile in this organization.
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

unknown_font_family — the family is not one the renderer carries (the sentence lists the legal ones); logo_too_large / logo_unavailable — the logo file is over 2 MiB or has no stored bytes; template_render_failed — the profile does not compile, with the typst diagnostic.
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