FileVerbs API Documentation - Job Request API

Job Request API Documentation

Download Job Output

Once the job is completed, you can download the output file using the following endpoint. The system automatically determines the file's Content-Type based on the file extension, ensuring that the appropriate MIME type is returned. If the file type is not recognized, it defaults to application/octet-stream.

Download Output Example (cURL):

curl -X GET https://api.fileverbs.com/api/v1/jobrequests/603c9d91f7f1c51774f55ed1/outputs \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." -o output_file.pdf

Specification:

This endpoint allows users to download the output of a job as a single file. The output file is streamed directly, making it suitable for large file downloads. The response includes the appropriate Content-Type based on the file's format.

Implementation Notes:

  • The endpoint retrieves the specific output file for the provided jobRequestId.
  • If the specified jobRequestId is invalid or does not belong to the authenticated user, a 404 Not Found response is returned.
  • Make sure to include a valid Authorization token in the request header for successful access.

Example Output:

If the job involved converting a PDF to a DOCX file, the downloaded file might be named as:

  • output_file.docx

Use the -o option with curl to save the output file with a preferred name locally.