Input

NameDescriptionRequired
API Endpoint PathSpecify the path to a PDF.co API endpoint, relative to https://api.pdf.co/v1. Example: /pdf/edit/add. For parameter details, refer to PDF.co API documentation. Check recent API logs at API Logs page.Yes
MethodChoose the HTTP method: GET, POST, PUT, PATCH, DELETE.Yes
HeadersAdd additional header Key/Value to the request. Authorization headers are automatically included.Yes

NameDescriptionRequired
Input TypeOverride URL parameter by selecting an Input Type. Options: None (uses Body only), Upload files and inject as URL param, Override URL param with value.Yes

Upload files and inject as url param

NameDescriptionRequired
DataUpload a file using raw binary data from another module. Note: This requires additional credits as it first uploads to PDF.co Temporary Files Storage.Yes
Output File NameSpecify a custom file name for the output file.No

Override url param with value

NameDescriptionRequired
URLProvide the URL to the source document, or a filetoken:// link from PDF.co Built-In Files Storage. If you use another cloud service such as Google Drive or Dropbox ensure the link is publicly accessible.Yes
Output File NameSpecify a custom file name for the output file.No
NameDescriptionRequired
BodyAdd request body key/value. Refer to PDF.co API documentation for details on supported parameters.No
Forcely enable `async` modeForces async mode by adding async: true to input params. Recommended for better performance. No effect if Body already has async defined.No
Auto-run `job/check` for async jobsAutomatically runs v1/job/check for async jobs until completion. Note: Checking async job status consumes credits. For long jobs (40+ sec), disable this and use a separate module for job status checks.No
Export TypeChoose between Download a File or JSON Output. Default is Download a File.No

Output

NameDescription
urlThis is the temporary URL provided by the PDF.co file server.
DataRepresents the output binary data. This data is generated only when the Export Type option is set to Download a File.
StatusIndicates the response status code. A success status is returned if the operation is successful.
outputLinkValidTillSpecifies the timestamp until which the url remains accessible.
errorProvides details about any errors encountered during the process, if applicable.
File NameThe designated name of the output file.
Job IdA unique identifier assigned to the job.
creditsThe amount of credits utilized for the process.
Remaining CreditsDisplays the balance of credits available in your account.
durationThe duration of time the process took to complete.