cURL
curl --request POST \ --url https://api.example.com/api/v1/receipts/upload-url \ --header 'Content-Type: application/json' \ --data ' { "file_name": "<string>", "content_type": "<string>", "file_size": 123 } '
{ "uploadUrl": "https://s3.amazonaws.com/bucket/receipts/1/abc123.jpg?...", "s3Key": "receipts/1/abc123.jpg" }
Get a presigned S3 URL for uploading a receipt image.
receipt.jpg
image/jpeg
image/png