Documents

Create an upload (large files)

Returns a presigned URL valid for 10 minutes. PUT the PDF bytes to it with the returned headers, then call Create a document with { "uploadId" }. Your plan's file-size limit applies.

Idempotency-Key is ignored: the response holds a short-lived URL, so a replay would hand back an expired link. Retrying is safe — re-exporting unchanged content is free.

post/v1/uploads/

Request

  • Base URL: https://api.pdfbetter.com
  • URL: https://api.pdfbetter.com/v1/uploads/
  • Auth: HTTP bearer

Request body

namestring required
sizeinteger required

Exact byte size of the PDF

contentType'application/pdf'

Response

Create an upload (large files)

object'upload' required
idstring required
urlstring required

PUT the file bytes here (exact Content-Type and Content-Length)

method'PUT' required
headersobject required
expiresAtstring required

ISO 8601 timestamp (UTC)

Changes

No recorded changes to this operation across all 1 revision of this API.