Get contact API request + embedded data | XM Community
Solved

Get contact API request + embedded data

  • 1 March 2018
  • 2 replies
  • 33 views

Badge +5
Hi!
I'm starting qnr with URL like this: https://aaa.qualtrics.com/jfe/form/SV_aaaaaaaa?myID=MLRP_asasasaasa
And I want to use in embedded data values retrieved from API command: https://yourdatacenterid.qualtrics.com/API/v3/mailinglists/:mailingListId/contacts/:contactId

I tried to use on start webservice https://aaa.qualtrics.com/API/v3/mailinglists/ML_aaaaaa/contacts/${e://Field/myID}, but it doesn't work.

Any suggestion appreciated.

Regards,
Piotr
icon

Best answer by PioKol 2 March 2018, 08:26

View original

2 replies

Userlevel 7
Badge +27
One reason it didn't work if because you didn't authenticate by providing your token to the api. I haven't tried it, but try setting X-API-TOKEN as a custom header in the web service call. The value would be your token.
Badge +5
Thanks, token was included in a header. It seems I used wrong value for contact id, because now it works.

Leave a Reply