We have different return types, depending on whether it returns a PDF, PNG, or text. It is especially important to select the correct type when returning binary data to Make.com.

| Return Type | How Make interprets it | Example |
|---|---|---|
| Text (default) | Returns as simple text under { "output": "..." } | js return "Hello World"; → { "output": "Hello World" } |
| Object | Returns key-value pairs as fields Make can map | js return { first: "John", last: "Doe" }; → { "first": "John", "last": "Doe" } |
| Array | Returns as a collection Make can iterate or map | js return [1, 2, 3]; → [1,2,3] |
| Binary | Returns as a file (PDF, image, etc.) | js return { data: "base64string", mime: "application/pdf", filename: "file.pdf" }; |