cancel
Showing results for 
Search instead for 
Did you mean: 
woutervanmulken
Community Member

No acces to api while logged out with user generated token

Jump to solution

I'm having a problem with the user generated acces token. I have generated a acces token manually as a student in the settings and when i try to call the api i have to be logged in to canvas to be able to acces the API. So when i call the api even with the ?acces_token variable while logged out i get a 401 error.

Am i doing something wrong, or does this have something to do with me being a student ?

Labels (1)
1 Solution

Accepted Solutions
aclement
Community Participant

You should be able to test that you are using your access token correctly by just directing your browser to this url: https://{{your canvas domain here}}/api/v1/courses?access_token={{your access token}}. Does that work?

View solution in original post

2 Replies
aclement
Community Participant

You should be able to test that you are using your access token correctly by just directing your browser to this url: https://{{your canvas domain here}}/api/v1/courses?access_token={{your access token}}. Does that work?

View solution in original post

woutervanmulken
Community Member

Hi @Alex,

i found the problem just now. And i've been methodically misspelling access_token with one s instead of two -.-

Thank you very much. It now works.