cURL
curl --request POST \ --url https://api.rootkey.ai/api-v1/platform/files/{fileId}/validate \ --header 'Content-Type: multipart/form-data' \ --header 'x-api-key: <api-key>' \ --form 'ownerWallet=<string>' \ --form 'tokenId=<string>' \ --form file='@example-file'
{ "integrity": true, "authenticity": true, "ownership": true }
Validate the integrity, authenticity and ownership of a file by comparing it with a trusted version
Wallet address that owns the file
File token ID to be validated
File to be compared against the stored version
Validation performed
If true the file is intact and has not been tampered with
If true the file is authentic
If true the file is owned by the owner wallet