Upload

This API endpoint allows you to add a file to the decentralized storage.

Good to know: Upload API automatically checks the NFT holder storage quota.

Upload file

Upload file

POST /api/v1/add

API endpoint and JWT token is available in Authenticate user api response.

Headers

Name
Type
Description

Authorization*

Bearer <jwt token>

he authentication token required to access the API.

Request Body

Name
Type
Description

file*

multipart/form-data

The file to be added to the system

{
	"Name": "The name of the uploaded file",
	"Hash": "The Content Identifier (CID) of the file on the decentralized storage. It uniquely identifies the file and can be used to retrieve or reference it.",
	"Size": "The size of the uploaded file in bytes"
}

The provided CID ("Hash") in api response can be used to interact with the decentralized storage system to retrieve or manipulate the file as needed.

Last updated