Skip to main content
Version: v1.0

Upload files

Upload one or more files with multipart/form-data to timestamp them on the Bitcoin blockchain and get the SHA-256 hash of each file.

Upload Large Files​

Allows you to upload large files to SimpleProof for verification and timestamping on the Bitcoin blockchain.

POST/api/proof/file
  • Description: This endpoint enables you to upload large files for verification. It uses multipart/form-data to efficiently handle the uploading of large files.

Headers​

  • x-access-token (string, required): Your API token.

Request Body​

  • Content-Type: multipart/form-data

  • Form Parameters:

    • files (files, required): The file or files you wish to upload. It should be provided in binary format.
    • callback_url (string, optional): Valid URL to receive a POST request with the result in JSON format.

Responses​

  • 200 OK

    The request was successful, and the file was received and processed correctly.

    {
    "ok": true,
    "files":[
    "FILE_HASH"
    ]
    }
    • ok (boolean): Indicates if the operation was successful.
    • hash (string): The SHA-256 hash of the uploaded file.
  • 400 Bad Request

    The request was invalid or there was an error processing the file.

    {
    "ok": false,
    "msg": "Something went wrong."
    }
    • ok (boolean): Indicates that the operation failed.
    • msg (string): Descriptive error message.