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

{
    "$data": {
        "type": "file",
        "url": "https://example.com/files/document.pdf",
        "title": "Course Syllabus",
        "size": 102400,
        "created_date": "2023-01-15T10:00:00.000Z",
        "updated_date": "2023-01-15T10:00:00.000Z",
        "properties": {}
    },
    "$request": "00000000-0000-0000-0000-000000000000"
}