

# GetContact
<a name="API_GetContact"></a>

Returns a contact from a contact list.

## Request Syntax
<a name="API_GetContact_RequestSyntax"></a>

```
GET /v2/email/contact-lists/ContactListName/contacts/EmailAddress HTTP/1.1
```

## URI Request Parameters
<a name="API_GetContact_RequestParameters"></a>

The request uses the following URI parameters.

 ** [ContactListName](#API_GetContact_RequestSyntax) **   <a name="SES-GetContact-request-uri-ContactListName"></a>
The name of the contact list to which the contact belongs.  
Required: Yes

 ** [EmailAddress](#API_GetContact_RequestSyntax) **   <a name="SES-GetContact-request-uri-EmailAddress"></a>
The contact's email address.  
Required: Yes

## Request Body
<a name="API_GetContact_RequestBody"></a>

The request does not have a request body.

## Response Syntax
<a name="API_GetContact_ResponseSyntax"></a>

```
HTTP/1.1 200
Content-type: application/json

{
   "AttributesData": "string",
   "ContactListName": "string",
   "CreatedTimestamp": number,
   "EmailAddress": "string",
   "LastUpdatedTimestamp": number,
   "TopicDefaultPreferences": [ 
      { 
         "SubscriptionStatus": "string",
         "TopicName": "string"
      }
   ],
   "TopicPreferences": [ 
      { 
         "SubscriptionStatus": "string",
         "TopicName": "string"
      }
   ],
   "UnsubscribeAll": boolean
}
```

## Response Elements
<a name="API_GetContact_ResponseElements"></a>

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

 ** [AttributesData](#API_GetContact_ResponseSyntax) **   <a name="SES-GetContact-response-AttributesData"></a>
The attribute data attached to a contact.  
Type: String

 ** [ContactListName](#API_GetContact_ResponseSyntax) **   <a name="SES-GetContact-response-ContactListName"></a>
The name of the contact list to which the contact belongs.  
Type: String

 ** [CreatedTimestamp](#API_GetContact_ResponseSyntax) **   <a name="SES-GetContact-response-CreatedTimestamp"></a>
A timestamp noting when the contact was created.  
Type: Timestamp

 ** [EmailAddress](#API_GetContact_ResponseSyntax) **   <a name="SES-GetContact-response-EmailAddress"></a>
The contact's email address.  
Type: String

 ** [LastUpdatedTimestamp](#API_GetContact_ResponseSyntax) **   <a name="SES-GetContact-response-LastUpdatedTimestamp"></a>
A timestamp noting the last time the contact's information was updated.  
Type: Timestamp

 ** [TopicDefaultPreferences](#API_GetContact_ResponseSyntax) **   <a name="SES-GetContact-response-TopicDefaultPreferences"></a>
The default topic preferences applied to the contact.  
Type: Array of [TopicPreference](API_TopicPreference.md) objects

 ** [TopicPreferences](#API_GetContact_ResponseSyntax) **   <a name="SES-GetContact-response-TopicPreferences"></a>
The contact's preference for being opted-in to or opted-out of a topic.>  
Type: Array of [TopicPreference](API_TopicPreference.md) objects

 ** [UnsubscribeAll](#API_GetContact_ResponseSyntax) **   <a name="SES-GetContact-response-UnsubscribeAll"></a>
A boolean value status noting if the contact is unsubscribed from all contact list topics.  
Type: Boolean

## Errors
<a name="API_GetContact_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** BadRequestException **   
The input you provided is invalid.  
HTTP Status Code: 400

 ** NotFoundException **   
The resource you attempted to access doesn't exist.  
HTTP Status Code: 404

 ** TooManyRequestsException **   
Too many requests have been made to the operation.  
HTTP Status Code: 429

## See Also
<a name="API_GetContact_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/sesv2-2019-09-27/GetContact) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/sesv2-2019-09-27/GetContact) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/sesv2-2019-09-27/GetContact) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/sesv2-2019-09-27/GetContact) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/sesv2-2019-09-27/GetContact) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/sesv2-2019-09-27/GetContact) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/sesv2-2019-09-27/GetContact) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/sesv2-2019-09-27/GetContact) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/sesv2-2019-09-27/GetContact) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/sesv2-2019-09-27/GetContact) 