Upload a file
Uploads a file and returns it. The returned id can be used wherever the API accepts a
file_id / file_ids (invoice and deal attachments, ticket mails, proposals, …). Any file but a
program (exe, msi, bat and the like), max 100 MB. Send the request as multipart/form-data.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Upload a file › Request Body
fileThe file to upload.
optimizeOptimise (compress) uploaded images (only jpg, jpeg, png). Defaults to true.
max_image_dimensionMaximum width/height in pixels to resize images to (max 2500).
Upload a file › Responses
FileResource
idnamefile_typefile_sizeurlx300_image_urlx800_image_urlx1500_image_urlimage_widthimage_heightupdated_atcreated_atCreate an upload token
A key to upload files for an hour from where the token of this session is not at hand, such as the
sandbox of an AI client. Send it as Authorization: Bearer <token>, with X-Organization-Id, to
Upload a file, Upload an HTML bundle and Send files to an HTML bundle, as multipart/form-data. It
uploads as this employee with the access of this session, works for no other endpoint, and stops
when this session ends.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Create an upload token › Responses
FileUploadTokenResource
tokenThe key, shown only now: send it as Authorization: Bearer <token>.
expires_atorganization_idSend it as the X-Organization-Id header.
api_urlWhere the upload endpoints start, such as <api_url>/files.