Uploads
Request document upload URL
Request a presigned upload URL for a new document file.
Requires document:create on the organization.
Documents are private: map key → fileKey and fileRef → fileUrl when creating the document.
The API overwrites fileUrl with an opaque storage reference; downloads use signed URLs.
POST
Request document upload URL
Authorizations
Organization API key from Settings → API keys.
Body
application/json
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 Exact file size in bytes (enforced on the presigned PUT)
Required range:
x >= 1