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

Getting Started with the Qualtrics API


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 the Qualtrics API

The Qualtrics API can be used to automate repetitive processes inside of Qualtrics or to pass information in and out of Qualtrics. For example, a Brand Administrator can use the Qualtrics API to automate the account creation process rather than create hundreds of accounts individually. Similarly, a user can automate contact list creation rather than manually compile and import contact lists. Qualtrics also has various API Solution Guides that can help you determine how best to use API for your needs.

Attention: API extensions 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.

API Access for Different Products

Qualtrics has a variety of different products that allow you to gather actionable data in real time. Some of these products include the Survey Platform, Site Intercept, and XM Directory (Target Audience). Once you’ve purchased the Qualtrics API feature, you’ll be able to use the API for any products that are a part of your license.

Here are links to the documentation for the latest version of the API for each of our products:

Please note that we always recommend that our clients use the latest version of the API.

Understanding the Qualtrics v3 API

The Qualtrics v3 API is a REST API  that allows you to communicate or query our system using a simple URL syntax. Communicating with the Qualtrics system can be thought of as a sequence of requests. You can request information to be sent to Qualtrics, updated, removed, or returned to your system. These requests can be made by either GET, POST, PUT, or DELETE requests, which return JSON responses.

Through these means, the Qualtrics API allows you to interact with parts of the Qualtrics system and integrate these areas with your CRM.

Getting Started

For information on getting started with Qualtrics API, please see Qualtrics API Quickstart.

Passing Parameters

Parameters are the building blocks for your requests. Each API request requires several global parameters to be passed to Qualtrics, as well as more request-specific parameters and a few optional ones.

You will always need to pass the API token through the header of the request as X-API-TOKEN. Depending on the specific request being run, you may need to pass other parameters through the header, through the URL, or through the body of the request. When passing parameters through the body, you need to send the parameters as JSON. When using this method, you must specify a Content-Type (i.e., application/json or multipart/form-data).

Example: In the following POST example, in cURL we specify the Base URL, the Content-Type, and the Token in the header. The Survey ID and format of export are specified in the body.
curl -X POST -H 'X-API-TOKEN: yourapitokenhere' -H 'Content-Type: application/json' -d '{
   "surveyId": "SV_012345678912345",
   "format": "csv"
}' 'https://yourdatacenterid.qualtrics.com/API/v3/responseexports'

Generating an API Token

An API token will be required to access the Qualtrics API. Each user in a license must generate their own API token. Your account’s API token is required to authenticate each API request you create. Your token is used in place of your account’s password and helps enhance the security of your work. To authenticate, include your token under the HTTPS header X-API-TOKEN.

Qtip: To generate a token, the user must have the Access API permission enabled for their account. If your organization doesn’t have access to the Qualtrics API feature, please contact your Qualtrics Account Executive for more information.

To generate an API token

  1. Click on the user settings icon in the top-right corner of your account.
    Account settings option in menu
  2. Select Account Settings.
  3. Click Qualtrics IDs on the navigation bar.
    navigating to qualtrics ids and clicking generate token

    Attention: Account Settings has been redesigned. To view Qualtrics IDs, click Switch to older version.banner at top of account settings page allowing you to switch back to legacy version
  4. In the box labeled API, click Generate Token.
Warning: Do not click Generate Token if you already have a token. Your API token only needs to be generated once. If you generate a new token and you have existing extensions that use the old token, those existing extensions will be interrupted. Generating a new token is irreversible; it is not possible to retrieve previous tokens.

Creating a Client Secret

  1. Click the user settings icon in the top right hand corner of your Qualtrics account.
    Account settings option in menu
  2. Select Account Settings.
  3. Navigate to Qualtrics IDs.
    navigating to the oauth section of qualtrics ids and clicking create client

    Attention: Account Settings has been redesigned. To view Qualtrics IDs, click Switch to older version.banner at top of account settings page allowing you to switch back to legacy version
  4. Choose OAuth Client Manager.
  5. Click Create Client.
  6. Enter a client name.
    Create a new Oauth client
  7. If desired, enter a contact email address.
  8. For Grant Type, choose Client Credentials.
  9. Click Create Client.
  10. Write down the Client ID and Client Secret and store them in a secure location.
    Client credentials, client ID, client secret

    Attention: Once you exit out of this window, the Client Secret is irretrievable. If you lose or forget your Client Secret, you will need to repeat the above process to generate a new one.
Qtip: For more information about finding your Qualtrics ID, see Finding your Qualtrics ID.