Connect / Client / describe_contact

describe_contact#

Connect.Client.describe_contact(**kwargs)#

This API is in preview release for Amazon Connect and is subject to change.

Describes the specified contact.

Warning

Contact information remains available in Amazon Connect for 24 months, and then it is deleted.

Only data from November 12, 2021, and later is returned by this API.

See also: AWS API Documentation

Request Syntax

response = client.describe_contact(
    InstanceId='string',
    ContactId='string'
)
Parameters:
  • InstanceId (string) –

    [REQUIRED]

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

  • ContactId (string) –

    [REQUIRED]

    The identifier of the contact.

Return type:

dict

Returns:

Response Syntax

{
    'Contact': {
        'Arn': 'string',
        'Id': 'string',
        'InitialContactId': 'string',
        'PreviousContactId': 'string',
        'InitiationMethod': 'INBOUND'|'OUTBOUND'|'TRANSFER'|'QUEUE_TRANSFER'|'CALLBACK'|'API'|'DISCONNECT'|'MONITOR'|'EXTERNAL_OUTBOUND',
        'Name': 'string',
        'Description': 'string',
        'Channel': 'VOICE'|'CHAT'|'TASK',
        'QueueInfo': {
            'Id': 'string',
            'EnqueueTimestamp': datetime(2015, 1, 1)
        },
        'AgentInfo': {
            'Id': 'string',
            'ConnectedToAgentTimestamp': datetime(2015, 1, 1),
            'AgentPauseDurationInSeconds': 123
        },
        'InitiationTimestamp': datetime(2015, 1, 1),
        'DisconnectTimestamp': datetime(2015, 1, 1),
        'LastUpdateTimestamp': datetime(2015, 1, 1),
        'LastPausedTimestamp': datetime(2015, 1, 1),
        'LastResumedTimestamp': datetime(2015, 1, 1),
        'TotalPauseCount': 123,
        'TotalPauseDurationInSeconds': 123,
        'ScheduledTimestamp': datetime(2015, 1, 1),
        'RelatedContactId': 'string',
        'WisdomInfo': {
            'SessionArn': 'string'
        },
        'QueueTimeAdjustmentSeconds': 123,
        'QueuePriority': 123,
        'Tags': {
            'string': 'string'
        }
    }
}

Response Structure

  • (dict) –

    • Contact (dict) –

      Information about the contact.

      • Arn (string) –

        The Amazon Resource Name (ARN) for the contact.

      • Id (string) –

        The identifier for the contact.

      • InitialContactId (string) –

        If this contact is related to other contacts, this is the ID of the initial contact.

      • PreviousContactId (string) –

        If this contact is not the first contact, this is the ID of the previous contact.

      • InitiationMethod (string) –

        Indicates how the contact was initiated.

      • Name (string) –

        The name of the contact.

      • Description (string) –

        The description of the contact.

      • Channel (string) –

        How the contact reached your contact center.

      • QueueInfo (dict) –

        If this contact was queued, this contains information about the queue.

        • Id (string) –

          The unique identifier for the queue.

        • EnqueueTimestamp (datetime) –

          The timestamp when the contact was added to the queue.

      • AgentInfo (dict) –

        Information about the agent who accepted the contact.

        • Id (string) –

          The identifier of the agent who accepted the contact.

        • ConnectedToAgentTimestamp (datetime) –

          The timestamp when the contact was connected to the agent.

        • AgentPauseDurationInSeconds (integer) –

          Agent pause duration for a contact in seconds.

      • InitiationTimestamp (datetime) –

        The date and time this contact was initiated, in UTC time. For INBOUND, this is when the contact arrived. For OUTBOUND, this is when the agent began dialing. For CALLBACK, this is when the callback contact was created. For TRANSFER and QUEUE_TRANSFER, this is when the transfer was initiated. For API, this is when the request arrived. For EXTERNAL_OUTBOUND, this is when the agent started dialing the external participant. For MONITOR, this is when the supervisor started listening to a contact.

      • DisconnectTimestamp (datetime) –

        The timestamp when the customer endpoint disconnected from Amazon Connect.

      • LastUpdateTimestamp (datetime) –

        The timestamp when contact was last updated.

      • LastPausedTimestamp (datetime) –

        The timestamp when the contact was last paused.

      • LastResumedTimestamp (datetime) –

        The timestamp when the contact was last resumed.

      • TotalPauseCount (integer) –

        Total pause count for a contact.

      • TotalPauseDurationInSeconds (integer) –

        Total pause duration for a contact in seconds.

      • ScheduledTimestamp (datetime) –

        The timestamp, in Unix epoch time format, at which to start running the inbound flow.

      • RelatedContactId (string) –

        The contactId that is related to this contact.

      • WisdomInfo (dict) –

        Information about Amazon Connect Wisdom.

        • SessionArn (string) –

          The Amazon Resource Name (ARN) of the Wisdom session.

      • QueueTimeAdjustmentSeconds (integer) –

        An integer that represents the queue time adjust to be applied to the contact, in seconds (longer / larger queue time are routed preferentially). Cannot be specified if the QueuePriority is specified. Must be statically defined and a valid integer value.

      • QueuePriority (integer) –

        An integer that represents the queue priority to be applied to the contact (lower priorities are routed preferentially). Cannot be specified if the QueueTimeAdjustmentSeconds is specified. Must be statically defined, must be larger than zero, and a valid integer value. Default Value is 5.

      • Tags (dict) –

        Tags associated with the contact. This contains both Amazon Web Services generated and user-defined tags.

        • (string) –

          • (string) –

Exceptions