Skip to main content
POST
Request document upload URL

Authorizations

x-api-key
string
header
required

Organization API key from Settings → API keys.

Body

application/json
organizationId
string
required
contentType
enum<string>
required
Available options:
application/pdf,
application/msword,
application/vnd.openxmlformats-officedocument.wordprocessingml.document,
application/vnd.ms-excel,
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,
text/plain,
image/jpeg,
image/png,
image/webp,
image/gif
sizeBytes
integer
required

Exact file size in bytes (enforced on the presigned PUT)

Required range: x >= 1

Response

Presigned upload details

key
string
required

Use as fileKey when creating the document

fileRef
string
required

Opaque private storage reference to send as fileUrl (not a public HTTP URL)

uploadUrl
string<uri>
required

Presigned PUT URL for the file bytes