Tatjana_Knezevic | 2020-06-26 04:22:54 UTC | #1
Hi,
We are able to get the transcript for WhatsApp messages via API /api/v2/conversations/{conversationId}/recordings/{recordingId}.
Extracting the response from this API works fine for both text ("messageText") and for images ( "messageMediaAttachments").
However, we have one issue here. The "url" for images has an authentication query string parameter set to 1 hour i.e. " X-Amz-Expires=3600" . After this time limit is reached the image resource is not available any longer and we are getting an error:
<Error>
<Code>AccessDenied</Code>
<Message>Request has expired</Message>
<X-Amz-Expires>3600</X-Amz-Expires>
<Expires>2020-06-23T11:26:24Z</Expires>
<ServerTime>2020-06-26T04:17:09Z</ServerTime>
<RequestId>9C257460F88101AC</RequestId>
<HostId>LxoL8Zi7O83V1+0Eqnou1xCsYIsLCffCE/gdJ18BO/sELId5HFwJoeJ+/6XtEXsZsBda56ukrIM=</HostId>
</Error>
As per Amazon documentation (https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html) the max value for this can be up to 7 days. IWith such a short time window of 1 hour, our client who requested the WhatsApp transcripts won't be able to see the images used in the conversation. Is there any way the default value of 3600 seconds to be increased?
Thanks, Tatjana
tim.smith | 2020-06-26 14:01:09 UTC | #2
That value is not configurable. If you need to make recordings available for longer periods of time, you will need to fetch the recording and cache it in your own system that serves the recording for a period of time that's acceptable for you. You may be interested in the AWS S3 recording bulk actions integration that will allow you to export recordings to an S3 bucket in your own AWS account, where you have full control over granting access to the files.
You can request new features and share your use case at https://purecloud.ideas.aha.io/ideas.
Tatjana_Knezevic | 2020-06-26 18:24:30 UTC | #3
Unfortunately we can't use AWS S3 recording bulk actions as AWS S3 is not in the same region as GC Org. The only option left is to fetch the recording and keep it in our system.
Thank you for your prompt response.
system | 2020-07-27 18:24:30 UTC | #4
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: 8121