CloudHarness API

Convert

Endpoint:https://api.cloudharness.com

Render HTML to PDF

POST
https://api.cloudharness.com
/v1/convert/html-to-pdf

Renders an HTML string to a PDF document, returned as a binary application/pdf body.

Unsupported elements (<img>, <svg>, <math>) are rejected. Unavailable CSS fonts and ragged table rows are repaired silently, with no signal to the caller.

Render HTML to PDFHeaders

  • Authorizationstring · required

    The Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.

Render HTML to PDFRequest Body

  • htmlstring · minLength: 1 · required

    HTML source to render. Must be non-blank after trimming — minLength: 1 admits a string of only whitespace, which the renderer rejects with INVALID_INPUT.

  • optionsobject

    Renderer options. Omit the key entirely, or send null, for the default (LETTER portrait, 40pt margins) — null is accepted here even though the type below reads object, and is measured to render successfully.

    Unknown keys are accepted and silently ignored by the renderer (measured: {"foo":1} renders 200), and Zuplo does not validate request bodies, so this object is deliberately open.

Additional properties are allowed

Render HTML to PDFResponses

string · binary

Convert content between formats

POST
https://api.cloudharness.com
/v1/convert

Converts content from one format to another (e.g., markdown↔HTML, GIF→PDF).

Convert content between formatsHeaders

  • Authorizationstring · required

    The Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.

Convert content between formatsRequest Body

  • sourceFormatstring · required

    Input format (e.g., markdown, html, gif, pdf)

  • targetFormatstring · required

    Output format (e.g., html, markdown, pdf, png)

  • filestring · binary

    Optional file input. If omitted, provide text instead.

  • textstring

    Optional text input. If omitted, provide file instead.

Convert content between formatsResponses

OK

  • successboolean · required
  • metadataobject · required
  • statusstring · required

    Descriptive status message

  • dataobject