Skip to content
On this page

Render PDF synchronously

A sync render request responds once the render is finished with the document URL (instead of the raw document). A PDF request renders a PDF document. It is a simple request, with an additionnal body param if you wish for Doppio to upload your document in your own S3 bucket.

Route

Method: POST

Route: api.doppio.sh/v1/render/pdf/sync

Examples

Request

Response

json
{
  "doppioRequestId": "doppioreq_640d0598-0413-4385-8e4a-0ee43d531609",
  "renderStatus": "SUCCESS",
  "documentUrl": "https://www.url-to-custom-bucket.com/yourfile.pdf",
  "isAsync": false,
  "isCustomBucket": true
}

Body

  • Common body params doppio, page and launch: see here.

  • PDF body params page.pdf: see here.

Response

To get a list of all possible response codes, see here

If everything goes well, Doppio will respond with the following payload:

Property nameTypeDescription
doppioRequestIdstringRequest identifier.
renderStatusstringRendering status of your document. Can be either SUCCESSor ERROR
documentUrlstringURL to access your rendered document
isAsyncbooleanIf the request is async. Will always be falsefor this request method
isCustomBucketbooleanIf the document is hosted on your own S3 bucket or temporarily on our own.

All rights reserved