{"info":{"_postman_id":"dc9da4c4-21d6-47b8-9fde-325820b49d84","name":"Snapforms Public API","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"12734438","collectionId":"dc9da4c4-21d6-47b8-9fde-325820b49d84","publishedId":"TVsrFpTu","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-12-17T12:29:02.000Z"},"item":[{"name":"Forms","item":[{"name":"Responses","item":[{"name":"All Responses","id":"68ae80cb-2f5f-42d7-ac4c-1050e7466d65","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"https://user.snapforms.com.au/api/forms/test-form/responses?date_from&date_to&date_modified_from&date_modified_to&limit&offset","urlObject":{"path":["api","forms","test-form","responses"],"host":["https://user.snapforms.com.au"],"query":[{"description":{"content":"<p>Date in YYYY-MM-DD Or YYYY-MM-DD HH:MM:SS format.\nOptional.\nStart date for the response date filter.</p>\n","type":"text/plain"},"key":"date_from","value":null},{"description":{"content":"<p>Date in YYYY-MM-DD Or YYYY-MM-DD HH:MM:SS format.\nOptional.\nEnd date for the response date filter.</p>\n","type":"text/plain"},"key":"date_to","value":null},{"description":{"content":"<p>Date in YYYY-MM-DD Or YYYY-MM-DD HH:MM:SS format.\nOptional.\nResponse modified start date for the response date filter.</p>\n","type":"text/plain"},"key":"date_modified_from","value":null},{"description":{"content":"<p>Date in YYYY-MM-DD Or YYYY-MM-DD HH:MM:SS format.\nOptional.\nResponse modified end date for the response date filter.</p>\n","type":"text/plain"},"key":"date_modified_to","value":null},{"description":{"content":"<p>Whole number only.\nOptional\nThe amount of responses you'd like to retrieve</p>\n","type":"text/plain"},"key":"limit","value":null},{"description":{"content":"<p>Whole number only.\nOptional.\nThe number of responses you'd like to skip. To be used in conjunction with 'limit'</p>\n","type":"text/plain"},"key":"offset","value":null}],"variable":[]}},"response":[{"id":"9b6995b7-c921-491f-9bdb-24eb0d15a598","name":"All Responses","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"https://user.snapforms.com.au/api/forms/example-form/responses"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Tue, 17 Nov 2020 12:28:44 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"7521"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Authorization"},{"key":"Cache-Control","value":"private, must-revalidate"},{"key":"pragma","value":"no-cache"},{"key":"expires","value":"-1"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"56"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Test Form\",\n    \"slug\": \"test-form\",\n    \"responses\": [\n        {\n            \"response_id\": 1,\n            \"datetime\": \"2020-09-29 23:11:20\",\n            \"datetime_modified\": \"2020-09-29 23:11:20\",\n            \"answers\": [\n                {\n                    \"question\": \"First Name\",\n                    \"type\": \"short_answer\",\n                    \"answer\": \"Joe\"\n                },\n                {\n                    \"question\": \"Last Name\",\n                    \"type\": \"short_answer\",\n                    \"answer\": \"Smith\"\n                },\n                {\n                    \"question\": \"Email Address\",\n                    \"type\": \"email\",\n                    \"answer\": \"joe.smith@example.net\"\n                },\n                {\n                    \"question\": \"Comments\",\n                    \"type\": \"long_answer\",\n                    \"answer\": \"The quick brown fox jumps over the lazy dog\"\n                }\n            ]\n        },\n        {\n            \"response_id\": 2,\n            \"datetime\": \"2020-09-29 23:28:11\",\n            \"datetime_modified\": \"2020-09-29 23:31:20\",\n            \"answers\": [\n                {\n                    \"question\": \"First Name\",\n                    \"type\": \"short_answer\",\n                    \"answer\": \"Joe\"\n                },\n                {\n                    \"question\": \"Last Name\",\n                    \"type\": \"short_answer\",\n                    \"answer\": \"Doe\"\n                },\n                {\n                    \"question\": \"Email Address\",\n                    \"type\": \"email\",\n                    \"answer\": \"jane.doe@exmaple.com\"\n                },\n                {\n                    \"question\": \"Comments\",\n                    \"type\": \"long_answer\",\n                    \"answer\": \"Pellentesque ut neque. Maecenas malesuada.\"\n                }\n            ]\n        }\n    ]\n}"},{"id":"f9ed85b7-aff2-47a7-909d-8431727438fc","name":"Not Found","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"https://user.snapforms.com.au/api/forms/not-found-example-form/responses"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Tue, 17 Nov 2020 12:28:44 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"7521"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Authorization"},{"key":"Cache-Control","value":"private, must-revalidate"},{"key":"pragma","value":"no-cache"},{"key":"expires","value":"-1"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"56"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Not Found\",\n    \"message\": \"Form not found\"\n}"},{"id":"72dc24b1-ef74-47e7-9509-ed293b50b14b","name":"Unauthorised","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"https://user.snapforms.com.au/api/forms/example-form/responses"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Tue, 17 Nov 2020 12:28:44 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"7521"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Authorization"},{"key":"Cache-Control","value":"private, must-revalidate"},{"key":"pragma","value":"no-cache"},{"key":"expires","value":"-1"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"56"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Unauthorised\",\n    \"message\": \"Not authorised\"\n}"}],"_postman_id":"68ae80cb-2f5f-42d7-ac4c-1050e7466d65"},{"name":"Search Responses","id":"8ad6c7a3-5711-4ebb-aeca-edae8ed7063f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"https://user.snapforms.com.au/api/forms/test-form/responses?search=John&field=First Name&date_from&date_to&date_modified_from&date_modified_to&limit&offset","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"dc9da4c4-21d6-47b8-9fde-325820b49d84","id":"dc9da4c4-21d6-47b8-9fde-325820b49d84","name":"Snapforms Public API","type":"collection"}},"urlObject":{"path":["api","forms","test-form","responses"],"host":["https://user.snapforms.com.au"],"query":[{"description":{"content":"<p>Search for a value across any form field</p>\n","type":"text/plain"},"key":"search","value":"John"},{"description":{"content":"<p>Optional: Narrow down search to a particular field</p>\n","type":"text/plain"},"key":"field","value":"First Name"},{"description":{"content":"<p>Date in YYYY-MM-DD Or YYYY-MM-DD HH:MM:SS format.\nOptional.\nStart date for the response date filter.</p>\n","type":"text/plain"},"key":"date_from","value":null},{"description":{"content":"<p>Date in YYYY-MM-DD Or YYYY-MM-DD HH:MM:SS format.\nOptional.\nEnd date for the response date filter.</p>\n","type":"text/plain"},"key":"date_to","value":null},{"description":{"content":"<p>Date in YYYY-MM-DD Or YYYY-MM-DD HH:MM:SS format.\nOptional.\nResponse modified start date for the response date filter.</p>\n","type":"text/plain"},"key":"date_modified_from","value":null},{"description":{"content":"<p>Date in YYYY-MM-DD Or YYYY-MM-DD HH:MM:SS format.\nOptional.\nResponse modified end date for the response date filter.</p>\n","type":"text/plain"},"key":"date_modified_to","value":null},{"description":{"content":"<p>Whole number only.\nOptional\nThe amount of responses you'd like to retrieve</p>\n","type":"text/plain"},"key":"limit","value":null},{"description":{"content":"<p>Whole number only.\nOptional.\nThe number of responses you'd like to skip. To be used in conjunction with 'limit'</p>\n","type":"text/plain"},"key":"offset","value":null}],"variable":[]}},"response":[{"id":"2edef631-840e-471f-8b26-f3a34a6c8adb","name":"Search Responses","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"https://user.snapforms.com.au/api/forms/example-form/responses?search=Joe&field=First Name","host":["https://user.snapforms.com.au"],"path":["api","forms","example-form","responses"],"query":[{"key":"search","value":"Joe","type":"text"},{"key":"field","value":"First Name","type":"text"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Tue, 17 Nov 2020 12:28:44 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"7521"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Authorization"},{"key":"Cache-Control","value":"private, must-revalidate"},{"key":"pragma","value":"no-cache"},{"key":"expires","value":"-1"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"56"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Test Form\",\n    \"slug\": \"test-form\",\n    \"responses\": [\n        {\n            \"response_id\": 2,\n            \"datetime\": \"2020-09-29 23:28:11\",\n            \"datetime_modified\": \"2020-09-29 23:31:20\",\n            \"answers\": [\n                {\n                    \"question\": \"First Name\",\n                    \"type\": \"short_answer\",\n                    \"answer\": \"Joe\"\n                },\n                {\n                    \"question\": \"Last Name\",\n                    \"type\": \"short_answer\",\n                    \"answer\": \"Doe\"\n                },\n                {\n                    \"question\": \"Email Address\",\n                    \"type\": \"email\",\n                    \"answer\": \"jane.doe@exmaple.com\"\n                },\n                {\n                    \"question\": \"Comments\",\n                    \"type\": \"long_answer\",\n                    \"answer\": \"Pellentesque ut neque. Maecenas malesuada.\"\n                }\n            ]\n        }\n    ]\n}"},{"id":"db238753-83f8-432f-a895-dd3f37c4ff33","name":"Not Found","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"https://user.snapforms.com.au/api/forms/example-form/responses?search=Joe&field=First Name","host":["https://user.snapforms.com.au"],"path":["api","forms","example-form","responses"],"query":[{"key":"search","value":"Joe"},{"key":"field","value":"First Name"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Tue, 17 Nov 2020 12:28:44 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"7521"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Authorization"},{"key":"Cache-Control","value":"private, must-revalidate"},{"key":"pragma","value":"no-cache"},{"key":"expires","value":"-1"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"56"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Not Found\",\n    \"message\": \"Form not found\"\n}"},{"id":"61ba7aed-b818-44bf-9ed0-28b59b8d9231","name":"Unauthorised","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"https://user.snapforms.com.au/api/forms/example-form/responses?search=Joe&field=First Name","host":["https://user.snapforms.com.au"],"path":["api","forms","example-form","responses"],"query":[{"key":"search","value":"Joe"},{"key":"field","value":"First Name"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Tue, 17 Nov 2020 12:28:44 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"7521"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Authorization"},{"key":"Cache-Control","value":"private, must-revalidate"},{"key":"pragma","value":"no-cache"},{"key":"expires","value":"-1"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"56"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Unauthorised\",\n    \"message\": \"Not authorised\"\n}"}],"_postman_id":"8ad6c7a3-5711-4ebb-aeca-edae8ed7063f"},{"name":"Single Response","id":"7918bf14-6772-42b8-8b23-f5c548fd86ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://user.snapforms.com.au/api/forms/{{slug}}/responses/{{response-id}}","description":"<p>Retrieve a <code>Form Response</code> using a particular response identifier.</p>\n<p>Replace {{slug}} with your unique Form identifier</p>\n<p>Replace {{response_id}} with the internal Response identifier.</p>\n","urlObject":{"protocol":"https","path":["api","forms","{{slug}}","responses","{{response-id}}"],"host":["user","snapforms","com","au"],"query":[],"variable":[]}},"response":[{"id":"3a038d4b-bb6e-4a3e-81fc-eb5ad0059bc1","name":"Single Response","originalRequest":{"method":"GET","header":[],"url":"https://user.snapforms.com.au/api/forms/example-form/responses/2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Tue, 17 Nov 2020 12:36:43 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"353"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Authorization"},{"key":"Cache-Control","value":"private, must-revalidate"},{"key":"pragma","value":"no-cache"},{"key":"expires","value":"-1"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"}],"cookie":[],"responseTime":null,"body":"{\n    \"form\": \"Example form\",\n    \"response_id\": 2,\n    \"datetime\": \"2020-09-29 23:28:11\",\n    \"answers\": [\n        {\n            \"question\": \"First Name\",\n            \"type\": \"short_answer\",\n            \"answer\": \"Jane\"\n        },\n        {\n            \"question\": \"Last Name\",\n            \"type\": \"short_answer\",\n            \"answer\": \"Doe\"\n        },\n        {\n            \"question\": \"Email Address\",\n            \"type\": \"email\",\n            \"answer\": \"jane.doe@example.com\"\n        },\n        {\n            \"question\": \"Comments\",\n            \"type\": \"long_answer\",\n            \"answer\": \"Pellentesque ut neque. Maecenas malesuada.\"\n        }\n    ]\n}"},{"id":"c2a51f15-d250-4a46-8440-46962f94c85e","name":"Not Found","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"https://user.snapforms.com.au/api/forms/example-form/responses/2"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Tue, 17 Nov 2020 12:28:44 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"7521"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Authorization"},{"key":"Cache-Control","value":"private, must-revalidate"},{"key":"pragma","value":"no-cache"},{"key":"expires","value":"-1"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"56"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Not Found\",\n    \"message\": \"Form not found\"\n}"}],"_postman_id":"7918bf14-6772-42b8-8b23-f5c548fd86ab"},{"name":"Single Response","id":"ab974729-e2ff-43ba-8d29-18bdd6ef9a7e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\"formdata\" : \n    {\n        \"first name\": \"Max\",\n        \"Enter email\": \"shoube@email.com\",\n        \"last Name\" : \"doe\", \n        \"clickme\" : \"1\",\n        \"multiple matrix\": [{\"question\":\"one\",\"answer\":\"three\"},{\"question\":\"two\",\"answer\":\"three\"}],\n        \"comments\": \"my comment goes here\",\n        \"dropdown\": \"cat\",\n        \"enter table\": [{\"row\":1,\"data\":[{\"fieldname\":\"dropdown lister\",\"fieldvalue\":\"two\"}]}],\n        \"enter multiple choice\" : [\"cricket\",\"chess\"]\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://user.snapforms.com.au/api/forms/test-form/responses","description":"<p>This API will import a single form response.</p>\n<p>The 'form slug' must be provided in the request URL.</p>\n<p>Parameters must contain <code>formdata</code> with an array of all { field : value } items.</p>\n<p>All the valid form fields will be saved.\nAll the invalid form fields will be ignored.</p>\n<p>The API will return a 422 code, when any one of the field validation fails. Validation failures could include:</p>\n<ul>\n<li>Required field not being supplied</li>\n<li>Email field not being a valid email</li>\n<li>Invalid option in the dropdown field</li>\n<li>Invalid checkbox answer (0 or 1 expected)</li>\n<li>Multiple checkbox choice field answer must be an array. ( e.g [\"cricket\",\"chess\"])</li>\n</ul>\n<p><strong>Request Parameters</strong></p>\n<ul>\n<li><strong>formdata:</strong> required/array</li>\n<li>array inside <code>formdata</code> must contain key:value pairs for all the fields, where key = <code>field name</code> and value = <code>answer value</code>.</li>\n</ul>\n<p>You can obtain a list of field names for a form in the View Form Fields API.</p>\n","urlObject":{"path":["api","forms","test-form","responses"],"host":["https://user.snapforms.com.au"],"query":[],"variable":[]}},"response":[{"id":"8b55d3e7-6d1d-43bc-9312-59a2f7e0475e","name":"Single Response","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\"formdata\" : \n    {\n        \"first name\": \"Max\",\n        \"Enter email\": \"shoube@email.com\",\n        \"last Name\" : \"doe\", \n        \"clickme\" : \"1\",\n        \"multiple matrix\": [{\"question\":\"one\",\"answer\":\"three\"},{\"question\":\"two\",\"answer\":\"three\"}],\n        \"comments\": \"my comment goes here\",\n        \"dropdown\": \"cat\",\n        \"enter table\": [{\"row\":1,\"data\":[{\"fieldname\":\"dropdown lister\",\"fieldvalue\":\"two\"}]}],\n        \"enter multiple choice\" : [\"cricket\",\"chess\"]\n    }\n}"},"url":"https://user.snapforms.com.au/api/forms/test-form/responses"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"success\":true,\n    \"message\":\"Data successfully imported.\"\n}"},{"id":"84c8c291-6bd2-41a3-bb3b-fbec47ff1e33","name":"Not Found","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\"formdata\" : \n    {\n        \"first name\": \"Max\",\n        \"Enter email\": \"shoube@email.com\",\n        \"last Name\" : \"doe\", \n        \"clickme\" : \"1\",\n        \"multiple matrix\": [{\"question\":\"one\",\"answer\":\"three\"},{\"question\":\"two\",\"answer\":\"three\"}],\n        \"comments\": \"my comment goes here\",\n        \"dropdown\": \"cat\",\n        \"enter table\": [{\"row\":1,\"data\":[{\"fieldname\":\"dropdown lister\",\"fieldvalue\":\"two\"}]}],\n        \"enter multiple choice\" : [\"cricket\",\"chess\"]\n    }\n}"},"url":"https://user.snapforms.com.au/api/forms/test-form/responses"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"error\":\"Not found\",\n    \"message\":\"Form not found\"\n}"},{"id":"d21015dd-0eba-48c3-9f02-dc3dc222622a","name":"Unauthorised","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"https://user.snapforms.com.au/api/forms/test-form/responses"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Tue, 17 Nov 2020 12:28:44 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"7521"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Authorization"},{"key":"Cache-Control","value":"private, must-revalidate"},{"key":"pragma","value":"no-cache"},{"key":"expires","value":"-1"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"56"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Unauthorised\",\n    \"message\": \"Not authorised\"\n}"},{"id":"f1ff39d1-bb2f-4c36-be71-c7528250c2d3","name":"Unprocessable Entity","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"https://user.snapforms.com.au/api/forms/example-form/responses"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Tue, 17 Nov 2020 12:28:44 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"7521"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Authorization"},{"key":"Cache-Control","value":"private, must-revalidate"},{"key":"pragma","value":"no-cache"},{"key":"expires","value":"-1"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"56"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Form data is empty\",\n    \"message\": \"Form data is empty\"\n}"},{"id":"15b5de5e-d989-4cac-abf2-2ef1f2a17c4d","name":"Internal Server Error","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"https://user.snapforms.com.au/api/forms/example-form/responses"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Tue, 17 Nov 2020 12:28:44 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"7521"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Authorization"},{"key":"Cache-Control","value":"private, must-revalidate"},{"key":"pragma","value":"no-cache"},{"key":"expires","value":"-1"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"56"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Internal Server Error\",\n    \"message\": \"We encountered an internal server error.\"\n}"}],"_postman_id":"ab974729-e2ff-43ba-8d29-18bdd6ef9a7e"},{"name":"Single Response","id":"f4c42926-5be0-47b7-9fd0-45a11dec70db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"[\n  {\n    \"question\": \"First Name\",\n    \"answer\": \"Jane\"\n  },\n  {\n    \"question\": \"Last Name\",\n    \"answer\": \"Jones\"\n  },\n  {\n    \"question\": \"Email\",\n    \"answer\": \"jane.jones@domain.com\"\n  }\n]","options":{"raw":{"language":"json"}}},"url":"https://user.snapforms.com.au/api/forms/test-form/responses/2","description":"<p>This API allows you to update the field answers for a single form response.</p>\n<p>The 'form slug' must be provided in the request URL.</p>\n<p>You <strong>do not</strong> need to provide every field as part of this request. You only need to include the fields for those you wish to change or add.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"dc9da4c4-21d6-47b8-9fde-325820b49d84","id":"dc9da4c4-21d6-47b8-9fde-325820b49d84","name":"Snapforms Public API","type":"collection"}},"urlObject":{"path":["api","forms","test-form","responses","2"],"host":["https://user.snapforms.com.au"],"query":[],"variable":[]}},"response":[{"id":"4c348344-f35f-4f27-8b02-d3de6f40b8a5","name":"Single Response","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"[\n    {\n        \"question\": \"First Name\",\n        \"answer\": \"Jane\"\n    },\n    {\n        \"question\": \"Last Name\",\n        \"answer\": \"Jones\"\n    },\n    {\n        \"question\": \"Email\",\n        \"answer\": \"jane.jones@domain.com\"\n    }\n]","options":{"raw":{"language":"json"}}},"url":"https://user.snapforms.com.au/api/forms/test-form/responses/2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"form\": \"Example form\",\n    \"response_id\": 2,\n    \"datetime\": \"2020-09-29 23:28:11\",\n    \"answers\": [\n        {\n            \"question\": \"First Name\",\n            \"type\": \"short_answer\",\n            \"answer\": \"Jane\"\n        },\n        {\n            \"question\": \"Last Name\",\n            \"type\": \"short_answer\",\n            \"answer\": \"Jones\"\n        },\n        {\n            \"question\": \"Email Address\",\n            \"type\": \"email\",\n            \"answer\": \"jane.jones@domain.com\"\n        },\n        {\n            \"question\": \"Comments\",\n            \"type\": \"long_answer\",\n            \"answer\": \"Pellentesque ut neque. Maecenas malesuada.\"\n        }\n    ]\n}"},{"id":"7c968aa8-80d3-4ebb-a0ce-f40912271eb0","name":"Not Found","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\"formdata\" : \n    {\n        \"first name\": \"Max\",\n        \"Enter email\": \"shoube@email.com\",\n        \"last Name\" : \"doe\", \n        \"clickme\" : \"1\",\n        \"multiple matrix\": [{\"question\":\"one\",\"answer\":\"three\"},{\"question\":\"two\",\"answer\":\"three\"}],\n        \"comments\": \"my comment goes here\",\n        \"dropdown\": \"cat\",\n        \"enter table\": [{\"row\":1,\"data\":[{\"fieldname\":\"dropdown lister\",\"fieldvalue\":\"two\"}]}],\n        \"enter multiple choice\" : [\"cricket\",\"chess\"]\n    }\n}"},"url":"https://user.snapforms.com.au/api/forms/test-form/responses/2"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"error\":\"Not found\",\n    \"message\":\"Form not found\"\n}"},{"id":"81693ab6-e2bd-4b71-9604-b92bd4bb6389","name":"Unauthorised","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"https://user.snapforms.com.au/api/forms/test-form/responses/2"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Tue, 17 Nov 2020 12:28:44 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"7521"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Authorization"},{"key":"Cache-Control","value":"private, must-revalidate"},{"key":"pragma","value":"no-cache"},{"key":"expires","value":"-1"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"56"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Unauthorised\",\n    \"message\": \"Not authorised\"\n}"},{"id":"d8d0ca5c-4525-453e-bbab-dbf73075d27b","name":"Internal Server Error","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"https://user.snapforms.com.au/api/forms/test-form/responses/2"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Tue, 17 Nov 2020 12:28:44 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"7521"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Authorization"},{"key":"Cache-Control","value":"private, must-revalidate"},{"key":"pragma","value":"no-cache"},{"key":"expires","value":"-1"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"56"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Internal Server Error\",\n    \"message\": \"We encountered an internal server error.\"\n}"}],"_postman_id":"f4c42926-5be0-47b7-9fd0-45a11dec70db"},{"name":"Single Response","id":"f44f445f-671a-4dee-a252-89d144e76e76","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://user.snapforms.com.au/api/forms/{{form-slug}}/responses/{{response-id}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"dc9da4c4-21d6-47b8-9fde-325820b49d84","id":"dc9da4c4-21d6-47b8-9fde-325820b49d84","name":"Snapforms Public API","type":"collection"}},"urlObject":{"path":["api","forms","{{form-slug}}","responses","{{response-id}}"],"host":["https://user.snapforms.com.au"],"query":[],"variable":[]}},"response":[{"id":"6eb5a727-2dfa-4abc-bf1f-2a262ae69e04","name":"Single Response","originalRequest":{"method":"DELETE","header":[],"url":"https://user.snapforms.com.au/api/forms/{{slug}}/responses/{{response-id}}"},"status":"No Content","code":204,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null},{"id":"57d27fb1-149e-4fff-a588-a6f0cf386220","name":"Not Found","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\"formdata\" : \n    {\n        \"first name\": \"Max\",\n        \"Enter email\": \"shoube@email.com\",\n        \"last Name\" : \"doe\", \n        \"clickme\" : \"1\",\n        \"multiple matrix\": [{\"question\":\"one\",\"answer\":\"three\"},{\"question\":\"two\",\"answer\":\"three\"}],\n        \"comments\": \"my comment goes here\",\n        \"dropdown\": \"cat\",\n        \"enter table\": [{\"row\":1,\"data\":[{\"fieldname\":\"dropdown lister\",\"fieldvalue\":\"two\"}]}],\n        \"enter multiple choice\" : [\"cricket\",\"chess\"]\n    }\n}"},"url":"https://user.snapforms.com.au/api/forms/test-form/responses/2"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"error\":\"Not found\",\n    \"message\":\"Form not found\"\n}"},{"id":"718df6f7-085d-4270-abbc-7176ffcde5fb","name":"Unauthorised","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"https://user.snapforms.com.au/api/forms/test-form/responses/2"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Tue, 17 Nov 2020 12:28:44 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"7521"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Authorization"},{"key":"Cache-Control","value":"private, must-revalidate"},{"key":"pragma","value":"no-cache"},{"key":"expires","value":"-1"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"56"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Unauthorised\",\n    \"message\": \"Not authorised\"\n}"},{"id":"f943cc84-6a0a-4468-b46f-e5975b7cab83","name":"Internal Server Error","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"https://user.snapforms.com.au/api/forms/test-form/responses/2"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Tue, 17 Nov 2020 12:28:44 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"7521"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Authorization"},{"key":"Cache-Control","value":"private, must-revalidate"},{"key":"pragma","value":"no-cache"},{"key":"expires","value":"-1"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"56"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Internal Server Error\",\n    \"message\": \"We encountered an internal server error.\"\n}"}],"_postman_id":"f44f445f-671a-4dee-a252-89d144e76e76"},{"name":"Single Response Temporary PDF URL","id":"21a3db12-6969-41be-b0db-78c0b90eae59","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://user.snapforms.com.au/api/forms/{{slug}}/responses/{{response-id}}/temporary-pdf-url","description":"<p>Retrieve a temporary PDF url that can be used to download the PDF with the response.</p>\n<p>Replace {{slug}} with your unique Form identifier</p>\n<p>Replace {{response_id}} with the internal Response identifier.</p>\n","urlObject":{"protocol":"https","path":["api","forms","{{slug}}","responses","{{response-id}}","temporary-pdf-url"],"host":["user","snapforms","com","au"],"query":[],"variable":[]}},"response":[{"id":"d5cefb35-01b7-4155-bdc4-6a2311e9371d","name":"Single Response Temporary PDF URL Response","originalRequest":{"method":"GET","header":[],"url":"https://user.snapforms.com.au/api/forms/{{slug}}/responses/{{response-id}}/temporary-pdf-url"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"url\": \"https://s3-temporary-url-for-downloading-the-pdf\",\n    \"name\": \"my-snapform-pdf-name\"\n}"}],"_postman_id":"21a3db12-6969-41be-b0db-78c0b90eae59"},{"name":"Single Response Temporary File URL","id":"54c67560-eafa-48aa-a87e-b37581a62468","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://user.snapforms.com.au/api/forms/{{slug}}/responses/{{response_id}}/temporary-file-url/{{file_key}}","description":"<p>Retrieve a temporary file url that can be used to download the file that was attatched to the response.</p>\n<p>Replace {{slug}} with your unique Form identifier</p>\n<p>Replace {{response_id}} with the internal Response identifier.</p>\n<p>Replace {{file_key}} with the value from the field answer.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"dc9da4c4-21d6-47b8-9fde-325820b49d84","id":"dc9da4c4-21d6-47b8-9fde-325820b49d84","name":"Snapforms Public API","type":"collection"}},"urlObject":{"path":["api","forms","{{slug}}","responses","{{response_id}}","temporary-file-url","{{file_key}}"],"host":["https://user.snapforms.com.au"],"query":[],"variable":[]}},"response":[{"id":"b1b4f618-b41d-4195-8b00-ae3e263c968b","name":"Single Response Temporary File URL Response","originalRequest":{"method":"GET","header":[],"url":"https://user.snapforms.com.au/api/forms/{{slug}}/responses/{{response_id}}/temporary-file-url/{{file_key}}"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"Streamed file response"},{"id":"7bd9ce19-aa00-4e9e-996b-44764a0ee1bc","name":"Forbidden","originalRequest":{"method":"GET","header":[],"url":"https://user.snapforms.com.au/api/forms/{{slug}}/responses/{{response_id}}/temporary-file-url/{{file_key}}"},"code":403,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":""}],"_postman_id":"54c67560-eafa-48aa-a87e-b37581a62468"},{"name":"New Request","id":"3bfccc53-9653-4e26-8554-bf19e4cbd2ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"dc9da4c4-21d6-47b8-9fde-325820b49d84","id":"dc9da4c4-21d6-47b8-9fde-325820b49d84","name":"Snapforms Public API","type":"collection"}},"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"3bfccc53-9653-4e26-8554-bf19e4cbd2ca"}],"id":"945dcefa-3cf5-4914-994b-e54ed6209b06","_postman_id":"945dcefa-3cf5-4914-994b-e54ed6209b06","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"dc9da4c4-21d6-47b8-9fde-325820b49d84","id":"dc9da4c4-21d6-47b8-9fde-325820b49d84","name":"Snapforms Public API","type":"collection"}}},{"name":"Form Fields","item":[{"name":"View form fields","id":"2bc11f4e-cb79-4327-a0a8-a5e5e56ea15b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://user.snapforms.com.au/api/forms/test-form/fields","description":"<p>This API returns all the fields for a particular form.</p>\n<p>The 'form slug' must be provided in the request URL.</p>\n<p><strong>Valid response fields</strong></p>\n<ul>\n<li><strong>type:</strong> The type of field e.g. Short Answer, Email, Dropdown</li>\n<li><strong>name:</strong> Name of the field - Unique for each element in the form</li>\n<li><strong>label:</strong> Label of the field - The field label displayed on the form. By default this is the same as the name but can be changed.</li>\n<li><strong>required:</strong> Boolean(true/false) - Determines if the field is a required field.</li>\n</ul>\n","urlObject":{"path":["api","forms","test-form","fields"],"host":["https://user.snapforms.com.au"],"query":[],"variable":[]}},"response":[{"id":"83c68021-a015-498a-93c1-850dc235ee1a","name":"View Form Fields Response","originalRequest":{"method":"GET","header":[],"url":"https://user.snapforms.com.au/api/forms/test-form/fields"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"text/html; charset=UTF-8"},{"key":"date","value":"Wed, 02 Jun 2021 21:00:00 GMT"},{"key":"Server","value":"nginx"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Protected-By","value":"Sqreen"},{"key":"Content-Length","value":"1241"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[{\"type\":\"Short Answer\",\"name\":\"First Names\",\"label\":\"First Names\",\"required\":true},{\"type\":\"Short Answer\",\"name\":\"Last Name\",\"label\":\"Last Name\",\"required\":false},{\"type\":\"Single Checkbox\",\"name\":\"clickme\",\"label\":\"clickme\",\"required\":true},{\"type\":\"Choose One\",\"name\":\"radio\",\"label\":\"radio\",\"required\":false},{\"type\":\"Dropdown List\",\"name\":\"dropdown\",\"label\":\"dropdown\",\"required\":true},{\"type\":\"Email Address\",\"name\":\"Email Address\",\"label\":\"Email Address\",\"required\":false},{\"type\":\"Choose Multiple\",\"name\":\"multiple\",\"label\":\"multiple\",\"required\":true},{\"type\":\"Long Answer\",\"name\":\"Comments\",\"label\":\"Comments\",\"required\":false}]"},{"id":"ee086639-f7f9-4efb-b87e-e2d4ae123239","name":"Not Found","originalRequest":{"method":"GET","header":[],"url":"https://user.snapforms.com.au/api/forms/invalid-form/fields"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"text/html; charset=UTF-8"},{"key":"date","value":"Wed, 02 Jun 2021 21:00:00 GMT"},{"key":"Server","value":"nginx"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Protected-By","value":"Sqreen"},{"key":"Content-Length","value":"1241"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Not found\",\n    \"message\": \"Form not found\"\n}"},{"id":"73692e15-6828-4edd-9860-1e246112778a","name":"Unauthorised","originalRequest":{"method":"GET","header":[],"url":"https://user.snapforms.com.au/api/forms/invalid-form/fields"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"text/html; charset=UTF-8"},{"key":"date","value":"Wed, 02 Jun 2021 21:00:00 GMT"},{"key":"Server","value":"nginx"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Protected-By","value":"Sqreen"},{"key":"Content-Length","value":"1241"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Unauthorised\",\n    \"message\": \"Not authorised\"\n}"}],"_postman_id":"2bc11f4e-cb79-4327-a0a8-a5e5e56ea15b"}],"id":"7feb66aa-fca6-4d76-b0ad-d7bbac33f74e","_postman_id":"7feb66aa-fca6-4d76-b0ad-d7bbac33f74e","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"dc9da4c4-21d6-47b8-9fde-325820b49d84","id":"dc9da4c4-21d6-47b8-9fde-325820b49d84","name":"Snapforms Public API","type":"collection"}}},{"name":"All forms","id":"166579d6-1225-4fac-9175-7321e01ce313","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://user.snapforms.com.au/api/forms/","description":"<p>Lists all accessible forms.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"dc9da4c4-21d6-47b8-9fde-325820b49d84","id":"dc9da4c4-21d6-47b8-9fde-325820b49d84","name":"Snapforms Public API","type":"collection"}},"urlObject":{"path":["api","forms",""],"host":["https://user.snapforms.com.au"],"query":[],"variable":[]}},"response":[{"id":"91e0a886-cf9e-4d69-b6ef-18c2f7d1a2e5","name":"All forms","originalRequest":{"method":"GET","header":[],"url":"https://user.snapforms.com.au/api/forms/"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"text/html; charset=UTF-8"},{"key":"Date","value":"Thu, 03 Jun 2021 23:15:25 GMT"},{"key":"Server","value":"nginx"},{"key":"Set-Cookie","value":"XSRF-TOKEN=eyJpdiI6InZraW91dFdhNTdVUkJDUzJiQWk2MUE9PSIsInZhbHVlIjoicWtjOFFXNWNzSnRXZHA4K2kwK2J2ZEV4d3FZOFdPTXEwa3FIS0Z5WXM3WDNyM2hGWVl0NmNZRXF3QzZ0RkJieiIsIm1hYyI6IjRlNDdkNGM5MDViNmRkN2UxYTU1YWU2MjA2NWQyNGJkMGJiOTJjOWJiOGExZmZlYjZlMWFhODQ1NWMwM2Y1ZTMifQ%3D%3D; expires=Fri, 04-Jun-2021 23:15:25 GMT; Max-Age=86400; path=/"},{"key":"Set-Cookie","value":"snapforms_session=eyJpdiI6Im5Lek5PRjhzcjl5ZVh0SXVYVzVpRHc9PSIsInZhbHVlIjoiejk0UTJJNytCeDhGKzJsdlNzeGFranUyS2VnTnkrb3pCXC9DYzZrTlFPbXQybXpRNENGdzNqS3paSm1Xd1p1XC90IiwibWFjIjoiYTRkNmE0Mjc1OTM4MTk2NmNiY2M1MWQ1NjYxOThlZGFlZmJlMGYzZDRjMDk2NGVmNmJkNGZkOGEwOTlkMDYzNiJ9; expires=Fri, 04-Jun-2021 23:15:25 GMT; Max-Age=86400; path=/; httponly"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Protected-By","value":"Sqreen"},{"key":"Content-Length","value":"2836"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"name\": \"Test leave request form\",\n        \"slug\": \"test-leave-request-form\"\n    },\n    {\n        \"name\": \"Patient intake form\",\n        \"slug\": \"patient-intake-form\"\n    }\n]"}],"_postman_id":"166579d6-1225-4fac-9175-7321e01ce313"}],"id":"5155069c-8950-41ed-a0d1-921946ce16c0","_postman_id":"5155069c-8950-41ed-a0d1-921946ce16c0","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"dc9da4c4-21d6-47b8-9fde-325820b49d84","id":"dc9da4c4-21d6-47b8-9fde-325820b49d84","name":"Snapforms Public API","type":"collection"}}},{"name":"Logs","item":[{"name":"View Logs","id":"b7711fc2-f5a3-49be-9006-dac51d47f292","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://user.snapforms.com.au/api/logs?date_from=2023-01-01&date_to=2023-01-30&limit=500&page=1","description":"<p>This API returns all the logs.</p>\n","urlObject":{"protocol":"https","path":["api","logs"],"host":["user","snapforms","com","au"],"query":[{"description":{"content":"<p>(Optional) <strong>date_from</strong> parameter.\nISO8601 formats are valid.</p>\n<p>Accepted formats with example: </p>\n<ul>\n<li>YYYY-MM-DD: <strong>2024-06-18</strong></li>\n<li>YYYY-MM-DD HH:MM:SS: <strong>2024-06-18 06:12:25</strong></li>\n<li>ISO8601-YYYY-MM-DDThh:mm:ss.sTZD : <strong>2024-06-18T01:57:28.000Z</strong></li>\n<li>ISO8601-YYYY-MM-DDThh:mm:ssTZD : <strong>2024-06-18T01:57:28Z</strong></li>\n<li>ISO8601-YYYY-MM-DD hh:mm:ss.sTZD : <strong>2024-06-18 01:57:28.000Z</strong></li>\n</ul>\n<p>Start date for <strong>Logs</strong> date filter.</p>\n","type":"text/plain"},"key":"date_from","value":"2023-01-01"},{"description":{"content":"<p>(Optional) <strong>date_to</strong> parameter.</p>\n<p>ISO8601 formats are valid.\nAccepted formats with example: </p>\n<ul>\n<li>YYYY-MM-DD: <strong>2024-06-18</strong></li>\n<li>YYYY-MM-DD HH:MM:SS: <strong>2024-06-18 06:12:25</strong></li>\n<li>ISO8601-YYYY-MM-DDThh:mm:ss.sTZD : <strong>2024-06-18T01:57:28.000Z</strong></li>\n<li>ISO8601-YYYY-MM-DDThh:mm:ssTZD : <strong>2024-06-18T01:57:28Z</strong></li>\n<li>ISO8601-YYYY-MM-DD hh:mm:ss.sTZD : <strong>2024-06-18 01:57:28.000Z</strong></li>\n</ul>\n<p>End date for <strong>Logs</strong> date filter.</p>\n","type":"text/plain"},"key":"date_to","value":"2023-01-30"},{"description":{"content":"<p>(Optional) Whole number only. \nThe amount of logs you'd like to retrieve. \nDefaults to 500. Max. value of 500</p>\n","type":"text/plain"},"key":"limit","value":"500"},{"description":{"content":"<p>(Optional) Whole number only.\nDefaults to 1.</p>\n","type":"text/plain"},"key":"page","value":"1"}],"variable":[]}},"response":[{"id":"426470eb-4034-4304-b41f-8a7427d4f038","name":"Response ok","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://user.snapforms.com.au/api/logs"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"text/html; charset=UTF-8"},{"key":"date","value":"Wed, 02 Jun 2021 21:00:00 GMT"},{"key":"Server","value":"nginx"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Protected-By","value":"Sqreen"},{"key":"Content-Length","value":"1241"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\"data\":[{\"area\":\"Forms\",\"action\":\"form.update\",\"form\":{\"id\":1,\"name\":\"Patient intake form\",\"slug\":\"patient-intake-form\"},\"message\":\"User updated the form\",\"user\":{\"id\":1,\"username\":\"maxdoe\",\"email\":\"shoube@email.com\"},\"ip\":\"255.255.255.255\",\"level\":\"info\",\"datetime\":\"2023-06-04T06:41:42.000000Z\"},{\"area\":\"Account\",\"action\":\"auth.login\",\"message\":\"User logged in\",\"user\":{\"id\":2,\"username\":\"johndoe\",\"email\":\"shoube2@email.com\"},\"ip\":\"55.255.255.255\",\"level\":\"info\",\"datetime\":\"2023-05-30T06:41:42.000000Z\"}],\"links\":{\"self\":\"link-value\",\"first\":\"https:\\/\\/user.snapforms.com.au\\/api\\/logs?page=1\",\"last\":\"https:\\/\\/user.snapforms.com.au\\/api\\/logs?page=1\",\"prev\":null,\"next\":null},\"meta\":{\"current_page\":1,\"from\":1,\"last_page\":1,\"links\":[{\"url\":null,\"label\":\"&laquo; Previous\",\"active\":false},{\"url\":\"https:\\/\\/useruser.snapforms.com.au\\/api\\/logs?page=1\",\"label\":\"1\",\"active\":true},{\"url\":null,\"label\":\"Next &raquo;\",\"active\":false}],\"path\":\"https:\\/\\/user.snapforms.com.au\\/api\\/logs\",\"per_page\":500,\"to\":2,\"total\":2}}"}],"_postman_id":"b7711fc2-f5a3-49be-9006-dac51d47f292"}],"id":"873eb172-3194-4fb9-b121-900f9569ec48","_postman_id":"873eb172-3194-4fb9-b121-900f9569ec48","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"dc9da4c4-21d6-47b8-9fde-325820b49d84","id":"dc9da4c4-21d6-47b8-9fde-325820b49d84","name":"Snapforms Public API","type":"collection"}}},{"name":"Get Auth Tokens","id":"279f2f52-3fd8-4ea7-804b-1b66fc1a968c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"description":"<p>Your client id</p>\n","key":"client_id","type":"text","value":"29"},{"description":"<p>Your client secret</p>\n","key":"client_secret","type":"text","value":"Ofr4x2fjcN0Ku5KmTIyOCqrs8YQcW66wESW0UqEv"},{"description":"<p>Type of grant to be used</p>\n","key":"grant_type","type":"text","value":"password"},{"description":"<p>The email attached to your snapforms account</p>\n","key":"username","type":"text","value":"contact+1@snapforms.com.au"},{"description":"<p>The password for your snapforms account</p>\n","key":"password","type":"text","value":"Snapforms9999"}]},"url":"https://user.snapforms.com.au/oauth/token","description":"<p>The access_token received can be used to authenticate for all other API calls.  </p>\n<p>If the access_token expires please complete this oauth call again to receive a new one.</p>\n","urlObject":{"path":["oauth","token"],"host":["https://user.snapforms.com.au"],"query":[],"variable":[]}},"response":[{"id":"7ec545d0-b01e-41dd-b95a-a3e33cdab9e8","name":"Login using username & password","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"client_id","value":"7834","description":"Your client id","type":"text"},{"key":"client_secret","value":"zFhNH37jF9a4nLPXZAVUrYCgW3CRTRNAgZUhTWOO","description":"Your client secret","type":"text"},{"key":"grant_type","value":"password","description":"Type of grant to be used","type":"text"},{"key":"username","value":"jane.doe@example.com","description":"The email attached to your snapforms user account","type":"text"},{"key":"password","value":"J!n4sPassword","description":"The password for your snapforms user account","type":"text"},{"key":"","value":"","type":"text","disabled":true}]},"url":"https://user.snapforms.com.au/oauth/token"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 14 Sep 2020 11:35:46 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"X-Frame-Options","value":"DENY"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"pragma","value":"no-cache"},{"key":"Cache-Control","value":"no-store, private"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Content-Length","value":"1859"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json; charset=UTF-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"token_type\": \"Bearer\",\n    \"expires_in\": 31536000,\n    \"access_token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6ImQwYzM4MWIzMDY5MWMxZmM2NTNhOTBkZjViYWVmNmE3M2ZiN2IzMzMzMDRkYzA1NDZiYzAyNDc1MDUzMjE4NDkwMGJlYTkzMzVjMTU1ZjI3In0.eyJhdWQiOiIyIiwianRpIjoiZDBjMzgxYjMwNjkxYzFmYzY1M2E5MGRmNWJhZWY2YTczZmI3YjMzMzMwNGRjMDU0NmJjMDI0NzUwNTMyMTg0OTAwYmVhOTMzNWMxNTVmMjciLCJpYXQiOjE2MDAwODMzNDYsIm5iZiI6MTYwMDA4MzM0NiwiZXhwIjoxNjMxNjE5MzQ2LCJzdWIiOiIyIiwic2NvcGVzIjpbXX0.MrEULi3iE2gJCIWuD8RPwB4R6qHkp9rha9xl_0hsKlfde2RG9vVxzW4QhgCScpN5JawijLQhMFmuzLc-FAiffhUudkYelmQn8nOici4I8ALY-FsBto093HfX_Z-UaHZWR_PmBC0WWAp_xAfMQ_PVfc57l7UO0_-TUwrW5mDN5kOaT6ZqG5jwXa37haXODg7_QSpHvkRJ2KiETPKBCGyDoG5q6rgi_ueavco58NDxgVEI2_4IdBVHwhUPIiTGY6EKAo-zbTkVnAqTPe9XwLX6a1r1L3BGOJYEeSFim1yByBL5VGHI9aRlOFWm_GoeChAq5glvjDuDvD1x5XieblzboBi2qncIhqX6IIkj9ZasS4DPFXee1kufGoQjlYD_XbvNIJE1e-PUXhagPqDwicjeX8fhkuxTKhdLFppT0Mjqh8y6x4pVdpa7jq6S2ma-UMXwGHUF_3lr4bSzwXPrKvNzOgHxUqs5xYqax0dD3pPFNZZB716Sdo_n7gdqc-F_C7TRRM6BFNXUKGSXFowIispP3kjK5AKc_5fuXLJLoB9tRVKSx0vJlCYtiMXc19mzCoORdVEBk536GIp_JMF2FiWJ77frL7mgmicDUeISyMxPpQTGOrOFzecGvkoDN3gFhl14rMxkmycwll0EpuzDoMr2US16WnaR0XCih7feSfKYSms\",\n    \"refresh_token\": \"def502002c1de3a1ec4d038841234d8e6d39e138d348c72b6e65c391fee780debfd37356be6d84c915c6150862cc5d9ea21a753e5e143727f190fedb5607593cfc49e557a3389239b2a5133972b524875ed9d89b25d252a99a8647dea5ae91f8371a90c163b08e30b723d0a581b882f8b390574da75c4c024c4eaca9528150ab30cd94c90a00a55aaf3cf08b206b179c7f25b129218bb19dce755329d634f2045419653e3593e810d53a509f0ee0c7e4a40a519e0de1f4f50c0ca3ebd398bc985d46c1f734256e68ae22fd7636df65dec1d0ac6c2d0f727b16af32da1e2e9d2ae808894e833cca5a1a11e9f7883874972769e9306a12f67f72071804681d4454d3da02ab8b65f738b3b956567ea961d063b35a4fc71cc68bb7dcdd0d06acdec9ce20f9c9bdb35ed56e35b47789389afe33e11a89ed8f3ba489407a9ed0ac5b9f4f4dba10b4ecf627e8175df9ee19d7b5b795133f63a33cddb2971996607c5fb3b7\"\n}"}],"_postman_id":"279f2f52-3fd8-4ea7-804b-1b66fc1a968c"},{"name":"Refresh Auth Tokens","id":"f184ad82-0b2c-47ae-8b5c-8f12955e1b98","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"description":"<p>Your client id</p>\n","key":"client_id","type":"text","value":"3"},{"description":"<p>Your client secret</p>\n","key":"client_secret","type":"text","value":"VWhaJN1U52Pk7oOPfhRguEGl7cXbnDqvgnso8KL3"},{"description":"<p>Type of grant to be used</p>\n","key":"grant_type","type":"text","value":"refresh_token"},{"description":"<p>Your refresh token</p>\n","key":"refresh_token","type":"text","value":"your-refresh-token"}]},"url":"https://user.snapforms.com.au/oauth/token","description":"<p>This endpoint allows you to use your refresh_token to generate a new (fresh) access token.</p>\n<p>The refresh_token would have been received when first requesting your auth tokens.</p>\n","urlObject":{"path":["oauth","token"],"host":["https://user.snapforms.com.au"],"query":[],"variable":[]}},"response":[{"id":"9f100680-94c9-402d-b507-f7a92dd0ba6e","name":"Login using username & password","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"client_id","value":"7834","description":"Your client id","type":"text"},{"key":"client_secret","value":"zFhNH37jF9a4nLPXZAVUrYCgW3CRTRNAgZUhTWOO","description":"Your client secret","type":"text"},{"key":"grant_type","value":"refresh_token","description":"Type of grant to be used","type":"text"},{"key":"refresh_token","value":"def502002c1de3a1ec4d038841234d8e6d39e138d348c72b6e65c391fee780debfd37356be6d84c915c6150862cc5d9ea21a753e5e143727f190fedb5607593cfc49e557a3389239b2a5133972b524875ed9d89b25d252a99a8647dea5ae91f8371a90c163b08e30b723d0a581b882f8b390574da75c4c024c4eaca9528150ab30cd94c90a00a55aaf3cf08b206b179c7f25b129218bb19dce755329d634f2045419653e3593e810d53a509f0ee0c7e4a40a519e0de1f4f50c0ca3ebd398bc985d46c1f734256e68ae22fd7636df65dec1d0ac6c2d0f727b16af32da1e2e9d2ae808894e833cca5a1a11e9f7883874972769e9306a12f67f72071804681d4454d3da02ab8b65f738b3b956567ea961d063b35a4fc71cc68bb7dcdd0d06acdec9ce20f9c9bdb35ed56e35b47789389afe33e11a89ed8f3ba489407a9ed0ac5b9f4f4dba10b4ecf627e8175df9ee19d7b5b795133f63a33cddb2971996707c5fb6b6","description":"Your refresh token","type":"text"},{"key":"","value":"","type":"text","disabled":true}]},"url":"https://user.snapforms.com.au/oauth/token"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 14 Sep 2020 11:35:46 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"X-Frame-Options","value":"DENY"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"pragma","value":"no-cache"},{"key":"Cache-Control","value":"no-store, private"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Content-Length","value":"1859"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json; charset=UTF-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"token_type\": \"Bearer\",\n    \"expires_in\": 31536000,\n    \"access_token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6ImQwYzM4MWIzMDY5MWMxZmM2NTNhOTBkZjViYWVmNmE3M2ZiN2IzMzMzMDRkYzA1NDZiYzAyNDc1MDUzMjE4NDkwMGJlYTkzMzVjMTU1ZjI3In0.eyJhdWQiOiIyIiwianRpIjoiZDBjMzgxYjMwNjkxYzFmYzY1M2E5MGRmNWJhZWY2YTczZmI3YjMzMzMwNGRjMDU0NmJjMDI0NzUwNTMyMTg0OTAwYmVhOTMzNWMxNTVmMjciLCJpYXQiOjE2MDAwODMzNDYsIm5iZiI6MTYwMDA4MzM0NiwiZXhwIjoxNjMxNjE5MzQ2LCJzdWIiOiIyIiwic2NvcGVzIjpbXX0.MrEULi3iE2gJCIWuD8RPwB4R6qHkp9rha9xl_0hsKlfde2RG9vVxzW4QhgCScpN5JawijLQhMFmuzLc-FAiffhUudkYelmQn8nOici4I8ALY-FsBto093HfX_Z-UaHZWR_PmBC0WWAp_xAfMQ_PVfc57l7UO0_-TUwrW5mDN5kOaT6ZqG5jwXa37haXODg7_QSpHvkRJ2KiETPKBCGyDoG5q6rgi_ueavco58NDxgVEI2_4IdBVHwhUPIiTGY6EKAo-zbTkVnAqTPe9XwLX6a1r1L3BGOJYEeSFim1yByBL5VGHI9aRlOFWm_GoeChAq5glvjDuDvD1x5XieblzboBi2qncIhqX6IIkj9ZasS4DPFXee1kufGoQjlYD_XbvNIJE1e-PUXhagPqDwicjeX8fhkuxTKhdLFppT0Mjqh8y6x4pVdpa7jq6S2ma-UMXwGHUF_3lr4bSzwXPrKvNzOgHxUqs5xYqax0dD3pPFNZZB716Sdo_n7gdqc-F_C7TRRM6BFNXUKGSXFowIispP3kjK5AKc_5fuXLJLoB9tRVKSx0vJlCYtiMXc19mzCoORdVEBk536GIp_JMF2FiWJ77frL7mgmicDUeISyMxPpQTGOrOFzecGvkoDN3gFhl14rMxkmycwll0EpuzDoMr2US16WnaR0XCih7feSfKYSms\",\n    \"refresh_token\": \"def502002c1de3a1ec4d038841234d8e6d39e138d348c72b6e65c391fee780debfd37356be6d84c915c6150862cc5d9ea21a753e5e143727f190fedb5607593cfc49e557a3389239b2a5133972b524875ed9d89b25d252a99a8647dea5ae91f8371a90c163b08e30b723d0a581b882f8b390574da75c4c024c4eaca9528150ab30cd94c90a00a55aaf3cf08b206b179c7f25b129218bb19dce755329d634f2045419653e3593e810d53a509f0ee0c7e4a40a519e0de1f4f50c0ca3ebd398bc985d46c1f734256e68ae22fd7636df65dec1d0ac6c2d0f727b16af32da1e2e9d2ae808894e833cca5a1a11e9f7883874972769e9306a12f67f72071804681d4454d3da02ab8b65f738b3b956567ea961d063b35a4fc71cc68bb7dcdd0d06acdec9ce20f9c9bdb35ed56e35b47789389afe33e11a89ed8f3ba489407a9ed0ac5b9f4f4dba10b4ecf627e8175df9ee19d7b5b795133f63a33cddb2971996607c5fb3b7\"\n}"}],"_postman_id":"f184ad82-0b2c-47ae-8b5c-8f12955e1b98"}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]}},"event":[{"listen":"prerequest","script":{"id":"204eba26-04bc-43ac-8930-6e046b1c8b4d","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"14e96d55-d6e5-41bf-a293-ed85e31123f5","type":"text/javascript","exec":[""]}}],"variable":[{"key":"protocol","value":"https://"},{"key":"domain","value":"user.snapforms.com.au"},{"key":"base_url","value":"https://user.snapforms.com.au"},{"key":"form_slug","value":"test-form"}]}