Skip to main content
POST
Request Presigned File URLs
Standard file submission sends your file’s bytes through the request body of an operation call (/conversions, /extractions, /transformations, /generations), which is bounded by the platform’s overall request size limit. The Presigned File URLs endpoint offers an alternative path for larger files: you upload directly to storage yourself, then pass a reference to that upload into the operation instead of the raw bytes.

How it works

  1. Call this endpoint to receive one or more {uploadURL, downloadURL} pairs.
  2. Upload your file’s bytes to uploadURL with an HTTP PUT request.
  3. Submit your operation as normal, but instead of attaching the file’s bytes to the file field, pass a remote file reference:
    using the same multipart encoding (type=application/vnd.gonitro.url+json) documented on the file field of every operation.
A presigned URL pair is valid for 15 minutes and intended for a single operation submission. Don’t cache or reuse a pair across multiple operations — request a fresh pair each time. Once the 15-minute window has passed, both the upload and download URLs stop working; if your workflow needs more time between requesting a pair and submitting the operation, request the pair immediately before you need it rather than in advance.

Multiple files

Pass n to request more than one pair in a single call — useful when an operation (such as Merge) takes multiple input files. Each pair in the response is independent and points at its own storage location.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

n
integer
default:1

Number of presigned URL pairs to generate, useful when submitting a job with multiple input files.

Required range: 1 <= x <= 25

Response

Presigned URL pairs generated successfully

One or more presigned URL pairs, as requested via the n query parameter.

urls
Presigned URL pair · object[]
required

The generated presigned URL pairs, one per requested file.