Files

Create file (advance)

Changed on

Create file in advance mode by sending raw binary file content directly in the request body. You must include a Content-Disposition header with the filename.

post/files/raw/

Request

  • Base URL
    https://api.wafeq.com/v1
  • URL
    https://api.wafeq.com/v1/files/raw/
  • Auth
    API key in header Authorization

Headers

Content-Dispositionstring required

Content-Disposition header with filename (e.g., "attachment; filename=invoice.pdf")

Request body */*

filestring uri required

The actual file content.

Response

created_tsstring date-time required

The timestamp in UTC when the file created

filestring uri nullable

The actual file content.

file_sizeinteger nullable

The size of the file in bytes.

idstring required

The unique identifier of the file object.

mime_typestring required

The MIME type of the file.

modified_tsstring date-time required

The timestamp in UTC when the file was last modified

original_filenamestring

The original filename of the uploaded file.

Changes