Request parameters
Idempotency-KeystringOptionalScoped to workspace and operation; same key and payload reuses the run during its seven-day retention period. Changed payload returns 409.
"receipt-1042-v1"Maximum length: 200 characters.
Request body
Send a JSON body with the following inputs. Put processing settings inside options.
Inputs
inputs.filePDF fileRequiredThe PDF file to process. Upload it first and use the returned file ID.
"${FILE_ID}"Use an uploaded file ID or a supported file reference. Learn how to send files
inputs.overlayImage fileOptionalImage to place over the source as a watermark. Upload it first and use its file ID.
"${WATERMARK_FILE_ID}"Use an uploaded file ID or a supported file reference. Learn how to send files
Options
options.pagesarray of numberOptionalPage numbers to process. The first page is 1.
[
1,
3
]options.rangestextOptionalPages to process, expressed as comma-separated numbers or ranges.
"1-3,5"options.font_sizenumberOptionalSize of the text, in points (72 points = one inch).
24Minimum: 6
Maximum: 200
options.opacitynumberOptionalTransparency of the watermark: 0 is invisible and 1 is fully opaque.
0.5Minimum: 0
Maximum: 1
options.xnumberOptionalHorizontal position, in points (72 points = one inch).
20options.ynumberOptionalVertical position, in points (72 points = one inch).
20options.texttextOptionalText to place on the result.
"Confidential"options.anglenumberOptionalRotation angle in degrees.
90Minimum: -360
Maximum: 360
options.widthnumberOptionalWidth of the output or overlay, in points (72 points = one inch).
800Minimum: 1
Maximum: 14400
Delivery
outputobjectOptionalChoose where the result is delivered. Omit this to use temporary LongRun storage.
{
"storage": "temporary"
}Storage guide · Bubble delivery setup
Show child fields
output.storagestringOptionaltemporary stores results in LongRun. bubble delivers them to a connected Bubble app. These are the only supported values. A published workflow uses its configured destination unless you override it.
"temporary"Default: "temporary"
Allowed values: temporary bubble
output.connection_idstringConditionally requiredRequired when storage is bubble. Copy the connection ID from Settings → Integrations → Bubble. Not used for temporary storage.
"${STORAGE_CONNECTION_ID}"output.privatebooleanOptionalOnly for Bubble delivery. true creates a private file and requires attach_to. false requests a public upload; access still depends on the receiving app configuration.
falseDefault: false
output.attach_tostringConditionally requiredRequired when storage is bubble and private is true. The Bubble Thing ID that owns the file. See the Bubble integration guide for setup.
"${BUBBLE_THING_ID}"output.file_namestringOptionalOptional output filename, such as receipt.pdf. Omit it to use the generated timestamp-based name. Applies to either destination.
"receipt.pdf"Maximum length: 255 characters.
webhook_idsarray of stringOptionalIDs of configured webhook endpoints to notify for this run. Omit this to send no webhooks for a direct action.
[
"${WEBHOOK_ID}"
]Returns
Returns 202 Accepted with a run ID. Processing continues after the response. Retrieve the run until its status is completed, failed, or cancelled.
Outputs when completed
These fields appear inside outputs on the completed run.
outputs.filePDF fileGenerated file metadata. Use its id to retrieve or download the file; check access and expiry metadata before using its URL.
Limits
- Input files combined
- 100 MiB
- Generated files
- 200 MiB maximum
- Processing deadline
- 120 seconds; processing may stop earlier if a renderer or resource limit is reached
- options.pages items
- 100 maximum
- Source PDF pages
- 1,000 maximum