Upload
This API endpoint allows you to add a file to the decentralized storage.
If using API for uploading, files are not encrypted. Do not store any private or sensitive information in an unencrypted way. If you want encryption out of the box consider using our PollinationX SDK.
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"
}
Last updated