Documentation
Persistent agent memory and decentralized storage. Upload to IPFS instantly, replicate across Filecoin SPs permanently, build knowledge graphs with semantic search. Pay per request with x402 micropayments.
Quick Start
Upload a file with a single cURL command. Include an x402 payment header for paid endpoints.
curl -X POST https://api.w3s.storage/upload \ -H "Content-Type: multipart/form-data" \ -F "file=@photo.jpg"REST API
Storage, agent memory, and auth endpoints power the entire lifecycle. Endpoints marked x402 require micropayment. Agent memory reads require a SIWE JWT session.
Upload a file to IPFS + Filecoin. Requires x402 payment header.
The file to upload (multipart/form-data)
Comma-separated tags for organization
Number of SP replicas (default: 3)
Content identifier (CIDv1)
File size in bytes
IPFS gateway URL
Initial status: pinned
Check storage and replication status for a CID.
Content identifier to check
The queried CID
pinned | storing | stored | failed
List of SP providers storing this CID
Number of confirmed SP replicas
List all files for the authenticated wallet.
Filter by status: pinned | storing | stored
Max results (default: 50)
Pagination offset
Array of file objects
Total file count
Create an on-chain attestation for a stored file. Requires x402 payment.
CID to attest
On-chain attestation identifier
Transaction hash
Unix timestamp of attestation
Add a file to your agent memory graph. Generates semantic embeddings from metadata. Requires x402 payment.
CID of the file to add
Description for semantic search
Tags for organization and search
Whether the file was added
The created graph node
Create a relationship between two files in your memory graph. Requires x402 payment.
Source file CID
Target file CID
Freeform label (e.g. references, derived_from)
Whether the connection was created
The created graph edge
Semantic search across your agent memory. Requires SIWE JWT auth.
Natural language search query
Max results (default: 10)
Similarity threshold 0-1 (default: 0.5)
Array of {cid, filename, score, gatewayUrl}
Traverse connected files from a starting point. Requires SIWE JWT auth.
Starting file CID
Max traversal depth (default: 2)
Discovered file nodes
Relationships between nodes
Upload multiple files with graph connections in one x402 payment. Max 10 files, 100MB total, 50 connections.
Files as multipart form fields
JSON with per-file descriptions, tags, and connections
Array of uploaded files with CIDs and graph status
Created graph connections with success status
Integrations
Connect your AI agents to decentralized storage through any of these integration paths.