cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
JohnHawkins1
Community Member

Canvas API - Invalid access token

Hi,

I am trying to access the Canvas API via postman and getting the below error:

{
    "errors": [
        {
            "message""Invalid access token."
        }
    ]
}
 
I tried generating access token multiple times using Postman OAuth 2.0, still it keeps on throwing same error. And the canvas documentation doesn't have any information about how to deal with it.
 
Thanks
0 Kudos
1 Reply
jerry_nguyen
Community Contributor

@JohnHawkins1 

You will need to generate an access token through your account setting page (https://community.canvaslms.com/t5/Admin-Guide/How-do-I-manage-API-access-tokens-as-an-admin/ta-p/89)

Canvas_Get_Token.png

Then copy the token (step 4) to Postman as Bearer Token under Authorization

Canvas_Postman_API.png