Filebase now supports a limited set of IPFS RPC-compatible API endpoints. These endpoints allow developers and tools that integrate with Kubo 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.
Base URL
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 Keys page. Keys are bucket-specific. All requests must include an API key in the Authorization header:
Authorization:Bearer <api-key>
π§ͺ IPFS CLI Integration
You can use the IPFS CLI directly with Filebase by passing the --api flag:
file (multipart/form-data) β The file to upload.
Supported Query Parameters:
Parameter
Type
Description
wrap-with-directory
Boolean
Wrap the uploaded file in a directory. Default: false.
cid-version
Integer
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.
π₯ /api/v0/dag/import
Import a CAR file containing DAG data.
Method: POST
Form Field:
file (multipart/form-data) β The CAR file to import.
Supported Query Parameters:
Parameter
Type
Description
pin-roots
Boolean
Pin the roots of the imported DAG. Default: true.
Example:
Example with pin-roots=false:
π‘ CAR (Content Addressable aRchive) files are a serialization format for IPFS DAGs. Use this endpoint to import pre-built CAR files directly into Filebase.