sw_get_upload_url
Get a short-lived (~10 min) signed URL to upload a receipt file (PNG, JPEG, GIF or PDF, up to 10 MiB) to this server WITHOUT putting its bytes in a tool call: run the returned curl command from a shell or sandbox that has the file and…
Instructions
Get a short-lived (~10 min) signed URL to upload a receipt file (PNG, JPEG, GIF or PDF, up to 10 MiB) to this server WITHOUT putting its bytes in a tool call: run the returned curl command from a shell or sandbox that has the file and network access to the URL's host, then pass receipt: {upload_id, filename} to sw_attach_receipt, sw_create_expense or sw_update_expense. Send the original file — no need to shrink it. Only on the hosted server; locally use receipt.path. If you have no shell that can reach the URL, use receipt.base64 instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Name of the file, e.g. "receipt.jpg" | |
| content_type | Yes | The file's type: image/png, image/jpeg, image/gif or application/pdf. The upload must send exactly this Content-Type. |