Upload a file
Uploads a file as multipart/form-data and attaches it to a site. The binary must be sent in the file field and may not exceed 100 MB.
Authorizations
OAuth 2.0 client credentials. Exchange your client_id and client_secret for an access token scoped to the organisation that provides data access.
Headers
ID of the organisation the request operates on behalf of (e.g. org_...). Must be an organisation the API client has access to.
"org_01k83mfmhgchya944v86ryvhpq"
Body
The file to be uploaded.
The ID of the site the file will belong to. Provide exactly one of site_id or site_external_id.
"ste_01k8g7aec6dt5zrtamc72ww446"
The external ID you assigned to the site the file will belong to. Provide exactly one of site_id or site_external_id.
1 - 100^[A-Za-z0-9\-_]+$"SITE-EXT-0001"
A optional custom ID that can be set to an internal ID from your system. This ID must be unique within all objects of the organisation you operate in. You can later use this external ID to reference and query this object. Be aware that you can update this ID later. If you need an immutable ID, use the object ID returned when creating the object.
1 - 100^[A-Za-z0-9\-_]+$"MY-CUSTOM-ID"
Response
The metadata of the newly uploaded file.
ID of the file.
"fle_01kw9grq4tecva35wdpstzcj5z"
Optionally assigned external ID of the file.
"MY-CUSTOM-ID"
The site that owns this file.
The original filename of the uploaded binary.
"sink_confirmation.pdf"
The MIME type of the file, detected from its contents at upload time.
"application/pdf"
The size of the file in bytes.
482117
The ISO 8601 timestamp at which the file was uploaded.
"2025-10-10T21:03:58Z"