How to upload a list of contacts using Qualtrics create contact API?

SandhyaMSandhyaM Community Member, Qualtrics Brand Admin Qubie ✭
edited April 12 in Qualtrics API

How to upload a list of contacts using Qualtrics create contact API?

Hello All,

I am trying to trigger a JSON event with the JSON payload as below -

{

 "contacts": [{

  "lastName": "L1",

  "extRef": "'20'",

  "email": "[email protected]",

  "firstName": "A1",

  "phone":"'9876543210'"

 },

 {

  "lastName": "L2",

  "extRef": "'21'",

  "email": "[email protected]",

  "firstName": "A2",

  "phone":"'9876543200'"

 }]

}

Post this I am calling the Qualtrics Contact API webservice task to create contact but it fails as instead of sending one set of contact data, I am currently sending list of contact data.

Is there any way to upload a list of contacts and create contacts in Qualtrics? Has anyone tried to upload similarly?

Any help on how I can achieve this? Thanks!

Answers

  • pogipogi FLCommunity Member - Trial User Guru ✭✭

    If you have XM directory, you need to use the API endpoint described here.

    If you are using the core, you need to use the API endpoint described here.


    You can use the "try it" function to see the json payload.

  • SandhyaMSandhyaM Community Member, Qualtrics Brand Admin Qubie ✭

    Thanks @pogi . Yes I am utilizing the XM directory API endpoint to achieve this. The API works as intended for single contact creation. How do I achieve the same for list of contacts creation at the same time?

Sign In to Comment