Create file (advance)

post
https://api.wafeq.com/v1/files/raw/

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. Files can be up to 25 MB; a larger file is refused with code file_too_large.

Query Params
string

Comma-separated related objects to return in full instead of as IDs. Accepted values: entities. Nested relations are joined with a dot.

string

Your own identifier for the file, unique within the organization.

Body Params

The file content itself. Files can be up to 25 MB; a larger file is refused with code file_too_large.

file
Headers
stringrequired

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

string

The id of the organization to act on, from GET /v1/organizations/. Required when the OAuth token or accounting partner API key grants access to several organizations; optional otherwise. With an organization API key, it must name the key's own organization.

Response