{"info":{"_postman_id":"bf024c3d-ded6-4350-9c3b-0738f9143157","name":"ReachIn-Box","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"31788909","collectionId":"bf024c3d-ded6-4350-9c3b-0738f9143157","publishedId":"2sA35HX1Y1","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-04-01T11:41:34.000Z"},"item":[{"name":"Get All Drafts","id":"03e006c9-4efc-4c0c-a5ed-05584aef2372","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://reachin-box-assignment.onrender.com/api/mail/all-draft/prityss7991@gmail.com","description":"<p>This endpoint retrieves all draft emails for a specific user. The request should be made using an HTTP GET method to the specified URL. The response will be in JSON format and will include an array of draft emails, along with the result size estimate.</p>\n<p>The response will have a status code of 200 indicating a successful request. The content type of the response will be \"application/json\". The response body will contain an array of draft emails, where each draft contains an ID and a message with its own ID and thread ID.</p>\n<p>Example response body:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"drafts\": [\n        {\n            \"id\": \"\",\n            \"message\": {\n                \"id\": \"\",\n                \"threadId\": \"\"\n            }\n        }\n    ],\n    \"resultSizeEstimate\": 0\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["api","mail","all-draft","prityss7991@gmail.com"],"host":["reachin-box-assignment","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"03e006c9-4efc-4c0c-a5ed-05584aef2372"},{"name":"Read Particular Message","id":"cbdae8fe-67e5-4d91-9c54-c1ba99c9c9e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://reachin-box-assignment.onrender.com/api/mail/read-mail/prityss7991@gmail.com/message/18a609755b7af37c","description":"<p>This HTTP GET request is used to retrieve a specific email message with the given email address and message ID. The response will be in JSON format and will contain details of the email message such as ID, thread ID, label IDs, snippet, payload information including part ID, MIME type, filename, headers, body size, and data, size estimate, history ID, and internal date.</p>\n","urlObject":{"protocol":"https","path":["api","mail","read-mail","prityss7991@gmail.com","message","18a609755b7af37c"],"host":["reachin-box-assignment","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"cbdae8fe-67e5-4d91-9c54-c1ba99c9c9e9"},{"name":"Get mails by register email-id","id":"8f1f437a-5da3-4e73-b1e6-dbf5950b09cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"from\":\"prityss7991@gmail.com\",\r\n    \"to\":\"surajyoti9839@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://reachin-box-assignment.onrender.com/api/mail/getMail/prityss7991@gmail.com","description":"<p>This API endpoint retrieves the mail messages for the specified email address. It makes an HTTP GET request to the provided URL with the email address as a path parameter.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li>Method: GET</li>\n<li>URL: <code>https://reachin-box-assignment.onrender.com/api/mail/getMail/{email}</code></li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>Upon a successful request, the API returns a JSON object with the following properties:</p>\n<ul>\n<li><code>messages</code> (array): An array of mail message objects, each containing an <code>id</code> and <code>threadId</code>.</li>\n<li><code>nextPageToken</code> (string): Token for fetching the next page of messages.</li>\n<li><code>resultSizeEstimate</code> (number): Estimate of the total number of messages.</li>\n</ul>\n<p>Example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"messages\": [\n        {\n            \"id\": \"\",\n            \"threadId\": \"\"\n        }\n    ],\n    \"nextPageToken\": \"\",\n    \"resultSizeEstimate\": 0\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["api","mail","getMail","prityss7991@gmail.com"],"host":["reachin-box-assignment","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"8f1f437a-5da3-4e73-b1e6-dbf5950b09cb"},{"name":"Sending Mail in Queue","id":"a6bf0b8a-1e12-4c54-bf46-d3f7d93adc1a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"from\":\"prityss7991@gmail.com\",\r\n    \"to\":\"surajyoti9839@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://reachin-box-assignment.onrender.com/mail/send/18e9f88685e5ea20","urlObject":{"protocol":"https","path":["mail","send","18e9f88685e5ea20"],"host":["reachin-box-assignment","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"a6bf0b8a-1e12-4c54-bf46-d3f7d93adc1a"},{"name":"Outlook","id":"23b3d543-f70d-4aa1-bbec-a17b627d9617","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer EwB4A8l6BAAUTTy6dbu0OLf3Lzl3R/vfUXxq8g8AAbZH/5pZT46qpyR/tqIWlshJMVdxpkHVShX7beoynluwpQfHqLFpeJX/FAXCNVLcUpodhZ9lV1YZe/VZZucJrZA6gqAcoluhGfaNEuzC1pLI9PWRW3z0cwO6U1/tHcycT7B8D2Lo2l4Nc0pS+YZl2adNklHBOBTv7OrtBRse+6CzpRolFwxA7Bzgmn/5JUNTyqB7N3yj8aHunM0FaobFVAN9ajFViIj0GXyF4lx06lDq/H9MD0/qyWBN8MKOnW3ISwmXmf6OKFnNaYT6Ub/nkW/AvXTd36c3b2vlDhGVENBJqWSSxmhiy0eSgNEbYsNJm5Lyi2OcVfcYi9mj8IT4xgwDZgAACC8PcVjHQ1d4SAI+ga4Z2eF+mPUtwYtdtJ5+l56gBS/zjdo1ieQMasnDFprPzn/LGzkkYmheCCx0LvdaHIjRL/Taw2FKYM/WwgRvdz7LPoTqsysM3MfTUCmHigTbzM40TENyzu48lcKcKRfDvBNmyiSU4UiFzsyMDwaCGU8k7mqvNXRtK74pY0+1b2j7bIH/FJwXkBZV/IoZ9p/dVAezMo9IYZL5Si94RLDkAlc2lSpPmcNjmfpMk6BWVHUgLE4WmKsugVJ2Zj6eVYVOsZSEiBcES0STvrsWbuVX5SWkgAKkB1S/b/635OX6Isn/tGxzdV0g+hN2SoGRlVtUD5R1jKAFjp5L5HKIRKgcLoEFzt0CDKtx8uO842j0kLpyhRz8aN01sT5osNgOy/aKgmMqhvfRTFMkBkDjm5Nd1jKkE4WZpd6y5zKErmPCMcHZ1lEZ60oitjVEYGin+ge0zmyXMRhPZsZm3NxunkXnli9XNh0tLVm1eYmq36ECpSybAca7oxw6MYyOeUzwtA7kmZ7KJsKXwhb6ave3oodTy1x4NPpcmWWh+z0A1GOGPBD/ZJvcVK176z8ZQPHRiKg0H8zAq5KWEsaSsQx2crKxOXNKnvl8V5sD/4hyqOD3M/vX8y1ULzGUmAd0vv8tS0NwKCo/c1qow8GDk5dwRJeqiwY1c2IVj/MVtpNpCvCN7Azz9QX0WoQs2/SyuQZ4KcsPz4cu7ELIDIX3bWEQVI4GCHq1Fh9/Ql3QkeMJqHigBixkLpg/IJbAKo0xXSg84IMiGoSSE8EvZ5IC","type":"text"}],"url":"https://graph.microsoft.com/v1.0/me/messages","urlObject":{"protocol":"https","path":["v1.0","me","messages"],"host":["graph","microsoft","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"23b3d543-f70d-4aa1-bbec-a17b627d9617"},{"name":"List of Outlook mail","id":"37eb0201-4e10-4631-8a84-4933da8091b8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://reachin-box-assignment.onrender.com/outlookmail/list/prity.rastogi02@outlook.com","urlObject":{"protocol":"https","path":["outlookmail","list","prity.rastogi02@outlook.com"],"host":["reachin-box-assignment","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"37eb0201-4e10-4631-8a84-4933da8091b8"},{"name":"Read particular mail on outlook","id":"abfddf9d-7b97-4396-b7e0-11ac0e699e26","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://reachin-box-assignment.onrender.com/outlookmail/read/prity.rastogi02@outlook.com/AQMkADAwATNiZmYAZC03NwA4MC1hNGZjLTAwAi0wMAoARgAAA3Xlah2EqTZIuvcFeRiWrgoHAGICLQojxZhMr_2VLyD4ngcAAAIBCQAAAGICLQojxZhMr_2VLyD4ngcAAALFhgAAAA==","description":"<p>This endpoint makes an HTTP GET request to retrieve the details of a specific Outlook mail. The request URL includes the email address and unique identifier of the mail. Upon a successful execution, the response will contain the details of the specified Outlook mail in JSON format, including information such as the mail's ID, timestamps, categories, attachments, importance, recipients, and more.</p>\n","urlObject":{"protocol":"https","path":["outlookmail","read","prity.rastogi02@outlook.com","AQMkADAwATNiZmYAZC03NwA4MC1hNGZjLTAwAi0wMAoARgAAA3Xlah2EqTZIuvcFeRiWrgoHAGICLQojxZhMr_2VLyD4ngcAAAIBCQAAAGICLQojxZhMr_2VLyD4ngcAAALFhgAAAA=="],"host":["reachin-box-assignment","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"abfddf9d-7b97-4396-b7e0-11ac0e699e26"},{"name":"Sending mail by outlook","id":"71d2ff0c-f285-4e01-b146-2a6b3ddaf554","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"from\":\"prity.rastogi02@outlook.com\",\r\n    \"to\":\"surajyoti9839@gmail.com\",\r\n    \"label\":\"Interested\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://reachin-box-assignment.onrender.com/outlookmail/send-email/prity.rastogi02@outlook.com","urlObject":{"protocol":"https","path":["outlookmail","send-email","prity.rastogi02@outlook.com"],"host":["reachin-box-assignment","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"71d2ff0c-f285-4e01-b146-2a6b3ddaf554"},{"name":"Sending mail by google","id":"ed2fc26f-cc8e-4f48-a400-d3e5cf06faf4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"from\":\"prityss7991@gmail.com\",\r\n    \"to\":\"surajyoti9839@gmail.com\",\r\n    \"label\":\"Interested\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://reachin-box-assignment.onrender.com/api/mail/send-mail","description":"<p>The API endpoint <code>https://reachin-box-assignment.onrender.com/api/mail/send-mail</code> is a POST request used to send an email. The request body should include the sender's email address, recipient's email address, and a label for the email.</p>\n<p>The response to this request is in JSON format with a status code of 200. The response includes a message and data object. The data object contains information about the email delivery, including the list of accepted and rejected recipients, EHLO, envelope details, message ID, and other relevant details.</p>\n","urlObject":{"protocol":"https","path":["api","mail","send-mail"],"host":["reachin-box-assignment","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"ed2fc26f-cc8e-4f48-a400-d3e5cf06faf4"},{"name":"Get details of registered user","id":"60180140-1aca-4d4c-899d-a55f6961c55c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://reachin-box-assignment.onrender.com/api/mail/userData/prityss7991@gmail.com","urlObject":{"protocol":"https","path":["api","mail","userData","prityss7991@gmail.com"],"host":["reachin-box-assignment","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"60180140-1aca-4d4c-899d-a55f6961c55c"},{"name":"To add labels","id":"2df4e41a-be07-4fa8-9ec3-a4f7d358f1c7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"labelListVisibility\": \"labelShow\",\r\n  \"messageListVisibility\": \"show\",\r\n  \"name\": \"More Information\",\r\n  \"color\":{\r\n  \"textColor\": \"#2da2bb\",\r\n  \"backgroundColor\": \"#d0bcf1\"\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://reachin-box-assignment.onrender.com/api/mail/createLabel/prityss7991@gmail.com","urlObject":{"protocol":"https","path":["api","mail","createLabel","prityss7991@gmail.com"],"host":["reachin-box-assignment","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"2df4e41a-be07-4fa8-9ec3-a4f7d358f1c7"},{"name":"Get details of particular label","id":"891243bf-449f-4eef-9f2a-371cbd1882c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://reachin-box-assignment.onrender.com/api/mail/getLabel/prityss7991@gmail.com/Label_1","urlObject":{"protocol":"https","path":["api","mail","getLabel","prityss7991@gmail.com","Label_1"],"host":["reachin-box-assignment","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"891243bf-449f-4eef-9f2a-371cbd1882c3"}]}