Trouble with creating API for mailinglist look up. | XM Community
Skip to main content
Question

Trouble with creating API for mailinglist look up.


Forum|alt.badge.img+1

I am a new experience manager for my company taking over a legacy program from people who are no longer at the company and can see we are using APIs to trigger an external Mailing List upload at a set time per day and then another API script that then identifies the right mailing list to autosend a survey email too. 

I cannot find where that second API is and am having trouble creating one for a new survey send we are trying to create. I know the mailing list will have a certain title everyday but because its a new mailing list every upload the ID will not be the same. 

Does anyone know how I can set this up?

2 replies

SantiagoASI
QPN Level 2 ●●
Forum|alt.badge.img+4
  • QPN Level 2 ●●
  • 15 replies
  • November 2, 2023

Try creating a script that utilizes the GET method to retrieve mailing lists, then parse this data to extract the mailing list ID. Afterwards, use a POST request to the Qualtrics API with your survey ID to distribute the survey.

you can review the following links to achieve this: 

https://api.qualtrics.com/234bb6b16cf6d-list-distributions
https://api.qualtrics.com/dd83f1535056c-list-mailing-lists


Forum|alt.badge.img+1
  • Author
  • 1 reply
  • November 2, 2023
SantiagoASI wrote:

Try creating a script that utilizes the GET method to retrieve mailing lists, then parse this data to extract the mailing list ID. Afterwards, use a POST request to the Qualtrics API with your survey ID to distribute the survey.

you can review the following links to achieve this: 

https://api.qualtrics.com/234bb6b16cf6d-list-distributions
https://api.qualtrics.com/dd83f1535056c-list-mailing-lists

Thank you this does help. After listing the mailing lists I guess is there another way to identify it besides the ID? 


Leave a Reply