File

File API endpoint

get
Get File

https://api.yuudrive.me/v1/file/:id
This endpoint allows you to get file.
Request
Response
Request
Path Parameters
id
required
string
ID of the file.
Headers
apikey
required
string
Authentication token.
Response
200: OK
File successfully retrieved.
{
"code": 200,
"result": {
"id": "5520f5b3",
"file_id": "1I1jgv6saHm4Sw5WazLGSPeXXpPb5xX_VX",
"file_name": "Digital Photobook.pdf",
"file_owner_mail": "youremail@gmail.com",
"file_type": "application/pdf",
"file_size": 8948521,
"direct_dl": 1,
"status": 1,
"created_date": "2020-08-19T12:08:20.000Z",
"downloads": 10,
"download_today": 5,
"last_download_date": null
}
}
403: Forbidden
If the file is not yours.
{
"code": 403,
"message": "You cannot see this file"
}
404: Not Found
Could not find a file matching this query.
{
"code": 404,
"message": "Not found"
}

‚Äč