Uploads

Request a signed upload URL

Returns a one-time Supabase Storage signed PUT URL so the caller can upload a PDF (up to the returned max_bytes) directly, bypassing the function body limit. PUT the bytes, then call POST /api/v1/documents with pending_upload_id set to the returned id.

post/api/v1/uploads

Request

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

Request body

fileNamestring required

Must end with .pdf.

sizeBytesinteger required

Up to the returned max_bytes.

contentType'application/pdf'

Example request

{
  "fileName": "contrat.pdf"
}

Response

Signed upload created.

idstring required

Pass as pending_upload_id to POST /api/v1/documents.

upload_urlstring uri required

PUT the PDF bytes here.

tokenstring required

Send as Authorization: Bearer <token> on the PUT.

storage_pathstring required
expires_atstring date-time required
max_bytesinteger required

Changes

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