Upload a file

multipart/form-data with a file field (and optional name); the raw bytes as the body with ?name=; or JSON {"url": …} to have MarqPDF fetch it (http/https, public addresses only). Up to 100 MB. Files are deleted after 24 hours.

post/files

Request

  • Base URL: https://marqpdf.com/v1
  • URL: https://marqpdf.com/v1/files
  • Auth: HTTP bearer

Query parameters

namestring

File name, for a raw-body upload.

Request body

urlstring uri required
namestring

Response

The stored file

object'file' required
idstring required
namestring required
sizeinteger required
content_typestring required
pagesinteger
created_atstring date-time required
expires_atstring date-time required
source'upload' | 'url' | 'job' required
jobstring
download_urlstring uri required

Works without a key for an hour.

Example response

{
  "id": "file_8rX2…"
}

Changes

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