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

deJagerF
deJagerF South AfricaCommunity Member, Qualtrics Brand Admin Qubie ✭
edited July 10 in Qualtrics API

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

Tagged:

Best Answer

  • deJagerF
    deJagerF South AfricaCommunity Member, Qualtrics Brand Admin Qubie ✭
    Accepted Answer

    Solved by deleting the raw text value

Answers

  • deJagerF
    deJagerF South AfricaCommunity Member, Qualtrics Brand Admin Qubie ✭

    I 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

  • alpa
    alpa Hong KongCommunity Member, Qualtrics Brand Admin Qubie ✭

    How? 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"}}

  • alpa
    alpa Hong KongCommunity Member, Qualtrics Brand Admin Qubie ✭

    OK, solved my own problem.

    In addition to the 'grant_type' parameter in the oauth2 call, I have to add 'scope' = manage:all in it