All URIs are relative to https://api.nft.storage
Method | HTTP request | Description |
---|---|---|
delete | delete /{cid} | Stop storing the content with the passed CID |
list | get / | List all stored files |
status | get /{cid} | Get information for the stored file CID |
store | post /upload | Store a file |
crate::models::DeleteResponse delete(cid) Stop storing the content with the passed CID
Stop storing the content with the passed CID on nft.storage. - Unpin the item from the underlying IPFS pinning service. - Cease renewals for expired Filecoin deals involving the CID.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
cid | String | CID for the NFT | [required] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::ListResponse list(before, limit) List all stored files
Name | Type | Description | Required | Notes |
---|---|---|---|---|
before | Option<String> | Return results created before provided timestamp | ||
limit | Option<i32> | Max records to return | [default to 10] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::GetResponse status(cid) Get information for the stored file CID
Includes the IPFS pinning state and the Filecoin deal state.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
cid | String | CID for the NFT | [required] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::UploadResponse store(body) Store a file
Store a file with nft.storage. - Submit a HTTP POST
request passing the file data in the request body. - To store multiple files in a directory, submit a multipart/form-data
HTTP POST
request. Use the Content-Disposition
header for each part to specify a filename.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
body | std::path::PathBuf | [required] |
- Content-Type: image/png, application/octet-stream, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]