API Reference

Complete reference documentation for the W3Disk API

sk_test_w3disk_123456789

API Endpoints

GET/api/v1/storage

List all storage providers

{
  "providers": [
    {
      "id": "aws-s3",
      "name": "AWS S3",
      "status": "active"
    },
    {
      "id": "gcs",
      "name": "Google Cloud Storage",
      "status": "active"
    }
  ]
}
POST/api/v1/storage/connect

Connect a new storage provider

{
  "success": true,
  "provider": {
    "id": "azure-blob",
    "name": "Azure Blob Storage",
    "status": "connected"
  }
}
GET/api/v1/files

List all files across providers

{
  "files": [
    {
      "id": "file1",
      "name": "document.pdf",
      "size": 1024000
    },
    {
      "id": "file2",
      "name": "image.jpg",
      "size": 2048000
    }
  ],
  "pagination": {
    "page": 1,
    "total": 100
  }
}

SDKs & Libraries

JavaScript

npm install @w3disk/js
v2.1.0

Python

pip install w3disk
v2.0.1

Go

go get github.com/w3disk/go
v1.5.0