List File Versions
Retreive a list of File Versions for a File.
GET https://{region}.getafile.io/api/v1/teams/:team_id/fileversion/index/:file_id
This endpoint allows you to get the Versions for a File.
Path Parameters
Name
Type
Description
file_id*
integer
ID of the File
team_id*
integer
ID of the Team
[
{
"id": 1,
"file_id": 56,
"user_id": 1,
"filename": "TestVersion.pdf",
"active": 0,
"verified": 0,
"created_at": "2020-10-04T23:22:40.000Z",
"updated_at": "2020-10-04T23:22:40.000Z",
"thumbnail": "/api/fileversion/thumbnail/111",
"url": "/api/fileversion/111"
},
{
"id": 2,
"file_id": 56,
"user_id": 1,
"filename": "Test_2.pdf",
"active": 1,
"verified": 1,
"created_at": "2020-10-03T02:02:12.000Z",
"updated_at": "2020-10-03T22:36:35.000Z",
"thumbnail": "/api/fileversion/thumbnail/98",
"url": "/api/fileversion/98",
"content": null,
"content_minified": null
}
]Last updated
Was this helpful?