Adding a file
Learn how to add a file to store its fingerprint in the blockchain.
Prerequisites
You need to have at least created a folder before continuing.
After creating a folder, the next step is to add a file to that folder. Adding files to folders will store their fingerprint in the blockchain. Keeper supports various formats of files, please refer to our supported file types list.
Requirements
You need your API key to perform the actions on this page.
You also need the Keeper Admin Role.
Adding a file
Add a file by performing a standard POST call with your API key in the header. Your API key must be valid for this to work. If you don't have an API key, follow this short tutorial to get one.
Let's try it out!
curl -X POST \
http://api.mantleblockchain.com/keeper/{{PRODUCT_ID}}/files \
-H 'Accept: text/plain, application/json, text/json' \
-H 'Content-Type: multipart/form-data' \
-H 'x-api-key: {{API_KEY}}' \
-F 'folderId={{FOLDER_ID}}' \
-F 'accuracy={{ACCURACY}}' \
-F 'file={{FILE}}' \
-F 'displayName={{DISPLAY_NAME}}'
Replace the following parameters:
{{PRODUCT_ID}}: Your Product id
{{API_KEY}}: Your API key
{{FOLDER_ID}}: The ID of the folder in which you want to store the file
{{ACCURACY}}: The accuracy of how we store the file in the blockchain, refer to the accuracy levels for what value to choose.
{{FILE}}: The file to upload and store in the blockchain
{{DISPLAY_NAME}}: The display name of the file
Congratulations!
You've added a file in Keeper!
Updated over 6 years ago