Filebase now supports a limited set of IPFS RPC-compatible API endpoints. These endpoints allow developers and tools that integrate with Kuboarrow-up-right to communicate directly with Filebase using familiar IPFS HTTP API routes.
This API is complementary to our S3-compatible API and simplifies integration with the IPFS CLI, IPFS-compatible libraries, and other standard HTTP clients.
Copy https://rpc.filebase.io All API requests require a Bearer API key via the Authorization header.
π Authentication
API keys can be found at the bottom of the Access Keysarrow-up-right page. Keys are bucket-specific. All requests must include an API key in the Authorization header:
Copy Authorization : Bearer <api-key> π§ͺ IPFS CLI Integration
You can use the IPFS CLI directly with Filebase by passing the --api flag:
Copy ipfs --api= " /dns4/rpc.filebase.io/tcp/443/https " \
--api-auth= " <api-key> " add file1 π /api/v0/pin/ls
List all pinned objects.
Method : POST
π’ /api/v0/version
Get the version of the IPFS daemon.
Method : POST
π /api/v0/cat
Fetch and return the contents of a file by CID.
Method : POST
Query Parameter :
arg (string) β CID of the file.
π¦ /api/v0/block/get
Retrieve a raw block by CID.
Method : POST
Query Parameter :
arg (string) β CID of the block.
β /api/v0/add
Add a file to IPFS.
Method : POSTForm Field :
file (multipart/form-data) β The file to upload.
Supported Query Parameters :
Wrap the uploaded file in a directory. Default: false.
CID version to use (0 or 1). Default: 0.
Basic Example :
Example with wrap-with-directory and cid-version :
π‘ When using wrap-with-directory=true, the returned CID will represent a directory containing the file rather than the file directly.
π /api/v0/pin/add
Pin a CID to ensure it remains stored.
Method : POST
Query Parameter :
arg (string) β CID to pin.
π§Ή /api/v0/pin/rm
Unpin a CID to remove it from persistent storage.
Method : POST
Query Parameter :
arg (string) β CID to unpin.
π /api/v0/key/gen
Create a new keypair.
Method : POST
Query Parameter :
arg (string) β Name of the key to create.
ποΈ /api/v0/key/import
Import a private key into the keychain.
Method : POST
Query Parameter :
arg (string) β Name to associate with the key.
Form Field :
file (multipart/form-data) β Private key file to import.
ποΈ /api/v0/key/list
List all keys in the keychain.
Method : POST
βοΈ /api/v0/key/rename
Rename an existing key.
Method : POST
Query Parameters :
arg (string) β Current key name.
arg (string) β New key name.
Optional Query Parameters :
force (boolean) β Overwrite an existing key name.
ποΈ /api/v0/key/rm
Remove a key from the keychain.
Method : POST
Query Parameter :
arg (string) β Name of the key to remove.
π£ /api/v0/name/publish
Publish a CID to IPNS.
Method : POST
Query Parameter :
arg (string) β IPFS path or CID to publish.
Optional Query Parameters :
key (string) β Key name to publish with.
validity (string) β Record validity duration (e.g. 24h).
ttl (string) β Cache TTL for resolvers (e.g. 5m).
π /api/v0/name/resolve
Resolve an IPNS name to an IPFS path.
Method : POST
Query Parameter :
arg (string) β IPNS name or /ipns/ path.
Optional Query Parameters :
recursive (boolean) β Resolve until the result is not an IPNS name.
nocache (boolean) - Do not use cached entries.