Access CanvasAPI- Invalid Access Token

Jump to solution
janagamn
Community Explorer

Hello- I am new to using Canvas API. I followed this community forums to understand to how to generate tokens and make an browser based API Call.

I am an Admin on our canvas account. I followed the below link and generated a token.

https://community.canvaslms.com/t5/Instructor-Guide/How-do-I-manage-API-access-tokens-as-an-instruct...

Then, I went to the below URL :

https://youraccountname.instructure.com/doc/api/live#!/

I input my token at the top of the page and clicked on "Save".

I scrolled down to "Grading Standards" and clicked to expand "GET /V1/accounts/{accounts_id}/grading_standards

Enetred Account_id as "1" and clicked on "Try it out".

Below is what I received .

{ "errors": [ { "message": "Invalid access token." } ] }

I might be missing something. Can someone help me with this?

Labels (3)
0 Likes
1 Solution
janagamn
Community Explorer

This is resovled. My assumption that account_id= 1 is wrong. I got the correct account_id and it works.

View solution in original post