Link Search Menu Expand Document

How to encode output files to Base64

Important: This output data format is supported by endpoints that generate binary files - PDF and images. The output is accessible via generated link and the file under the link is in the text form (base64-encoded).

Zapier

To enable base64 output, add the following to Custom Profiles field of Zapier action:

{ "outputDataFormat": "base64" }

Integromat/Make

And add the following to Profiles on Integromat:

{ "outputDataFormat": "base64" }

Sample request to test outside Zapier or Integromat/Make:

POST /v1/pdf/merge HTTP/1.1
Host: api.pdf.co
x-api-key: <YOUR_API_KEY>
Content-Type: application/json

{
   "url": "https://bytescout-com.s3-us-west-2.amazonaws.com/files/demo-files/cloud-api/pdf-merge/sample1.pdf,https://bytescout-com.s3-us-west-2.amazonaws.com/files/demo-files/cloud-api/pdf-merge/sample2.pdf",
    "name": "result.pdf",
    "profiles": "{ 'outputDataFormat': 'base64' }"
}