The Qualtrics REST API allows you to query our system using a simple URL syntax. The REST API allows you to interact with any part of the Qualtrics system allowing for full integration with our client’s systems.REST Input ParametersRoot URLsThe root URL for communicating with the Qualtrics system is: https://new.qualtrics.com/WRAPI/SiteIntercept/api.php Please note the use of the https protocol. This ensures that all data that travels between the server and your program are encrypted. This protects your credentials and the transmitted data.ParametersThe parameters are passed using the standard query string syntax. All parameters and values are case sensitive. Query String Documentation: http://en.wikipedia.org/wiki/Query_string The data can be passed in the URL itself (GET parameters) or be passed in the body of the request (POST parameters). Both methods follow the same query string syntax. Example https://new.qualtrics.com/WRAPI/SiteIntercept/api.php?Request=getResponseData&Token=lksjdfJdJklajdf3asdae3&SurveyID=SV_123456789&Format=XMLRequired ParametersThe following parameters are required for all requests:
Parameter | Description |
---|---|
Request | The name of the API call to be made. |
User | Qualtrics username. |
Password | Qualtrics password. |
Header | Description |
---|---|
RequestStatus | The status of the request. If “Success” then the request was received and processed correctly. If “Failure” there was an error processing the request. |
The Qualtrics REST API allows you to query our system using a simple URL syntax. All requests are simple GET or POST requests that return XML or JSON. The REST API allows you to interact with any part of the Qualtrics system allowing for full integration with our client’s systems.Making a RequestTo make a request to the API you need both a root URL and some basic parameters.Root URLThe root URL for communicating with the Qualtrics system is: https://yourdatacenterid.qualtrics.com/WRAPI/SiteIntercept/api.php To find the correct value for yourdatacenterid please follow these instructions (Note these instructions are from the most recent version of the API). Please note the use of the https protocol. This ensures that all data that travels between the server and your program are encrypted. This protects your credentials and the transmitted data.ParametersThe parameters are passed using the standard query string syntax. All parameters and values are case sensitive. For more information see Query String Documentation: http://en.wikipedia.org/wiki/Query_string The data can be passed in the URL itself (GET parameters) or be passed in the body of the request (POST parameters). Both methods follow the same query string syntax. Example: https://yourdatacenterid.qualtrics.com/WRAPI/SiteIntercept/api.php?Request=getLegacyResponseData&User=apiuser&Token=lksjdfJdJklajdf3asdae3&Format=XML&SurveyID=SV_123456789 JSON parameters Parameters may also be passed as JSON data through the request body. If using a JSON request body, you must specify a Content-Type header of 'application/json' or 'text/json'. You may use both url parameters and JSON parameters with the same request. Example: Request URI: https://yourdatacenterid.qualtrics.com/WRAPI/SiteIntercept/api.php?Request=getLegacyResponseData&Format=XML Content-Type: application/json Request Body: {"User":"apiuser","Token":"lksjdfJdJklajdf3asdae3","SurveyID":"SV_123456789"}Required ParametersThe following parameters are required for all requests:
Parameter | Description |
---|---|
Request | The name of the API call to be made. |
User | Qualtrics username. |
Token | Qualtrics API token (see The Token). |
Format | The format of the response. Valid value are XML, JSON or PPJSON (Pretty Print Formatted JSON) unless otherwise noted. |
Version | The version of the API to use. |
302/307 (Redirect) | The request should be redirected to a new address. |
400 (Bad Request) | The request was invalid, because of missing or invalid parameters. |
401 (Unauthorized) | Authentication failed. For more details on authentication see Authentication. |
403 (Forbidden) | The user provided does not have permission to make the desired request. |
404 (Not Found) | The specified request does not exists. |
500 (Internal Server Error) | An unknown error occurred. Try the request later. |
The API uses a token based authentication system. This prevents you from needing to give out your password to third parties. Qualtrics needs both your user name and your token to authenticate your request. A request will be authenticated if a valid user name and token pair are passed as the 'User' and 'Token' parameters. Each Qualtrics user account can have one and only one token associated with it. The token never expires and can be regenerated at any time. To generate/regenerate your token:
Changes the user name from the old to the new user name
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
OldUserName | <String> | Yes | The user name to be changed | |
NewUserName | <String> | Yes | The new user name | |
UserNameIsEmail | [0,1] | No | 1 | Default is 1. If 1 the user name must be an email address and the user’s email address will be updated in the system. It is strongly recommended to use email addresses as the user name. |
This request creates a new Division for a given Organization
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
DivisionID | <String> | No | If specified, will use this DivisionID | |
Name | <String> | Yes | The name of this Division | |
DivisionAdmins | <String> | No | The UserIDs of the desired Division Admins, passed as an array |
Create a new user
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
NewUsername | <String> | Yes | The name of the new user | |
NewPassword | <String> | Yes | Password of new user | |
FirstName | <String> | Yes | User’s first name | |
LastName | <String> | Yes | User’s last name | |
<String> | Yes | User’s email | ||
Organization | <String> | Yes | Organization ID (Brand ID) | |
Type | <String> | Yes | User Type | |
DivisionID | <String> | No | Division ID |
Gets all the User IDs for a Brand and/or Division To use this you must be the organization administrator or higher.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
Organization | <String> | No | Specifies the Organization ID from which to obtain the User IDs. | |
Division | <String> | No | (Optional) Specifies the Division ID from which to filter the User IDs. | |
Offset | <String> | No | The index from which to begin the search. (Requires that a limit is provided as well) | |
Limit | <String> | No | The maximum number of users to return. | |
IncludeUserStats | [0,1] | No | 0 | (Optional) Set to 1 to include additional details and usage stats, including: total number of surveys, number of active surveys, and last survey response date. Note that this can significantly increase response time for especially large brands |
Updates the specified User's information, based on UserID. To use this you must be the organization administrator or higher. For security reasons, you cannot set passwords for users other than yourself.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
UserID | <String> | Yes | ID of the user | |
FirstName | <String> | No | First Name of user | |
LastName | <String> | No | Last Name of user | |
NewUsername | <String> | No | New Username of user | |
NewPassword | <String> | No | New Password of user (can only set your own) | |
<String> | No | New Email of user | ||
Division | <String> | No | New Division ID of user | |
UserType | <String> | No | New User Type | |
Status | {Active, Disabled, NotVerified} | No | Updated Status for the user | |
Permissions | <String> | No | JSON String representing the user permissions |
Get A Creative
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
CreativeID | <String> | Yes | The Creative ID | |
ZoneID | <String> | Yes | The Creative's Zone | |
Editing | [0,1] | No | 0 | Defaults to 0 if not present |
Get Creative Stats
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
CreativeID | <String> | Yes | The Creative ID | |
StartDate | YYYY-MM-DD | Yes | Start date | |
EndDate | YYYY-MM-DD | Yes | End date | |
TimeZone | <String> | No | America/Denver | The timezone to aggregate responses relative to. http://php.net/manual/en/timezones.php |
DataType | {Impressions, Clicks} | No | Impressions | Impressions, Clicks |
Interval | {Hour, Day, Month} | No | Day | Hour, Day, Month |
Activate an Intercept
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
ZoneID | <String> | Yes | The Zone ID | |
InterceptID | <String> | Yes | The Site Intercept ID |
Deactivate an Intercept
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
ZoneID | <String> | Yes | The Zone ID | |
InterceptID | <String> | Yes | The Site Intercept ID |
Get Intercept Stats
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
InterceptID | <String> | Yes | The Intercept ID | |
StartDate | YYYY-MM-DD | Yes | Start date | |
EndDate | YYYY-MM-DD | Yes | End date | |
TimeZone | <String> | No | America/Denver | The timezone to aggregate responses relative to. http://php.net/manual/en/timezones.php |
DataType | {Impressions, Clicks} | No | Impressions | Impressions, Clicks |
Interval | {Hour, Day, Month} | No | Day | Hour, Day, Month |
Get Intercepts Status
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
InterceptID | <String> | Yes | The Site Intercept ID |
This request creates a new Message
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
LibraryID | <String> | Yes | The ID of the Library containing the Message | |
Name | <String> | Yes | If specified, the name of the message | |
Category | {InviteEmails, InactiveSurveyMessages, ReminderEmails, ThankYouEmails, EndOfSurveyMessages, GeneralMessages, ValidationMessages, LookAndFeelMessages, EmailSubject, SMSInvite, SMSReminder, SMSThankYou, TicketMessages, EvaluatorInvite, EvaluatorReminder, TSSubjectLine} | Yes | The category of the new message | |
Message | <String> | Yes | The text of the message to set; either an array mapping language codes to messages, or a single message to be set using the Language parameter | |
Language | <String> | No | If specified, will set the translation in the specified language |
This request fetches the designated Message file
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
LibraryID | <String> | Yes | The ID of the Library containing the Message | |
MessageID | <String> | Yes | The ID of the Message desired | |
Language | <String> | No | If specified, will fetch the translation in the specified language (if available) |
Returns a list of library message ids.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
LibraryID | <String> | Yes | The ID of the Library containing the Message |
This request sets the designated Message text
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
LibraryID | <String> | Yes | The ID of the Library containing the Message | |
MessageID | <String> | Yes | The ID of the Message desired | |
Language | <String> | No | If specified, will set the translation in the specified language | |
Message | <String> | Yes | The text of the message to set; either an array mapping language codes to messages, or a single message to be set using the Language parameter | |
Name | <String> | No | If specified, will rename the message |
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
ReportID | <String> | Yes | The Report ID for the report containing the Predefined Data Source.) | |
DataSourceID | <String> | Yes | The Data Source ID for the Predefined Data Source to be updated. | |
PredefinedData | <String> | No | A string of JSON-encoded predefined data to update the data source with | |
URL | <URL> | No | The URL of an JSON file containing the new Data Source data |
Returns all of the response data for a survey in the original (legacy) data format.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, CSV, HTML, JSON} | Yes | The format the data will be transmitted in. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The survey you will be getting the responses for. | |
LastResponseID | <String> | No | Each response is recorded sequentially. When specified it will export all responses after the id specified. | |
Limit | <String> | No | The maximum number of responses to return. | |
Offset | <String> | No | The starting index (inclusive) from which the responses will be retrieved. Combine with Limit to achieve pagination for responses in progress only. | |
ResponseID | <String> | No | The response id of an individual response. ResponseSetID, SubgroupID, StartDate, and EndDate should not be specified when using this parameter. | |
ResponseSetID | <String> | No | The response set you want to retrieve the data from. If not specified it will use the default response set. | |
SubgroupID | <String> | No | The subgroup you want to download the data for. | |
StartDate | YYYY-MM-DD hh:mm:ss | No | The date the responses must be after. | |
EndDate | YYYY-MM-DD hh:mm:ss | No | The date the responses must be before. | |
Questions | <String>%2C<String> | No | A comma separated list of question ids. Will filter the data to only include those specific questions. | |
Labels | [0,1] | No | 0 | If 1 (true) the label for choices and answers will be used and not the id. The default is 0. |
ExportTags | [0,1] | No | 0 | If 1 (true) the export tags will be used rather than the V labels. The default is 0. |
ExportQuestionIDs | [0,1] | No | 0 | If 1 (true) the internal question IDs will be used rather than export tags or the V labels. The default is 0. |
LocalTime | [0,1] | No | 1 | If 1 {true} the StartDate and EndDate will be exported using the specified user’s local time zone. |
UnansweredRecode | <String> | No | The recode value for seen but unanswered questions. If not specified a blank value is put in for these questions. | |
PanelID | <String> | No | If supplied it will only get the results for members of that specific panel. | |
ResponsesInProgress | [0,1] | No | 0 | If 1 (true), will retrieve the responses in progress (and only the responses in progress). |
LocationData | [0,1] | No | 0 | If 1 (true), will export location data. |
Activates the specified Survey
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The Survey ID to activate |
Deactivates the specified Survey
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The Survey ID to deactivate |
This request returns an xml export of the survey.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The ID of the survey whose xml definition will be retrieved. | |
Language | <String> | No | The language code for the language you want to export the survey in. If not specified it will use the default language. Qualtrics generally adheres to the ISO 639-1 Standard for 2 character Language codes (http://en.wikipedia.org/wiki/ISO_639-1, ex. EN = English, ES = Spanish, DE = German). | |
ExportLogic | [0,1] | No | 0 | EXPERIMENTAL. This is an experimental feature and subject to change without notice. Default 0. If 1 it will export the logic. |
This request returns the name of the survey as well as some addition information
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The ID of the survey. | |
Language | <String> | No | The language code for the language you want to export the survey in. If not specified it will use the default language. |
This request returns a list of all the surveys for the user.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. |
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
ImportFormat | {TXT, QSF, DOC, DOCX} | No | QSF | The format of the import. |
Name | <String> | Yes | The survey name. | |
Activate | [0,1] | No | 0 | If FALSE (0) will be created in an Inactive state. If TRUE (1) will be created in an active state. |
URL | <URL> | No | If present it will import the file from the given URL. | |
FileContents | <String> | No | The contents of the file posted using multipart/form-data | |
OwnerID | <String> | No | UserID of caller | Specify the owner of this survey (a valid UserID or BrandID, Division and Group owned surveys are deprecated). Default owner is the user making this call. |
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The ID of the Survey for which we are updating translations. | |
URL | <URL> | No | If present it will import the file from the given URL. | |
FileContents | <String> | No | The contents of the file posted using multipart/form-data | |
AsAdmin | [0,1] | No | TRUE if making this call on behalf of a survey that is owned by someone else in your org (As an Admin) |
Sets the survey options.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The survey options to be changed. | |
Active | [0,1] | No | Activates or Deactivates the survey if specified. | |
CloseSessions | [0,1] | No | 1 | When Active=0 this can be used to close all active sessions. |
Expiration | [0,1] | No | Allows the survey to expire. The survey will only be valid between ExpirationStartDate and ExpirationEndDate. | |
ExpirationStartDate | YYYY-MM-DD hh:mm:ss | No | When Expiration=1 the first date the survey will be valid. | |
ExpirationEndDate | YYYY-MM-DD hh:mm:ss | No | When Expiration=1 the last date day the survey will be valid. | |
SourceTimeZone | <String> | No |
This request transfers survey ownership to the specified user
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The ID of the Survey to change ownership | |
SurveyName | <String> | No | The new name of the survey, if left empty will keep the current name | |
OwnerID | <String> | Yes | The original owner of the survey | |
NewOwnerID | <String> | Yes | The user that will receive ownership |
Enables a Zone. Zones that are disabled do not receive requests
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
ZoneID | <String> | Yes | The Zone ID | |
BrandID | <String> | Yes | The Brand ID |
Get Zone Stats
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
ZoneID | <String> | Yes | The Zone ID | |
StartDate | YYYY-MM-DD | Yes | Start date | |
EndDate | YYYY-MM-DD | Yes | End date | |
TimeZone | <String> | No | America/Denver | The timezone to aggregate responses relative to. http://php.net/manual/en/timezones.php |
DataType | {Impressions, Clicks, PageViews, Requests} | No | PageViews | Impressions, Clicks, PageViews |
Interval | {Hour, Day, Month} | No | Day | Hour, Day, Month |
Get the Zone's status
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
ZoneID | <String> | Yes | The Zone ID | |
BrandID | <String> | Yes | The Brand ID |
The Qualtrics REST API allows you to query our system using a simple URL syntax. All requests are simple GET or POST requests that return XML or JSON. The REST API allows you to interact with any part of the Qualtrics system allowing for full integration with our client’s systems.Making a RequestTo make a request to the API you need both a root URL and some basic parameters.Root URLThe root URL for communicating with the Qualtrics system is: https://yourdatacenterid.qualtrics.com/WRAPI/SiteIntercept/api.php To find the correct value for yourdatacenterid please follow these instructions (Note these instructions are from the most recent version of the API). Please note the use of the https protocol. This ensures that all data that travels between the server and your program are encrypted. This protects your credentials and the transmitted data.ParametersThe parameters are passed using the standard query string syntax. All parameters and values are case sensitive. For more information see Query String Documentation: http://en.wikipedia.org/wiki/Query_string The data can be passed in the URL itself (GET parameters) or be passed in the body of the request (POST parameters). Both methods follow the same query string syntax. Example: https://yourdatacenterid.qualtrics.com/WRAPI/SiteIntercept/api.php?Request=getLegacyResponseData&User=apiuser&Token=lksjdfJdJklajdf3asdae3&Format=XML&SurveyID=SV_123456789 JSON parameters Parameters may also be passed as JSON data through the request body. If using a JSON request body, you must specify a Content-Type header of 'application/json' or 'text/json'. You may use both url parameters and JSON parameters with the same request. Example: Request URI: https://yourdatacenterid.qualtrics.com/WRAPI/SiteIntercept/api.php?Request=getLegacyResponseData&Format=XML Content-Type: application/json Request Body: {"User":"apiuser","Token":"lksjdfJdJklajdf3asdae3","SurveyID":"SV_123456789"}Required ParametersThe following parameters are required for all requests:
Parameter | Description |
---|---|
Request | The name of the API call to be made. |
User | Qualtrics username. |
Token | Qualtrics API token (see The Token). |
Format | The format of the response. Valid value are XML, JSON or JSONP unless otherwise noted. |
Version | The version of the API to use. |
JSONPCallback | Only required when Format is JSONP. The JSONP technique may be used by specifying a JavaScript callback. |
Parameter | Format | Description |
---|---|---|
JSONPCallback | JSONP | Required. The callback to be used when applying the JSONP technique. |
JSONPrettyPrint | JSON, JSONP | Optional. Outputs JSON so that it is more readable. |
302/307 (Redirect) | The request should be redirected to a new address. |
400 (Bad Request) | The request was invalid, because of missing or invalid parameters. |
401 (Unauthorized) | Authentication failed. For more details on authentication see Authentication. |
403 (Forbidden) | The user provided does not have permission to make the desired request. |
404 (Not Found) | The specified request does not exists. |
500 (Internal Server Error) | An unknown error occurred. Try the request later. |
The API uses a token based authentication system. This prevents you from needing to give out your password to third parties. Qualtrics needs both your user name and your token to authenticate your request. A request will be authenticated if a valid user name and token pair are passed as the 'User' and 'Token' parameters. Each Qualtrics user account can have one and only one token associated with it. The token never expires and can be regenerated at any time. To generate/regenerate your token:
Changes the user name from the old to the new user name
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
OldUserName | <String> | Yes | The user name to be changed | |
NewUserName | <String> | Yes | The new user name | |
UserNameIsEmail | [0,1] | No | 1 | Default is 1. If 1 the user name must be an email address and the user’s email address will be updated in the system. It is strongly recommended to use email addresses as the user name. |
This request creates a new Division for a given Organization
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
DivisionID | <String> | No | If specified, will use this DivisionID | |
Name | <String> | Yes | The name of this Division | |
DivisionAdmins | <String> | No | The UserIDs of the desired Division Admins, passed as an array |
Create a new user
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
NewUsername | <String> | Yes | The name of the new user | |
NewPassword | <String> | Yes | Password of new user | |
FirstName | <String> | Yes | User’s first name | |
LastName | <String> | Yes | User’s last name | |
<String> | Yes | User’s email | ||
Organization | <String> | Yes | Organization ID (Brand ID) | |
Type | <String> | Yes | User Type | |
DivisionID | <String> | No | Division ID |
Gets all the User IDs for a Brand and/or Division To use this you must be the organization administrator or higher.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
Organization | <String> | No | Specifies the Organization ID from which to obtain the User IDs. | |
Division | <String> | No | (Optional) Specifies the Division ID from which to filter the User IDs. | |
Offset | <String> | No | The index from which to begin the search. (Requires that a limit is provided as well) | |
Limit | <String> | No | The maximum number of users to return. | |
IncludeUserStats | [0,1] | No | 0 | (Optional) Set to 1 to include additional details and usage stats, including: total number of surveys, number of active surveys, and last survey response date. Note that this can significantly increase response time for especially large brands |
Updates the specified User's information, based on UserID. To use this you must be the organization administrator or higher. For security reasons, you cannot set passwords for users other than yourself.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
UserID | <String> | Yes | ID of the user | |
FirstName | <String> | No | First Name of user | |
LastName | <String> | No | Last Name of user | |
NewUsername | <String> | No | New Username of user | |
NewPassword | <String> | No | New Password of user (can only set your own) | |
<String> | No | New Email of user | ||
Division | <String> | No | New Division ID of user | |
UserType | <String> | No | New User Type | |
Status | {Active, Disabled, NotVerified} | No | Updated Status for the user | |
Permissions | <String> | No | JSON String representing the user permissions |
Get A Creative
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
CreativeID | <String> | Yes | The Creative ID | |
ZoneID | <String> | Yes | The Creative's Zone | |
Editing | [0,1] | No | 0 | Defaults to 0 if not present |
Get Creative Stats
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
CreativeID | <String> | Yes | The Creative ID | |
StartDate | YYYY-MM-DD | Yes | Start date | |
EndDate | YYYY-MM-DD | Yes | End date | |
TimeZone | <String> | No | America/Denver | The timezone to aggregate responses relative to. http://php.net/manual/en/timezones.php |
DataType | {Impressions, Clicks} | No | Impressions | Impressions, Clicks |
Interval | {Hour, Day, Month} | No | Day | Hour, Day, Month |
Activate an Intercept
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
ZoneID | <String> | Yes | The Zone ID | |
InterceptID | <String> | Yes | The Site Intercept ID |
Deactivate an Intercept
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
ZoneID | <String> | Yes | The Zone ID | |
InterceptID | <String> | Yes | The Site Intercept ID |
Get Intercept Stats
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
InterceptID | <String> | Yes | The Intercept ID | |
StartDate | YYYY-MM-DD | Yes | Start date | |
EndDate | YYYY-MM-DD | Yes | End date | |
TimeZone | <String> | No | America/Denver | The timezone to aggregate responses relative to. http://php.net/manual/en/timezones.php |
DataType | {Impressions, Clicks} | No | Impressions | Impressions, Clicks |
Interval | {Hour, Day, Month} | No | Day | Hour, Day, Month |
Get Intercepts Status
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
InterceptID | <String> | Yes | The Site Intercept ID |
This request creates a new Message
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
LibraryID | <String> | Yes | The ID of the Library containing the Message | |
Name | <String> | Yes | If specified, the name of the message | |
Category | {InviteEmails, InactiveSurveyMessages, ReminderEmails, ThankYouEmails, EndOfSurveyMessages, GeneralMessages, ValidationMessages, LookAndFeelMessages, EmailSubject, SMSInvite, SMSReminder, SMSThankYou, TicketMessages, EvaluatorInvite, EvaluatorReminder, TSSubjectLine} | Yes | The category of the new message | |
Message | <String> | Yes | The text of the message to set; either an array mapping language codes to messages, or a single message to be set using the Language parameter | |
Language | <String> | No | If specified, will set the translation in the specified language |
This request fetches the designated Message file
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
LibraryID | <String> | Yes | The ID of the Library containing the Message | |
MessageID | <String> | Yes | The ID of the Message desired | |
Language | <String> | No | If specified, will fetch the translation in the specified language (if available) |
Returns a list of library message ids.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
LibraryID | <String> | Yes | The ID of the Library containing the Message |
This request sets the designated Message text
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
LibraryID | <String> | Yes | The ID of the Library containing the Message | |
MessageID | <String> | Yes | The ID of the Message desired | |
Language | <String> | No | If specified, will set the translation in the specified language | |
Message | <String> | Yes | The text of the message to set; either an array mapping language codes to messages, or a single message to be set using the Language parameter | |
Name | <String> | No | If specified, will rename the message |
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
ReportID | <String> | Yes | The Report ID for the report containing the Predefined Data Source.) | |
DataSourceID | <String> | Yes | The Data Source ID for the Predefined Data Source to be updated. | |
PredefinedData | <String> | No | A string of JSON-encoded predefined data to update the data source with | |
URL | <URL> | No | The URL of an JSON file containing the new Data Source data |
Returns all of the response data for a survey in the original (legacy) data format.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, CSV, HTML, JSON} | Yes | The format the data will be transmitted in. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The survey you will be getting the responses for. | |
LastResponseID | <String> | No | Each response is recorded sequentially. When specified it will export all responses after the id specified. | |
Limit | <String> | No | The maximum number of responses to return. | |
Offset | <String> | No | The starting index (inclusive) from which the responses will be retrieved. Combine with Limit to achieve pagination for responses in progress only. | |
ResponseID | <String> | No | The response id of an individual response. ResponseSetID, SubgroupID, StartDate, and EndDate should not be specified when using this parameter. | |
ResponseSetID | <String> | No | The response set you want to retrieve the data from. If not specified it will use the default response set. | |
SubgroupID | <String> | No | The subgroup you want to download the data for. | |
StartDate | YYYY-MM-DD hh:mm:ss | No | The date the responses must be after. | |
EndDate | YYYY-MM-DD hh:mm:ss | No | The date the responses must be before. | |
Questions | <String>%2C<String> | No | A comma separated list of question ids. Will filter the data to only include those specific questions. | |
Labels | [0,1] | No | 0 | If 1 (true) the label for choices and answers will be used and not the id. The default is 0. |
ExportTags | [0,1] | No | 0 | If 1 (true) the export tags will be used rather than the V labels. The default is 0. |
ExportQuestionIDs | [0,1] | No | 0 | If 1 (true) the internal question IDs will be used rather than export tags or the V labels. The default is 0. |
LocalTime | [0,1] | No | 1 | If 1 {true} the StartDate and EndDate will be exported using the specified user’s local time zone. |
UnansweredRecode | <String> | No | The recode value for seen but unanswered questions. If not specified a blank value is put in for these questions. | |
PanelID | <String> | No | If supplied it will only get the results for members of that specific panel. | |
ResponsesInProgress | [0,1] | No | 0 | If 1 (true), will retrieve the responses in progress (and only the responses in progress). |
LocationData | [0,1] | No | 0 | If 1 (true), will export location data. |
Activates the specified Survey
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The Survey ID to activate |
Deactivates the specified Survey
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The Survey ID to deactivate |
Gets all the quotas for a given survey.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.1 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | Survey ID of the survey in question. You must have permission to view responses on the given survey. |
This request returns an xml export of the survey.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The ID of the survey whose xml definition will be retrieved. | |
Language | <String> | No | The language code for the language you want to export the survey in. If not specified it will use the default language. Qualtrics generally adheres to the ISO 639-1 Standard for 2 character Language codes (http://en.wikipedia.org/wiki/ISO_639-1, ex. EN = English, ES = Spanish, DE = German). | |
ExportLogic | [0,1] | No | 0 | EXPERIMENTAL. This is an experimental feature and subject to change without notice. Default 0. If 1 it will export the logic. |
This request returns the name of the survey as well as some addition information
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The ID of the survey. | |
Language | <String> | No | The language code for the language you want to export the survey in. If not specified it will use the default language. |
This request returns a list of all the surveys for the user.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. |
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
ImportFormat | {TXT, QSF, DOC, DOCX} | No | QSF | The format of the import. |
Name | <String> | Yes | The survey name. | |
Activate | [0,1] | No | 0 | If FALSE (0) will be created in an Inactive state. If TRUE (1) will be created in an active state. |
URL | <URL> | No | If present it will import the file from the given URL. | |
FileContents | <String> | No | The contents of the file posted using multipart/form-data | |
OwnerID | <String> | No | UserID of caller | Specify the owner of this survey (a valid UserID or BrandID, Division and Group owned surveys are deprecated). Default owner is the user making this call. |
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The ID of the Survey for which we are updating translations. | |
URL | <URL> | No | If present it will import the file from the given URL. | |
FileContents | <String> | No | The contents of the file posted using multipart/form-data | |
AsAdmin | [0,1] | No | TRUE if making this call on behalf of a survey that is owned by someone else in your org (As an Admin) |
Sets the survey options.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The survey options to be changed. | |
Active | [0,1] | No | Activates or Deactivates the survey if specified. | |
CloseSessions | [0,1] | No | 1 | When Active=0 this can be used to close all active sessions. |
Expiration | [0,1] | No | Allows the survey to expire. The survey will only be valid between ExpirationStartDate and ExpirationEndDate. | |
ExpirationStartDate | YYYY-MM-DD hh:mm:ss | No | When Expiration=1 the first date the survey will be valid. | |
ExpirationEndDate | YYYY-MM-DD hh:mm:ss | No | When Expiration=1 the last date day the survey will be valid. | |
SourceTimeZone | <String> | No |
This request transfers survey ownership to the specified user
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The ID of the Survey to change ownership | |
SurveyName | <String> | No | The new name of the survey, if left empty will keep the current name | |
OwnerID | <String> | Yes | The original owner of the survey | |
NewOwnerID | <String> | Yes | The user that will receive ownership |
Enables a Zone. Zones that are disabled do not receive requests
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
ZoneID | <String> | Yes | The Zone ID | |
BrandID | <String> | Yes | The Brand ID |
Get Zone Stats
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
ZoneID | <String> | Yes | The Zone ID | |
StartDate | YYYY-MM-DD | Yes | Start date | |
EndDate | YYYY-MM-DD | Yes | End date | |
TimeZone | <String> | No | America/Denver | The timezone to aggregate responses relative to. http://php.net/manual/en/timezones.php |
DataType | {Impressions, Clicks, PageViews, Requests} | No | PageViews | Impressions, Clicks, PageViews |
Interval | {Hour, Day, Month} | No | Day | Hour, Day, Month |
Get the Zone's status
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
ZoneID | <String> | Yes | The Zone ID | |
BrandID | <String> | Yes | The Brand ID |
The Qualtrics REST API allows you to query our system using a simple URL syntax. All requests are simple GET or POST requests that return XML or JSON. The REST API allows you to interact with any part of the Qualtrics system allowing for full integration with our client’s systems.Making a RequestTo make a request to the API you need both a root URL and some basic parameters.Root URLThe root URL for communicating with the Qualtrics system is: https://yourdatacenterid.qualtrics.com/WRAPI/SiteIntercept/api.php To find the correct value for yourdatacenterid please follow these instructions (Note these instructions are from the most recent version of the API). Please note the use of the https protocol. This ensures that all data that travels between the server and your program are encrypted. This protects your credentials and the transmitted data.ParametersThe parameters are passed using the standard query string syntax. All parameters and values are case sensitive. For more information see Query String Documentation: http://en.wikipedia.org/wiki/Query_string The data can be passed in the URL itself (GET parameters) or be passed in the body of the request (POST parameters). Both methods follow the same query string syntax. Example: https://yourdatacenterid.qualtrics.com/WRAPI/SiteIntercept/api.php?Request=getLegacyResponseData&User=apiuser&Token=lksjdfJdJklajdf3asdae3&Format=XML&SurveyID=SV_123456789 JSON parameters Parameters may also be passed as JSON data through the request body. If using a JSON request body, you must specify a Content-Type header of 'application/json' or 'text/json'. You may use both url parameters and JSON parameters with the same request. Example: Request URI: https://yourdatacenterid.qualtrics.com/WRAPI/SiteIntercept/api.php?Request=getLegacyResponseData&Format=XML Content-Type: application/json Request Body: {"User":"apiuser","Token":"lksjdfJdJklajdf3asdae3","SurveyID":"SV_123456789"}Required ParametersThe following parameters are required for all requests:
Parameter | Description |
---|---|
Request | The name of the API call to be made. |
User | Qualtrics username. |
Token | Qualtrics API token (see The Token). |
Format | The format of the response. Valid value are XML, JSON or JSONP unless otherwise noted. |
Version | The version of the API to use. |
JSONPCallback | Only required when Format is JSONP. The JSONP technique may be used by specifying a JavaScript callback. |
Parameter | Format | Description |
---|---|---|
JSONPCallback | JSONP | Required. The callback to be used when applying the JSONP technique. |
JSONPrettyPrint | JSON, JSONP | Optional. Outputs JSON so that it is more readable. |
302/307 (Redirect) | The request should be redirected to a new address. |
400 (Bad Request) | The request was invalid, because of missing or invalid parameters. |
401 (Unauthorized) | Authentication failed. For more details on authentication see Authentication. |
403 (Forbidden) | The user provided does not have permission to make the desired request. |
404 (Not Found) | The specified request does not exists. |
500 (Internal Server Error) | An unknown error occurred. Try the request later. |
The API uses a token based authentication system. This prevents you from needing to give out your password to third parties. Qualtrics needs both your user name and your token to authenticate your request. A request will be authenticated if a valid user name and token pair are passed as the 'User' and 'Token' parameters. Each Qualtrics user account can have one and only one token associated with it. The token never expires and can be regenerated at any time. To generate/regenerate your token:
Changes the user name from the old to the new user name
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
OldUserName | <String> | Yes | The user name to be changed | |
NewUserName | <String> | Yes | The new user name | |
UserNameIsEmail | [0,1] | No | 1 | Default is 1. If 1 the user name must be an email address and the user’s email address will be updated in the system. It is strongly recommended to use email addresses as the user name. |
This request creates a new Division for a given Organization
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
DivisionID | <String> | No | If specified, will use this DivisionID | |
Name | <String> | Yes | The name of this Division | |
DivisionAdmins | <String> | No | The UserIDs of the desired Division Admins, passed as an array |
Create a new user
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
NewUsername | <String> | Yes | The name of the new user | |
NewPassword | <String> | Yes | Password of new user | |
FirstName | <String> | Yes | User’s first name | |
LastName | <String> | Yes | User’s last name | |
<String> | Yes | User’s email | ||
Organization | <String> | Yes | Organization ID (Brand ID) | |
Type | <String> | Yes | User Type | |
DivisionID | <String> | No | Division ID |
Gets all the User IDs for a Brand and/or Division To use this you must be the organization administrator or higher.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
Organization | <String> | No | Specifies the Organization ID from which to obtain the User IDs. | |
Division | <String> | No | (Optional) Specifies the Division ID from which to filter the User IDs. | |
Offset | <String> | No | The index from which to begin the search. (Requires that a limit is provided as well) | |
Limit | <String> | No | The maximum number of users to return. | |
IncludeUserStats | [0,1] | No | 0 | (Optional) Set to 1 to include additional details and usage stats, including: total number of surveys, number of active surveys, and last survey response date. Note that this can significantly increase response time for especially large brands |
Updates the specified User's information, based on UserID. To use this you must be the organization administrator or higher. For security reasons, you cannot set passwords for users other than yourself.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
UserID | <String> | Yes | ID of the user | |
FirstName | <String> | No | First Name of user | |
LastName | <String> | No | Last Name of user | |
NewUsername | <String> | No | New Username of user | |
NewPassword | <String> | No | New Password of user (can only set your own) | |
<String> | No | New Email of user | ||
Division | <String> | No | New Division ID of user | |
UserType | <String> | No | New User Type | |
Status | {Active, Disabled, NotVerified} | No | Updated Status for the user | |
Permissions | <String> | No | JSON String representing the user permissions |
Get A Creative
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
CreativeID | <String> | Yes | The Creative ID | |
ZoneID | <String> | Yes | The Creative's Zone | |
Editing | [0,1] | No | 0 | Defaults to 0 if not present |
Get Creative Stats
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
CreativeID | <String> | Yes | The Creative ID | |
StartDate | YYYY-MM-DD | Yes | Start date | |
EndDate | YYYY-MM-DD | Yes | End date | |
TimeZone | <String> | No | America/Denver | The timezone to aggregate responses relative to. http://php.net/manual/en/timezones.php |
DataType | {Impressions, Clicks} | No | Impressions | Impressions, Clicks |
Interval | {Hour, Day, Month} | No | Day | Hour, Day, Month |
Activate an Intercept
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
ZoneID | <String> | Yes | The Zone ID | |
InterceptID | <String> | Yes | The Site Intercept ID |
Deactivate an Intercept
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
ZoneID | <String> | Yes | The Zone ID | |
InterceptID | <String> | Yes | The Site Intercept ID |
Get Intercept Stats
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
InterceptID | <String> | Yes | The Intercept ID | |
StartDate | YYYY-MM-DD | Yes | Start date | |
EndDate | YYYY-MM-DD | Yes | End date | |
TimeZone | <String> | No | America/Denver | The timezone to aggregate responses relative to. http://php.net/manual/en/timezones.php |
DataType | {Impressions, Clicks} | No | Impressions | Impressions, Clicks |
Interval | {Hour, Day, Month} | No | Day | Hour, Day, Month |
Get Intercepts Status
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
InterceptID | <String> | Yes | The Site Intercept ID |
This request creates a new Message
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
LibraryID | <String> | Yes | The ID of the Library containing the Message | |
Name | <String> | Yes | If specified, the name of the message | |
Category | {InviteEmails, InactiveSurveyMessages, ReminderEmails, ThankYouEmails, EndOfSurveyMessages, GeneralMessages, ValidationMessages, LookAndFeelMessages, EmailSubject, SMSInvite, SMSReminder, SMSThankYou, TicketMessages, EvaluatorInvite, EvaluatorReminder, TSSubjectLine} | Yes | The category of the new message | |
Message | <String> | Yes | The text of the message to set; either an array mapping language codes to messages, or a single message to be set using the Language parameter | |
Language | <String> | No | If specified, will set the translation in the specified language |
This request fetches the designated Message file
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
LibraryID | <String> | Yes | The ID of the Library containing the Message | |
MessageID | <String> | Yes | The ID of the Message desired | |
Language | <String> | No | If specified, will fetch the translation in the specified language (if available) |
Returns a list of library message ids.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
LibraryID | <String> | Yes | The ID of the Library containing the Message |
This request sets the designated Message text
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
LibraryID | <String> | Yes | The ID of the Library containing the Message | |
MessageID | <String> | Yes | The ID of the Message desired | |
Language | <String> | No | If specified, will set the translation in the specified language | |
Message | <String> | Yes | The text of the message to set; either an array mapping language codes to messages, or a single message to be set using the Language parameter | |
Name | <String> | No | If specified, will rename the message |
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
ReportID | <String> | Yes | The Report ID for the report containing the Predefined Data Source.) | |
DataSourceID | <String> | Yes | The Data Source ID for the Predefined Data Source to be updated. | |
PredefinedData | <String> | No | A string of JSON-encoded predefined data to update the data source with | |
URL | <URL> | No | The URL of an JSON file containing the new Data Source data |
Returns all of the response data for a survey in the original (legacy) data format.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, CSV, HTML, JSON} | Yes | The format the data will be transmitted in. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The survey you will be getting the responses for. | |
LastResponseID | <String> | No | Each response is recorded sequentially. When specified it will export all responses after the id specified. | |
Limit | <String> | No | The maximum number of responses to return. | |
Offset | <String> | No | The starting index (inclusive) from which the responses will be retrieved. Combine with Limit to achieve pagination for responses in progress only. | |
ResponseID | <String> | No | The response id of an individual response. ResponseSetID, SubgroupID, StartDate, and EndDate should not be specified when using this parameter. | |
ResponseSetID | <String> | No | The response set you want to retrieve the data from. If not specified it will use the default response set. | |
SubgroupID | <String> | No | The subgroup you want to download the data for. | |
StartDate | YYYY-MM-DD hh:mm:ss | No | The date the responses must be after. | |
EndDate | YYYY-MM-DD hh:mm:ss | No | The date the responses must be before. | |
Questions | <String>%2C<String> | No | A comma separated list of question ids. Will filter the data to only include those specific questions. | |
Labels | [0,1] | No | 0 | If 1 (true) the label for choices and answers will be used and not the id. The default is 0. |
ExportTags | [0,1] | No | 0 | If 1 (true) the export tags will be used rather than the V labels. The default is 0. |
ExportQuestionIDs | [0,1] | No | 0 | If 1 (true) the internal question IDs will be used rather than export tags or the V labels. The default is 0. |
LocalTime | [0,1] | No | 1 | If 1 {true} the StartDate and EndDate will be exported using the specified user’s local time zone. |
UnansweredRecode | <String> | No | The recode value for seen but unanswered questions. If not specified a blank value is put in for these questions. | |
PanelID | <String> | No | If supplied it will only get the results for members of that specific panel. | |
ResponsesInProgress | [0,1] | No | 0 | If 1 (true), will retrieve the responses in progress (and only the responses in progress). |
LocationData | [0,1] | No | 0 | If 1 (true), will export location data. |
Activates the specified Survey
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The Survey ID to activate |
Deactivates the specified Survey
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The Survey ID to deactivate |
Gets all the quotas for a given survey.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.1 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | Survey ID of the survey in question. You must have permission to view responses on the given survey. |
This request returns an xml export of the survey. Version 2.2 includes an enhanced embedded data export.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Version | Version number like 'X.X' >= 2.2 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The ID of the survey whose xml definition will be retrieved. | |
Language | <String> | No | The language code for the language you want to export the survey in. If not specified it will use the default language. Qualtrics generally adheres to the ISO 639-1 Standard for 2 character Language codes (http://en.wikipedia.org/wiki/ISO_639-1, ex. EN = English, ES = Spanish, DE = German). | |
ExportLogic | [0,1] | No | 0 | EXPERIMENTAL. This is an experimental feature and subject to change without notice. Default 0. If 1 it will export the logic. |
This request returns an xml export of the survey.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The ID of the survey whose xml definition will be retrieved. | |
Language | <String> | No | The language code for the language you want to export the survey in. If not specified it will use the default language. Qualtrics generally adheres to the ISO 639-1 Standard for 2 character Language codes (http://en.wikipedia.org/wiki/ISO_639-1, ex. EN = English, ES = Spanish, DE = German). | |
ExportLogic | [0,1] | No | 0 | EXPERIMENTAL. This is an experimental feature and subject to change without notice. Default 0. If 1 it will export the logic. |
This request returns the name of the survey as well as some addition information
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The ID of the survey. | |
Language | <String> | No | The language code for the language you want to export the survey in. If not specified it will use the default language. |
This request returns a list of all the surveys for the user.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. |
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
ImportFormat | {TXT, QSF, DOC, DOCX} | No | QSF | The format of the import. |
Name | <String> | Yes | The survey name. | |
Activate | [0,1] | No | 0 | If FALSE (0) will be created in an Inactive state. If TRUE (1) will be created in an active state. |
URL | <URL> | No | If present it will import the file from the given URL. | |
FileContents | <String> | No | The contents of the file posted using multipart/form-data | |
OwnerID | <String> | No | UserID of caller | Specify the owner of this survey (a valid UserID or BrandID, Division and Group owned surveys are deprecated). Default owner is the user making this call. |
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The ID of the Survey for which we are updating translations. | |
URL | <URL> | No | If present it will import the file from the given URL. | |
FileContents | <String> | No | The contents of the file posted using multipart/form-data | |
AsAdmin | [0,1] | No | TRUE if making this call on behalf of a survey that is owned by someone else in your org (As an Admin) |
Sets the survey options.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The survey options to be changed. | |
Active | [0,1] | No | Activates or Deactivates the survey if specified. | |
CloseSessions | [0,1] | No | 1 | When Active=0 this can be used to close all active sessions. |
Expiration | [0,1] | No | Allows the survey to expire. The survey will only be valid between ExpirationStartDate and ExpirationEndDate. | |
ExpirationStartDate | YYYY-MM-DD hh:mm:ss | No | When Expiration=1 the first date the survey will be valid. | |
ExpirationEndDate | YYYY-MM-DD hh:mm:ss | No | When Expiration=1 the last date day the survey will be valid. | |
SourceTimeZone | <String> | No |
This request transfers survey ownership to the specified user
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The ID of the Survey to change ownership | |
SurveyName | <String> | No | The new name of the survey, if left empty will keep the current name | |
OwnerID | <String> | Yes | The original owner of the survey | |
NewOwnerID | <String> | Yes | The user that will receive ownership |
Enables a Zone. Zones that are disabled do not receive requests
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
ZoneID | <String> | Yes | The Zone ID | |
BrandID | <String> | Yes | The Brand ID |
Get Zone Stats
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
ZoneID | <String> | Yes | The Zone ID | |
StartDate | YYYY-MM-DD | Yes | Start date | |
EndDate | YYYY-MM-DD | Yes | End date | |
TimeZone | <String> | No | America/Denver | The timezone to aggregate responses relative to. http://php.net/manual/en/timezones.php |
DataType | {Impressions, Clicks, PageViews, Requests} | No | PageViews | Impressions, Clicks, PageViews |
Interval | {Hour, Day, Month} | No | Day | Hour, Day, Month |
Get the Zone's status
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
ZoneID | <String> | Yes | The Zone ID | |
BrandID | <String> | Yes | The Brand ID |
The Qualtrics REST API allows you to query our system using a simple URL syntax. All requests are simple GET or POST requests that return XML or JSON. The REST API allows you to interact with any part of the Qualtrics system allowing for full integration with our client’s systems.Making a RequestTo make a request to the API you need both a root URL and some basic parameters.Root URLThe root URL for communicating with the Qualtrics system is: https://yourdatacenterid.qualtrics.com/WRAPI/SiteIntercept/api.php To find the correct value for yourdatacenterid please follow these instructions (Note these instructions are from the most recent version of the API). Please note the use of the https protocol. This ensures that all data that travels between the server and your program are encrypted. This protects your credentials and the transmitted data.ParametersThe parameters are passed using the standard query string syntax. All parameters and values are case sensitive. For more information see Query String Documentation: http://en.wikipedia.org/wiki/Query_string The data can be passed in the URL itself (GET parameters) or be passed in the body of the request (POST parameters). Both methods follow the same query string syntax. Example: https://yourdatacenterid.qualtrics.com/WRAPI/SiteIntercept/api.php?Request=getLegacyResponseData&User=apiuser&Token=lksjdfJdJklajdf3asdae3&Format=XML&SurveyID=SV_123456789 JSON parameters Parameters may also be passed as JSON data through the request body. If using a JSON request body, you must specify a Content-Type header of 'application/json' or 'text/json'. You may use both url parameters and JSON parameters with the same request. Example: Request URI: https://yourdatacenterid.qualtrics.com/WRAPI/SiteIntercept/api.php?Request=getLegacyResponseData&Format=XML Content-Type: application/json Request Body: {"User":"apiuser","Token":"lksjdfJdJklajdf3asdae3","SurveyID":"SV_123456789"}Required ParametersThe following parameters are required for all requests:
Parameter | Description |
---|---|
Request | The name of the API call to be made. |
User | Qualtrics username. |
Token | Qualtrics API token (see The Token). |
Format | The format of the response. Valid value are XML, JSON or JSONP unless otherwise noted. |
Version | The version of the API to use. |
JSONPCallback | Only required when Format is JSONP. The JSONP technique may be used by specifying a JavaScript callback. |
Parameter | Format | Description |
---|---|---|
JSONPCallback | JSONP | Required. The callback to be used when applying the JSONP technique. |
JSONPrettyPrint | JSON, JSONP | Optional. Outputs JSON so that it is more readable. |
302/307 (Redirect) | The request should be redirected to a new address. |
400 (Bad Request) | The request was invalid, because of missing or invalid parameters. |
401 (Unauthorized) | Authentication failed. For more details on authentication see Authentication. |
403 (Forbidden) | The user provided does not have permission to make the desired request. |
404 (Not Found) | The specified request does not exists. |
500 (Internal Server Error) | An unknown error occurred. Try the request later. |
The API uses a token based authentication system. This prevents you from needing to give out your password to third parties. Qualtrics needs both your user name and your token to authenticate your request. A request will be authenticated if a valid user name and token pair are passed as the 'User' and 'Token' parameters. Each Qualtrics user account can have one and only one token associated with it. The token never expires and can be regenerated at any time. To generate/regenerate your token:
Changes the user name from the old to the new user name
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
OldUserName | <String> | Yes | The user name to be changed | |
NewUserName | <String> | Yes | The new user name | |
UserNameIsEmail | [0,1] | No | 1 | Default is 1. If 1 the user name must be an email address and the user’s email address will be updated in the system. It is strongly recommended to use email addresses as the user name. |
This request creates a new Division for a given Organization
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
DivisionID | <String> | No | If specified, will use this DivisionID | |
Name | <String> | Yes | The name of this Division | |
DivisionAdmins | <String> | No | The UserIDs of the desired Division Admins, passed as an array |
Create a new user
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
NewUsername | <String> | Yes | The name of the new user | |
NewPassword | <String> | Yes | Password of new user | |
FirstName | <String> | Yes | User’s first name | |
LastName | <String> | Yes | User’s last name | |
<String> | Yes | User’s email | ||
Organization | <String> | Yes | Organization ID (Brand ID) | |
Type | <String> | Yes | User Type | |
DivisionID | <String> | No | Division ID |
Gets all the User IDs for a Brand and/or Division To use this you must be the organization administrator or higher.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
Organization | <String> | No | Specifies the Organization ID from which to obtain the User IDs. | |
Division | <String> | No | (Optional) Specifies the Division ID from which to filter the User IDs. | |
Offset | <String> | No | The index from which to begin the search. (Requires that a limit is provided as well) | |
Limit | <String> | No | The maximum number of users to return. | |
IncludeUserStats | [0,1] | No | 0 | (Optional) Set to 1 to include additional details and usage stats, including: total number of surveys, number of active surveys, and last survey response date. Note that this can significantly increase response time for especially large brands |
Updates the specified User's information, based on UserID. To use this you must be the organization administrator or higher. For security reasons, you cannot set passwords for users other than yourself.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
UserID | <String> | Yes | ID of the user | |
FirstName | <String> | No | First Name of user | |
LastName | <String> | No | Last Name of user | |
NewUsername | <String> | No | New Username of user | |
NewPassword | <String> | No | New Password of user (can only set your own) | |
<String> | No | New Email of user | ||
Division | <String> | No | New Division ID of user | |
UserType | <String> | No | New User Type | |
Status | {Active, Disabled, NotVerified} | No | Updated Status for the user | |
Permissions | <String> | No | JSON String representing the user permissions |
Get A Creative
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
CreativeID | <String> | Yes | The Creative ID | |
ZoneID | <String> | Yes | The Creative's Zone | |
Editing | [0,1] | No | 0 | Defaults to 0 if not present |
Get Creative Stats
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
CreativeID | <String> | Yes | The Creative ID | |
StartDate | YYYY-MM-DD | Yes | Start date | |
EndDate | YYYY-MM-DD | Yes | End date | |
TimeZone | <String> | No | America/Denver | The timezone to aggregate responses relative to. http://php.net/manual/en/timezones.php |
DataType | {Impressions, Clicks} | No | Impressions | Impressions, Clicks |
Interval | {Hour, Day, Month} | No | Day | Hour, Day, Month |
Activate an Intercept
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
ZoneID | <String> | Yes | The Zone ID | |
InterceptID | <String> | Yes | The Site Intercept ID |
Deactivate an Intercept
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
ZoneID | <String> | Yes | The Zone ID | |
InterceptID | <String> | Yes | The Site Intercept ID |
Get Intercept Stats
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
InterceptID | <String> | Yes | The Intercept ID | |
StartDate | YYYY-MM-DD | Yes | Start date | |
EndDate | YYYY-MM-DD | Yes | End date | |
TimeZone | <String> | No | America/Denver | The timezone to aggregate responses relative to. http://php.net/manual/en/timezones.php |
DataType | {Impressions, Clicks} | No | Impressions | Impressions, Clicks |
Interval | {Hour, Day, Month} | No | Day | Hour, Day, Month |
Get Intercepts Status
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
InterceptID | <String> | Yes | The Site Intercept ID |
This request creates a new Message
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
LibraryID | <String> | Yes | The ID of the Library containing the Message | |
Name | <String> | Yes | If specified, the name of the message | |
Category | {InviteEmails, InactiveSurveyMessages, ReminderEmails, ThankYouEmails, EndOfSurveyMessages, GeneralMessages, ValidationMessages, LookAndFeelMessages, EmailSubject, SMSInvite, SMSReminder, SMSThankYou, TicketMessages, EvaluatorInvite, EvaluatorReminder, TSSubjectLine} | Yes | The category of the new message | |
Message | <String> | Yes | The text of the message to set; either an array mapping language codes to messages, or a single message to be set using the Language parameter | |
Language | <String> | No | If specified, will set the translation in the specified language |
This request fetches the designated Message file
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
LibraryID | <String> | Yes | The ID of the Library containing the Message | |
MessageID | <String> | Yes | The ID of the Message desired | |
Language | <String> | No | If specified, will fetch the translation in the specified language (if available) |
Returns a list of library message ids.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
LibraryID | <String> | Yes | The ID of the Library containing the Message |
This request sets the designated Message text
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
LibraryID | <String> | Yes | The ID of the Library containing the Message | |
MessageID | <String> | Yes | The ID of the Message desired | |
Language | <String> | No | If specified, will set the translation in the specified language | |
Message | <String> | Yes | The text of the message to set; either an array mapping language codes to messages, or a single message to be set using the Language parameter | |
Name | <String> | No | If specified, will rename the message |
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
ReportID | <String> | Yes | The Report ID for the report containing the Predefined Data Source.) | |
DataSourceID | <String> | Yes | The Data Source ID for the Predefined Data Source to be updated. | |
PredefinedData | <String> | No | A string of JSON-encoded predefined data to update the data source with | |
URL | <URL> | No | The URL of an JSON file containing the new Data Source data |
Returns all of the response data for a survey in the original (legacy) data format.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, CSV, HTML, JSON} | Yes | The format the data will be transmitted in. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The survey you will be getting the responses for. | |
LastResponseID | <String> | No | Each response is recorded sequentially. When specified it will export all responses after the id specified. | |
Limit | <String> | No | The maximum number of responses to return. | |
Offset | <String> | No | The starting index (inclusive) from which the responses will be retrieved. Combine with Limit to achieve pagination for responses in progress only. | |
ResponseID | <String> | No | The response id of an individual response. ResponseSetID, SubgroupID, StartDate, and EndDate should not be specified when using this parameter. | |
ResponseSetID | <String> | No | The response set you want to retrieve the data from. If not specified it will use the default response set. | |
SubgroupID | <String> | No | The subgroup you want to download the data for. | |
StartDate | YYYY-MM-DD hh:mm:ss | No | The date the responses must be after. | |
EndDate | YYYY-MM-DD hh:mm:ss | No | The date the responses must be before. | |
Questions | <String>%2C<String> | No | A comma separated list of question ids. Will filter the data to only include those specific questions. | |
Labels | [0,1] | No | 0 | If 1 (true) the label for choices and answers will be used and not the id. The default is 0. |
ExportTags | [0,1] | No | 0 | If 1 (true) the export tags will be used rather than the V labels. The default is 0. |
ExportQuestionIDs | [0,1] | No | 0 | If 1 (true) the internal question IDs will be used rather than export tags or the V labels. The default is 0. |
LocalTime | [0,1] | No | 1 | If 1 {true} the StartDate and EndDate will be exported using the specified user’s local time zone. |
UnansweredRecode | <String> | No | The recode value for seen but unanswered questions. If not specified a blank value is put in for these questions. | |
PanelID | <String> | No | If supplied it will only get the results for members of that specific panel. | |
ResponsesInProgress | [0,1] | No | 0 | If 1 (true), will retrieve the responses in progress (and only the responses in progress). |
LocationData | [0,1] | No | 0 | If 1 (true), will export location data. |
Activates the specified Survey
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The Survey ID to activate |
Deactivates the specified Survey
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The Survey ID to deactivate |
Gets all the quotas for a given survey.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.1 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | Survey ID of the survey in question. You must have permission to view responses on the given survey. |
This request returns an xml export of the survey. Version 2.2 includes an enhanced embedded data export.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Version | Version number like 'X.X' >= 2.2 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The ID of the survey whose xml definition will be retrieved. | |
Language | <String> | No | The language code for the language you want to export the survey in. If not specified it will use the default language. Qualtrics generally adheres to the ISO 639-1 Standard for 2 character Language codes (http://en.wikipedia.org/wiki/ISO_639-1, ex. EN = English, ES = Spanish, DE = German). | |
ExportLogic | [0,1] | No | 0 | EXPERIMENTAL. This is an experimental feature and subject to change without notice. Default 0. If 1 it will export the logic. |
This request returns an xml export of the survey. Version 2.3 includes an enhanced embedded data export, compound questions, and extended validation information. Additionally, choices are no longer ordered by choiceID, but rather by the order they appear in the survey.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Version | Version number like 'X.X' >= 2.3 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The ID of the survey whose xml definition will be retrieved. | |
Language | <String> | No | The language code for the language you want to export the survey in. If not specified it will use the default language. Qualtrics generally adheres to the ISO 639-1 Standard for 2 character Language codes (http://en.wikipedia.org/wiki/ISO_639-1, ex. EN = English, ES = Spanish, DE = German). | |
ExportLogic | [0,1] | No | 0 | EXPERIMENTAL. This is an experimental feature and subject to change without notice. Default 0. If 1 it will export the logic. |
This request returns an xml export of the survey.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The ID of the survey whose xml definition will be retrieved. | |
Language | <String> | No | The language code for the language you want to export the survey in. If not specified it will use the default language. Qualtrics generally adheres to the ISO 639-1 Standard for 2 character Language codes (http://en.wikipedia.org/wiki/ISO_639-1, ex. EN = English, ES = Spanish, DE = German). | |
ExportLogic | [0,1] | No | 0 | EXPERIMENTAL. This is an experimental feature and subject to change without notice. Default 0. If 1 it will export the logic. |
This request returns the name of the survey as well as some addition information
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The ID of the survey. | |
Language | <String> | No | The language code for the language you want to export the survey in. If not specified it will use the default language. |
This request returns a list of all the surveys for the user.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. |
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
ImportFormat | {TXT, QSF, DOC, DOCX} | No | QSF | The format of the import. |
Name | <String> | Yes | The survey name. | |
Activate | [0,1] | No | 0 | If FALSE (0) will be created in an Inactive state. If TRUE (1) will be created in an active state. |
URL | <URL> | No | If present it will import the file from the given URL. | |
FileContents | <String> | No | The contents of the file posted using multipart/form-data | |
OwnerID | <String> | No | UserID of caller | Specify the owner of this survey (a valid UserID or BrandID, Division and Group owned surveys are deprecated). Default owner is the user making this call. |
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The ID of the Survey for which we are updating translations. | |
URL | <URL> | No | If present it will import the file from the given URL. | |
FileContents | <String> | No | The contents of the file posted using multipart/form-data | |
AsAdmin | [0,1] | No | TRUE if making this call on behalf of a survey that is owned by someone else in your org (As an Admin) |
Sets the survey options.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The survey options to be changed. | |
Active | [0,1] | No | Activates or Deactivates the survey if specified. | |
CloseSessions | [0,1] | No | 1 | When Active=0 this can be used to close all active sessions. |
Expiration | [0,1] | No | Allows the survey to expire. The survey will only be valid between ExpirationStartDate and ExpirationEndDate. | |
ExpirationStartDate | YYYY-MM-DD hh:mm:ss | No | When Expiration=1 the first date the survey will be valid. | |
ExpirationEndDate | YYYY-MM-DD hh:mm:ss | No | When Expiration=1 the last date day the survey will be valid. | |
SourceTimeZone | <String> | No |
This request transfers survey ownership to the specified user
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The ID of the Survey to change ownership | |
SurveyName | <String> | No | The new name of the survey, if left empty will keep the current name | |
OwnerID | <String> | Yes | The original owner of the survey | |
NewOwnerID | <String> | Yes | The user that will receive ownership |
Enables a Zone. Zones that are disabled do not receive requests
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
ZoneID | <String> | Yes | The Zone ID | |
BrandID | <String> | Yes | The Brand ID |
Get Zone Stats
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
ZoneID | <String> | Yes | The Zone ID | |
StartDate | YYYY-MM-DD | Yes | Start date | |
EndDate | YYYY-MM-DD | Yes | End date | |
TimeZone | <String> | No | America/Denver | The timezone to aggregate responses relative to. http://php.net/manual/en/timezones.php |
DataType | {Impressions, Clicks, PageViews, Requests} | No | PageViews | Impressions, Clicks, PageViews |
Interval | {Hour, Day, Month} | No | Day | Hour, Day, Month |
Get the Zone's status
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
ZoneID | <String> | Yes | The Zone ID | |
BrandID | <String> | Yes | The Brand ID |
The Qualtrics REST API allows you to query our system using a simple URL syntax. All requests are simple GET or POST requests that return XML or JSON. The REST API allows you to interact with any part of the Qualtrics system allowing for full integration with our client’s systems.Making a RequestTo make a request to the API you need both a root URL and some basic parameters.Root URLThe root URL for communicating with the Qualtrics system is: https://yourdatacenterid.qualtrics.com/WRAPI/SiteIntercept/api.php To find the correct value for yourdatacenterid please follow these instructions (Note these instructions are from the most recent version of the API). Please note the use of the https protocol. This ensures that all data that travels between the server and your program are encrypted. This protects your credentials and the transmitted data.ParametersThe parameters are passed using the standard query string syntax. All parameters and values are case sensitive. For more information see Query String Documentation: http://en.wikipedia.org/wiki/Query_string The data can be passed in the URL itself (GET parameters) or be passed in the body of the request (POST parameters). Both methods follow the same query string syntax. Example: https://yourdatacenterid.qualtrics.com/WRAPI/SiteIntercept/api.php?Request=getLegacyResponseData&User=apiuser&Token=lksjdfJdJklajdf3asdae3&Format=XML&SurveyID=SV_123456789 JSON parameters Parameters may also be passed as JSON data through the request body. If using a JSON request body, you must specify a Content-Type header of 'application/json' or 'text/json'. You may use both url parameters and JSON parameters with the same request. Example: Request URI: https://yourdatacenterid.qualtrics.com/WRAPI/SiteIntercept/api.php?Request=getLegacyResponseData&Format=XML Content-Type: application/json Request Body: {"User":"apiuser","Token":"lksjdfJdJklajdf3asdae3","SurveyID":"SV_123456789"}Required ParametersThe following parameters are required for all requests:
Parameter | Description |
---|---|
Request | The name of the API call to be made. |
User | Qualtrics username. |
Token | Qualtrics API token (see The Token). |
Format | The format of the response. Valid value are XML, JSON or JSONP unless otherwise noted. |
Version | The version of the API to use. |
JSONPCallback | Only required when Format is JSONP. The JSONP technique may be used by specifying a JavaScript callback. |
Parameter | Format | Description |
---|---|---|
JSONPCallback | JSONP | Required. The callback to be used when applying the JSONP technique. |
JSONPrettyPrint | JSON, JSONP | Optional. Outputs JSON so that it is more readable. |
302/307 (Redirect) | The request should be redirected to a new address. |
400 (Bad Request) | The request was invalid, because of missing or invalid parameters. |
401 (Unauthorized) | Authentication failed. For more details on authentication see Authentication. |
403 (Forbidden) | The user provided does not have permission to make the desired request. |
404 (Not Found) | The specified request does not exists. |
500 (Internal Server Error) | An unknown error occurred. Try the request later. |
The API uses a token based authentication system. This prevents you from needing to give out your password to third parties. Qualtrics needs both your user name and your token to authenticate your request. A request will be authenticated if a valid user name and token pair are passed as the 'User' and 'Token' parameters. Each Qualtrics user account can have one and only one token associated with it. The token never expires and can be regenerated at any time. To generate/regenerate your token:
Changes the user name from the old to the new user name
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
OldUserName | <String> | Yes | The user name to be changed | |
NewUserName | <String> | Yes | The new user name | |
UserNameIsEmail | [0,1] | No | 1 | Default is 1. If 1 the user name must be an email address and the user’s email address will be updated in the system. It is strongly recommended to use email addresses as the user name. |
This request creates a new Division for a given Organization
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
DivisionID | <String> | No | If specified, will use this DivisionID | |
Name | <String> | Yes | The name of this Division | |
DivisionAdmins | <String> | No | The UserIDs of the desired Division Admins, passed as an array |
Create a new user
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
NewUsername | <String> | Yes | The name of the new user | |
NewPassword | <String> | Yes | Password of new user | |
FirstName | <String> | Yes | User’s first name | |
LastName | <String> | Yes | User’s last name | |
<String> | Yes | User’s email | ||
Organization | <String> | Yes | Organization ID (Brand ID) | |
Type | <String> | Yes | User Type | |
DivisionID | <String> | No | Division ID |
Gets all the User IDs for a Brand and/or Division To use this you must be the organization administrator or higher.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
Organization | <String> | No | Specifies the Organization ID from which to obtain the User IDs. | |
Division | <String> | No | (Optional) Specifies the Division ID from which to filter the User IDs. | |
Offset | <String> | No | The index from which to begin the search. (Requires that a limit is provided as well) | |
Limit | <String> | No | The maximum number of users to return. | |
IncludeUserStats | [0,1] | No | 0 | (Optional) Set to 1 to include additional details and usage stats, including: total number of surveys, number of active surveys, and last survey response date. Note that this can significantly increase response time for especially large brands |
Updates the specified User's information, based on UserID. To use this you must be the organization administrator or higher. For security reasons, you cannot set passwords for users other than yourself.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
UserID | <String> | Yes | ID of the user | |
FirstName | <String> | No | First Name of user | |
LastName | <String> | No | Last Name of user | |
NewUsername | <String> | No | New Username of user | |
NewPassword | <String> | No | New Password of user (can only set your own) | |
<String> | No | New Email of user | ||
Division | <String> | No | New Division ID of user | |
UserType | <String> | No | New User Type | |
Status | {Active, Disabled, NotVerified} | No | Updated Status for the user | |
Permissions | <String> | No | JSON String representing the user permissions |
Get A Creative
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
CreativeID | <String> | Yes | The Creative ID | |
ZoneID | <String> | Yes | The Creative's Zone | |
Editing | [0,1] | No | 0 | Defaults to 0 if not present |
Get Creative Stats
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
CreativeID | <String> | Yes | The Creative ID | |
StartDate | YYYY-MM-DD | Yes | Start date | |
EndDate | YYYY-MM-DD | Yes | End date | |
TimeZone | <String> | No | America/Denver | The timezone to aggregate responses relative to. http://php.net/manual/en/timezones.php |
DataType | {Impressions, Clicks} | No | Impressions | Impressions, Clicks |
Interval | {Hour, Day, Month} | No | Day | Hour, Day, Month |
Activate an Intercept
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
ZoneID | <String> | Yes | The Zone ID | |
InterceptID | <String> | Yes | The Site Intercept ID |
Deactivate an Intercept
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
ZoneID | <String> | Yes | The Zone ID | |
InterceptID | <String> | Yes | The Site Intercept ID |
Get Intercept Stats
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
InterceptID | <String> | Yes | The Intercept ID | |
StartDate | YYYY-MM-DD | Yes | Start date | |
EndDate | YYYY-MM-DD | Yes | End date | |
TimeZone | <String> | No | America/Denver | The timezone to aggregate responses relative to. http://php.net/manual/en/timezones.php |
DataType | {Impressions, Clicks} | No | Impressions | Impressions, Clicks |
Interval | {Hour, Day, Month} | No | Day | Hour, Day, Month |
Get Intercepts Status
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
InterceptID | <String> | Yes | The Site Intercept ID |
This request creates a new Message
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
LibraryID | <String> | Yes | The ID of the Library containing the Message | |
Name | <String> | Yes | If specified, the name of the message | |
Category | {InviteEmails, InactiveSurveyMessages, ReminderEmails, ThankYouEmails, EndOfSurveyMessages, GeneralMessages, ValidationMessages, LookAndFeelMessages, EmailSubject, SMSInvite, SMSReminder, SMSThankYou, TicketMessages, EvaluatorInvite, EvaluatorReminder, TSSubjectLine} | Yes | The category of the new message | |
Message | <String> | Yes | The text of the message to set; either an array mapping language codes to messages, or a single message to be set using the Language parameter | |
Language | <String> | No | If specified, will set the translation in the specified language |
Removes A Graphic from a Library
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.4 | Yes | The version of the API to use. | |
LibraryID | <String> | Yes | The ID of the Library that holds the graphic | |
ImageID | <String> | Yes | The Image ID to Remove |
This request removes a Library Message based on ID
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.4 | Yes | The version of the API to use. | |
LibraryID | <String> | Yes | The ID of the Library containing the Message | |
MessageID | <String> | Yes | The ID of the Message to Remove |
This request fetches the designated Message file
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
LibraryID | <String> | Yes | The ID of the Library containing the Message | |
MessageID | <String> | Yes | The ID of the Message desired | |
Language | <String> | No | If specified, will fetch the translation in the specified language (if available) |
Returns a list of library message ids.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
LibraryID | <String> | Yes | The ID of the Library containing the Message |
Gets all the IDs for a Library, such as message, image or panel
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.4 | Yes | The version of the API to use. | |
LibraryID | <String> | Yes | The ID of the Library |
This request sets the designated Message text
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
LibraryID | <String> | Yes | The ID of the Library containing the Message | |
MessageID | <String> | Yes | The ID of the Message desired | |
Language | <String> | No | If specified, will set the translation in the specified language | |
Message | <String> | Yes | The text of the message to set; either an array mapping language codes to messages, or a single message to be set using the Language parameter | |
Name | <String> | No | If specified, will rename the message |
Uploads a Graphic to a Library
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.4 | Yes | The version of the API to use. | |
LibraryID | <String> | Yes | The ID of the Library to hold the graphic | |
Description | <String> | Yes | The name of the graphic | |
Category | <String> | No | Unassigned | The Category to upload the graphic into |
URL | <URL> | No | If set will expect the graphic to be located at this URL | |
FileContents | <String> | No | If set will expect the Graphic File to be read into this parameter |
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
ReportID | <String> | Yes | The Report ID for the report containing the Predefined Data Source.) | |
DataSourceID | <String> | Yes | The Data Source ID for the Predefined Data Source to be updated. | |
PredefinedData | <String> | No | A string of JSON-encoded predefined data to update the data source with | |
URL | <URL> | No | The URL of an JSON file containing the new Data Source data |
Returns all of the response data for a survey in the original (legacy) data format.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, CSV, HTML, JSON} | Yes | The format the data will be transmitted in. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The survey you will be getting the responses for. | |
LastResponseID | <String> | No | Each response is recorded sequentially. When specified it will export all responses after the id specified. | |
Limit | <String> | No | The maximum number of responses to return. | |
Offset | <String> | No | The starting index (inclusive) from which the responses will be retrieved. Combine with Limit to achieve pagination for responses in progress only. | |
ResponseID | <String> | No | The response id of an individual response. ResponseSetID, SubgroupID, StartDate, and EndDate should not be specified when using this parameter. | |
ResponseSetID | <String> | No | The response set you want to retrieve the data from. If not specified it will use the default response set. | |
SubgroupID | <String> | No | The subgroup you want to download the data for. | |
StartDate | YYYY-MM-DD hh:mm:ss | No | The date the responses must be after. | |
EndDate | YYYY-MM-DD hh:mm:ss | No | The date the responses must be before. | |
Questions | <String>%2C<String> | No | A comma separated list of question ids. Will filter the data to only include those specific questions. | |
Labels | [0,1] | No | 0 | If 1 (true) the label for choices and answers will be used and not the id. The default is 0. |
ExportTags | [0,1] | No | 0 | If 1 (true) the export tags will be used rather than the V labels. The default is 0. |
ExportQuestionIDs | [0,1] | No | 0 | If 1 (true) the internal question IDs will be used rather than export tags or the V labels. The default is 0. |
LocalTime | [0,1] | No | 1 | If 1 {true} the StartDate and EndDate will be exported using the specified user’s local time zone. |
UnansweredRecode | <String> | No | The recode value for seen but unanswered questions. If not specified a blank value is put in for these questions. | |
PanelID | <String> | No | If supplied it will only get the results for members of that specific panel. | |
ResponsesInProgress | [0,1] | No | 0 | If 1 (true), will retrieve the responses in progress (and only the responses in progress). |
LocationData | [0,1] | No | 0 | If 1 (true), will export location data. |
Activates the specified Survey
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The Survey ID to activate |
Deactivates the specified Survey
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The Survey ID to deactivate |
Gets all the quotas for a given survey.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.1 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | Survey ID of the survey in question. You must have permission to view responses on the given survey. |
This request returns an xml export of the survey. Version 2.2 includes an enhanced embedded data export.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Version | Version number like 'X.X' >= 2.2 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The ID of the survey whose xml definition will be retrieved. | |
Language | <String> | No | The language code for the language you want to export the survey in. If not specified it will use the default language. Qualtrics generally adheres to the ISO 639-1 Standard for 2 character Language codes (http://en.wikipedia.org/wiki/ISO_639-1, ex. EN = English, ES = Spanish, DE = German). | |
ExportLogic | [0,1] | No | 0 | EXPERIMENTAL. This is an experimental feature and subject to change without notice. Default 0. If 1 it will export the logic. |
This request returns an xml export of the survey. Version 2.3 includes an enhanced embedded data export, compound questions, and extended validation information. Additionally, choices are no longer ordered by choiceID, but rather by the order they appear in the survey.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Version | Version number like 'X.X' >= 2.3 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The ID of the survey whose xml definition will be retrieved. | |
Language | <String> | No | The language code for the language you want to export the survey in. If not specified it will use the default language. Qualtrics generally adheres to the ISO 639-1 Standard for 2 character Language codes (http://en.wikipedia.org/wiki/ISO_639-1, ex. EN = English, ES = Spanish, DE = German). | |
ExportLogic | [0,1] | No | 0 | EXPERIMENTAL. This is an experimental feature and subject to change without notice. Default 0. If 1 it will export the logic. |
This request returns an xml export of the survey.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The ID of the survey whose xml definition will be retrieved. | |
Language | <String> | No | The language code for the language you want to export the survey in. If not specified it will use the default language. Qualtrics generally adheres to the ISO 639-1 Standard for 2 character Language codes (http://en.wikipedia.org/wiki/ISO_639-1, ex. EN = English, ES = Spanish, DE = German). | |
ExportLogic | [0,1] | No | 0 | EXPERIMENTAL. This is an experimental feature and subject to change without notice. Default 0. If 1 it will export the logic. |
This request returns the name of the survey as well as some addition information
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The ID of the survey. | |
Language | <String> | No | The language code for the language you want to export the survey in. If not specified it will use the default language. |
This request returns a list of all the surveys for the user.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. |
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
ImportFormat | {TXT, QSF, DOC, DOCX} | No | QSF | The format of the import. |
Name | <String> | Yes | The survey name. | |
Activate | [0,1] | No | 0 | If FALSE (0) will be created in an Inactive state. If TRUE (1) will be created in an active state. |
URL | <URL> | No | If present it will import the file from the given URL. | |
FileContents | <String> | No | The contents of the file posted using multipart/form-data | |
OwnerID | <String> | No | UserID of caller | Specify the owner of this survey (a valid UserID or BrandID, Division and Group owned surveys are deprecated). Default owner is the user making this call. |
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The ID of the Survey for which we are updating translations. | |
URL | <URL> | No | If present it will import the file from the given URL. | |
FileContents | <String> | No | The contents of the file posted using multipart/form-data | |
AsAdmin | [0,1] | No | TRUE if making this call on behalf of a survey that is owned by someone else in your org (As an Admin) |
Sets the survey options.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The survey options to be changed. | |
Active | [0,1] | No | Activates or Deactivates the survey if specified. | |
CloseSessions | [0,1] | No | 1 | When Active=0 this can be used to close all active sessions. |
Expiration | [0,1] | No | Allows the survey to expire. The survey will only be valid between ExpirationStartDate and ExpirationEndDate. | |
ExpirationStartDate | YYYY-MM-DD hh:mm:ss | No | When Expiration=1 the first date the survey will be valid. | |
ExpirationEndDate | YYYY-MM-DD hh:mm:ss | No | When Expiration=1 the last date day the survey will be valid. | |
SourceTimeZone | <String> | No |
This request transfers survey ownership to the specified user
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The ID of the Survey to change ownership | |
SurveyName | <String> | No | The new name of the survey, if left empty will keep the current name | |
OwnerID | <String> | Yes | The original owner of the survey | |
NewOwnerID | <String> | Yes | The user that will receive ownership |
Enables a Zone. Zones that are disabled do not receive requests
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
ZoneID | <String> | Yes | The Zone ID | |
BrandID | <String> | Yes | The Brand ID |
Get Zone Stats
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
ZoneID | <String> | Yes | The Zone ID | |
StartDate | YYYY-MM-DD | Yes | Start date | |
EndDate | YYYY-MM-DD | Yes | End date | |
TimeZone | <String> | No | America/Denver | The timezone to aggregate responses relative to. http://php.net/manual/en/timezones.php |
DataType | {Impressions, Clicks, PageViews, Requests} | No | PageViews | Impressions, Clicks, PageViews |
Interval | {Hour, Day, Month} | No | Day | Hour, Day, Month |
Get the Zone's status
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
ZoneID | <String> | Yes | The Zone ID | |
BrandID | <String> | Yes | The Brand ID |
The Qualtrics REST API allows you to query our system using a simple URL syntax. All requests are simple GET or POST requests that return XML or JSON. The REST API allows you to interact with any part of the Qualtrics system allowing for full integration with our client’s systems.Making a RequestTo make a request to the API you need both a root URL and some basic parameters.Root URLThe root URL for communicating with the Qualtrics system is: https://yourdatacenterid.qualtrics.com/WRAPI/SiteIntercept/api.php To find the correct value for yourdatacenterid please follow these instructions (Note these instructions are from the most recent version of the API). Please note the use of the https protocol. This ensures that all data that travels between the server and your program are encrypted. This protects your credentials and the transmitted data.ParametersThe parameters are passed using the standard query string syntax. All parameters and values are case sensitive. For more information see Query String Documentation: http://en.wikipedia.org/wiki/Query_string The data can be passed in the URL itself (GET parameters) or be passed in the body of the request (POST parameters). Both methods follow the same query string syntax. Example: https://yourdatacenterid.qualtrics.com/WRAPI/SiteIntercept/api.php?Request=getLegacyResponseData&User=apiuser&Token=lksjdfJdJklajdf3asdae3&Format=XML&SurveyID=SV_123456789 JSON parameters Parameters may also be passed as JSON data through the request body. If using a JSON request body, you must specify a Content-Type header of 'application/json' or 'text/json'. You may use both url parameters and JSON parameters with the same request. Example: Request URI: https://yourdatacenterid.qualtrics.com/WRAPI/SiteIntercept/api.php?Request=getLegacyResponseData&Format=XML Content-Type: application/json Request Body: {"User":"apiuser","Token":"lksjdfJdJklajdf3asdae3","SurveyID":"SV_123456789"}Required ParametersThe following parameters are required for all requests:
Parameter | Description |
---|---|
Request | The name of the API call to be made. |
User | Qualtrics username. |
Token | Qualtrics API token (see The Token). |
Format | The format of the response. Valid value are XML, JSON or JSONP unless otherwise noted. |
Version | The version of the API to use. |
JSONPCallback | Only required when Format is JSONP. The JSONP technique may be used by specifying a JavaScript callback. |
Parameter | Format | Description |
---|---|---|
JSONPCallback | JSONP | Required. The callback to be used when applying the JSONP technique. |
JSONPrettyPrint | JSON, JSONP | Optional. Outputs JSON so that it is more readable. |
302/307 (Redirect) | The request should be redirected to a new address. |
400 (Bad Request) | The request was invalid, because of missing or invalid parameters. |
401 (Unauthorized) | Authentication failed. For more details on authentication see Authentication. |
403 (Forbidden) | The user provided does not have permission to make the desired request. |
404 (Not Found) | The specified request does not exists. |
500 (Internal Server Error) | An unknown error occurred. Try the request later. |
The API uses a token based authentication system. This prevents you from needing to give out your password to third parties. Qualtrics needs both your user name and your token to authenticate your request. A request will be authenticated if a valid user name and token pair are passed as the 'User' and 'Token' parameters. Each Qualtrics user account can have one and only one token associated with it. The token never expires and can be regenerated at any time. To generate/regenerate your token:
Changes the user name from the old to the new user name
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
OldUserName | <String> | Yes | The user name to be changed | |
NewUserName | <String> | Yes | The new user name | |
UserNameIsEmail | [0,1] | No | 1 | Default is 1. If 1 the user name must be an email address and the user’s email address will be updated in the system. It is strongly recommended to use email addresses as the user name. |
This request creates a new Division for a given Organization
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
DivisionID | <String> | No | If specified, will use this DivisionID | |
Name | <String> | Yes | The name of this Division | |
DivisionAdmins | <String> | No | The UserIDs of the desired Division Admins, passed as an array |
Create a new user
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
NewUsername | <String> | Yes | The name of the new user | |
NewPassword | <String> | Yes | Password of new user | |
FirstName | <String> | Yes | User’s first name | |
LastName | <String> | Yes | User’s last name | |
<String> | Yes | User’s email | ||
Organization | <String> | Yes | Organization ID (Brand ID) | |
Type | <String> | Yes | User Type | |
DivisionID | <String> | No | Division ID |
Gets all the User IDs for a Brand and/or Division To use this you must be the organization administrator or higher.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
Organization | <String> | No | Specifies the Organization ID from which to obtain the User IDs. | |
Division | <String> | No | (Optional) Specifies the Division ID from which to filter the User IDs. | |
Offset | <String> | No | The index from which to begin the search. (Requires that a limit is provided as well) | |
Limit | <String> | No | The maximum number of users to return. | |
IncludeUserStats | [0,1] | No | 0 | (Optional) Set to 1 to include additional details and usage stats, including: total number of surveys, number of active surveys, and last survey response date. Note that this can significantly increase response time for especially large brands |
Updates the specified User's information, based on UserID. To use this you must be the organization administrator or higher. For security reasons, you cannot set passwords for users other than yourself.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
UserID | <String> | Yes | ID of the user | |
FirstName | <String> | No | First Name of user | |
LastName | <String> | No | Last Name of user | |
NewUsername | <String> | No | New Username of user | |
NewPassword | <String> | No | New Password of user (can only set your own) | |
<String> | No | New Email of user | ||
Division | <String> | No | New Division ID of user | |
UserType | <String> | No | New User Type | |
Status | {Active, Disabled, NotVerified} | No | Updated Status for the user | |
Permissions | <String> | No | JSON String representing the user permissions |
Get A Creative
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
CreativeID | <String> | Yes | The Creative ID | |
ZoneID | <String> | Yes | The Creative's Zone | |
Editing | [0,1] | No | 0 | Defaults to 0 if not present |
Get Creative Stats
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
CreativeID | <String> | Yes | The Creative ID | |
StartDate | YYYY-MM-DD | Yes | Start date | |
EndDate | YYYY-MM-DD | Yes | End date | |
TimeZone | <String> | No | America/Denver | The timezone to aggregate responses relative to. http://php.net/manual/en/timezones.php |
DataType | {Impressions, Clicks} | No | Impressions | Impressions, Clicks |
Interval | {Hour, Day, Month} | No | Day | Hour, Day, Month |
Activate an Intercept
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
ZoneID | <String> | Yes | The Zone ID | |
InterceptID | <String> | Yes | The Site Intercept ID |
Deactivate an Intercept
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
ZoneID | <String> | Yes | The Zone ID | |
InterceptID | <String> | Yes | The Site Intercept ID |
Get Intercept Stats
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
InterceptID | <String> | Yes | The Intercept ID | |
StartDate | YYYY-MM-DD | Yes | Start date | |
EndDate | YYYY-MM-DD | Yes | End date | |
TimeZone | <String> | No | America/Denver | The timezone to aggregate responses relative to. http://php.net/manual/en/timezones.php |
DataType | {Impressions, Clicks} | No | Impressions | Impressions, Clicks |
Interval | {Hour, Day, Month} | No | Day | Hour, Day, Month |
Get Intercepts Status
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
InterceptID | <String> | Yes | The Site Intercept ID |
This request creates a new Message
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
LibraryID | <String> | Yes | The ID of the Library containing the Message | |
Name | <String> | Yes | If specified, the name of the message | |
Category | {InviteEmails, InactiveSurveyMessages, ReminderEmails, ThankYouEmails, EndOfSurveyMessages, GeneralMessages, ValidationMessages, LookAndFeelMessages, EmailSubject, SMSInvite, SMSReminder, SMSThankYou, TicketMessages, EvaluatorInvite, EvaluatorReminder, TSSubjectLine} | Yes | The category of the new message | |
Message | <String> | Yes | The text of the message to set; either an array mapping language codes to messages, or a single message to be set using the Language parameter | |
Language | <String> | No | If specified, will set the translation in the specified language |
Removes A Graphic from a Library
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.4 | Yes | The version of the API to use. | |
LibraryID | <String> | Yes | The ID of the Library that holds the graphic | |
ImageID | <String> | Yes | The Image ID to Remove |
This request removes a Library Message based on ID
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.4 | Yes | The version of the API to use. | |
LibraryID | <String> | Yes | The ID of the Library containing the Message | |
MessageID | <String> | Yes | The ID of the Message to Remove |
This request fetches the designated Message file
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
LibraryID | <String> | Yes | The ID of the Library containing the Message | |
MessageID | <String> | Yes | The ID of the Message desired | |
Language | <String> | No | If specified, will fetch the translation in the specified language (if available) |
Returns a list of library message ids.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
LibraryID | <String> | Yes | The ID of the Library containing the Message |
Gets all the IDs for a Library, such as message, image or panel
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.4 | Yes | The version of the API to use. | |
LibraryID | <String> | Yes | The ID of the Library |
This request sets the designated Message text
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
LibraryID | <String> | Yes | The ID of the Library containing the Message | |
MessageID | <String> | Yes | The ID of the Message desired | |
Language | <String> | No | If specified, will set the translation in the specified language | |
Message | <String> | Yes | The text of the message to set; either an array mapping language codes to messages, or a single message to be set using the Language parameter | |
Name | <String> | No | If specified, will rename the message |
Uploads a Graphic to a Library
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.4 | Yes | The version of the API to use. | |
LibraryID | <String> | Yes | The ID of the Library to hold the graphic | |
Description | <String> | Yes | The name of the graphic | |
Category | <String> | No | Unassigned | The Category to upload the graphic into |
URL | <URL> | No | If set will expect the graphic to be located at this URL | |
FileContents | <String> | No | If set will expect the Graphic File to be read into this parameter |
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
ReportID | <String> | Yes | The Report ID for the report containing the Predefined Data Source.) | |
DataSourceID | <String> | Yes | The Data Source ID for the Predefined Data Source to be updated. | |
PredefinedData | <String> | No | A string of JSON-encoded predefined data to update the data source with | |
URL | <URL> | No | The URL of an JSON file containing the new Data Source data |
Returns all of the response data for a survey in the original (legacy) data format.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, CSV, HTML, JSON} | Yes | The format the data will be transmitted in. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The survey you will be getting the responses for. | |
LastResponseID | <String> | No | Each response is recorded sequentially. When specified it will export all responses after the id specified. | |
Limit | <String> | No | The maximum number of responses to return. | |
Offset | <String> | No | The starting index (inclusive) from which the responses will be retrieved. Combine with Limit to achieve pagination for responses in progress only. | |
ResponseID | <String> | No | The response id of an individual response. ResponseSetID, SubgroupID, StartDate, and EndDate should not be specified when using this parameter. | |
ResponseSetID | <String> | No | The response set you want to retrieve the data from. If not specified it will use the default response set. | |
SubgroupID | <String> | No | The subgroup you want to download the data for. | |
StartDate | YYYY-MM-DD hh:mm:ss | No | The date the responses must be after. | |
EndDate | YYYY-MM-DD hh:mm:ss | No | The date the responses must be before. | |
Questions | <String>%2C<String> | No | A comma separated list of question ids. Will filter the data to only include those specific questions. | |
Labels | [0,1] | No | 0 | If 1 (true) the label for choices and answers will be used and not the id. The default is 0. |
ExportTags | [0,1] | No | 0 | If 1 (true) the export tags will be used rather than the V labels. The default is 0. |
ExportQuestionIDs | [0,1] | No | 0 | If 1 (true) the internal question IDs will be used rather than export tags or the V labels. The default is 0. |
LocalTime | [0,1] | No | 1 | If 1 {true} the StartDate and EndDate will be exported using the specified user’s local time zone. |
UnansweredRecode | <String> | No | The recode value for seen but unanswered questions. If not specified a blank value is put in for these questions. | |
PanelID | <String> | No | If supplied it will only get the results for members of that specific panel. | |
ResponsesInProgress | [0,1] | No | 0 | If 1 (true), will retrieve the responses in progress (and only the responses in progress). |
LocationData | [0,1] | No | 0 | If 1 (true), will export location data. |
Activates the specified Survey
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The Survey ID to activate |
Deactivates the specified Survey
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The Survey ID to deactivate |
Gets all the quotas for a given survey.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.1 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | Survey ID of the survey in question. You must have permission to view responses on the given survey. |
This request returns an xml export of the survey. Version 2.2 includes an enhanced embedded data export.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Version | Version number like 'X.X' >= 2.2 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The ID of the survey whose xml definition will be retrieved. | |
Language | <String> | No | The language code for the language you want to export the survey in. If not specified it will use the default language. Qualtrics generally adheres to the ISO 639-1 Standard for 2 character Language codes (http://en.wikipedia.org/wiki/ISO_639-1, ex. EN = English, ES = Spanish, DE = German). | |
ExportLogic | [0,1] | No | 0 | EXPERIMENTAL. This is an experimental feature and subject to change without notice. Default 0. If 1 it will export the logic. |
This request returns an xml export of the survey. Version 2.3 includes an enhanced embedded data export, compound questions, and extended validation information. Additionally, choices are no longer ordered by choiceID, but rather by the order they appear in the survey.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Version | Version number like 'X.X' >= 2.3 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The ID of the survey whose xml definition will be retrieved. | |
Language | <String> | No | The language code for the language you want to export the survey in. If not specified it will use the default language. Qualtrics generally adheres to the ISO 639-1 Standard for 2 character Language codes (http://en.wikipedia.org/wiki/ISO_639-1, ex. EN = English, ES = Spanish, DE = German). | |
ExportLogic | [0,1] | No | 0 | EXPERIMENTAL. This is an experimental feature and subject to change without notice. Default 0. If 1 it will export the logic. |
This request returns an xml export of the survey.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The ID of the survey whose xml definition will be retrieved. | |
Language | <String> | No | The language code for the language you want to export the survey in. If not specified it will use the default language. Qualtrics generally adheres to the ISO 639-1 Standard for 2 character Language codes (http://en.wikipedia.org/wiki/ISO_639-1, ex. EN = English, ES = Spanish, DE = German). | |
ExportLogic | [0,1] | No | 0 | EXPERIMENTAL. This is an experimental feature and subject to change without notice. Default 0. If 1 it will export the logic. |
This request returns the name of the survey as well as some addition information
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The ID of the survey. | |
Language | <String> | No | The language code for the language you want to export the survey in. If not specified it will use the default language. |
This request returns a list of all the surveys for the user.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. |
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
ImportFormat | {TXT, QSF, DOC, DOCX} | No | QSF | The format of the import. |
Name | <String> | Yes | The survey name. | |
Activate | [0,1] | No | 0 | If FALSE (0) will be created in an Inactive state. If TRUE (1) will be created in an active state. |
URL | <URL> | No | If present it will import the file from the given URL. | |
FileContents | <String> | No | The contents of the file posted using multipart/form-data | |
OwnerID | <String> | No | UserID of caller | Specify the owner of this survey (a valid UserID or BrandID, Division and Group owned surveys are deprecated). Default owner is the user making this call. |
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The ID of the Survey for which we are updating translations. | |
URL | <URL> | No | If present it will import the file from the given URL. | |
FileContents | <String> | No | The contents of the file posted using multipart/form-data | |
AsAdmin | [0,1] | No | TRUE if making this call on behalf of a survey that is owned by someone else in your org (As an Admin) |
Sets the survey options.
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The survey options to be changed. | |
Active | [0,1] | No | Activates or Deactivates the survey if specified. | |
CloseSessions | [0,1] | No | 1 | When Active=0 this can be used to close all active sessions. |
Expiration | [0,1] | No | Allows the survey to expire. The survey will only be valid between ExpirationStartDate and ExpirationEndDate. | |
ExpirationStartDate | YYYY-MM-DD hh:mm:ss | No | When Expiration=1 the first date the survey will be valid. | |
ExpirationEndDate | YYYY-MM-DD hh:mm:ss | No | When Expiration=1 the last date day the survey will be valid. | |
SourceTimeZone | <String> | No |
This request transfers survey ownership to the specified user
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
SurveyID | <String> | Yes | The ID of the Survey to change ownership | |
SurveyName | <String> | No | The new name of the survey, if left empty will keep the current name | |
OwnerID | <String> | Yes | The original owner of the survey | |
NewOwnerID | <String> | Yes | The user that will receive ownership |
Enables a Zone. Zones that are disabled do not receive requests
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
ZoneID | <String> | Yes | The Zone ID | |
BrandID | <String> | Yes | The Brand ID |
Get Zone Stats
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
ZoneID | <String> | Yes | The Zone ID | |
StartDate | YYYY-MM-DD | Yes | Start date | |
EndDate | YYYY-MM-DD | Yes | End date | |
TimeZone | <String> | No | America/Denver | The timezone to aggregate responses relative to. http://php.net/manual/en/timezones.php |
DataType | {Impressions, Clicks, PageViews, Requests} | No | PageViews | Impressions, Clicks, PageViews |
Interval | {Hour, Day, Month} | No | Day | Hour, Day, Month |
Get the Zone's status
Name | Value(s)/Formatting | Required | Default | Description |
---|---|---|---|---|
User | <String> | Yes | The username. | |
Token | <String> | Yes | API token for the user. | |
Format | {XML, JSON, JSONP} | Yes | The desired format of the response. | |
Version | Version number like 'X.X' >= 2.0 | Yes | The version of the API to use. | |
ZoneID | <String> | Yes | The Zone ID | |
BrandID | <String> | Yes | The Brand ID |