Hey folks!
I'm setting up an external Web Service Task via survey Actions but I'm hitting a wall. The external API I'm posting to (Smartsheet) requires a token. I have put the token in the web request using the "Auth" dropdown field as instructed by the Qualtrics documentation. The response I get from Smartsheet is "403 - You are not authorized to perform this action."
To test that I was understanding the request correctly, I tried the request using Python's request module and succeeded. Here's the code for that (sensitive info redacted):
url = 'https://api.smartsheet.com/2.0/sheets/[sheetId]/rows'
headers = {
"Authorization": "Bearer [API token]",
"Content-Type": "application/json"
}
json = {
"parentId": 3982896953616260,
"cells": [
{
"columnId": 6892958455752580,
"value": "some value"
}
]
}
response = requests.post(url=url, json=json, headers=headers)
Also, the Web Service Task does succeed if I put the API token in the headers of the task (see screenshot):
I suppose I could just leave the token in the headers like that, but I'm not super keen on the token sitting very visibly in the headers. Is there a better way I could be using the "Auth" dropdown or Qualtrics' requests?
Any help appreciated!
Web Service Task to external platform failing authorization
Sign up
Already have an account? Login
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join.
No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login with Qualtrics
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join. No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login to the Community
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join.
No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login with Qualtrics
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join. No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
