New to API : With https://---.qualtrics.com/API/v3/whoami 403 Error | XM Community
Solved

New to API : With https://---.qualtrics.com/API/v3/whoami 403 Error

  • 29 June 2021
  • 4 replies
  • 306 views

Badge +1

Greetings
I am new to using the API.
I have created a user with scope manage:all
When using PostMan I am able to login and get bearer token but if I try the whoami call I get
    "meta": {
        "httpStatus": "403 - Forbidden",
        "error": {
            "errorMessage": "insufficient_scope",
            "errorCode": "AUTH_13.0"
        },
So the question is - what am I doing wrong

icon

Best answer by deJagerF 29 June 2021, 13:52

View original

4 replies

Badge +1

image.pngI have even tried to update the token request to include the scope and grant_tupe but then I get

Bad Request


Your browser sent a request that this server could not understand.
Reference #7.1d9f3617.1624966935.0

Badge +1

Solved by deleting the raw text value

Userlevel 1
Badge +3

https://community.qualtrics.com/XMcommunity/discussion/comment/38713#Comment_38713How? I'm getting the exact same error.
I'm able to passed oauth2 and obtain a bearer token. When I try the whoami endpoint, I got the exact same error:
{"meta":{"httpStatus":"403 - Forbidden","error":{"errorMessage":"insufficient_scope","errorCode":"AUTH_13.0"},"requestId":"18f74174-bb77-4e94-a0d5-693b6da384f0"}}

Userlevel 1
Badge +3

https://community.qualtrics.com/XMcommunity/discussion/comment/38739#Comment_38739OK, solved my own problem.
In addition to the 'grant_type' parameter in the oauth2 call, I have to add 'scope' = manage:all in it

Leave a Reply