{"info":{"_postman_id":"c3e2a82e-269c-48b7-af2c-949975b7cebc","name":"CryptIT-E-Voting","description":"<html><head></head><body><p>This is the API to create votes as an election provider, register allowed voters and get the results on closed elections.  </p>\n<p>Actual votes can also be done directly through the API, however we do recommend using the official webpage have your voters know, that nobody can find out what they voted for.  </p>\n<p>With this tool, the election provider is to make sure, the voters will get only their registered voterkey when they are allowed to vote.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"25751373","collectionId":"c3e2a82e-269c-48b7-af2c-949975b7cebc","publishedId":"2s935uFKvy","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"233C76"},"publishDate":"2023-02-10T22:28:28.000Z"},"item":[{"name":"Election","item":[{"name":"Admin","item":[{"name":"Create","id":"5b2942b2-7a0c-48c1-b137-15c249e15c9e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"electionName\": \"Vorwahl 1\",\r\n    \"startTime\": \"2023-03-15 11:00\",\r\n    \"endTime\": \"2023-03-15 16:00\",\r\n    \"electionAuthType\": \"none\",\r\n    \"voterAuthType\": \"static\",\r\n    \"items\": [\r\n        {\r\n            \"itemTitle\": \"President of the USA\",\r\n            \"itemKey\": \"President\",\r\n            \"description\": \"The president of the United States of America for a 4 year period\",\r\n            \"selectionType\": \"single-choice\",\r\n            \"options\": [\r\n                {\r\n                    \"optionKey\": \"Trump\",\r\n                    \"optionTitle\": \"Donald J. Trump\"\r\n                },\r\n                {\r\n                    \"optionKey\": \"Biden\",\r\n                    \"optionTitle\": \"Joe Biden\"\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"itemTitle\": \"Vicepresident of the USA\",\r\n            \"itemKey\": \"Vicepresident\",\r\n            \"description\": \"The vicepresident of the United States of America for a 4 year period\",\r\n            \"selectionType\": \"multiple-choice-ordered\",\r\n            \"options\": [\r\n                {\r\n                    \"optionKey\": \"Harris\",\r\n                    \"optionTitle\": \"Kamala Harris\"\r\n                },\r\n                {\r\n                    \"optionKey\": \"Rice\",\r\n                    \"optionTitle\": \"Susan Rice\"\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://evoting.cryptit.at/api/election/create","description":"<p>Create a new election, this needs an account API key as authorization.<br />Once a collection has beend created, voters can access the vote page with the returned publicId and their registered voterKey:</p>\n<p><a href=\"https://evoting.cryptit.at/election/vote/%7BpublicId%7D?voterKey=%7BvoterKey%7D\">https://evoting.cryptit.at/election/vote/{publicId}?voterKey={voterKey}</a></p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"<API_KEY>"}]},"isInherited":true,"source":{"_postman_id":"6d3f5084-c142-4eb0-87db-470cd6f288e4","id":"6d3f5084-c142-4eb0-87db-470cd6f288e4","name":"Admin","type":"folder"}},"urlObject":{"path":["election","create"],"host":["https://evoting.cryptit.at/api"],"query":[],"variable":[]}},"response":[{"id":"968f68d0-023f-431e-9a1d-fe14588fdc32","name":"Successful response","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"<API_KEY>","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"electionName\": \"Vorwahl 1\",\r\n    \"startTime\": \"2023-03-15 11:00\",\r\n    \"endTime\": \"2023-03-15 16:00\",\r\n    \"electionAuthType\": \"none\",\r\n    \"voterAuthType\": \"static\",\r\n    \"items\": [\r\n        {\r\n            \"itemTitle\": \"President of the USA\",\r\n            \"itemKey\": \"President\",\r\n            \"description\": \"The president of the United States of America for a 4 year period\",\r\n            \"selectionType\": \"single-choice\",\r\n            \"options\": [\r\n                {\r\n                    \"optionKey\": \"Trump\",\r\n                    \"optionTitle\": \"Donald J. Trump\"\r\n                },\r\n                {\r\n                    \"optionKey\": \"Biden\",\r\n                    \"optionTitle\": \"Joe Biden\"\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"itemTitle\": \"Vicepresident of the USA\",\r\n            \"itemKey\": \"Vicepresident\",\r\n            \"description\": \"The vicepresident of the United States of America for a 4 year period\",\r\n            \"selectionType\": \"multiple-choice-ordered\",\r\n            \"options\": [\r\n                {\r\n                    \"optionKey\": \"Harris\",\r\n                    \"optionTitle\": \"Kamala Harris\"\r\n                },\r\n                {\r\n                    \"optionKey\": \"Rice\",\r\n                    \"optionTitle\": \"Susan Rice\"\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://evoting.cryptit.at/api/election/create"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"\"lw9rjlwjtkv\""},{"key":"Content-Length","value":"31"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Date","value":"Fri, 10 Feb 2023 01:46:44 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"publicId\": \"Vorwahl-1-f8e681\"\n}"},{"id":"50ddc26d-f654-4ccd-9cc0-eb7e196358a3","name":"Create with voter authentication","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"electionName\": \"Vorwahl 1\",\r\n    \"startTime\": \"2023-03-15 11:00\",\r\n    \"endTime\": \"2023-03-15 16:00\",\r\n    \"electionAuthType\": \"secret-key\",\r\n    \"voterAuthType\": \"dynamic\",\r\n    \"items\": [\r\n        {\r\n            \"itemTitle\": \"President of the USA\",\r\n            \"itemKey\": \"President\",\r\n            \"description\": \"The president of the United States of America for a 4 year period\",\r\n            \"selectionType\": \"single-choice\",\r\n            \"options\": [\r\n                {\r\n                    \"optionKey\": \"Trump\",\r\n                    \"optionTitle\": \"Donald J. Trump\"\r\n                },\r\n                {\r\n                    \"optionKey\": \"Biden\",\r\n                    \"optionTitle\": \"Joe Biden\"\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"itemTitle\": \"Vicepresident of the USA\",\r\n            \"itemKey\": \"Vicepresident\",\r\n            \"description\": \"The vicepresident of the United States of America for a 4 year period\",\r\n            \"selectionType\": \"multiple-choice-ordered\",\r\n            \"options\": [\r\n                {\r\n                    \"optionKey\": \"Harris\",\r\n                    \"optionTitle\": \"Kamala Harris\"\r\n                },\r\n                {\r\n                    \"optionKey\": \"Rice\",\r\n                    \"optionTitle\": \"Susan Rice\"\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://evoting.cryptit.at/api/election/create"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"5b2942b2-7a0c-48c1-b137-15c249e15c9e"},{"name":"Create Copy","id":"2762e0b1-e22a-4b7e-9dec-bdcb11e4e71e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"electionName\": \"Vorwahl 1\",\r\n    \"startTime\": \"2023-03-15 11:00\",\r\n    \"endTime\": \"2023-03-15 16:00\",\r\n    \"electionAuthType\": \"none\",\r\n    \"voterAuthType\": \"static\",\r\n    \"items\": [\r\n        {\r\n            \"itemTitle\": \"President of the USA\",\r\n            \"itemKey\": \"President\",\r\n            \"description\": \"The president of the United States of America for a 4 year period\",\r\n            \"selectionType\": \"single-choice\",\r\n            \"options\": [\r\n                {\r\n                    \"optionKey\": \"Trump\",\r\n                    \"optionTitle\": \"Donald J. Trump\"\r\n                },\r\n                {\r\n                    \"optionKey\": \"Biden\",\r\n                    \"optionTitle\": \"Joe Biden\"\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"itemTitle\": \"Vicepresident of the USA\",\r\n            \"itemKey\": \"Vicepresident\",\r\n            \"description\": \"The vicepresident of the United States of America for a 4 year period\",\r\n            \"selectionType\": \"multiple-choice-ordered\",\r\n            \"options\": [\r\n                {\r\n                    \"optionKey\": \"Harris\",\r\n                    \"optionTitle\": \"Kamala Harris\"\r\n                },\r\n                {\r\n                    \"optionKey\": \"Rice\",\r\n                    \"optionTitle\": \"Susan Rice\"\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://evoting.cryptit.at/api/election/create","description":"<p>Create a new election, this needs an account API key as authorization.<br />Once a collection has beend created, voters can access the vote page with the returned publicId and their registered voterKey:</p>\n<p><a href=\"https://evoting.cryptit.at/election/vote/%7BpublicId%7D?voterKey=%7BvoterKey%7D\">https://evoting.cryptit.at/election/vote/{publicId}?voterKey={voterKey}</a></p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"<API_KEY>"}]},"isInherited":true,"source":{"_postman_id":"6d3f5084-c142-4eb0-87db-470cd6f288e4","id":"6d3f5084-c142-4eb0-87db-470cd6f288e4","name":"Admin","type":"folder"}},"urlObject":{"path":["election","create"],"host":["https://evoting.cryptit.at/api"],"query":[],"variable":[]}},"response":[{"id":"d714ef21-aaaf-4f08-ac7e-2bff5790fc71","name":"Successful response","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"<API_KEY>","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"electionName\": \"Vorwahl 1\",\r\n    \"startTime\": \"2023-03-15 11:00\",\r\n    \"endTime\": \"2023-03-15 16:00\",\r\n    \"electionAuthType\": \"none\",\r\n    \"voterAuthType\": \"static\",\r\n    \"items\": [\r\n        {\r\n            \"itemTitle\": \"President of the USA\",\r\n            \"itemKey\": \"President\",\r\n            \"description\": \"The president of the United States of America for a 4 year period\",\r\n            \"selectionType\": \"single-choice\",\r\n            \"options\": [\r\n                {\r\n                    \"optionKey\": \"Trump\",\r\n                    \"optionTitle\": \"Donald J. Trump\"\r\n                },\r\n                {\r\n                    \"optionKey\": \"Biden\",\r\n                    \"optionTitle\": \"Joe Biden\"\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"itemTitle\": \"Vicepresident of the USA\",\r\n            \"itemKey\": \"Vicepresident\",\r\n            \"description\": \"The vicepresident of the United States of America for a 4 year period\",\r\n            \"selectionType\": \"multiple-choice-ordered\",\r\n            \"options\": [\r\n                {\r\n                    \"optionKey\": \"Harris\",\r\n                    \"optionTitle\": \"Kamala Harris\"\r\n                },\r\n                {\r\n                    \"optionKey\": \"Rice\",\r\n                    \"optionTitle\": \"Susan Rice\"\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://evoting.cryptit.at/api/election/create"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"\"lw9rjlwjtkv\""},{"key":"Content-Length","value":"31"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Date","value":"Fri, 10 Feb 2023 01:46:44 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"publicId\": \"Vorwahl-1-f8e681\"\n}"},{"id":"52984ac1-b12e-44ef-bd56-94fa5e51b40c","name":"Create with voter authentication","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"electionName\": \"Vorwahl 1\",\r\n    \"startTime\": \"2023-03-15 11:00\",\r\n    \"endTime\": \"2023-03-15 16:00\",\r\n    \"electionAuthType\": \"secret-key\",\r\n    \"voterAuthType\": \"dynamic\",\r\n    \"items\": [\r\n        {\r\n            \"itemTitle\": \"President of the USA\",\r\n            \"itemKey\": \"President\",\r\n            \"description\": \"The president of the United States of America for a 4 year period\",\r\n            \"selectionType\": \"single-choice\",\r\n            \"options\": [\r\n                {\r\n                    \"optionKey\": \"Trump\",\r\n                    \"optionTitle\": \"Donald J. Trump\"\r\n                },\r\n                {\r\n                    \"optionKey\": \"Biden\",\r\n                    \"optionTitle\": \"Joe Biden\"\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"itemTitle\": \"Vicepresident of the USA\",\r\n            \"itemKey\": \"Vicepresident\",\r\n            \"description\": \"The vicepresident of the United States of America for a 4 year period\",\r\n            \"selectionType\": \"multiple-choice-ordered\",\r\n            \"options\": [\r\n                {\r\n                    \"optionKey\": \"Harris\",\r\n                    \"optionTitle\": \"Kamala Harris\"\r\n                },\r\n                {\r\n                    \"optionKey\": \"Rice\",\r\n                    \"optionTitle\": \"Susan Rice\"\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://evoting.cryptit.at/api/election/create"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"2762e0b1-e22a-4b7e-9dec-bdcb11e4e71e"},{"name":"Add Keys","id":"76275703-6628-4434-919e-5c013ea047b5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"publicId\": \"Vorwahl-1-123456\",\r\n    \"keys\": [\r\n        \"abcd123\",\r\n        \"abcd234\",\r\n        \"abcd456\"\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://evoting.cryptit.at/api/election/addkeys","description":"<p>Add valid voter keys as the election owner if the election <code>voterAuthType</code> is set to <code>static</code> (if set to <code>dynamic</code> no voter keys need to be predefined)</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"<API_KEY>"}]},"isInherited":true,"source":{"_postman_id":"6d3f5084-c142-4eb0-87db-470cd6f288e4","id":"6d3f5084-c142-4eb0-87db-470cd6f288e4","name":"Admin","type":"folder"}},"urlObject":{"path":["election","addkeys"],"host":["https://evoting.cryptit.at/api"],"query":[],"variable":[]}},"response":[{"id":"f665faaf-4345-4fb8-9af4-ca6476b39067","name":"Successful response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"publicId\": \"Vorwahl 1#123456\",\r\n    \"keys\": [\r\n        \"abcd123\",\r\n        \"abcd234\",\r\n        \"abcd456\"\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://evoting.cryptit.at/api/election/addkeys"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"\"Success\""},{"id":"46ba41b1-f896-4773-9071-87c393635bcc","name":"Successful response (duplicate keys)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"publicId\": \"Vorwahl 1#123456\",\r\n    \"keys\": [\r\n        \"abcd123\",\r\n        \"abcd234\",\r\n        \"abcd456\"\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://evoting.cryptit.at/api/election/addkeys"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"duplicates\": [\n        \"abcd123\"\n    ]\n}"}],"_postman_id":"76275703-6628-4434-919e-5c013ea047b5"},{"name":"Remove Key","id":"c504d6a5-8c03-4c18-a979-b4d2ee54098a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"publicId\": \"Vorwahl-1-123456\",\r\n    \"key\": \"abcd123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://evoting.cryptit.at/api/election/removekey","description":"<p>Remove a voter key as the election owner</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"<API_KEY>"}]},"isInherited":true,"source":{"_postman_id":"6d3f5084-c142-4eb0-87db-470cd6f288e4","id":"6d3f5084-c142-4eb0-87db-470cd6f288e4","name":"Admin","type":"folder"}},"urlObject":{"path":["election","removekey"],"host":["https://evoting.cryptit.at/api"],"query":[{"disabled":true,"key":"","value":""}],"variable":[]}},"response":[{"id":"190c148b-0220-4339-baee-c4b886fcee4a","name":"Success response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"publicId\": \"Vorwahl 1#123456\",\r\n    \"key\": \"abcd123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://evoting.cryptit.at/api/election/removekey"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"\"Success\""},{"id":"d89a68d5-f177-4b41-b1bc-2ad6c3506717","name":"Bad request (key not found)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"publicId\": \"Vorwahl 1#123456\",\r\n    \"key\": \"abcd123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://evoting.cryptit.at/api/election/removekey"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"error\": \"Key not found in election\"\r\n}"}],"_postman_id":"c504d6a5-8c03-4c18-a979-b4d2ee54098a"}],"id":"6d3f5084-c142-4eb0-87db-470cd6f288e4","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"<API_KEY>"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"2597043d-3613-4f55-91e9-2852f7517375","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"68c4c6ce-908f-4b47-b26a-593858a4200b","type":"text/javascript","exec":[""]}}],"_postman_id":"6d3f5084-c142-4eb0-87db-470cd6f288e4","description":""},{"name":"Results","id":"493aa4a8-9d71-48e3-af61-0ed994be4c43","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://evoting.cryptit.at/api/election/results?publicId=Vorwahl-1-123456","description":"<p>After an election has ended anybody can request the results hash.</p>\n<p>The results can be viewed at</p>\n<p><a href=\"https://cryptit-e-voting.infura-ipfs.io/ipfs/Qmebg3PXPopHvLeQbk9QhjgxjDdqTfdEnd2B36DywGNcZU\">https://cryptit-e-voting.infura-ipfs.io/ipfs/</a>{result}<br />(Or any public IPFS gateway)</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"9db4c959-b0f5-4412-824c-6cf90e5a8ff4","id":"9db4c959-b0f5-4412-824c-6cf90e5a8ff4","name":"Election","type":"folder"}},"urlObject":{"path":["election","results"],"host":["https://evoting.cryptit.at/api"],"query":[{"key":"publicId","value":"Vorwahl-1-123456"}],"variable":[]}},"response":[{"id":"b0db496f-9def-4be9-a9f0-c48e80b54358","name":"Successful response","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"https://evoting.cryptit.at/api/election/results?publicId=Vorwahl-1-123456","host":["https://evoting.cryptit.at/api"],"path":["election","results"],"query":[{"key":"publicId","value":"Vorwahl-1-123456"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"result\": \"QmeEhFSnS1eB3nUcpTuFGwzx3wKPsLUiYAxasXgUNPxEaz\"\n}"},{"id":"59e99332-c9ce-4d39-b660-b4e81dc909cd","name":"Bad request (invalid election)","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"https://evoting.cryptit.at/api/election/results?publicId=Vorwahl-1-123456","host":["https://evoting.cryptit.at/api"],"path":["election","results"],"query":[{"key":"publicId","value":"Vorwahl-1-123456"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"error\": \"Invalid election query\"\r\n}"},{"id":"09bb771d-9af3-4bd1-8dc1-0d89d1fb51ef","name":"Bad request (closing election)","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"https://evoting.cryptit.at/api/election/results?publicId=Vorwahl-1-123456","host":["https://evoting.cryptit.at/api"],"path":["election","results"],"query":[{"key":"publicId","value":"Vorwahl-1-123456"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"error\": \"Running close election\"\r\n}"}],"_postman_id":"493aa4a8-9d71-48e3-af61-0ed994be4c43"},{"name":"Vote","id":"b96a3448-6d5c-4ec8-8ea1-a8761aebe70b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"publicId\": \"Vorwahl-1-123456\",\r\n    \"voterKey\": \"abcd123\",\r\n    \"voterHash\": \"hFSnS1eB3nUcpTuFGwzx3wKPs\",\r\n    \"votes\": [\r\n        {\r\n            \"itemTitle\": \"President of the united States\",\r\n            \"itemKey\": \"President\",\r\n            \"options\": [\r\n                {\r\n                    \"optionKey\": \"Biden\",\r\n                    \"optionTitle\": \"Joe Biden\"\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"itemTitle\": \"Vicepresident of the united States\",\r\n            \"itemKey\": \"Vicepresident\",\r\n            \"options\": [\r\n                {\r\n                    \"optionKey\": \"Harris\",\r\n                    \"optionTitle\": \"Kamala Harris\"\r\n                },\r\n                {\r\n                    \"optionKey\": \"Rice\",\r\n                    \"optionTitle\": \"Susan Rice\"\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://evoting.cryptit.at/api/election/vote","description":"<p>Vote as a valid voter. The election provider is supposed to give the valid voter key only when the voter is authorized on their platform.</p>\n<p>The receipt will view the actual vote at</p>\n<p><a href=\"https://cryptit-e-voting.infura-ipfs.io/ipfs/Qmebg3PXPopHvLeQbk9QhjgxjDdqTfdEnd2B36DywGNcZU\">https://cryptit-e-voting.infura-ipfs.io/ipfs/</a>{receipt}</p>\n<p>(Or any public IPFS gateway)</p>\n<p>It is recommended to lead the voters to the offical voting <a>page</a></p>\n<p><a>https://evoting.cryptit.at/election/vote/{publicId}?voterKey={voterKey}</a></p>\n<p>It is up to the voters themselves to find their receipt in the final results. Anybody will be able to recount every vote, only the voter has a possibility to know their vote within the results through their receipt.</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"9db4c959-b0f5-4412-824c-6cf90e5a8ff4","id":"9db4c959-b0f5-4412-824c-6cf90e5a8ff4","name":"Election","type":"folder"}},"urlObject":{"path":["election","vote"],"host":["https://evoting.cryptit.at/api"],"query":[],"variable":[]}},"response":[{"id":"634782d3-f0f8-4d2b-9094-d71ab671b6f3","name":"Successful response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"publicId\": \"Vorwahl-1-123456\",\r\n    \"voterKey\": \"abcd123\",\r\n    \"voterHash\": \"hFSnS1eB3nUcpTuFGwzx3wKPs\",\r\n    \"votes\": [\r\n        {\r\n            \"itemTitle\": \"President of the united States\",\r\n            \"itemKey\": \"President\",\r\n            \"options\": [\r\n                {\r\n                    \"optionKey\": \"Biden\",\r\n                    \"optionTitle\": \"Joe Biden\"\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"itemTitle\": \"Vicepresident of the united States\",\r\n            \"itemKey\": \"Vicepresident\",\r\n            \"options\": [\r\n                {\r\n                    \"optionKey\": \"Harris\",\r\n                    \"optionTitle\": \"Kamala Harris\"\r\n                },\r\n                {\r\n                    \"optionKey\": \"Rice\",\r\n                    \"optionTitle\": \"Susan Rice\"\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://evoting.cryptit.at/api/election/vote"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"receipt\": \"QmeEhFSnS1eB3nUcpTuFGwzx3wKPsLUiYAxasXgUNPxEaz\"\n}"},{"id":"d56d408b-f2b8-4787-b827-bd127090ad65","name":"Bad request (invalid voter)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"publicId\": \"Vorwahl-1-123456\",\r\n    \"voterKey\": \"abcd123456\",\r\n    \"voterHash\": \"hFSnS1eB3nUcpTuFGwzx3wKPs\",\r\n    \"votes\": [\r\n        {\r\n            \"itemTitle\": \"President of the united States\",\r\n            \"itemKey\": \"President\",\r\n            \"options\": [\r\n                {\r\n                    \"optionKey\": \"Biden\",\r\n                    \"optionTitle\": \"Joe Biden\"\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"itemTitle\": \"Vicepresident of the united States\",\r\n            \"itemKey\": \"Vicepresident\",\r\n            \"options\": [\r\n                {\r\n                    \"optionKey\": \"Harris\",\r\n                    \"optionTitle\": \"Kamala Harris\"\r\n                },\r\n                {\r\n                    \"optionKey\": \"Rice\",\r\n                    \"optionTitle\": \"Susan Rice\"\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://evoting.cryptit.at/api/election/vote"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"error\": \"Invalid voter\"\r\n}"},{"id":"397532b9-49e9-40dd-a736-d0be9763bd84","name":"Bad request (invalid election)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"publicId\": \"invalid-election\",\r\n    \"voterKey\": \"abcd123\",\r\n    \"voterHash\": \"hFSnS1eB3nUcpTuFGwzx3wKPs\",\r\n    \"votes\": [\r\n        {\r\n            \"itemTitle\": \"President of the united States\",\r\n            \"itemKey\": \"President\",\r\n            \"options\": [\r\n                {\r\n                    \"optionKey\": \"Biden\",\r\n                    \"optionTitle\": \"Joe Biden\"\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"itemTitle\": \"Vicepresident of the united States\",\r\n            \"itemKey\": \"Vicepresident\",\r\n            \"options\": [\r\n                {\r\n                    \"optionKey\": \"Harris\",\r\n                    \"optionTitle\": \"Kamala Harris\"\r\n                },\r\n                {\r\n                    \"optionKey\": \"Rice\",\r\n                    \"optionTitle\": \"Susan Rice\"\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://evoting.cryptit.at/api/election/vote"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"\"3y82aknjmhs\""},{"key":"Content-Length","value":"28"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Date","value":"Fri, 10 Feb 2023 01:56:44 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Invalid election\"\n}"},{"id":"fd0c5cf6-83ab-4811-86e4-41366747d840","name":"Successful secret-key vote","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"publicId\": \"Vorwahl-1-123456\",\r\n    \"voterKey\": \"abcd123\",\r\n    \"voterHash\": \"hFSnS1eB3nUcpTuFGwzx3wKPs\",\r\n    \"secretHash\": \"asdf34thdwgfh21354zhjw2rg\",\r\n    \"votes\": [\r\n        {\r\n            \"itemTitle\": \"President of the united States\",\r\n            \"itemKey\": \"President\",\r\n            \"options\": [\r\n                {\r\n                    \"optionKey\": \"Biden\",\r\n                    \"optionTitle\": \"Joe Biden\"\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"itemTitle\": \"Vicepresident of the united States\",\r\n            \"itemKey\": \"Vicepresident\",\r\n            \"options\": [\r\n                {\r\n                    \"optionKey\": \"Harris\",\r\n                    \"optionTitle\": \"Kamala Harris\"\r\n                },\r\n                {\r\n                    \"optionKey\": \"Rice\",\r\n                    \"optionTitle\": \"Susan Rice\"\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://evoting.cryptit.at/api/election/vote"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"b96a3448-6d5c-4ec8-8ea1-a8761aebe70b"}],"id":"9db4c959-b0f5-4412-824c-6cf90e5a8ff4","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"e15ba88c-5319-4d31-b5eb-fc5e6aa2607f","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"b119bed7-6544-4fba-b4bf-1cb605bed9ef","type":"text/javascript","exec":[""]}}],"_postman_id":"9db4c959-b0f5-4412-824c-6cf90e5a8ff4","description":""},{"name":"User","item":[{"name":"Request API Key","id":"39c88464-1521-442d-b30f-14407c1b7b40","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"admin@cryptit.at\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://evoting.cryptit.at/api/user/requestkey","description":"<p>Request an API key. This is a beta endpoint and will be removed in production release.</p>\n","urlObject":{"path":["user","requestkey"],"host":["https://evoting.cryptit.at/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"39c88464-1521-442d-b30f-14407c1b7b40"}],"id":"7072a091-1304-48ea-b9db-1c6fa21cb855","description":"<p>Endpoints for user administration</p>\n","_postman_id":"7072a091-1304-48ea-b9db-1c6fa21cb855"}],"event":[{"listen":"prerequest","script":{"id":"6a46a990-f47e-43de-93b4-54ad97064d86","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"28bf94a8-3a01-4afa-bd0d-d69fb4aeda13","type":"text/javascript","exec":[""]}}],"variable":[{"key":"host","value":"https://evoting.cryptit.at/api","type":"default"},{"key":"API_KEY","value":"<API_KEY>","type":"string"},{"key":"TEST_PUBLIC_ID","value":"Vorwahl-1-123456","type":"string"}]}