

# ListEmailIdentities
<a name="API_ListEmailIdentities"></a>

Returns a list of all of the email identities that are associated with your AWS account. An identity can be either an email address or a domain. This operation returns identities that are verified as well as those that aren't. This operation returns identities that are associated with Amazon SES and Amazon Pinpoint.

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

```
POST /v2/email/list-identities HTTP/1.1
Content-type: application/json

{
   "Filter": { 
      "{{string}}" : "{{string}}" 
   },
   "NextToken": "{{string}}",
   "PageSize": {{number}}
}
```

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

The request does not use any URI parameters.

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

The request accepts the following data in JSON format.

 ** [Filter](#API_ListEmailIdentities_RequestSyntax) **   <a name="SES-ListEmailIdentities-request-Filter"></a>
An object that contains filters to apply when listing email identities. You can filter by a substring of the identity name, by identity type, or by verification status.  
Type: String to string map  
Valid Keys: `IDENTITY_NAME_CONTAINS | IDENTITY_TYPE | VERIFICATION_STATUS`   
Value Length Constraints: Minimum length of 1.  
Required: No

 ** [NextToken](#API_ListEmailIdentities_RequestSyntax) **   <a name="SES-ListEmailIdentities-request-NextToken"></a>
A token returned from a previous call to `ListEmailIdentities` to indicate the position in the list of identities.  
Type: String  
Required: No

 ** [PageSize](#API_ListEmailIdentities_RequestSyntax) **   <a name="SES-ListEmailIdentities-request-PageSize"></a>
The number of results to show in a single call to `ListEmailIdentities`. If the number of results is larger than the number you specified in this parameter, then the response includes a `NextToken` element, which you can use to obtain additional results.  
The value you specify has to be at least 0, and can be no more than 1000.  
Type: Integer  
Required: No

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

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

{
   "EmailIdentities": [ 
      { 
         "IdentityName": "string",
         "IdentityType": "string",
         "SendingEnabled": boolean,
         "VerificationStatus": "string"
      }
   ],
   "NextToken": "string"
}
```

## Response Elements
<a name="API_ListEmailIdentities_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.

 ** [EmailIdentities](#API_ListEmailIdentities_ResponseSyntax) **   <a name="SES-ListEmailIdentities-response-EmailIdentities"></a>
An array that includes all of the email identities associated with your AWS account.  
Type: Array of [IdentityInfo](API_IdentityInfo.md) objects

 ** [NextToken](#API_ListEmailIdentities_ResponseSyntax) **   <a name="SES-ListEmailIdentities-response-NextToken"></a>
A token that indicates that there are additional configuration sets to list. To view additional configuration sets, issue another request to `ListEmailIdentities`, and pass this token in the `NextToken` parameter.  
Type: String

## Errors
<a name="API_ListEmailIdentities_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

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

## See Also
<a name="API_ListEmailIdentities_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/ListEmailIdentities) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/sesv2-2019-09-27/ListEmailIdentities) 
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/sesv2-2019-09-27/ListEmailIdentities) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/sesv2-2019-09-27/ListEmailIdentities) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/sesv2-2019-09-27/ListEmailIdentities) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/sesv2-2019-09-27/ListEmailIdentities) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/sesv2-2019-09-27/ListEmailIdentities) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/sesv2-2019-09-27/ListEmailIdentities) 
+  [AWS SDK for Python (Boto3)](https://docs.aws.amazon.com/goto/boto3/sesv2-2019-09-27/ListEmailIdentities) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/sesv2-2019-09-27/ListEmailIdentities) 