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"=>"velit Ut", "lastName"=>"anim ut enim", "email"=>"pariatur in", "phone"=>"aliqua aute dolor nulla", "extRef"=>"aliqua fugiat ex id", "embeddedData"=>{"nostrudac"=>true}, "language"=>"dolor laboris", "unsubscribed"=>false}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;result&quot;:{&quot;id&quot;:&quot;CID_012345678901234&quot;,&quot;contactLookupId&quot;:&quot;CGC_012345678901234&quot;},&quot;meta&quot;:{&quot;httpStatus&quot;:&quot;Lore&quot;,&quot;requestId&quot;:&quot;reprehenderit&quot;,&quot;notice&quot;:&quot;esse non&quot;}}