POST /contacts/v1/addresses/email/search

Retrieve the contact key for one or more email addresses. This resource is helpful for situations where you need to find a contact key that’s different from the channel address.

The JSON request body contains these properties.

NameTypeDescription
channelAddressListArrayRequired. An array of strings. Each string in the array is an email address to find the contact key for.
maximumCountIntegerThe maximum number of contact keys to return for each email address. The default value is 1.

A successful request returns a 200 OK result. The response contains the properties described in this table.

NameTypeDescription
channelAddressResponseEntitiesArrayAn array of objects that contain contact key details for an email address.
requestServiceMessageIDStringA unique ID for the request.
responseDateTimeDatetimeThe date and time when the API generated the response.
resultMessagesArrayAn array of objects that contains messages generated while processing the request. The array is typically empty in a successful request.
serviceMessageIDStringA unique ID for the response.

Each object in the channelAddressResponseEntities array has the properties described in this table.

NameTypeDescription
channelAddressStringThe email address specified in the request.
contactKeyDetailsArrayAn array of objects that contain information about a contact key. If there aren’t any contact key matches for a specified email address, the array contains an empty object.

Each object in the contactKeyDetails array has the properties described in this table.

NameTypeDescription
contactKeyStringThe contact key associated with the email address.
createDateDatetimeThe date and time when the contact key was created.

In a successful request, the resultMessages array is typically empty. If an error occurs, the objects in the array have the properties described in this table.

NameTypeDescription
messageStringA message that explains the error that occurred.
resultClassStringA description of the result. If an error occurs, the value is Error.
resultCodeStringAn error code.
resultTypeStringA description of the type of result.

To retrieve contact keys for an email address, issue a POST request to the /contacts/v1/addresses/email/search endpoint. In the JSON request body, specify the email addresses to retrieve contact keys for.

The response includes the contact keys for the specified email address.