Create Contact In Mailing List

POST {{baseUrl}}/directories/:directoryId/mailinglists/:mailingListId/contacts

Create a contact in a specified mailing list. <!--From Readme--> <!-- theme: info -->

Performance and Operational Comments

It is recommended to run only one import at a time. There is no size limit on the data. It will not speed up imports to a single mailinglist by sending more than one request as the batches are processed sequentially.

This API call is only available to XM Directory users.

Deduplication

If deduplication is on and a contact exists with the same deduplication criteria then it will modify the original contact's information. You can find more information on the support page for deduplication.

Request Body

{"firstName"=>"<string>", "lastName"=>"<string>", "email"=>"<string>", "phone"=>"<string>", "extRef"=>"<string>", "embeddedData"=>{"esse_6"=>96863770.88921571}, "language"=>"<string>", "unsubscribed"=>"<boolean>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;result&quot;:{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;contactLookupId&quot;:&quot;\u003cstring\u003e&quot;},&quot;meta&quot;:{&quot;httpStatus&quot;:&quot;\u003cstring\u003e&quot;,&quot;requestId&quot;:&quot;\u003cstring\u003e&quot;,&quot;notice&quot;:&quot;\u003cstring\u003e&quot;}}