For Developers

List Files

GET https://ed.link/api/v2/graph/classes/:class_id/files

Retrieve a list of Files associated with a given Class. These files represent content items that teachers have made available to students within the class.

Request Parameters

ParameterTypeDescription
class_idstringThe UUID of the desired Class.

This endpoint only supports the $first query parameter. Use the $next URL provided in each response to page through results.

Sample Request

axios.get(`https://ed.link/api/v2/graph/classes/${class_id}/files`, {
    headers: {
        authorization: `Bearer ${integration_access_token}`
    }
});

Sample Response

{
    "$data": [
        {
            "type": "file",
            "id": "00000000-0000-0000-0000-000000000000",
            "url": "https://example.com/files/document.pdf",
            "title": "Course Syllabus",
            "size": 102400,
            "description": "",
            "created_date": "2023-01-15T10:00:00.000Z",
            "updated_date": "2023-01-15T10:00:00.000Z",
            "share_mode": "view",
            "properties": {}
        },
        {
            "type": "file",
            "id": "00000000-0000-0000-0000-000000000000",
            "url": "https://ed.link/api/v2/graph/classes/00000000-0000-0000-0000-000000000000/files/00000000-0000-0000-0000-000000000000/download",
            "title": "Lecture 1 Slides",
            "size": null,
            "description": "",
            "identifiers": [
                {
                    "type": "brightspace_id",
                    "value": "Lecture 1 Slides"
                }
            ],
            "created_date": "2023-01-16T11:30:00.000Z",
            "updated_date": "2023-01-16T11:30:00.000Z",
            "share_mode": "view",
            "properties": {}
        }
    ],
    "$request": "00000000-0000-0000-0000-000000000000"
}

Support