Create invoice upload URL
create_invoice_upload_urlMint a short-lived signed URL for uploading an invoice PDF or image. Three steps: (1) call this tool with filename, mimeType, and optional size; (2) HTTP PUT the raw file bytes to signedUploadUrl with Content-Type set to the same mimeType before expiresInSeconds elapses; (3) call invoice_processor with the returned path, bucket, and mimeType. Do not POST the bytes to this tool. Returns signedUploadUrl, path, bucket, expiresInSeconds, maxBytes, and allowedMimeTypes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | File size in bytes. Rejected if it exceeds the returned maxBytes. | |
| filename | Yes | Original filename including extension (e.g. invoice.pdf). | |
| mimeType | Yes | MIME type of the invoice (PDF or image). Must match the Content-Type header on the subsequent HTTP PUT. |