curl --request POST \
--url https://{host}/lucca-files/api/uploads \
--header 'Accept: <accept>' \
--header 'Authorization: <authorization>' \
--header 'Content-Type: multipart/form-data' \
--form form='@example-file'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"deletedAt": "<string>",
"contentLength": 2,
"contentType": "eml message/rfc822",
"extension": "<string>",
"totalPages": 1
}Upload a file.
curl --request POST \
--url https://{host}/lucca-files/api/uploads \
--header 'Accept: <accept>' \
--header 'Authorization: <authorization>' \
--header 'Content-Type: multipart/form-data' \
--form form='@example-file'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"deletedAt": "<string>",
"contentLength": 2,
"contentType": "eml message/rfc822",
"extension": "<string>",
"totalPages": 1
}HTTP request header used for content-negotiation.
"application/json"HTTP response header used for content-negotiation.
"multipart/form-data"API key. Value must be formatted like so: lucca application={api_key}.
Created
A file resource.
File name.
UTC timestamp of the moment this file was uploaded.
UTC timestamp of the moment this file was deleted. When null, file is not deleted.
File size in bytes.
x >= 1eml message/rfc822, image/heic, image/heif, image/jpe, image/jpg, image/pjpeg, image/gif, image/bmp, image/tif, image/tiff, image/x-dcraw, image/x-jb2, image/x-jbig2, image/x-jpf, image/x-ms-bmp, image/x-panasonic-raw, image/x-pcx, image/x-icon, image/x-png, image/vnd.microsoft.icon, image/webp, image/x-portable-anymap, text/plain, text/csv, text/rtf, text/calendar, text/comma-separated-values, text/markdown, application/pdf, application/msword, application/xls, application/x-csv, application/ms-excel, application/vnd.ms-office, application/vnd.ms-word, application/vnd.ms-outlook, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/vnd.oasis.opendocument.text, application/vnd.oasis.opendocument.spreadsheet, application/vnd.oasis.opendocument.presentation, application/vnd.oasis.opendocument.graphics, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.openxmlformats-officedocument.presentationml.presentation, application/vnd.openxmlformats-officedocument.presentationml.slideshow, application/vnd.openxmlformats-officedocument.presentationml.template, application/x-7z-compressed, application/rar, application/x-rar, application/zip, application/csv, application/rtf, application/text, application/txt, application/x-pdf Inferred from content-type (e.g.: '.pdf', '.doc', '.txt', etc...).
Number of pages of a document file.
x >= 0Was this page helpful?