POST
/
file-hash
curl --request POST \
  --url https://lab.trustos.telefonicatech.com/cert/v2/file-hash \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data'
{
  "statusCode": 200,
  "message": "File hash generated",
  "data": {
    "fileHash": "eef10adc293b31c8266a6d8f766581e77ea01273a8e0e3f6a688ed0672fea308"
  }
}

This SHA-256 hash value serves as a unique and tamper-proof digital fingerprint for the file, providing a means of verifying its integrity and authenticity.

The hash value generated by the API can be compared to the hash value (you can obtain this value with the functions provided here) of the original file to ensure that the file has not been altered or corrupted. The hash value can also be used as a means of verifying the authenticity and provenance of the file over time, as any changes or modifications to the file will result in a different hash value.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data

Data needed for the file hash.

The body is of type object.

Response

200
application/json

Successful file hash generation.

The response is of type object.