Filebase Platform APIs
Learn about how to use the Filebase Platform APIs.
Last updated
Learn about how to use the Filebase Platform APIs.
Last updated
The Filebase Platform API is a general purpose API that can be used to manage various Filebase resources. These resources include storage usage, bandwidth usage, IPNS names, and dedicated gateways.
Request Body Schema: application/json
Authorization: Bearer <access-token>
To generate the access-token
, start by retrieving your Filebase Access Key and Secret Access Key pair.
Then, navigate to Base64Encode and input the following information:
ACCESS-KEY:SECRET-KEY
Then select 'Encode' and copy the result:
Used to generate reports on a user's current storage in bytes across all buckets. This API also returns information regarding the user's bandwidth usage over the last 24 hours.
Request Body Schema: application/json
GET
https://api.filebase.io/v1/usage
This API can be used to generate a report that provides information on the user's current storage across all buckets, and all bandwidth usage within the last 24 hours.
Used to generate reports on a user's current storage in a specific bucket.
Request Body Schema: application/json
GET
https://api.filebase.io/v1/usage/storage/<bucket-name>
This API can be used to generate a report that provides information on the user's current storage across a specific bucket.
Used to generate a usage report of a dedicated IPFS gateway over the last 24 hours.
Request Body Schema: application/json
GET
https://api.filebase.io/v1/usage/gateway/<gateway-name>
This API reports bandwidth usage over the last 24 hours for a specific IPFS dedicated gateway.
This set of APIs can be used to manage dedicated IPFS gateways.
GET
https://api.filebase.io/v1/gateways
Returns a list of all Dedicated IPFS Gateways
GET
https://api.filebase.io/v1/gateways/<gateway-name>
Response returns details for the specified gateway.
POST
https://api.filebase.io/v1/gateways
Allows a user to create a dedicated gateway.
Example JSON Body Payload:
PUT
https://api.filebase.io/v1/gateways/<gateway-name>
Allows a user to update the configuration of a gateway.
DELETE
https://api.filebase.io/v1/gateways/<gateway-name>
No body payload required. Allows a use to delete a dedicated gateway. Upon deletion, the gateway will no longer be functional and it will stop serving content.
This set of APIs can be used to manage IPNS name records.
GET
https://api.filebase.io/v1/names
GET
https://api.filebase.io/v1/names/<label>
POST
https://api.filebase.io/v1/names
PUT
https://api.filebase.io/v1/names/<label>
DELETE
https://api.filebase.io/v1/names/<label>
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|