Files
GET https://fedpic.com/api/files/
curl --request GET \
--url 'https://fedpic.com/api/files/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://fedpic.com/api/files/' \
--header 'Authorization: Bearer {api_key}' \
Parameters | Details | Description |
---|---|---|
page | Optional Integer | The page number that you want results from. Defaults to 1 . |
results_per_page | Optional Integer | How many results you want per page. Allowed values are: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Defaults to 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-02-05 15:01:23"
},
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://fedpic.com/api/files?&page=1",
"last": "https://fedpic.com/api/files?&page=1",
"next": null,
"prev": null,
"self": "https://fedpic.com/api/files?&page=1"
}
}
GET https://fedpic.com/api/files/{file_id}
curl --request GET \
--url 'https://fedpic.com/api/files/{file_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://fedpic.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-02-05 15:01:23"
}
}
POST https://fedpic.com/files/create_api
Parameters | Details | Description |
---|---|---|
uuid | Required String | - |
chunk_index | Required Integer | - |
total_chunks | Required Integer | - |
file_name | Required String | - |
file | Required File | - |
password | Optional String | - |
file_encryption_is_enabled | Optional Boolean | - |
curl --request POST \
--url 'https://fedpic.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://fedpic.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://fedpic.com/api/files/{file_id}
curl --request DELETE \
--url 'https://fedpic.com/api/files/{file_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://fedpic.com/api/files/{file_id}' \
--header 'Authorization: Bearer {api_key}' \