For Developers

Get File

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

Retrieve information about a specific File associated with a given Class, visible to the current user.

Request Parameters

ParameterTypeDescription
class_idstringThe UUID of the desired Class.
file_idstringThe UUID of the desired File.

Sample Request

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

Sample Response

{
    "$request": "00000000-0000-0000-0000-000000000000",
    "$data": {
        "type": "file",
        "title": "test.png",
        "size": 10000,
        "created_date": "2025-01-21T06:42:44.665Z",
        "url": "https://ed.link/api/v2/my/classes/00000000-0000-0000-0000-000000000000/files/00000000-0000-0000-0000-000000000000/download",
        "description": "",
        "share_mode": "view",
        "properties": {
            "schoology": {
                "available": true,
                "published": true,
                "type": "image/png",
                "filename": "test.png",
                "extension": "png",
                "filesize": 10000
            }
        },
        "identifiers": [
            {
                "type": "schoology_id",
                "value": "123456789"
            }
        ],
        "rule_ids": [],
        "references": {},
        "id": "00000000-0000-0000-0000-000000000000"
    }
}

Supported Providers

  • blackboard
  • brightspace
  • canvas
  • google
  • schoology