wafeq_upload_file
Upload a file to Wafeq by sending base64-encoded content or a local file path. Specify the filename and optional MIME type to create a file record for receipts, invoices, or attachments.
Instructions
๐ก WRITE ยท creates data ยท Files ยท POST /files/
Create file
Endpoint for creating a new file. Upload a file using multipart/form-data.
Not idempotent โ calling twice creates two records. Pass idempotency_key (or let the server generate one) to make a retry safe.
Send the file with file_base64 plus filename (and optionally content_type); this server builds the multipart/form-data body for you. For a file already on the machine running this server, pass file_path instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Name to store the file under, e.g. "receipt-2026-03.pdf". Required. | |
| file_path | No | Absolute path to a file on the machine running this MCP server. Disabled unless WAFEQ_ALLOW_LOCAL_FILE_UPLOAD=true. | |
| file_base64 | No | File contents, base64-encoded. Provide either this or `file_path`. Prefer this for content you already hold. | |
| content_type | No | MIME type, e.g. "application/pdf". Guessed from the filename extension when omitted. |