A containerized API service for interacting with Akave's decentralized storage network.
docker pull akave/akavelink:latestContact Akave team to receive your dedicated node address.
docker run -d \
-p 8000:3000 \
-e NODE_ADDRESS="your_node_address" \
-e PRIVATE_KEY="your_private_key" \
akave/akavelink:latest| Variable | Description | Required | Default |
|---|---|---|---|
| NODE_ADDRESS | Akave node address (contact team) | Yes | "" |
| PRIVATE_KEY | Your Akave private key | Yes | "" |
| PORT | API server port | No | 3000 |
POST /buckets
Create a new bucket for file storage.
Request Body:
{
"bucketName": "string"
}Response:
{
"success": true,
"data": {
"Name": "string",
"Created": "timestamp"
}
}GET /buckets
Retrieve a list of all buckets.
Response:
{
"success": true,
"data": [
{
"Name": "string",
"Created": "timestamp"
}
]
}GET /buckets/:bucketName
Get details of a specific bucket.
Response:
{
"success": true,
"data": {
"Name": "string",
"Created": "timestamp"
}
}GET /buckets/:bucketName/files
List all files in a specific bucket.
Response:
{
"success": true,
"data": [
{
"Name": "string",
"Size": "number",
"Created": "timestamp"
}
]
}GET /buckets/:bucketName/files/:fileName
Get metadata about a specific file.
Response:
{
"success": true,
"data": {
"Name": "string",
"Size": "number",
"Created": "timestamp"
}
}POST /buckets/:bucketName/files
Upload a file to a specific bucket.
Request:
- Content-Type:
multipart/form-data - Body:
fileorfile1: File to upload ORfilePath: Path to file on server
Response:
{
"success": true,
"data": {
"Name": "string",
"Size": "number",
"Hash": "string"
}
}GET /buckets/:bucketName/files/:fileName/download
Download a file from a specific bucket.
Usage: Access this URL directly in your browser to download the file. The file will be automatically downloaded with its original filename.
Response:
- Success: File download will begin automatically
- Error:
{
"success": false,
"error": "error message"
}All endpoints will return the following format for errors:
{
"success": false,
"error": "error message"
}