Domenico_Colella | 2024-05-22 14:09:27 UTC | #1
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%22altrodtex.pdf%22&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.
tim.smith | 2024-05-22 15:38:49 UTC | #2
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: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition.
tim.smith | 2024-05-22 15:43:28 UTC | #3
Domenico_Colella, post:1, topic:26416
How long will be the generated link valid ?
I believe it's 1 hour
Domenico_Colella | 2024-05-23 15:17:29 UTC | #4
Hello Tim, thank you for your answer: I checked and is exacty 1 hour: (3600 seconds, as set in X-Amz-Expires param)
system | 2024-06-23 15:17:55 UTC | #5
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 26416