Hi ,
I’m working on validating the API test cases for CANVAS Api and need suitable test data to verify the 200 OK status code responses. I am using free for teachers version account. PFA Ecel sheet about the end points I am checking for.
From your Excel sheet (you mentioned, but I haven’t seen it), typical endpoints for Canvas API validation include:
/api/v1/courses
/api/v1/courses/:course_id
/api/v1/users/self
/api/v1/accounts/self
/api/v1/courses/:course_id/assignments
/api/v1/courses/:course_id/sections
Prepare test data
Since you’re using a free account, some data might not exist yet. You need existing IDs to get 200 OK responses. Here’s how to prepare:. Get all courses (your account)
curl -X GET "https://<your_canvas_domain>/api/v1/courses" \-H "Authorization: Bearer <your_access_token>"
✅ No test data needed. Will return a list of courses you own or are enrolled in.
curl -X GET "https://<your_canvas_domain>/api/v1/courses/<course_id>" \-H "Authorization: Bearer <your_access_token>"
<course_id>
curl -X GET "https://<your_canvas_domain>/api/v1/users/self" \-H "Authorization: Bearer <your_access_token>"
✅ Always returns 200 OK for your user. . List assignments for a course
curl -X GET "https://<your_canvas_domain>/api/v1/courses/<course_id>/assignments" \-H "Authorization: Bearer <your_access_token>"
curl -X GET "https://<your_canvas_domain>/api/v1/courses/<course_id>/sections" \-H "Authorization: Bearer <your_access_token>"
<your_canvas_domain>
canvas.instructure.com
<your_access_token>
/courses/12345
Hello, I'm trying to utilize an API call to pull completed certificates and was hoping to download and store the certs as a backup. I can successfully run the API call but it will not allow me to view the certificate unless I access the URL while signed into an account where it's "my" cert. Is there a permissions setting…
https://api.badges.parchment.com/v2/users/{idOrEntityId} Hi. What type of ID should I be using to get the badges and pathway progress for a particular user? I have used all the SIS ID, or the ID as shown on the badger portal, but nothing is working. What kind of the ID does the API calls accept? please give an example.
Hello, We use PeopleSoft and developed an integration for retrieving grades from the Canvas API. It was working fine in dev and production but has since broken. The SSL handshake is failing according to this stack trace from the server : Apparently this can happen if the required certificates are missing, can anyone tell…
UI for weekly progression idea that rest in the Schedule tab of the **K-12 UI** of Canvas it's incomplete and I really would not take it and push it into instance but I am going to post it here because in the past people like @James && @robotcars || @Steve_25 have had terrific input in the past... maybe w/their eyes and…
I have a new React + Flask webapp. It has its own login for users to start using the app. I have added this as an external tool in Canvas. What I want initially is to see of canvas users can start using the webapp without having to login if they click on the external tool link in a canvas course. I have 2 methods…