Starting a Survey with a POST Request
About Starting a Survey with a POST Request
While most Qualtrics survey responses are submitted by taking the survey in your web browser, you can also start a survey with a POST request.
Starting a survey with a POST request allows initial embedded data values to be set via the body of the request rather than as query strings in the URL, which provides a better way to pass along sensitive embedded data.
Once the POST request is submitted, the rest of the survey will proceed exactly the same as if it had been started by loading the survey URL in your browser.
Formatting The POST Request
To make the POST request, you’ll need the survey ID for the survey you’re sending the POST request to. You will also need your brand ID and datacenter ID. You’ll replace these ID in the JSON snippet below.
Below is an example of what a basic request would look like:
POST https://{brandId}.{datacenterId}.qualtrics.com/jfe/form/{surveyId}
{
“EDField”: “value”
// include as many embedded data fields as you like
}
x-www-form-urlencoded
content.