Skip to main content
POST
/
platform
/
files
/
{fileId}
/
validate
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
}

Authorizations

x-api-key
string
header
required

Path Parameters

fileId
string
required

Body

multipart/form-data
ownerWallet
string
required

Wallet address that owns the file

tokenId
string
required

File token ID to be validated

file
file
required

File to be compared against the stored version

Response

Validation performed

integrity
boolean

If true the file is intact and has not been tampered with

authenticity
boolean

If true the file is authentic

ownership
boolean

If true the file is owned by the owner wallet