{"info":{"_postman_id":"29026542-e65e-4e4b-adbd-79cfefff0e9d","name":"Propre API","description":"<html><head></head><body><p>The Propre API allows users to create Merkle trees and upload the hash to the bitcoin test network. It also allows users to verify their uploaded files.</p>\n<p><a href=\"https://propre.netlify.app/\">Propre Website</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"15691586","collectionId":"29026542-e65e-4e4b-adbd-79cfefff0e9d","publishedId":"TzRVekwe","public":true,"customColor":{"top-bar":"c1c1c1","right-sidebar":"303030","highlight":"616161"},"publishDate":"2021-05-14T01:12:42.000Z"},"item":[{"name":"Proof","id":"c0d2d4a6-24d0-4845-aa1f-3152b5298386","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"Email ID\" : \"\",\r\n    \"Files\" : {\r\n        \"yeah.txt\": \"c0d801940c8bcdb56fc8ea54f24e21c02629f6a987bc520541717afbc2fb046b\",\r\n        \"hello.txt\": \"b57c370a0fcc704562e14bc1765dfc6e573fde46ebfda7c229e9f429b5f5697a\"\r\n    }\r\n}"},"url":"https://propre-api.herokuapp.com/propre-api/proof","description":"<p>This POST request allows users to create a Merkle tree and upload the encrypted root hash to the bitcoin test network. </p>\n<p>The request is sent with JSON data in the body.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Data Type</th>\n<th>Requirement</th>\n<th>Structure</th>\n<th>Example</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Files</td>\n<td>dict</td>\n<td>Required</td>\n<td>file name, file hash as key, value</td>\n<td>{         \"yeah.txt\": \"c0d801940c8bcdb56fc8ea54f24e21c02629f6a987bc520541717afbc2fb046b\",<br />         \"hello.txt\": \"b57c370a0fcc704562e14bc1765dfc6e573fde46ebfda7c229e9f429b5f5697a\"     }</td>\n</tr>\n<tr>\n<td>Email ID</td>\n<td>string</td>\n<td>Optional</td>\n<td></td>\n<td>\"<a href=\"mailto:xxx@yyy.com\">xxx@yyy.com</a>\"</td>\n</tr>\n<tr>\n<td></td>\n<td></td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><p>The returned data is in JSON format. </p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Data Type</th>\n<th>Returned When</th>\n<th>Structure</th>\n<th>Example</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Status</td>\n<td>boolean</td>\n<td>Always</td>\n<td></td>\n<td>true</td>\n</tr>\n<tr>\n<td>Files Path</td>\n<td>dict</td>\n<td>When Status is true</td>\n<td>file name, file path as key, value</td>\n<td>{\"hello.txt\": \"c0d801940c8bcdb56fc8ea54f24e21c02629f6a987bc520541717afbc2fb046b\", \"yeah.txt\": \"b57c370a0fcc704562e14bc1765dfc6e573fde46ebfda7c229e9f429b5f5697a\" }</td>\n</tr>\n<tr>\n<td>Transaction</td>\n<td>dict</td>\n<td>When Status is true</td>\n<td>{ \"txid\" : transaction ID, \"blockchain\" : link to transaction }</td>\n<td>{\"blockchain\": \"<a href=\"https://www.blockchain.com/btc-testnet/tx/29843bc2586488edca9a0cbbbe35952e3922b1a93eea20cda61672fcbb388044\">https://www.blockchain.com/btc-testnet/tx/29843bc2586488edca9a0cbbbe35952e3922b1a93eea20cda61672fcbb388044</a>\", \"txid\": \"29843bc2586488edca9a0cbbbe35952e3922b1a93eea20cda61672fcbb388044\" }</td>\n</tr>\n<tr>\n<td>Error</td>\n<td>string</td>\n<td>When Status is false</td>\n<td></td>\n<td>\"Different Number of Files and Hashes.\"</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["propre-api","proof"],"host":["propre-api","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c0d2d4a6-24d0-4845-aa1f-3152b5298386"},{"name":"Verify","id":"dbe1a190-101f-4498-9f45-d2181ea58440","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://propre-api.herokuapp.com/propre-api/verify","description":"<p>This GET request allows users to verify a file on a transaction in the bitcoin test network.</p>\n<p>The parameters in this request are sent as headers. All of them are <em>required</em> for the API call.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Data Type</th>\n<th>Returned When</th>\n<th>Example</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Status</td>\n<td>boolean</td>\n<td>Always</td>\n<td>true</td>\n</tr>\n<tr>\n<td>verify</td>\n<td>boolean</td>\n<td>When Status is true</td>\n<td>false</td>\n</tr>\n<tr>\n<td>Error</td>\n<td>string</td>\n<td>When Status is false</td>\n<td>\"No Path Provided.\"</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["propre-api","verify"],"host":["propre-api","herokuapp","com"],"query":[{"disabled":true,"key":"txid","value":"2b27e2ea9c3dd784ee09488e777b8194c7a20bda80286d4db7b722e170a4f474"},{"disabled":true,"key":"path","value":"c0d801940c8bcdb56fc8ea54f24e21c02629f6a987bc520541717afbc2fb046b"},{"disabled":true,"key":"hash","value":"b57c370a0fcc704562e14bc1765dfc6e573fde46ebfda7c229e9f429b5f5697a"}],"variable":[]}},"response":[],"_postman_id":"dbe1a190-101f-4498-9f45-d2181ea58440"}]}