It is possible to use the API to create and manage the resources used by the application. The API is available at the following address: /api
.
It is RESTful and uses the following HTTP methods:
GET
POST
PUT
DELETE
.
https://cloudbox.kanishkrawatt.tech/api
Authentication is required for accessing CloudBox API endpoints. You need to include an API key in the header of each request.
API requests must be authenticated using a token that can be obtained from Here. The token must be sent in the Authorization
header of the request.
Authorization: Bearer <your_api_key>
Retrieves a list of images stored in CloudBox.
- Endpoint:
/getImages
- Method:
GET
- Response:
- Status: 200 OK
- Content: JSON array of image objects, each containing metadata about the image
Retrieves a list of files stored in CloudBox.
- Endpoint:
/getFiles
- Method:
GET
- Response:
- Status: 200 OK
- Content: JSON array of file objects, each containing metadata about the file
Deletes a specific item from the storage.
- Endpoint:
/deleteItem
- Method:
DELETE
- Parameters:
data: [itemurl]
: Url of the item to be deleted
- Response:
- Status: 200 OK
- Content: JSON object with a success message
Deletes expired data from the storage.
- Endpoint:
/deleteExpiredData
- Method:
POST
- Request Body:
- None
- Response:
- Status: 200 OK
- Content: JSON object with a success message