Connect / Client / start_web_rtc_contact



Places an inbound in-app, web, or video call to a contact, and then initiates the flow. It performs the actions in the flow that are specified (in ContactFlowId) and present in the Amazon Connect instance (specified as InstanceId).

See also: AWS API Documentation

Request Syntax

response = client.start_web_rtc_contact(
        'string': 'string'
        'Customer': {
            'Video': 'SEND'
        'Agent': {
            'Video': 'SEND'
        'DisplayName': 'string'
        'string': {
            'Value': 'string',
            'Type': 'URL'|'ATTACHMENT'|'NUMBER'|'STRING'|'DATE'|'EMAIL'
  • Attributes (dict) –

    A custom key-value pair using an attribute map. The attributes are standard Amazon Connect attributes, and can be accessed in flows just like any other contact attributes.

    There can be up to 32,768 UTF-8 bytes across all key-value pairs per contact. Attribute keys can include only alphanumeric, -, and _ characters.

    • (string) –

      • (string) –

  • ClientToken (string) –

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.

    The token is valid for 7 days after creation. If a contact is already started, the contact ID is returned.

    This field is autopopulated if not provided.

  • ContactFlowId (string) –


    The identifier of the flow for the call. To see the ContactFlowId in the Amazon Connect admin website, on the navigation menu go to Routing, Contact Flows. Choose the flow. On the flow page, under the name of the flow, choose Show additional flow information. The ContactFlowId is the last part of the ARN, shown here in bold:


  • InstanceId (string) –


    The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

  • AllowedCapabilities (dict) –

    Information about the video sharing capabilities of the participants (customer, agent).

    • Customer (dict) –

      Information about the customer’s video sharing capabilities.

      • Video (string) –

        The configuration having the video sharing capabilities for participants over the call.

    • Agent (dict) –

      Information about the agent’s video sharing capabilities.

      • Video (string) –

        The configuration having the video sharing capabilities for participants over the call.

  • ParticipantDetails (dict) –


    The customer’s details.

    • DisplayName (string) – [REQUIRED]

      Display name of the participant.

  • RelatedContactId (string) – The unique identifier for an Amazon Connect contact. This identifier is related to the contact starting.

  • References (dict) –

    A formatted URL that is shown to an agent in the Contact Control Panel (CCP). Tasks can have the following reference types at the time of creation: URL | NUMBER | STRING | DATE | EMAIL. ATTACHMENT is not a supported reference type during task creation.

    • (string) –

      • (dict) –

        Well-formed data on a contact, used by agents to complete a contact request. You can have up to 4,096 UTF-8 bytes across all references for a contact.

        • Value (string) – [REQUIRED]

          A valid value for the reference. For example, for a URL reference, a formatted URL that is displayed to an agent in the Contact Control Panel (CCP).

        • Type (string) – [REQUIRED]

          The type of the reference. DATE must be of type Epoch timestamp.

  • Description (string) – A description of the task that is shown to an agent in the Contact Control Panel (CCP).

Return type:



Response Syntax

    'ConnectionData': {
        'Attendee': {
            'AttendeeId': 'string',
            'JoinToken': 'string'
        'Meeting': {
            'MediaRegion': 'string',
            'MediaPlacement': {
                'AudioHostUrl': 'string',
                'AudioFallbackUrl': 'string',
                'SignalingUrl': 'string',
                'TurnControlUrl': 'string',
                'EventIngestionUrl': 'string'
            'MeetingFeatures': {
                'Audio': {
                    'EchoReduction': 'AVAILABLE'|'UNAVAILABLE'
            'MeetingId': 'string'
    'ContactId': 'string',
    'ParticipantId': 'string',
    'ParticipantToken': 'string'

Response Structure

  • (dict) –

    • ConnectionData (dict) –

      Information required for the client application (mobile application or website) to connect to the call.

      • Attendee (dict) –

        The attendee information, including attendee ID and join token.

        • AttendeeId (string) –

          The Amazon Chime SDK attendee ID.

        • JoinToken (string) –

          The join token used by the Amazon Chime SDK attendee.

      • Meeting (dict) –

        A meeting created using the Amazon Chime SDK.

        • MediaRegion (string) –

          The Amazon Web Services Region in which you create the meeting.

        • MediaPlacement (dict) –

          The media placement for the meeting.

          • AudioHostUrl (string) –

            The audio host URL.

          • AudioFallbackUrl (string) –

            The audio fallback URL.

          • SignalingUrl (string) –

            The signaling URL.

          • TurnControlUrl (string) –

            The turn control URL.

          • EventIngestionUrl (string) –

            The event ingestion URL to which you send client meeting events.

        • MeetingFeatures (dict) –

          The configuration settings of the features available to a meeting.

          • Audio (dict) –

            The configuration settings for the audio features available to a meeting.

            • EchoReduction (string) –

              Makes echo reduction available to clients who connect to the meeting.

        • MeetingId (string) –

          The Amazon Chime SDK meeting ID.

    • ContactId (string) –

      The identifier of the contact in this instance of Amazon Connect.

    • ParticipantId (string) –

      The identifier for a contact participant. The ParticipantId for a contact participant is the same throughout the contact lifecycle.

    • ParticipantToken (string) –

      The token used by the contact participant to call the CreateParticipantConnection API. The participant token is valid for the lifetime of a contact participant.


  • Connect.Client.exceptions.InternalServiceException

  • Connect.Client.exceptions.InvalidRequestException

  • Connect.Client.exceptions.InvalidParameterException

  • Connect.Client.exceptions.LimitExceededException

  • Connect.Client.exceptions.ResourceNotFoundException