Get Domain Files
Get a list of files for a domain in your account.
GEThttps://{region}.getafile.io/api/v1/teams/:team_id/file/index/:domain_id
Path Parameters
Name
Type
Description
domain_id*
integer
ID of the Domain
team_id*
integer
ID of the Team
Query Params
Name
Type
Description
type
string
Only these types of files: eg. document, image, css etc
trashed
number
1 - Show only trashed files 0 - Show only active files
[
{
"id": 93,
"user_id": 1,
"domain_id": 26,
"name": "test",
"path_id": 70,
"url": "test",
"fullurl": "/test/test",
"published": 1,
"type": "document",
"password": null,
"ips": null,
"description": null,
"external_id": null,
"created_at": "2024-03-03T11:39:04.000+10:00",
"updated_at": "2024-03-06T09:06:37.000+10:00",
"download_only": 0,
"team_id": 8,
"meta": {
"discoverable": 0,
"uri": {
"getafile": "https://testing.getafile.online/test/test",
"custom": [
"https://mycustom.domain.com/test/test"
]
}
},
"filereferrer": [
{
"id": 28,
"user_id": 1,
"team_id": 8,
"hostname": "example.canserve.com",
"created_at": "2024-12-19T13:23:15.000+10:00",
"updated_at": "2024-12-19T13:23:15.000+10:00"
}
],
"currentversion": {
"id": 263,
"file_id": 131,
"user_id": 1,
"filename": "6779-Test.png",
"active": 1,
"verified": 1,
"stats": {
"sizeHuman": "285.2 KB",
"size": 285210,
"ext": ".png",
"dimensions": {
"height": 1024,
"width": 1024
}
},
"created_at": "2024-04-23T16:29:29.000+10:00",
"updated_at": "2024-04-23T16:29:29.000+10:00",
"size": 285210,
"version_name": "Version 1.0",
"version_description": "New version requested by customer",
}
}
]Last updated
Was this helpful?