Does trial account provide access to consume Qualtrics API's ? | XM Community
Skip to main content

Hi,
I am trying to use the API token I have generated from the Qualtrics web portal, and using the same code snippet provided (python version) in the site: https://api.qualtrics.com/ZG9jOjg3NjYzMg-api-key-authentication#how-to-find-your-token
I am getting a 404 resource not found error.
Can my account privileges be upgraded/elevated to have access to consume Qualtrics API's.
{
    "meta": {
        "requestId": "b8a107e0-0720-42a9-9239-1ecba2be3eee",
        "httpStatus": "404 - Not Found",
        "error": {
            "errorMessage": "The requested resource does not exist."
        }
    }
}
Please let me know.
Thank You!
Ranjith Venkata

Hi learngvrk,
API access is a paid feature, I'm not sure if it's included in a trial account but it's definitely not accessible to free accounts.
Assuming you do have access in your trial, are you sure your python code is correct? If you're receiving a 404 error it sounds like the URL is wrong.
Just using the URL in the example will not work. I'm not sure if this is your problem, but you need to provide the correct data center and an actual collection to query:
//from the example

//WRONG - this will not work!
url = "https://yourdatacenter.qualtrics.com/API/v3/:collection"

//RIGHT - you need to replace 'yourdatacenter' and ':collection' with appropriate values
url = "https://syd1.qualtrics.com/API/v3/directories"
//syd1 is for Sydney, Australia
//directories will look up directors on your account

You can find the correct datacenter ID in Account Settings -> Qualtrics IDs -> User.
The API reference document is much more useful for finding out what you can do with the API and has much better examples.
Good luck!


I changed the URL as you have pointed out. It looks like since I am using a trial account, I still do not have access to the endpoint. Here is the request result.
https://sjc1.qualtrics.com/API/v3/directories
{
    "meta": {
        "requestId": "f6a496e8-8816-48f7-9beb-fef5f2eea750",
        "httpStatus": "403 - Forbidden",
        "error": {
            "errorCode": "AuthZ_2.0",
            "errorMessage": "This user does not have access to this API endpoint."
        }
    }
}
Thank You!
Ranjith Gonugunta


Hi @learngvrk ,

 

I am also using the free trial and encountering the 403 response. Were you able to fix it, or is it not allowed during the trial period?

 

Thanks,

Natalie


Leave a Reply