Upload file

Uploads a file to Plextera File Service and returns the file metadata including the assigned `fileId`. Use the `fileId` to reference this file in subsequent Document Insights or workflow calls. Supported types include PDF, common image formats (JPEG, PNG, TIFF, WebP), Office documents (DOCX, XLSX, PPTX), plain text, CSV, HTML, archives, audio, and video. Executable and script files are rejected. Maximum file size: **50 MB**.

Authentication

Authorizationstring
Pass your API key in the `Authorization` header using the prefix `api-key`: ``` Authorization: api-key YOUR_API_KEY ```

Request

Multipart file upload. The file part is required.

filefileRequired

File content. Executable and script files are rejected. Maximum size: 50 MB.

Response

File uploaded. Returns file metadata including the id to use in downstream calls.

idstring

File identifier. Pass this as fileId when referencing this file in Document Insights or workflow calls.

namestring
Original file name as submitted at upload time.
mimeTypestring
Detected MIME type of the file.
sizeByteslong
File size in bytes.
createdAtdatetime
ISO 8601 timestamp when the file was uploaded.