Tệp
GET https://86transfer.com/api/files/
curl --request GET \
--url 'https://86transfer.com/api/files/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://86transfer.com/api/files/' \
--header 'Authorization: Bearer {api_key}' \
Tham số | Chi tiết | Mô tả |
---|---|---|
page | Tùy chọn Số nguyên | Số trang mà bạn muốn lấy kết quả. Mặc định là 1 . |
results_per_page | Tùy chọn Số nguyên | Số lượng kết quả bạn muốn trên mỗi trang. Giá trị cho phép là: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Mặc định là 25 . |
{
"data": [
{
"id": 1,
"user_id": 1,
"transfer_id": 1,
"file_uuid": "b8c89fa6e06b4423b3bb1647bb261368",
"uploader_id": "f528764d624db129b32c21fbca0cb8d6",
"name": "9b7d6e9d-fa46-4cc0-8307-8fb6cef88a71.png",
"original_name": "example.png",
"size": 999999,
"status": "uploaded",
"is_encrypted": false,
"datetime": "2025-05-18 20:26:34"
},
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://86transfer.com/api/files?&page=1",
"last": "https://86transfer.com/api/files?&page=1",
"next": null,
"prev": null,
"self": "https://86transfer.com/api/files?&page=1"
}
}
GET https://86transfer.com/api/files/{file_id}
curl --request GET \
--url 'https://86transfer.com/api/files/{file_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://86transfer.com/api/files/{file_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"user_id": 1,
"transfer_id": 1,
"file_uuid": "b8c89fa6e06b4423b3bb1647bb261368",
"uploader_id": "f528764d624db129b32c21fbca0cb8d6",
"name": "9b7d6e9d-fa46-4cc0-8307-8fb6cef88a71.png",
"original_name": "example.png",
"size": 999999,
"status": "uploaded",
"is_encrypted": false,
"datetime": "2025-05-18 20:26:34"
}
}
POST https://86transfer.com/files/create_api
Tham số | Chi tiết | Mô tả |
---|---|---|
uuid | Bắt buộc Chuỗi | - |
chunk_index | Bắt buộc Số nguyên | - |
total_chunks | Bắt buộc Số nguyên | - |
file_name | Bắt buộc Chuỗi | - |
file | Bắt buộc Tệp | - |
password | Tùy chọn Chuỗi | - |
file_encryption_is_enabled | Tùy chọn Boolean | - |
curl --request POST \
--url 'https://86transfer.com/files/create_api' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'uuid=de09be56-639f-4213-863b-5ea1aa065970' \
--form 'chunk_index=0' \
--form 'total_chunks=1' \
--form 'file_name=example.pdf' \
--form 'file=example.pdf' \
--url 'https://86transfer.com/files/create_api' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'uuid=de09be56-639f-4213-863b-5ea1aa065970' \
--form 'chunk_index=0' \
--form 'total_chunks=1' \
--form 'file_name=example.pdf' \
--form 'file=example.pdf' \
{
"data": {
"id": 1
}
}
DELETE https://86transfer.com/api/files/{file_id}
curl --request DELETE \
--url 'https://86transfer.com/api/files/{file_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://86transfer.com/api/files/{file_id}' \
--header 'Authorization: Bearer {api_key}' \