How to upload a list of contacts using Qualtrics create contact API? | XM Community
Skip to main content
Question

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

  • April 5, 2021
  • 2 replies
  • 792 views

Hello All,
I am trying to trigger a JSON event with the JSON payload as below -
{
 "contacts": [{
  "lastName": "L1",
  "extRef": "'20'",
  "email": "a@test.com",
  "firstName": "A1",
  "phone":"'9876543210'"
 },
 {
  "lastName": "L2",
  "extRef": "'21'",
  "email": "a2@test.com",
  "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!

2 replies

pogi
Level 2 ●●
Forum|alt.badge.img+14
  • Level 2 ●●
  • April 5, 2021

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.


  • Author
  • April 6, 2021

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?