Download email attachments programmatically

Hello,
we would like to download attachments in incoming emails programmatically, in order to feed external systems.
In resource center I found that it is possible to generate a download link using download API (/api/v2/downloads/{downloadId}).
When calling the API with issueRedirect=false and redirectToAuth=false the following URL is generated:
https://inin-prod-euw1-conversation-services.s3.eu-west-1.amazonaws.com/postino/organizations/{orgId}/conversations/{conversationId}/messages/{messageId}/attachments/{attachId}?response-content-disposition=attachment%3Bfilename%3D"altro_dt_ex.pdf"&X-Amz-Security-Token=******&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20240522T134131Z&X-Amz-SignedHeaders=host&X-Amz-Expires=3600&X-Amz-Credential=***&X-Amz-Signature=****

How long will be the generated link valid ?

What are the admissible values for contentDisposition parameter in download API ?

Thanks, D.

It's a little bit of an odd usage, but that query param is mapped to the content-disposition header. It supports values per the header's spec: Content-Disposition - HTTP | MDN.

I believe it's 1 hour

Hello Tim, thank you for your answer: I checked and is exacty 1 hour: (3600 seconds, as set in X-Amz-Expires param)

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.