{"info":{"_postman_id":"d1545211-adc4-4781-adf8-5fd8da37fe50","name":"iDefendo Witness API","description":"<html><head></head><body><p>All calls to the iDefendo Witness API must be authenticated using bearer tokens. You can find your token on the Account page of <strong>api.idefendo.com</strong> when you are logged in.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"6711944","collectionId":"d1545211-adc4-4781-adf8-5fd8da37fe50","publishedId":"S11Evzf2","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2019-02-21T02:49:04.000Z"},"item":[{"name":"Witness - Create","id":"fcbe9ea2-5117-4b1d-bc2a-3f975ac3b3d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer <user_token>","type":"text"}],"body":{"mode":"raw","raw":"{\r\n\t\"contentId\": \"2d6313a1b2f5c3c0f7a2100ec6ce272e702a07246dac232386fd63c01e9fac1464d509e76dbef28669e89bc216b21b4c34d202f8917ce743648c3f2f8992458d\",\r\n\t\"salt\": null,\r\n\t\"visibility\": \"private\",\r\n\t\"metadata\": {\r\n\t\toptional_metadata_field_1: 'value 1',\r\n\t\toptional_metadata_field_2: 'value 2'\t\t\r\n\t},\r\n\t\"auxillaryData\": {\r\n\t\toptional_auxdata_field_1: 'value 1',\r\n\t\toptional_auxdata_field_2: 'value 2'\t\t\r\n\t},\r\n\t\"signature\": \"My signature\"\r\n}"},"url":"https://api.idefendo.com/witnesses","description":"<p>Required role: <strong>Organization_Member</strong></p>\n<p>Request object: <strong>Witness</strong> object in JSON format</p>\n<p>Returns: a <strong>Witness</strong> object</p>\n<p>Creates a new witness for the user identified by the <code>&lt;user_token&gt;</code> and returns it as a <strong>Witness</strong> object.</p>\n","urlObject":{"protocol":"https","path":["witnesses"],"host":["api","idefendo","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"fcbe9ea2-5117-4b1d-bc2a-3f975ac3b3d5"},{"name":"Witness - List","id":"726b5c80-0218-4e5e-9082-dceb5a285066","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer <user_token>","type":"text"}],"url":"https://api.idefendo.com/witnesses","description":"<p>Required role: <strong>Organization_Member</strong></p>\n<p>Request object: <strong>None</strong></p>\n<p>Returns: an array of <strong>Witness</strong> objects</p>\n<p>Lists witnesses created by the user identified by the <code>&lt;user_token&gt;</code></p>\n<p>To filter the returned witnesses, add one or more <code>f</code> query parameters, like in the following example:</p>\n<p><code>GET https://api.idefendo.com/witnesses?f=signature=myname&amp;f=metadata['myfield']=myvalue&amp;f=timestamp&gt;='2019-02-19'</code></p>\n<p><strong>Available filters:</strong></p>\n<p>metadata['field_name']</p>\n<p>auxillarydata['field_name']</p>\n<p>signature</p>\n<p>timestamp</p>\n<p>contentid</p>\n<p>witnessid</p>\n<p>visibility ('private' or 'public')</p>\n<p><strong>Available operators:</strong></p>\n<p><code>=</code> (Equal to)</p>\n<p><code>&lt;</code> (Less than)</p>\n<p><code>&gt;</code> (Greater than)</p>\n<p><code>!=</code> (Not equal to)</p>\n<p><code>&lt;=</code> (Less than or equal to)</p>\n<p><code>&gt;=</code> (Greater than or equal to)</p>\n","urlObject":{"protocol":"https","path":["witnesses"],"host":["api","idefendo","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"726b5c80-0218-4e5e-9082-dceb5a285066"}],"event":[{"listen":"prerequest","script":{"id":"3090b7e6-75cf-4a5a-92f0-a0bf65b85f8b","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"86c24da8-b9c0-4d3e-bf62-39ae7b60dc9d","type":"text/javascript","exec":[""]}}]}