Documents

Render Document Preview

Render a document preview as HTML or PDF

GET
/api/v1/documents/{documentId}/render/{type}
AuthorizationBasic <token>

Basic API key authentication. Create a new API key and secret in the Recommand dashboard.

In: header

Path Parameters

documentId*string

The ID of the document to render

type*string

The type of the document to render

Value in"html" | "pdf"

Response Body

application/json

application/json

curl -X GET "https://app.recommand.eu/api/v1/documents/string/render/html"
"string"
{
  "success": false,
  "errors": {
    "property1": [
      "string"
    ],
    "property2": [
      "string"
    ]
  }
}
{
  "success": false,
  "errors": {
    "property1": [
      "string"
    ],
    "property2": [
      "string"
    ]
  }
}