Skip to main content
Loading...
Skip to article
  • Qualtrics Platform
    Qualtrics Platform
  • Customer Journey Optimizer
    Customer Journey Optimizer
  • XM Discover
    XM Discover
  • Qualtrics Social Connect
    Qualtrics Social Connect

Using Qualtrics API Documentation


Was this helpful?


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The feedback you submit here is used only to help improve this page.

That’s great! Thank you for your feedback!

Thank you for your feedback!


About API Documentation

Our Qualtrics API Documentation page details all of our currently available documentation.

This page walks you through how to navigate our documentation, outlining what each section discusses and what’s available.

Overview

In the API Overview, you can see information about the Qualtrics API in general, as well as information about Pagination (i.e., if you run a List Contacts request and you have more than 100 contacts, the result will be paginated and a nextPage URL will be provided to get the next 100 – this applies to all collection requests).

Allowlist Qualtrics servers

See Allowlist Qualtrics Servers.

Base URL and datacenter IDs

This sub-section shows you how to find the datacenter ID that you will need to include in the base URL for your API requests.

Finding your Qualtrics IDs

This sub-section shows you where you can find the various IDs that you will need when running API requests. For IDs that are not available in this section, please see Locating Qualtrics IDs by Inspecting the Element.

Authentication

The Authentication sub-section outlines what information is needed to authenticate your requests, as well as suggestions for protecting your API token. For more information on the authentication process, view Generating an API Token.

Parameters

The Parameters sub-section covers the different methods for passing parameters depending on the HTTP method being used (GET, POST, PUT, or DELETE).

Responses

The Responses sub-section contains examples of the different HTTP response codes that can be returned when you run a request, as well as the possible reasons for each response code. Our API always returns responses in JSON, except in the case of the response export request where the file can be returned in any of our available formats.

Qtip: If you do not see Responses or Upgrading From Previous Versions as options on the documentation, make sure to select View All 7 at the bottom of the API section’s list.

Using the Qualtrics APIs

This section of the documentation has code snippets in Python and Java to help you in developing workflows for managing surveys and users and for getting survey results.

Warning: Custom coding features are provided as-is and may require programming knowledge to implement. Our support team does not offer assistance or consultation on custom coding. You can always try asking our community of dedicated users instead. If you’d like to know more about our custom coding services, please contact your Qualtrics Account Executive.

Reference

The Reference section contains important information on acceptable date and time formats, language codes, requests limits, and details on event subscriptions. Event subscriptions allow you to send notifications to a publication URL once an event occurs (e.g., a response being recorded).

Requests

To help organize the documentation and help users find the API requests they’re looking for, the requests are categorized as follows:

  • Organizations
  • Divisions
  • Groups
  • Users
  • Surveys
  • Exporting Survey Responses
  • Responses
  • Response Imports
  • Message Library
  • Graphic Library
  • Distributions
  • Insights Platform Contacts
  • Event Subscriptions
  • XM Directory (Target Audience)

Request Parameters and Options

Each API request has a name, a brief description, a table that lists possible parameters, the response, an example request in cURL, and the “Try It Out” wizard. Understanding how to use this information can help streamline your work.

Name, description, and URL

The first 3 things that are listed for any API request are the HTTP verb, the name of the API request, and a brief description of the request.

Name and Description of API call

The URL used in the request (or “definition”) will be listed next to the HTTP verb.

Notice the drill-down structure used in the URLs. For example:

List of body parameters

For each API request, you’ll see a table listing all possible body parameters that can be used (some will be optional, some will be required). This table has the following information:

  • Each parameter’s name
  • The accepted formats for each parameter
  • Whether the parameter is required
  • A brief description of the parameter
Attention: All parameter names and values are case sensitive.

List of Parameters for API call

Request sample

The request sample given on the documentation shows you how to format the request in cURL. These requests include the root URL and all required parameters from the parameters table.

Example in cURL format

Qtip: Note that since the IDs are only examples and not real IDs, the requests in the examples won’t actually work, but you can simply replace them with IDs from your own account.

Response example

This section gives an example of what you can expect to receive once your API request is successful. For example, if you’re using the API request Create User, your response will be the user ID of the newly created user.

Example of Result Format

Completing API requests on the API Site

Our API Documentation allows you to quickly and easily execute an API request. (Note that most API requests require Qualtrics IDs.)

Attention: Use caution when testing APIs. If you enter the minimum required information to execute an API call, this modal will complete your API request. Required fields vary depending on the API call and and will be listed on the call’s page.
  1. Select between API Key and OAuth 2.0.
    Black modal on API docs that allows you to enter parameters and perform API calls
  2. Enter your account’s API token in the API Token field. (Or the corresponding OAuth 2.0 information, if you chose OAuth 2.0.)
  3. Enter any additional parameters.
  4. Click Users to choose a server to test on. For the most accurate test, you want this to match the data center of your account.
  5. Press Send API Request to test the API call.
Qtip: To know what values are acceptable for each parameter, refer to the table of parameters for the request. You can also refer to the cURL example on the documentation.

Once you’ve entered the necessary values for your request, you’ll see the call’s output under “Response.”

Output appears in a black modal just below where you tested the API call

Attention: Some requests do not work with this test function. This will be indicated on the page for the request.