IPFS
Decentralized file storage via the InterPlanetary File System.
Add file to IPFS.
File added successfully.
bafkreibes2bxau2me5o75cxny5mj23ckztpcumoskewz73z52cpankttnmBad request.
Unauthorized request.
Forbidden
Body content in request is empty.
Internal server error.
POST /api/v1/ipfs/file HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: binary/octet-stream
Accept: */*
Content-Length: 8
"binary"bafkreibes2bxau2me5o75cxny5mj23ckztpcumoskewz73z52cpankttnmAdd file to IPFS directly.
File added successfully.
bafkreibes2bxau2me5o75cxny5mj23ckztpcumoskewz73z52cpankttnmBad request.
Unauthorized request.
Forbidden
Body content in request is empty.
Internal server error.
POST /api/v1/ipfs/file/direct HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: binary/octet-stream
Accept: */*
Content-Length: 8
"binary"bafkreibes2bxau2me5o75cxny5mj23ckztpcumoskewz73z52cpankttnmAdd file to local IPFS simulation for dry run mode.
Policy id
69aeb71ef8c5b278e3bab4e5File added successfully.
69c115c3892ada2bac183377Unauthorized request.
Forbidden
Body content in request is empty.
Internal server error.
POST /api/v1/ipfs/file/dry-run/{policyId} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: binary/octet-stream
Accept: */*
Content-Length: 8
"binary"69c115c3892ada2bac183377Get file from IPFS.
File cid
bafkreibes2bxau2me5o75cxny5mj23ckztpcumoskewz73z52cpankttnmSuccessful operation. Returns file content.
Unauthorized request.
Forbidden
File is not found.
Internal server error.
GET /api/v1/ipfs/file/{cid} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
binaryRemove file from IPFS.
File cid
Successful operation.
Unauthorized request.
Forbidden
Internal server error.
DELETE /api/v1/ipfs/file/{cid} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Get file from local IPFS simulation for dry-run mode
File cid
69c116d7892ada2bac1833a6Successful operation. Returns file content.
Unauthorized request.
Forbidden
File is not found.
Internal server error.
GET /api/v1/ipfs/file/{cid}/dry-run HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
binaryLast updated
Was this helpful?