Amazon Connect Participant Service

2026/10/28 - Amazon Connect Participant Service - 1 updated api methods

Changes  Amazon Connect Participant Service now supports the optional UrlContentDisposition parameter on GetAttachment, which returns a pre-signed URL that renders a chat attachment inline in the browser instead of forcing a download.

GetAttachment (updated) Link ΒΆ
Changes (request)
{'UrlContentDisposition': 'INLINE | ATTACHMENT'}

Provides a pre-signed URL for download of a completed attachment. This is an asynchronous API for use with active contacts.

For security recommendations, see Connect Customer Chat security best practices.

The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication.

See also: AWS API Documentation

Request Syntax

client.get_attachment(
    AttachmentId='string',
    ConnectionToken='string',
    UrlExpiryInSeconds=123,
    UrlContentDisposition='INLINE'|'ATTACHMENT'
)
type AttachmentId:

string

param AttachmentId:

[REQUIRED]

A unique identifier for the attachment.

type ConnectionToken:

string

param ConnectionToken:

[REQUIRED]

The authentication token associated with the participant's connection.

type UrlExpiryInSeconds:

integer

param UrlExpiryInSeconds:

The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.

type UrlContentDisposition:

string

param UrlContentDisposition:

Specifies how a browser handles the file at the pre-signed URL. The following values are valid:

INLINE

Displays the file in the browser.

ATTACHMENT

Downloads the file. This is the default behavior.

rtype:

dict

returns:

Response Syntax

{
    'Url': 'string',
    'UrlExpiry': 'string',
    'AttachmentSizeInBytes': 123
}

Response Structure

  • (dict) --

    • Url (string) --

      This is the pre-signed URL that can be used for uploading the file to Amazon S3 when used in response to StartAttachmentUpload.

    • UrlExpiry (string) --

      The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.

    • AttachmentSizeInBytes (integer) --

      The size of the attachment in bytes.