{"info":{"_postman_id":"c7887d9e-3b4a-4511-9acd-ce851168800f","name":"Base API","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"8898992","collectionId":"c7887d9e-3b4a-4511-9acd-ce851168800f","publishedId":"SVmzsviP","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF4700"},"publishDate":"2019-09-23T11:40:58.000Z"},"item":[{"name":"User","item":[{"name":"Create User","event":[{"listen":"prerequest","script":{"id":"5713e073-4cc1-4878-b084-09a177a60f28","exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"id":"6d1709f8-052d-497f-b120-d889f57a8735","exec":[""],"type":"text/javascript"}}],"id":"2e75d0c4-f219-4a00-a1f4-3d781d94489f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","value":"test@user.com","description":"<p>The email of the user</p>\n","type":"text"},{"key":"password","value":"12345678","description":"<p>The password</p>\n","type":"text"},{"key":"confirmation","value":"12345678","description":"<p>The password confirmation</p>\n","type":"text"},{"key":"custom_data","value":"{ \"key\": \"value\" }","description":"<p>Additional data in JSON format</p>\n","type":"text"}]},"url":"https://api.base-api.io/v1/users","description":"<p>Creates a user with the given email address and password.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"access_token"}]},"isInherited":true,"source":{"_postman_id":"c7887d9e-3b4a-4511-9acd-ce851168800f","id":"c7887d9e-3b4a-4511-9acd-ce851168800f","name":"Base API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","users"],"host":["api","base-api","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"2e75d0c4-f219-4a00-a1f4-3d781d94489f"},{"name":"List Users","event":[{"listen":"test","script":{"id":"0a634213-d5d5-454e-b186-81b66270753c","exec":["var data = pm.response.json();","var user = data.items[0]","","if (user) {","    pm.environment.set(\"user_id\", user.id);","}"],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"ef239f76-3f95-4d28-a376-fee58ccdb74e","exec":[""],"type":"text/javascript"}}],"id":"2792cef3-26ee-44af-b451-f288979b60fb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[{"key":"page","value":"1","description":"<p>The page</p>\n","type":"text"},{"key":"per_page","value":"10","description":"<p>The number of items per page</p>\n","type":"text"}]},"url":"https://api.base-api.io/v1/users","description":"<p>Returns the list of users.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"access_token"}]},"isInherited":true,"source":{"_postman_id":"c7887d9e-3b4a-4511-9acd-ce851168800f","id":"c7887d9e-3b4a-4511-9acd-ce851168800f","name":"Base API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","users"],"host":["api","base-api","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"2792cef3-26ee-44af-b451-f288979b60fb"},{"name":"Get User","id":"8c744f1f-5afd-4540-96ee-e867ad461080","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.base-api.io/v1/users/{{user_id}}","description":"<p>Returns the details of the user with the given ID.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"access_token"}]},"isInherited":true,"source":{"_postman_id":"c7887d9e-3b4a-4511-9acd-ce851168800f","id":"c7887d9e-3b4a-4511-9acd-ce851168800f","name":"Base API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","users","{{user_id}}"],"host":["api","base-api","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"8c744f1f-5afd-4540-96ee-e867ad461080"},{"name":"Update User","id":"f0314268-ea58-4f6c-9ed0-3264fda21a61","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"description":"<p>The new email</p>\n","key":"email","type":"text","value":"test2@user.com"},{"description":"<p>The new custom data</p>\n","key":"custom_Data","type":"text","value":"{ \"key2\": \"value2\" }"}]},"url":"https://api.base-api.io/v1/users/{{user_id}}","description":"<p>Updates the email or custom data of the user with the given ID.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"access_token"}]},"isInherited":true,"source":{"_postman_id":"c7887d9e-3b4a-4511-9acd-ce851168800f","id":"c7887d9e-3b4a-4511-9acd-ce851168800f","name":"Base API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","users","{{user_id}}"],"host":["api","base-api","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"f0314268-ea58-4f6c-9ed0-3264fda21a61"},{"name":"Request Password Reset","event":[{"listen":"test","script":{"id":"1060c000-0efb-45b6-a28c-2d3f67d0be7c","exec":["var data = pm.response.json();","","pm.environment.set(\"forgot_password_token\", data.forgot_password_token);"],"type":"text/javascript"}}],"id":"dac17726-5d82-4142-9ca2-16b547ca010e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"description":"<p>The users email</p>\n","key":"email","type":"text","value":"test2@user.com"}]},"url":"https://api.base-api.io/v1/password","description":"<p>Starts the fogot password flow by generating a token which can be used to set a new password.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"access_token"}]},"isInherited":true,"source":{"_postman_id":"c7887d9e-3b4a-4511-9acd-ce851168800f","id":"c7887d9e-3b4a-4511-9acd-ce851168800f","name":"Base API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","password"],"host":["api","base-api","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"dac17726-5d82-4142-9ca2-16b547ca010e"},{"name":"Set New Password","event":[{"listen":"test","script":{"id":"1060c000-0efb-45b6-a28c-2d3f67d0be7c","exec":["var data = pm.response.json();","","pm.environment.set(\"forgot_password_token\", data.forgot_password_token);"],"type":"text/javascript"}}],"id":"a58ccb28-6533-4a49-8a97-0f9bb553dffd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"formdata","formdata":[{"description":"<p>The forgot password token</p>\n","key":"forgot_password_token","type":"text","value":"{{forgot_password_token}}"},{"key":"password","value":"123456","description":"<p>The new password</p>\n","type":"text"},{"key":"confirmation","value":"123456","description":"<p>The password confirmation</p>\n","type":"text"}]},"url":"https://api.base-api.io/v1/password","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"access_token"}]},"isInherited":true,"source":{"_postman_id":"c7887d9e-3b4a-4511-9acd-ce851168800f","id":"c7887d9e-3b4a-4511-9acd-ce851168800f","name":"Base API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","password"],"host":["api","base-api","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"a58ccb28-6533-4a49-8a97-0f9bb553dffd"},{"name":"Authenticate","id":"3d37e892-a748-47dc-93d3-04c41c77fa29","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"description":"<p>The email of the user</p>\n","key":"email","type":"text","value":"test2@user.com"},{"description":"<p>The password of the user</p>\n","key":"password","type":"text","value":"123456"}]},"url":"https://api.base-api.io/v1/sessions","description":"<p>This endpoint is for checking credentials of a user, if they are valid the user is returned.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"access_token"}]},"isInherited":true,"source":{"_postman_id":"c7887d9e-3b4a-4511-9acd-ce851168800f","id":"c7887d9e-3b4a-4511-9acd-ce851168800f","name":"Base API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","sessions"],"host":["api","base-api","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"3d37e892-a748-47dc-93d3-04c41c77fa29"},{"name":"Delete User","event":[{"listen":"test","script":{"id":"32fe77f0-421c-4610-b9a8-2367b44551c6","exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"d94dfdd5-621e-4129-86ec-911f05c46cbd","exec":[""],"type":"text/javascript"}}],"id":"45f92fd1-a96d-4b73-ab1a-71d4777d58ba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.base-api.io/v1/users/{{user_id}}","description":"<p>Deletes the user with the given ID.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"access_token"}]},"isInherited":true,"source":{"_postman_id":"c7887d9e-3b4a-4511-9acd-ce851168800f","id":"c7887d9e-3b4a-4511-9acd-ce851168800f","name":"Base API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","users","{{user_id}}"],"host":["api","base-api","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"45f92fd1-a96d-4b73-ab1a-71d4777d58ba"}],"id":"64c06eb4-1e53-431d-b4ec-72cf1d1afa87","_postman_id":"64c06eb4-1e53-431d-b4ec-72cf1d1afa87","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"access_token"}]},"isInherited":true,"source":{"_postman_id":"c7887d9e-3b4a-4511-9acd-ce851168800f","id":"c7887d9e-3b4a-4511-9acd-ce851168800f","name":"Base API","type":"collection"}}},{"name":"Email","item":[{"name":"Send","id":"304ac5e6-a748-42c2-b85b-bf3a5a45d7c1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"from","value":"yo@base-api.io","description":"<p>The from address</p>\n","type":"text"},{"key":"to","value":"test@user.com","description":"<p>The to address</p>\n","type":"text"},{"key":"subject","value":"Test Email","description":"<p>The subject of the email</p>\n","type":"text"},{"key":"html","value":"<b>HTML Content</b>","description":"<p>The HTML content</p>\n","type":"text"},{"key":"text","value":"Text Content","description":"<p>The plain text content</p>\n","type":"text"}]},"url":"https://api.base-api.io/v1/emails","description":"<p>Sends an email using the provided parameters.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"access_token"}]},"isInherited":true,"source":{"_postman_id":"c7887d9e-3b4a-4511-9acd-ce851168800f","id":"c7887d9e-3b4a-4511-9acd-ce851168800f","name":"Base API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","emails"],"host":["api","base-api","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"304ac5e6-a748-42c2-b85b-bf3a5a45d7c1"},{"name":"List Emails","event":[{"listen":"test","script":{"id":"0a634213-d5d5-454e-b186-81b66270753c","exec":["var data = pm.response.json();","var file = data.items[0]","","if (file) {","    pm.environment.set(\"file_id\", file.id);","}"],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"ef239f76-3f95-4d28-a376-fee58ccdb74e","exec":[""],"type":"text/javascript"}}],"id":"05c743d6-c50e-4cfe-9aba-a51c238a7136","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[{"description":"<p>The page</p>\n","key":"page","type":"text","value":"1"},{"description":"<p>The number of items per page</p>\n","key":"per_page","type":"text","value":"10"}]},"url":"https://api.base-api.io/v1/emails","description":"<p>Returns the list of uploaded files.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"access_token"}]},"isInherited":true,"source":{"_postman_id":"c7887d9e-3b4a-4511-9acd-ce851168800f","id":"c7887d9e-3b4a-4511-9acd-ce851168800f","name":"Base API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","emails"],"host":["api","base-api","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"05c743d6-c50e-4cfe-9aba-a51c238a7136"}],"id":"d923c678-22c4-48b4-a28b-5035cd9d2a5a","_postman_id":"d923c678-22c4-48b4-a28b-5035cd9d2a5a","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"access_token"}]},"isInherited":true,"source":{"_postman_id":"c7887d9e-3b4a-4511-9acd-ce851168800f","id":"c7887d9e-3b4a-4511-9acd-ce851168800f","name":"Base API","type":"collection"}}},{"name":"Files","item":[{"name":"Upload a File","id":"c606f1da-1571-420f-aeae-1b9b6b1401cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"file","description":"<p>The file</p>\n","type":"file","src":"/home/gdot/Work/yarn-error.log"}]},"url":"https://api.base-api.io/v1/files","description":"<p>Uploads a file to be used later on.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"access_token"}]},"isInherited":true,"source":{"_postman_id":"c7887d9e-3b4a-4511-9acd-ce851168800f","id":"c7887d9e-3b4a-4511-9acd-ce851168800f","name":"Base API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","files"],"host":["api","base-api","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"c606f1da-1571-420f-aeae-1b9b6b1401cb"},{"name":"List Files","event":[{"listen":"test","script":{"id":"0a634213-d5d5-454e-b186-81b66270753c","exec":["var data = pm.response.json();","var file = data.items[0]","","if (file) {","    pm.environment.set(\"file_id\", file.id);","}"],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"ef239f76-3f95-4d28-a376-fee58ccdb74e","exec":[""],"type":"text/javascript"}}],"id":"dfcc6910-23fc-484e-937d-4844daf79a81","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[{"description":"<p>The page</p>\n","key":"page","type":"text","value":"1"},{"description":"<p>The number of items per page</p>\n","key":"per_page","type":"text","value":"10"}]},"url":"https://api.base-api.io/v1/files","description":"<p>Returns the list of uploaded files.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"access_token"}]},"isInherited":true,"source":{"_postman_id":"c7887d9e-3b4a-4511-9acd-ce851168800f","id":"c7887d9e-3b4a-4511-9acd-ce851168800f","name":"Base API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","files"],"host":["api","base-api","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"dfcc6910-23fc-484e-937d-4844daf79a81"},{"name":"Get File","id":"93dfb84f-0b13-400d-84c2-fc8ad365df55","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.base-api.io/v1/files/{{file_id}}","description":"<p>Returns the details of the file with the given ID.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"access_token"}]},"isInherited":true,"source":{"_postman_id":"c7887d9e-3b4a-4511-9acd-ce851168800f","id":"c7887d9e-3b4a-4511-9acd-ce851168800f","name":"Base API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","files","{{file_id}}"],"host":["api","base-api","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"93dfb84f-0b13-400d-84c2-fc8ad365df55"},{"name":"Delete File","id":"cb5dd36d-b087-48ff-89e0-a1563fe04f8f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.base-api.io/v1/files/{{file_id}}","description":"<p>Deletes the user with the given ID.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"access_token"}]},"isInherited":true,"source":{"_postman_id":"c7887d9e-3b4a-4511-9acd-ce851168800f","id":"c7887d9e-3b4a-4511-9acd-ce851168800f","name":"Base API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","files","{{file_id}}"],"host":["api","base-api","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"cb5dd36d-b087-48ff-89e0-a1563fe04f8f"}],"id":"9ff9f64a-c6a4-45ec-b625-710c211f388b","_postman_id":"9ff9f64a-c6a4-45ec-b625-710c211f388b","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"access_token"}]},"isInherited":true,"source":{"_postman_id":"c7887d9e-3b4a-4511-9acd-ce851168800f","id":"c7887d9e-3b4a-4511-9acd-ce851168800f","name":"Base API","type":"collection"}}},{"name":"Images","item":[{"name":"Upload an Image","id":"ea183c3b-f07d-44c9-b699-0dc93e427da5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/x-www-form-urlencoded"}],"body":{"mode":"formdata","formdata":[{"description":"<p>The image</p>\n","key":"image","type":"file","src":"/home/gdot/Pictures/szikszai_gusztav-4ab1eefc.jpg"}]},"url":"https://api.base-api.io/v1/images","description":"<p>Uploads an image to be used later on.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"access_token"}]},"isInherited":true,"source":{"_postman_id":"c7887d9e-3b4a-4511-9acd-ce851168800f","id":"c7887d9e-3b4a-4511-9acd-ce851168800f","name":"Base API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","images"],"host":["api","base-api","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"ea183c3b-f07d-44c9-b699-0dc93e427da5"},{"name":"List Images","event":[{"listen":"test","script":{"id":"0a634213-d5d5-454e-b186-81b66270753c","exec":["var data = pm.response.json();","var image = data.items[0]","","if (image) {","    pm.environment.set(\"image_id\", image.id);","}"],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"ef239f76-3f95-4d28-a376-fee58ccdb74e","exec":[""],"type":"text/javascript"}}],"id":"c83f2baf-451a-4b35-8051-0fe6ce8a8e66","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[{"description":"<p>The page</p>\n","key":"page","type":"text","value":"1"},{"description":"<p>The number of items per page</p>\n","key":"per_page","type":"text","value":"10"}]},"url":"https://api.base-api.io/v1/images","description":"<p>Returns the list of images.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"access_token"}]},"isInherited":true,"source":{"_postman_id":"c7887d9e-3b4a-4511-9acd-ce851168800f","id":"c7887d9e-3b4a-4511-9acd-ce851168800f","name":"Base API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","images"],"host":["api","base-api","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"c83f2baf-451a-4b35-8051-0fe6ce8a8e66"},{"name":"Get Image","id":"19af6b68-4f83-4909-ad56-83062c967a94","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.base-api.io/v1/images/{{image_id}}","description":"<p>Returns the details of the image with the given ID.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"access_token"}]},"isInherited":true,"source":{"_postman_id":"c7887d9e-3b4a-4511-9acd-ce851168800f","id":"c7887d9e-3b4a-4511-9acd-ce851168800f","name":"Base API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","images","{{image_id}}"],"host":["api","base-api","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"19af6b68-4f83-4909-ad56-83062c967a94"},{"name":"Image Version","id":"00a45240-9f86-48c1-a785-eaed30b0ea68","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.base-api.io/v1/images/{{image_id}}/image?crop=0_0_200_200&resize=100_100&format=png&quality=1","description":"<p>Returns a version of the image.</p>\n<p>The image can be cropped, resized and formatted using query parameters.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"access_token"}]},"isInherited":true,"source":{"_postman_id":"c7887d9e-3b4a-4511-9acd-ce851168800f","id":"c7887d9e-3b4a-4511-9acd-ce851168800f","name":"Base API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","images","{{image_id}}","image"],"host":["api","base-api","io"],"query":[{"description":{"content":"<p>The crop options</p>\n","type":"text/plain"},"key":"crop","value":"0_0_200_200"},{"description":{"content":"<p>The resize options</p>\n","type":"text/plain"},"key":"resize","value":"100_100"},{"description":{"content":"<p>The format (png, jpg)</p>\n","type":"text/plain"},"key":"format","value":"png"},{"description":{"content":"<p>The quality (if the format is jpg)</p>\n","type":"text/plain"},"key":"quality","value":"1"}],"variable":[]}},"response":[],"_postman_id":"00a45240-9f86-48c1-a785-eaed30b0ea68"},{"name":"Delete Image","id":"ca022c7a-09fe-4801-982e-be1e30fd9ae4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.base-api.io/v1/images/{{image_id}}","description":"<p>Deletes the image with the given ID.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"access_token"}]},"isInherited":true,"source":{"_postman_id":"c7887d9e-3b4a-4511-9acd-ce851168800f","id":"c7887d9e-3b4a-4511-9acd-ce851168800f","name":"Base API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","images","{{image_id}}"],"host":["api","base-api","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"ca022c7a-09fe-4801-982e-be1e30fd9ae4"}],"id":"f3082bea-1ee7-42ca-8759-2bf4b0783c31","_postman_id":"f3082bea-1ee7-42ca-8759-2bf4b0783c31","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"access_token"}]},"isInherited":true,"source":{"_postman_id":"c7887d9e-3b4a-4511-9acd-ce851168800f","id":"c7887d9e-3b4a-4511-9acd-ce851168800f","name":"Base API","type":"collection"}}},{"name":"Forms","item":[{"name":"Create a Form","id":"cc07f417-79e0-41c4-ad30-b6e2399b573f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Test","description":"<p>The name of the form</p>\n","type":"text"}]},"url":"https://api.base-api.io/v1/forms","description":"<p>Creates a form using the given name.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"access_token"}]},"isInherited":true,"source":{"_postman_id":"c7887d9e-3b4a-4511-9acd-ce851168800f","id":"c7887d9e-3b4a-4511-9acd-ce851168800f","name":"Base API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","forms"],"host":["api","base-api","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"cc07f417-79e0-41c4-ad30-b6e2399b573f"},{"name":"List Forms","event":[{"listen":"test","script":{"id":"0a634213-d5d5-454e-b186-81b66270753c","exec":["var data = pm.response.json();","var form = data.items[0]","","if (form) {","    pm.environment.set(\"form_id\", form.id);","}"],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"ef239f76-3f95-4d28-a376-fee58ccdb74e","exec":[""],"type":"text/javascript"}}],"id":"7e3c852c-0d7a-4584-a9ca-d6988aa5aa25","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[{"description":"<p>The page</p>\n","key":"page","type":"text","value":"1"},{"description":"<p>The number of items per page</p>\n","key":"per_page","type":"text","value":"10"}]},"url":"https://api.base-api.io/v1/forms","description":"<p>Returns the list of forms.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"access_token"}]},"isInherited":true,"source":{"_postman_id":"c7887d9e-3b4a-4511-9acd-ce851168800f","id":"c7887d9e-3b4a-4511-9acd-ce851168800f","name":"Base API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","forms"],"host":["api","base-api","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"7e3c852c-0d7a-4584-a9ca-d6988aa5aa25"},{"name":"Submit a Form","id":"e2349a2a-c795-47d3-8704-d87ca8ec42be","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"description":"<p>An example key value pair</p>\n","key":"key1","type":"text","value":"value1"},{"description":"<p>An other example key value pair</p>\n","key":"key2","type":"text","value":"value2"},{"description":"<p>An example file</p>\n","key":"file","type":"file","src":"/home/gdot/Work/yarn-error.log"}]},"url":"https://api.base-api.io/v1/forms/{{form_id}}/submit","description":"<p>Submits a form, all of the provided data will be converted into a JSON object, all files uploaded will be stored and their IDs returned.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"access_token"}]},"isInherited":true,"source":{"_postman_id":"c7887d9e-3b4a-4511-9acd-ce851168800f","id":"c7887d9e-3b4a-4511-9acd-ce851168800f","name":"Base API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","forms","{{form_id}}","submit"],"host":["api","base-api","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"e2349a2a-c795-47d3-8704-d87ca8ec42be"},{"name":"List Submissions","event":[{"listen":"test","script":{"id":"0a634213-d5d5-454e-b186-81b66270753c","exec":["var data = pm.response.json();","var submission = data.items[0]","","if (submission) {","    pm.environment.set(\"submission_id\", submission.id);","}"],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"ef239f76-3f95-4d28-a376-fee58ccdb74e","exec":[""],"type":"text/javascript"}}],"id":"da78f2b1-58e3-4a91-ad16-5c1f3853bbde","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[{"description":"<p>The page</p>\n","key":"page","type":"text","value":"1"},{"description":"<p>The number of items per page</p>\n","key":"per_page","type":"text","value":"10"}]},"url":"https://api.base-api.io/v1/forms/{{form_id}}/submissions","description":"<p>Returns a list of submissions for the form with the given ID.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"access_token"}]},"isInherited":true,"source":{"_postman_id":"c7887d9e-3b4a-4511-9acd-ce851168800f","id":"c7887d9e-3b4a-4511-9acd-ce851168800f","name":"Base API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","forms","{{form_id}}","submissions"],"host":["api","base-api","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"da78f2b1-58e3-4a91-ad16-5c1f3853bbde"},{"name":"Get Submission","id":"7a08c11e-07ec-42df-92d8-081888a7e4df","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.base-api.io/v1/forms/{{form_id}}/submissions/{{submission_id}}","description":"<p>Returns the submission with the given ID of the form with the given ID.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"access_token"}]},"isInherited":true,"source":{"_postman_id":"c7887d9e-3b4a-4511-9acd-ce851168800f","id":"c7887d9e-3b4a-4511-9acd-ce851168800f","name":"Base API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","forms","{{form_id}}","submissions","{{submission_id}}"],"host":["api","base-api","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"7a08c11e-07ec-42df-92d8-081888a7e4df"},{"name":"Delete Submission","id":"59ea81ca-a0cb-435f-9c1b-5d55133222ed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.base-api.io/v1/forms/{{form_id}}/submissions/{{submission_id}}","description":"<p>Delete the submission with the given ID of the form with the given ID.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"access_token"}]},"isInherited":true,"source":{"_postman_id":"c7887d9e-3b4a-4511-9acd-ce851168800f","id":"c7887d9e-3b4a-4511-9acd-ce851168800f","name":"Base API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","forms","{{form_id}}","submissions","{{submission_id}}"],"host":["api","base-api","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"59ea81ca-a0cb-435f-9c1b-5d55133222ed"},{"name":"Get Form","id":"568c6183-d113-45c0-9e13-5980771376b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.base-api.io/v1/forms/{{form_id}}","description":"<p>Returns the form with the given ID.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"access_token"}]},"isInherited":true,"source":{"_postman_id":"c7887d9e-3b4a-4511-9acd-ce851168800f","id":"c7887d9e-3b4a-4511-9acd-ce851168800f","name":"Base API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","forms","{{form_id}}"],"host":["api","base-api","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"568c6183-d113-45c0-9e13-5980771376b1"},{"name":"Delete Form","id":"1854be91-50b7-4c8b-8693-b7b3feff4f6b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.base-api.io/v1/forms/{{form_id}}","description":"<p>Deletes the form with the given ID.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"access_token"}]},"isInherited":true,"source":{"_postman_id":"c7887d9e-3b4a-4511-9acd-ce851168800f","id":"c7887d9e-3b4a-4511-9acd-ce851168800f","name":"Base API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","forms","{{form_id}}"],"host":["api","base-api","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"1854be91-50b7-4c8b-8693-b7b3feff4f6b"}],"id":"222da64f-dd4a-4771-9a10-b239c2084d2d","_postman_id":"222da64f-dd4a-4771-9a10-b239c2084d2d","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"access_token"}]},"isInherited":true,"source":{"_postman_id":"c7887d9e-3b4a-4511-9acd-ce851168800f","id":"c7887d9e-3b4a-4511-9acd-ce851168800f","name":"Base API","type":"collection"}}},{"name":"Mailing Lists","item":[{"name":"Create a Mailing List","id":"4a580733-0872-420e-8a0d-61c64273e391","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"description":"<p>The name</p>\n","key":"name","type":"text","value":"Test"},{"description":"<p>The url to redirect to when unsubscribing from a mailing list</p>\n","key":"unsubscribe_redirect_url","type":"text","value":"https://www.google.com"}]},"url":"https://api.base-api.io/v1/mailing_lists","description":"<p>Creates a mailing list with the given name and usubscribe redirect url.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"access_token"}]},"isInherited":true,"source":{"_postman_id":"c7887d9e-3b4a-4511-9acd-ce851168800f","id":"c7887d9e-3b4a-4511-9acd-ce851168800f","name":"Base API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","mailing_lists"],"host":["api","base-api","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"4a580733-0872-420e-8a0d-61c64273e391"},{"name":"List Mailing Lists","event":[{"listen":"test","script":{"id":"0a634213-d5d5-454e-b186-81b66270753c","exec":["var data = pm.response.json();","var list = data.items[0]","","if (list) {","    pm.environment.set(\"list_id\", list.id);","}"],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"ef239f76-3f95-4d28-a376-fee58ccdb74e","exec":[""],"type":"text/javascript"}}],"id":"ba544abe-c33e-42a9-8175-88ba76a7886b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[{"key":"page","type":"text","value":"1"},{"key":"per_page","type":"text","value":"10"}]},"url":"https://api.base-api.io/v1/mailing_lists","description":"<p>Returns the list of mailing lists.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"access_token"}]},"isInherited":true,"source":{"_postman_id":"c7887d9e-3b4a-4511-9acd-ce851168800f","id":"c7887d9e-3b4a-4511-9acd-ce851168800f","name":"Base API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","mailing_lists"],"host":["api","base-api","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"ba544abe-c33e-42a9-8175-88ba76a7886b"},{"name":"Get Mailing List","id":"5a59d997-a4a3-474d-8adb-ffcffb4b4082","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.base-api.io/v1/mailing_lists/{{list_id}}","description":"<p>Returns the mailing list with the given ID.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"access_token"}]},"isInherited":true,"source":{"_postman_id":"c7887d9e-3b4a-4511-9acd-ce851168800f","id":"c7887d9e-3b4a-4511-9acd-ce851168800f","name":"Base API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","mailing_lists","{{list_id}}"],"host":["api","base-api","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"5a59d997-a4a3-474d-8adb-ffcffb4b4082"},{"name":"Subscribe to a Mailing List","id":"8b5b74e4-83eb-4c0d-a42f-b805851c3330","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"description":"<p>The email address</p>\n","key":"email","type":"text","value":"test@user.com"}]},"url":"https://api.base-api.io/v1/mailing_lists/{{list_id}}/subscribe","description":"<p>Subscribes the given email address to the mailing list with the given ID.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"access_token"}]},"isInherited":true,"source":{"_postman_id":"c7887d9e-3b4a-4511-9acd-ce851168800f","id":"c7887d9e-3b4a-4511-9acd-ce851168800f","name":"Base API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","mailing_lists","{{list_id}}","subscribe"],"host":["api","base-api","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"8b5b74e4-83eb-4c0d-a42f-b805851c3330"},{"name":"Send Emails","id":"19b220ad-e6a4-4ceb-ac1d-82685e89689c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"description":"<p>The from address</p>\n","key":"from","type":"text","value":"yo@base-api.io"},{"description":"<p>The subject of the email</p>\n","key":"subject","type":"text","value":"Test Email"},{"description":"<p>The HTML content</p>\n","key":"html","type":"text","value":"<b>HTML Content</b>"},{"description":"<p>The plain text content</p>\n","key":"text","type":"text","value":"Text Content"}]},"url":"https://api.base-api.io/v1/mailing_lists/{{list_id}}/send","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"access_token"}]},"isInherited":true,"source":{"_postman_id":"c7887d9e-3b4a-4511-9acd-ce851168800f","id":"c7887d9e-3b4a-4511-9acd-ce851168800f","name":"Base API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","mailing_lists","{{list_id}}","send"],"host":["api","base-api","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"19b220ad-e6a4-4ceb-ac1d-82685e89689c"},{"name":"Unsubscribe from a Mailing List","id":"c662e23b-506c-463b-a606-e455e1be9fa5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"description":"<p>The email address</p>\n","key":"email","type":"text","value":"test@user.com"}]},"url":"https://api.base-api.io/v1/mailing_lists/{{list_id}}/subscribe","description":"<p>Unsubscribes the given email address to the mailing list with the given ID.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"access_token"}]},"isInherited":true,"source":{"_postman_id":"c7887d9e-3b4a-4511-9acd-ce851168800f","id":"c7887d9e-3b4a-4511-9acd-ce851168800f","name":"Base API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","mailing_lists","{{list_id}}","subscribe"],"host":["api","base-api","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"c662e23b-506c-463b-a606-e455e1be9fa5"},{"name":"Delete Mailing List","id":"d9d56780-5e60-4876-b818-8810b9d7f5f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.base-api.io/v1/mailing_lists/{{list_id}}","description":"<p>Deletes the mailing list with the given ID.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"access_token"}]},"isInherited":true,"source":{"_postman_id":"c7887d9e-3b4a-4511-9acd-ce851168800f","id":"c7887d9e-3b4a-4511-9acd-ce851168800f","name":"Base API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","mailing_lists","{{list_id}}"],"host":["api","base-api","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"d9d56780-5e60-4876-b818-8810b9d7f5f6"}],"id":"dc242eb9-ce5e-4e98-a6d2-8de1a76b23ac","_postman_id":"dc242eb9-ce5e-4e98-a6d2-8de1a76b23ac","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"access_token"}]},"isInherited":true,"source":{"_postman_id":"c7887d9e-3b4a-4511-9acd-ce851168800f","id":"c7887d9e-3b4a-4511-9acd-ce851168800f","name":"Base API","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"access_token"}]}},"event":[{"listen":"prerequest","script":{"id":"41d0f283-983b-41a8-b285-9fcd966fc99c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"70e7917d-35ba-4771-8718-cd6cbd702ca0","type":"text/javascript","exec":[""]}}],"variable":[{"key":"access_token","value":"access_token"},{"key":"to_email","value":"test@user.com"}]}