Transactions
Generate pre-signed URL for transaction attachment
Generate a pre-signed URL for accessing a transaction attachment. The URL is valid for 60 seconds and allows secure temporary access to the attachment file.
post/transactions/{transactionId}/attachments/{attachmentId}/presigned-url
Path parameters
transactionIdstring uuid required
Unique identifier of the transaction
Example:b3b7c1e2-4c2a-4e7a-9c1a-2b7c1e24c2a4
Unique identifier of the transaction
attachmentIdstring uuid required
Unique identifier of the attachment to generate a pre-signed URL for
Example:a43dc3a5-6925-4d91-ac9c-4c1a34bdb388
Unique identifier of the attachment to generate a pre-signed URL for
Query parameters
downloadboolean nullable
Whether to force download the file. If true, the file will be downloaded. If false or omitted, the file will be displayed in the browser if possible.
Example:true
Whether to force download the file. If true, the file will be downloaded. If false or omitted, the file will be displayed in the browser if possible.
Response
Pre-signed URL generated successfully
Example response
{
"url": "https://service.midday.ai/storage/v1/object/sign/vault/transactions/receipt.pdf?token=abc123&expires=1640995200",
"expiresAt": "2024-04-15T10:01:00.000Z",
"fileName": "receipt.pdf"
}