{"info":{"_postman_id":"cd60f5c0-a068-4ab2-bedf-eedd3a3c49fc","name":"Bhavish - Assignment","description":"<html><head></head><body><p>The assignment is to build a tool that will parse and check the emails in a Google and Outlook email ID, and respond to the e-mails based on the context using AI. Use BullMQ as the tasks .</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"36543316","collectionId":"cd60f5c0-a068-4ab2-bedf-eedd3a3c49fc","publishedId":"2sA3dskDUB","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-06-26T19:05:32.000Z"},"item":[{"name":"google authentication","id":"2b37e7be-e1d1-40cd-8bb6-45a5ee91a3e5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/auth/google","description":"<p><strong>Description:</strong><br />The provided API endpoint facilitates authentication using Google accounts within the ReachInbox platform. Through this endpoint, users can securely authenticate and authorize access to their Google account information, enabling seamless integration and interaction with ReachInbox services.</p>\n<p><strong>Authentication Mechanism:</strong><br />This endpoint employs OAuth 2.0, a widely adopted standard for authorization, to enable users to grant permission to ReachInbox to access their Google account data without sharing their credentials. Upon successful authentication, users will be issued a token that grants access to their Google account resources as per the defined scope.</p>\n<p><strong>Usage:</strong><br />Developers integrating ReachInbox services into their applications can utilize this endpoint to enable users to authenticate with their Google accounts. Upon successful authentication, the application can retrieve the access token and utilize it to make authorized requests to access the user's Google account resources.</p>\n<p><strong>Security:</strong><br />This endpoint prioritizes security by leveraging OAuth 2.0, ensuring that user credentials are never exposed to ReachInbox. Furthermore, HTTPS protocol is employed to encrypt data transmitted between the client and server, safeguarding sensitive information from unauthorized access or interception.</p>\n<p><strong>Endpoint Requirements:</strong></p>\n<ul>\n<li><p>Users must have a valid Google account.</p>\n</li>\n<li><p>Developers must register their application with Google's Developer Console and obtain the necessary OAuth 2.0 credentials, including a client ID and client secret.</p>\n</li>\n<li><p>Proper handling of OAuth 2.0 authorization flow is required on the client-side to obtain an access token.</p>\n</li>\n<li><p>The endpoint expects requests to be made over HTTPS.</p>\n</li>\n</ul>\n<p><strong>Response Format:</strong><br />Upon successful authentication, the endpoint returns an access token that can be used to make authorized requests to access the user's Google account resources. Error responses are provided with appropriate status codes and error messages to facilitate debugging and error handling.</p>\n<p><strong>Example Request:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>bashCopy codePOST /auth/google HTTP/1.1\nHost: localhost\nContent-Type: application/json\n{\n  \"client_id\": \"YOUR_CLIENT_ID\",\n  \"client_secret\": \"YOUR_CLIENT_SECRET\",\n  \"redirect_uri\": \"YOUR_REDIRECT_URI\",\n  \"code\": \"AUTHORIZATION_CODE\"\n}\n\n</code></pre><p><strong>Example Response:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>cssCopy codeHTTP/1.1 200 OK\nContent-Type: application/json\n{\n  \"access_token\": \"ACCESS_TOKEN\",\n  \"token_type\": \"Bearer\",\n  \"expires_in\": 3600\n}\n\n</code></pre>","urlObject":{"protocol":"http","port":"3000","path":["auth","google"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"2b37e7be-e1d1-40cd-8bb6-45a5ee91a3e5"},{"name":"google callback","id":"ac6a2e98-9706-42bc-9d15-03513b891868","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/auth/google/callback","description":"<p><strong>Description:</strong><br />The provided API endpoint serves as the callback URL for the authentication process with Google accounts within the ReachInbox platform. After users authenticate their Google accounts through the initial authentication endpoint, Google redirects them to this callback URL, along with an authorization code or an access token, depending on the authentication flow. ReachInbox utilizes this callback URL to handle the authentication response and complete the authentication process.</p>\n<p><strong>Usage:</strong><br />Developers integrating ReachInbox services into their applications need to specify this callback URL in their OAuth 2.0 configuration with Google's Developer Console. Upon successful authentication by the user, Google redirects them to this endpoint, along with the necessary authentication parameters.</p>\n<p><strong>Authentication Flow:</strong></p>\n<ol>\n<li><p>User initiates the authentication process by accessing the initial authentication endpoint.</p>\n</li>\n<li><p>User provides consent and authenticates their Google account credentials.</p>\n</li>\n<li><p>Upon successful authentication, Google redirects the user back to the specified callback URL along with an authorization code or access token, depending on the OAuth 2.0 flow used.</p>\n</li>\n</ol>\n<p><strong>Endpoint Requirements:</strong></p>\n<ul>\n<li><p>Proper handling of incoming authentication parameters, such as authorization code or access token, is required on the server-side to complete the authentication process.</p>\n</li>\n<li><p>HTTPS protocol should be used for secure data transmission.</p>\n</li>\n</ul>\n<p><strong>Response Handling:</strong><br />Upon receiving the authentication parameters from Google, ReachInbox processes the authentication response and validates the received parameters. If the authentication is successful, ReachInbox can proceed with granting access to the user or retrieving additional user information as necessary for the application.</p>\n<p><strong>Example Request:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-antlr4\">vbnetCopy codeGET /auth/google/callback?code=AUTHORIZATION_CODE&amp;state=STATE_STRING HTTP/1.1\nHost: localhost\n\n</code></pre>\n<p><strong>Example Response:</strong><br />Upon successful authentication, ReachInbox may generate an appropriate response based on the application's requirements. This could include rendering a success page, redirecting the user to a specific URL within the application, or initiating further actions within the application.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["auth","google","callback"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"ac6a2e98-9706-42bc-9d15-03513b891868"},{"name":"geting user info","id":"571a5bb5-d938-4cfe-9901-17fc21c0427e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/mail/userInfo/{email}","description":"<p>This API endpoint retrieves user information for the specified email address. The request should be sent via an HTTP GET method to the provided URL. Upon successful execution, the server responds with a status code of 200 and a JSON object containing the user's email address, total number of messages, total number of threads, and history ID.</p>\n<p><strong>Response Format:</strong><br />Upon successful execution, the server responds with a status code of 200 (OK) and a JSON object containing the requested user information. The response JSON object includes the following fields:</p>\n<ul>\n<li><p><strong>emailAddress (string):</strong> The user's email address.</p>\n</li>\n<li><p><strong>messagesTotal (number):</strong> Total number of messages associated with the user.</p>\n</li>\n<li><p><strong>threadsTotal (number):</strong> Total number of threads associated with the user.</p>\n</li>\n<li><p><strong>historyId (string):</strong> The history ID associated with the user.</p>\n</li>\n</ul>\n<p><strong>Example Request:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>bashCopy codeGET /api/mail/userInfo/bhavishreddy001@gmail.com HTTP/1.1\nHost: localhost\n\n</code></pre><p><strong>Example Response:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>cssCopy codeHTTP/1.1 200 OK\nContent-Type: application/json\n{\n  \"emailAddress\": \"bhavishreddy001@gmail.com\",\n  \"messagesTotal\": 90,\n  \"threadsTotal\": 20,\n  \"historyId\": \"fghijkl123456\"\n}\n\n</code></pre><p><strong>Error Handling:</strong><br />In case of errors during the execution of the request, appropriate HTTP status codes and error messages are returned to indicate the nature of the issue encountered. Common error scenarios include invalid email addresses, authentication failures, or server errors.</p>\n<p><strong>Security:</strong><br />Proper authentication and authorization mechanisms should be in place to ensure that only authorized users can access this endpoint. Additionally, HTTPS protocol is employed to encrypt data transmitted between the client and server, ensuring the security of sensitive information exchanged during the request-response cycle.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","mail","userInfo","{email}"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"571a5bb5-d938-4cfe-9901-17fc21c0427e"},{"name":"getting all drafts of user","id":"f1ffd29b-722b-467d-b3ac-13d081e3cbe3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/mail/allDrafts/{email}","description":"<p><strong>Description:</strong><br />This API endpoint retrieves all draft emails associated with a specific email address within the ReachInbox platform. Users can access this endpoint using the HTTP GET method to retrieve a list of draft emails along with a result size estimate.</p>\n<p><strong>Usage:</strong><br />Developers integrating ReachInbox services into their applications can utilize this endpoint to fetch all draft emails for a particular email address. The retrieved draft emails can be displayed to users or used for further processing within the application.</p>\n<p><strong>Endpoint Requirements:</strong></p>\n<ul>\n<li><p>The email address of the user for whom the draft emails are being requested must be provided in the URL path.</p>\n</li>\n<li><p>Proper authentication and authorization mechanisms should be implemented to ensure that only authorized users can access this endpoint.</p>\n</li>\n</ul>\n<p><strong>Response Format:</strong><br />Upon successful execution, the server responds with a status code of 200 (OK) and a JSON object containing an array of draft emails. Each draft email in the array includes the following fields:</p>\n<ul>\n<li><p><strong>id (string):</strong> The ID of the draft email.</p>\n</li>\n<li><p><strong>messageId (string):</strong> The ID of the message associated with the draft email.</p>\n</li>\n<li><p><strong>threadId (string):</strong> The ID of the thread associated with the draft email.</p>\n</li>\n</ul>\n<p>Additionally, the response includes a result size estimate indicating the total number of draft emails returned in the response.</p>\n<p><strong>Example Request:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>bashCopy codeGET /api/mail/allDrafts/bhavishreddy001@gmail.com HTTP/1.1\nHost: localhost\n\n</code></pre><p><strong>Example Response:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>cssCopy codeHTTP/1.1 200 OK\nContent-Type: application/json\n{\n  \"drafts\": [\n    {\n      \"id\": \"draft_id_1\",\n      \"messageId\": \"message_id_1\",\n      \"threadId\": \"thread_id_1\"\n    },\n    {\n      \"id\": \"draft_id_2\",\n      \"messageId\": \"message_id_2\",\n      \"threadId\": \"thread_id_2\"\n    },\n    {\n      \"id\": \"draft_id_3\",\n      \"messageId\": \"message_id_3\",\n      \"threadId\": \"thread_id_3\"\n    },\n    {\n      \"id\": \"draft_id_4\",\n      \"messageId\": \"message_id_4\",\n      \"threadId\": \"thread_id_4\"\n    },\n    //Many Draft Emails\n  ],\n  \"resultSizeEstimate\": 0\n}\n\n</code></pre><p><strong>Error Handling:</strong><br />In case of errors during the execution of the request, appropriate HTTP status codes and error messages are returned to indicate the nature of the issue encountered. Common error scenarios include invalid email addresses, authentication failures, or server errors.</p>\n<p><strong>Security:</strong><br />Proper authentication and authorization mechanisms should be in place to ensure that only authorized users can access this endpoint. Additionally, HTTPS protocol is employed to encrypt data transmitted between the client and server, ensuring the security of sensitive information exchanged during the request-response cycle.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","mail","allDrafts","{email}"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"f1ffd29b-722b-467d-b3ac-13d081e3cbe3"},{"name":"get all emails of user","id":"407d3425-120a-4e09-9649-bba1cab0e415","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/mail/list/{email}","description":"<p><strong>Description:</strong><br />This API endpoint facilitates an HTTP GET request to retrieve a list of emails associated with the specified email address within the ReachInbox platform. Users can access this endpoint by providing the target email address in the URL path. The response includes a list of messages with their corresponding IDs and thread IDs, along with a nextPageToken for pagination and a resultSizeEstimate indicating the total number of emails in the response.</p>\n<p><strong>Usage:</strong><br />Developers integrating ReachInbox services into their applications can utilize this endpoint to fetch a list of emails for a particular email address. The retrieved emails can be displayed to users or used for further processing within the application.</p>\n<p><strong>Endpoint Requirements:</strong></p>\n<ul>\n<li><p>The email address of the user for whom the emails are being requested must be provided in the URL path.</p>\n</li>\n<li><p>Proper authentication and authorization mechanisms should be implemented to ensure that only authorized users can access this endpoint.</p>\n</li>\n</ul>\n<p><strong>Response Format:</strong><br />Upon successful execution, the server responds with a status code of 200 (OK) and a JSON object containing the following fields:</p>\n<ul>\n<li><p><strong>messages (array):</strong> An array of messages, where each message includes the following fields:</p>\n<ul>\n<li><p><strong>id (string):</strong> The ID of the message.</p>\n</li>\n<li><p><strong>threadId (string):</strong> The ID of the thread associated with the message.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>nextPageToken (string):</strong> A token that can be used to retrieve the next page of results for pagination purposes. If there are no more results, this field may be empty.</p>\n</li>\n<li><p><strong>resultSizeEstimate (number):</strong> An estimate of the total number of emails in the response.</p>\n</li>\n</ul>\n<p><strong>Example Request:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>cssCopy codeGET /api/mail/list/bhavishreddy001@gmail.com HTTP/1.1\nHost: localhost\n\n</code></pre><p><strong>Example Response:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>cssCopy codeHTTP/1.1 200 OK\nContent-Type: application/json\n{\n    \"messages\": [\n        {\n            \"id\": \"message_id_1\",\n            \"threadId\": \"thread_id_1\"\n        },\n        {\n            \"id\": \"message_id_2\",\n            \"threadId\": \"thread_id_2\"\n        },\n        // More messages...\n    ],\n    \"nextPageToken\": \"next_page_token_value\",\n    \"resultSizeEstimate\": 90\n}\n\n</code></pre><p><strong>Error Handling:</strong><br />In case of errors during the execution of the request, appropriate HTTP status codes and error messages are returned to indicate the nature of the issue encountered. Common error scenarios include invalid email addresses, authentication failures, or server errors.</p>\n<p><strong>Security:</strong><br />Proper authentication and authorization mechanisms should be in place to ensure that only authorized users can access this endpoint. Additionally, HTTPS protocol is employed to encrypt data transmitted between the client and server, ensuring the security of sensitive information exchanged during the request-response cycle.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","mail","list","{email}"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"407d3425-120a-4e09-9649-bba1cab0e415"},{"name":"read particular email","id":"ac1a5171-589b-4119-b995-71b75ac42f0b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/mail/read/{:email}/message/{:messageid}","description":"<p><strong>Description:</strong><br />This API endpoint facilitates an HTTP GET request to retrieve a specific email message associated with the provided email address and message ID within the ReachInbox platform. Users can access this endpoint by providing the target email address and message ID in the URL path. Upon successful execution, the response contains detailed information about the email message, including its ID, thread ID, label IDs, snippet, payload details, size estimate, history ID, and internal date.</p>\n<p><strong>Usage:</strong><br />Developers integrating ReachInbox services into their applications can utilize this endpoint to fetch a specific email message for a particular email address. The retrieved message details can be displayed to users or used for further processing within the application.</p>\n<p><strong>Endpoint Requirements:</strong></p>\n<ul>\n<li><p>The email address and message ID of the target email message must be provided in the URL path.</p>\n</li>\n<li><p>Proper authentication and authorization mechanisms should be implemented to ensure that only authorized users can access this endpoint.</p>\n</li>\n</ul>\n<p><strong>Response Format:</strong><br />Upon successful execution, the server responds with a status code of 200 (OK) and a JSON object containing detailed information about the requested email message. The response includes the following fields:</p>\n<ul>\n<li><p><strong>id (string):</strong> The ID of the email message.</p>\n</li>\n<li><p><strong>threadId (string):</strong> The ID of the thread associated with the email message.</p>\n</li>\n<li><p><strong>labelIds (array of strings):</strong> An array containing the label IDs associated with the email message.</p>\n</li>\n<li><p><strong>snippet (string):</strong> A short snippet of the email message content.</p>\n</li>\n<li><p><strong>payload (object):</strong> Details about the email message payload, including headers and body.</p>\n</li>\n<li><p><strong>sizeEstimate (number):</strong> An estimate of the size of the email message.</p>\n</li>\n<li><p><strong>historyId (string):</strong> The history ID associated with the email message.</p>\n</li>\n<li><p><strong>internalDate (string):</strong> The internal date of the email message.</p>\n</li>\n</ul>\n<p><strong>Example Request:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>bashCopy codeGET /api/mail/read/bhavishreddy001@gmail.com/message/message_id_123 HTTP/1.1\nHost: localhost\n\n</code></pre><p><strong>Example Response:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>cssCopy codeHTTP/1.1 200 OK\nContent-Type: application/json\n{\n    \"id\": \"message_id_123\",\n    \"threadId\": \"thread_id_456\",\n    \"labelIds\": [\"INBOX\", \"UNREAD\"],\n    \"snippet\": \"This is a sample email snippet.\",\n    \"payload\": {\n        // Payload details...\n    },\n    \"sizeEstimate\": 1024,\n    \"historyId\": \"history_id_789\",\n    \"internalDate\": \"2024-03-30T10:00:00Z\"\n}\n\n</code></pre><p><strong>Error Handling:</strong><br />In case of errors during the execution of the request, appropriate HTTP status codes and error messages are returned to indicate the nature of the issue encountered. Common error scenarios include invalid email addresses, message IDs, authentication failures, or server errors.</p>\n<p><strong>Security:</strong><br />Proper authentication and authorization mechanisms should be in place to ensure that only authorized users can access this endpoint. Additionally, HTTPS protocol is employed to encrypt data transmitted between the client and server, ensuring the security of sensitive information exchanged during the request-response cycle.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","mail","read","{:email}","message","{:messageid}"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"ac1a5171-589b-4119-b995-71b75ac42f0b"},{"name":"get lable","id":"60ec3d93-96f0-42ba-b613-3117b47663ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n  \"labelListVisibility\": \"labelShow\",\r\n  \"messageListVisibility\": \"show\",\r\n  \"name\": \"More information\",\r\n  \"color\":{\r\n  \"textColor\": \"#0d3b44\",\r\n  \"backgroundColor\": \"#2a9c68\"\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4400/api/mail/getLabelbhavishreddy001@gmail.com/Label_3","description":"<h1 id=\"get-mail-label\">Get Mail Label</h1>\n<p>This endpoint retrieves the details of a specific mail label based on the provided label ID and email address.</p>\n<h2 id=\"request\">Request</h2>\n<h3 id=\"http-request\">HTTP Request</h3>\n<p><code>GET http://localhost:3000/api/mail/getLabel/:email/:labelId</code></p>\n<h3 id=\"path-parameters\">Path Parameters</h3>\n<ul>\n<li><p><code>email</code> (string): The email address for which the label details are to be retrieved.</p>\n</li>\n<li><p><code>labelId</code> (string): The ID of the label to fetch.</p>\n</li>\n</ul>\n<h2 id=\"response\">Response</h2>\n<ul>\n<li><p><code>id</code> (string): The ID of the mail label.</p>\n</li>\n<li><p><code>name</code> (string): The name of the mail label.</p>\n</li>\n<li><p><code>messageListVisibility</code> (string): The visibility of the label in the message list.</p>\n</li>\n<li><p><code>labelListVisibility</code> (string): The visibility of the label in the label list.</p>\n</li>\n<li><p><code>type</code> (string): The type of the label.</p>\n</li>\n<li><p><code>messagesTotal</code> (number): The total number of messages in the label.</p>\n</li>\n<li><p><code>messagesUnread</code> (number): The number of unread messages in the label.</p>\n</li>\n<li><p><code>threadsTotal</code> (number): The total number of threads in the label.</p>\n</li>\n<li><p><code>threadsUnread</code> (number): The number of unread threads in the label.</p>\n</li>\n<li><p><code>color.textColor</code> (string): The text color of the label.</p>\n</li>\n<li><p><code>color.backgroundColor</code> (string): The background color of the label.</p>\n</li>\n</ul>\n<h3 id=\"example\">Example</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"messageListVisibility\": \"\",\n  \"labelListVisibility\": \"\",\n  \"type\": \"\",\n  \"messagesTotal\": 0,\n  \"messagesUnread\": 0,\n  \"threadsTotal\": 0,\n  \"threadsUnread\": 0,\n  \"color\": {\n    \"textColor\": \"\",\n    \"backgroundColor\": \"\"\n  }\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"4400","path":["api","mail","getLabelbhavishreddy001@gmail.com","Label_3"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"60ec3d93-96f0-42ba-b613-3117b47663ee"},{"name":"create lable","id":"7eca50d6-8841-4bd2-9709-734c7714d8f6","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\": \"#0d3b44\",\r\n  \"backgroundColor\": \"#2a9c68\"\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4400/api/mail/creatLabel/bhavishreddy001@gmail.com/","description":"<p>StartFragment</p>\n<h3 id=\"endpoint-url\">Endpoint URL:</h3>\n<p><code>POST /api/mail/creatLabel/{userEmail}/</code></p>\n<h3 id=\"description\">Description:</h3>\n<p>This endpoint creates a new label in Gmail for the specified user.</p>\n<h3 id=\"parameters\">Parameters:</h3>\n<ul>\n<li><code>{userEmail}</code> (string, required): The email address of the user for whom the label will be created.</li>\n</ul>\n<h3 id=\"request-body\">Request Body:</h3>\n<p>The request body should contain the details of the label to be created, including its visibility settings, name, and color.</p>\n<h3 id=\"response\">Response:</h3>\n<ul>\n<li><p><strong>200 OK</strong>: The label has been successfully created.</p>\n<ul>\n<li><strong>Content</strong>: Information about the created label, such as its ID and properties.</li>\n</ul>\n</li>\n<li><p><strong>400 Bad Request</strong>: If the request is malformed or missing required parameters.</p>\n<ul>\n<li><strong>Content</strong>: Error message indicating the reason for the bad request.</li>\n</ul>\n</li>\n<li><p><strong>401 Unauthorized</strong>: If the request lacks valid authentication credentials.</p>\n<ul>\n<li><strong>Content</strong>: Error message indicating the need for valid authentication.</li>\n</ul>\n</li>\n<li><p><strong>500 Internal Server Error</strong>: If there is an unexpected error during processing.</p>\n<ul>\n<li><strong>Content</strong>: Error message indicating the nature of the server error.</li>\n</ul>\n</li>\n</ul>\n<p>EndFragment</p>\n","urlObject":{"protocol":"http","port":"4400","path":["api","mail","creatLabel","bhavishreddy001@gmail.com",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"7eca50d6-8841-4bd2-9709-734c7714d8f6"},{"name":"send mail without queue","id":"c9d1ce18-69b1-4348-af21-767d93980562","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n     \"from\":\"bhavishreddy001@gmail.com\",\r\n    \"to\":\"bhavishreddy001@gmail.com\",\r\n    \"label\":\"Interested\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/mail/sendMail","description":"<p><strong>Description:</strong><br />This API endpoint enables users to send an email by making a POST request to the specified URL. The request body should include the following parameters:</p>\n<ul>\n<li><p><strong>from (string):</strong> The sender's email address.</p>\n</li>\n<li><p><strong>to (string):</strong> The recipient's email address.</p>\n</li>\n<li><p><strong>label (string):</strong> A label for the email.</p>\n</li>\n</ul>\n<p><strong>Usage:</strong><br />Developers or applications can utilize this endpoint to send emails programmatically. By providing the necessary parameters in the request body, users can specify the sender, recipient, and label for the email message.</p>\n<p><strong>Request Body:</strong></p>\n<ul>\n<li><p><strong>from (string):</strong> The sender's email address.</p>\n</li>\n<li><p><strong>to (string):</strong> The recipient's email address.</p>\n</li>\n<li><p><strong>label (string):</strong> A label for the email.</p>\n</li>\n</ul>\n<p><strong>Response:</strong><br />Upon successful execution of the request, the API returns a status code of 200 along with a JSON response containing information about the email delivery. The response includes the following structure:</p>\n<ul>\n<li><p><strong>message (string):</strong> A message indicating the result of the email delivery process.</p>\n</li>\n<li><p><strong>result (object):</strong> An object containing detailed information about the email delivery, including:</p>\n<ul>\n<li><p><strong>accepted (array of strings):</strong> List of email addresses of recipients that accepted the email.</p>\n</li>\n<li><p><strong>rejected (array of strings):</strong> List of email addresses of recipients that rejected the email.</p>\n</li>\n<li><p><strong>ehlo (array of strings):</strong> EHLO response.</p>\n</li>\n<li><p><strong>envelopeTime (number):</strong> Time taken for the envelope.</p>\n</li>\n<li><p><strong>messageTime (number):</strong> Time taken for the message.</p>\n</li>\n<li><p><strong>messageSize (number):</strong> Size of the message.</p>\n</li>\n<li><p><strong>response (string):</strong> Response message.</p>\n</li>\n<li><p><strong>envelope (object):</strong> Envelope details, including the sender's and recipient's email addresses.</p>\n</li>\n<li><p><strong>messageId (string):</strong> Unique ID assigned to the email message.</p>\n</li>\n</ul>\n</li>\n</ul>\n<p><strong>Example Request:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>jsonCopy codePOST /api/mail/sendMail HTTP/1.1\nHost: localhost\nContent-Type: application/json\n{\n    \"from\": \"sender@example.com\",\n    \"to\": \"recipient@example.com\",\n    \"label\": \"Important\"\n}\n\n</code></pre><p><strong>Example Response:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>jsonCopy codeHTTP/1.1 200 OK\nContent-Type: application/json\n{\n    \"message\": \"Email sent successfully.\",\n    \"result\": {\n        \"accepted\": [\"recipient@example.com\"],\n        \"rejected\": [],\n        \"ehlo\": [\"EHLO response\"],\n        \"envelopeTime\": 100,\n        \"messageTime\": 200,\n        \"messageSize\": 1024,\n        \"response\": \"Response message\",\n        \"envelope\": {\n            \"from\": \"sender@example.com\",\n            \"to\": [\"recipient@example.com\"]\n        },\n        \"messageId\": \"unique_message_id\"\n    }\n}\n\n</code></pre><p><strong>Error Handling:</strong><br />In case of errors during the execution of the request, appropriate HTTP status codes and error messages are returned to indicate the nature of the issue encountered. Common error scenarios include invalid email addresses, missing parameters, authentication failures, or server errors.</p>\n<p><strong>Security:</strong><br />Proper authentication and authorization mechanisms should be implemented to ensure that only authorized users or applications can access this endpoint. Additionally, any sensitive information related to the email sending process should be handled securely to prevent unauthorized access or data breaches.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","mail","sendMail"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c9d1ce18-69b1-4348-af21-767d93980562"},{"name":"sending mail with queue","id":"7e059226-7c54-437f-b6f5-04d740f5287a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"from\":\"bhavishreddy001@gmail.com\",\r\n    \"to\":\"bhavishreddy001@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/mail/sendone/{:messageid}","description":"<p><strong>Description:</strong><br />This API endpoint is designed to send a specific email message identified by the provided message ID. When a request is made to this endpoint, it creates a queue using BullMQ, a Redis-based job queue for Node.js, to handle the sending of the email asynchronously.</p>\n<p><strong>Usage:</strong><br />Developers or applications can utilize this endpoint to trigger the sending of a specific email message stored in the system. This asynchronous approach allows for efficient handling of email sending tasks, preventing delays in the main application flow.</p>\n<p><strong>Endpoint Requirements:</strong></p>\n<ul>\n<li><p>The message ID of the email to be sent must be provided in the URL path.</p>\n</li>\n<li><p>Proper authentication and authorization mechanisms should be implemented to ensure that only authorized users or applications can access this endpoint.</p>\n</li>\n</ul>\n<p><strong>Queue Processing:</strong><br />When a request is made to this endpoint, a job is created in the BullMQ queue to send the email message. The queue ensures that the email sending task is processed asynchronously, allowing the main application to remain responsive and efficient.</p>\n<p><strong>Response Format:</strong><br />Upon successful initiation of the email sending task, the server responds with a status code of 200 (OK). The email sending process is then handled by the queue in the background.</p>\n<p><strong>Example Request:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>bashCopy codePOST /api/mail/sendone/message_id_123 HTTP/1.1\nHost: localhost\n\n</code></pre><p><strong>Example Response:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>arduinoCopy codeHTTP/1.1 200 OK\nContent-Type: text/plain\nEmail sending task queued successfully.\n\n</code></pre><p><strong>Error Handling:</strong><br />In case of errors during the initiation of the email sending task, appropriate HTTP status codes and error messages are returned to indicate the nature of the issue encountered. Common error scenarios include invalid message IDs, authentication failures, or server errors.</p>\n<p><strong>Security:</strong><br />Proper authentication and authorization mechanisms should be implemented to ensure that only authorized users or applications can access this endpoint. Additionally, any sensitive information related to the email sending process should be handled securely to prevent unauthorized access or data breaches.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","mail","sendone","{:messageid}"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"7e059226-7c54-437f-b6f5-04d740f5287a"},{"name":"sending multiple mail with queue","id":"78a524b3-59a7-41d6-9835-015c46549b94","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"from\":\"bhavishreddy001@gmail.com\",\r\n    \"to\":[\"bhavishreddy001@gmail.com\",\"bhavishreddy007@gmail.com\"]\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/mail/senmultiple/{:messageid}","description":"<p>StartFragment</p>\n<p><strong>Description:</strong><br />This API endpoint allows users to send the same email message to multiple recipients by making a POST request to the specified URL. The request body should include the following parameters:</p>\n<ul>\n<li><p><strong>from (string):</strong> The sender's email address.</p>\n</li>\n<li><p><strong>to (array of strings):</strong> An array containing the email addresses of the recipients.</p>\n</li>\n</ul>\n<p><strong>Usage:</strong><br />Developers or applications can utilize this endpoint to send the same email message to multiple recipients simultaneously. By providing the sender's email address and an array of recipient email addresses in the request body, users can efficiently distribute the email message to multiple recipients.</p>\n<p><strong>Request Body:</strong></p>\n<ul>\n<li><p><strong>from (string):</strong> The sender's email address.</p>\n</li>\n<li><p><strong>to (array of strings):</strong> An array containing the email addresses of the recipients.</p>\n</li>\n</ul>\n<p><strong>Response:</strong><br />Upon successful execution of the request, the API returns a status code of 200 along with a JSON response containing information about the email delivery. The response includes details such as the number of recipients, EHLO response, envelope details, message ID, and any relevant response messages.</p>\n<p><strong>Example Request:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>jsonCopy codePOST /api/mail/sendmultiple/message_id_123 HTTP/1.1\nHost: localhost\nContent-Type: application/json\n{\n    \"from\": \"bhavishreddy001@gmail.com\",\n    \"to\": [\"bhavishreddy001@gmail.com\", \"bhavishreddy007@gmail.com\"]\n}\n\n</code></pre><p><strong>Example Response:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>jsonCopy codeHTTP/1.1 200 OK\nContent-Type: application/json\n{\n    \"message\": \"Email sent successfully to multiple recipients.\",\n    \"result\": {\n        \"recipientsCount\": 2,\n        \"ehlo\": [\"EHLO response\"],\n        \"envelope\": {\n            \"from\": \"bhavishreddy001@gmail.com\",\n            \"to\": [\"bhavishreddy001@gmail.com\", \"bhavishreddy007@gmail.com\"]\n        },\n        \"messageId\": \"unique_message_id\",\n        \"response\": \"Response message\"\n    }\n}\n\n</code></pre><p><strong>Error Handling:</strong><br />In case of errors during the execution of the request, appropriate HTTP status codes and error messages are returned to indicate the nature of the issue encountered. Common error scenarios include invalid email addresses, missing parameters, authentication failures, or server errors.</p>\n<p><strong>Security:</strong><br />Proper authentication and authorization mechanisms should be implemented to ensure that only authorized users or applications can access this endpoint. Additionally, any sensitive information related to the email sending process should be handled securely to prevent unauthorized access or data breaches.</p>\n<p>EndFragment</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","mail","senmultiple","{:messageid}"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"78a524b3-59a7-41d6-9835-015c46549b94"},{"name":"Microsoft azure  authentication","id":"6592b043-0fff-4d0d-8a05-548c37e99777","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/outlook/signin","description":"<p><strong>Description:</strong><br />The provided API endpoint facilitates user authentication using Microsoft Azure Active Directory (Azure AD) Single Sign-On (SSO) within the assignment. Users can securely sign in using their Azure AD credentials, enabling seamless integration and access to services.</p>\n<p><strong>Authentication Mechanism:</strong><br />This endpoint utilizes the OAuth 2.0 protocol, specifically the OpenID Connect authentication standard, to enable authentication with Azure AD. ReachInbox acts as an OAuth 2.0 client, leveraging Azure AD as the identity provider to authenticate users.</p>\n<p><strong>Usage:</strong><br />Developers integrating ReachInbox services into their applications can utilize this endpoint to enable users to authenticate using their Azure AD credentials. Upon successful authentication, users are granted access to ReachInbox services.</p>\n<p><strong>Endpoint Requirements:</strong></p>\n<ul>\n<li><p>Users must have a valid Azure AD account within the tenant associated with ReachInbox.</p>\n</li>\n<li><p>Developers must register their application with Azure AD and obtain the necessary OAuth 2.0 credentials, including a client ID and client secret.</p>\n</li>\n<li><p>Proper handling of OAuth 2.0 authorization flow is required on the client-side to obtain an access token.</p>\n</li>\n</ul>\n<p><strong>Security:</strong><br />Similar to the Google authentication endpoints, this endpoint prioritizes security by leveraging OAuth 2.0 and OpenID Connect. HTTPS protocol is employed to encrypt data transmitted between the client and server, ensuring the security of sensitive information exchanged during the authentication process.</p>\n<p><strong>Response Format:</strong><br />Upon successful authentication, the endpoint returns an access token or an ID token, depending on the requested OAuth 2.0 flow. Error responses are provided with appropriate status codes and error messages to facilitate debugging and error handling.</p>\n<p><strong>Example Request:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>bashCopy codePOST /signin HTTP/1.1\nHost: localhost\nContent-Type: application/json\n{\n  \"client_id\": \"YOUR_CLIENT_ID\",\n  \"client_secret\": \"YOUR_CLIENT_SECRET\",\n  \"redirect_uri\": \"YOUR_REDIRECT_URI\",\n  \"code\": \"AUTHORIZATION_CODE\"\n}\n\n</code></pre><p><strong>Example Response:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>cssCopy codeHTTP/1.1 200 OK\nContent-Type: application/json\n{\n  \"access_token\": \"ACCESS_TOKEN\",\n  \"token_type\": \"Bearer\",\n  \"expires_in\": 3600\n}\n\n</code></pre><p><strong>Error Handling:</strong><br />Errors are returned with appropriate HTTP status codes and error messages in the response body to indicate the nature of the issue encountered during authentication.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["outlook","signin"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"6592b043-0fff-4d0d-8a05-548c37e99777"},{"name":"view profile of user - outlook","id":"67fe84d1-96a3-4de9-826c-c76786341721","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/outlook/profile","description":"<h3 id=\"overview\">Overview</h3>\n<p>The Outlook Profile API retrieves profile information from the Outlook API. The response is in JSON format and includes details such as user principal name, display name, surname, given name, preferred language, email, mobile phone, job title, office location, and business phones.</p>\n<h3 id=\"response\">Response</h3>\n<p>The response will be in JSON format with the following structure:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>jsonCopy code{\n    \"@odata.context\": \"https://graph.microsoft.com/v1.0/$metadata#users/$entity\",\n    \"userPrincipalName\": \"String\",\n    \"id\": \"String\",\n    \"displayName\": \"String\",\n    \"surname\": \"String\",\n    \"givenName\": \"String\",\n    \"preferredLanguage\": \"String\",\n    \"mail\": \"String\",\n    \"mobilePhone\": \"String or null\",\n    \"jobTitle\": \"String or null\",\n    \"officeLocation\": \"String or null\",\n    \"businessPhones\": [\"String\"]\n}\n\n</code></pre><h4 id=\"properties\">Properties</h4>\n<ul>\n<li><code>@odata.context</code> (String): The context URL.</li>\n<li><code>userPrincipalName</code> (String): The user's principal name.</li>\n<li><code>id</code> (String): The user's ID.</li>\n<li><code>displayName</code> (String): The user's display name.</li>\n<li><code>surname</code> (String): The user's surname.</li>\n<li><code>givenName</code> (String): The user's given name.</li>\n<li><code>preferredLanguage</code> (String): The user's preferred language.</li>\n<li><code>mail</code> (String): The user's email address.</li>\n<li><code>mobilePhone</code> (String or null): The user's mobile phone number, if available.</li>\n<li><code>jobTitle</code> (String or null): The user's job title, if available.</li>\n<li><code>officeLocation</code> (String or null): The user's office location, if available.</li>\n<li><code>businessPhones</code> (Array of Strings): The user's business phone numbers.</li>\n</ul>\n","urlObject":{"protocol":"http","port":"3000","path":["outlook","profile"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"67fe84d1-96a3-4de9-826c-c76786341721"},{"name":"see all emails","id":"17c8e4b3-4870-4566-9a59-061aba1e6d6e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/outlook/all-Mails/bhavishreddy001@outlook.com","description":"<h2 id=\"outlook-email-retrieval-api\">Outlook Email Retrieval API</h2>\n<h3 id=\"overview\">Overview</h3>\n<p>The Outlook Email Retrieval API retrieves all emails for a specific Outlook account. The request should include the email address as a path parameter. The response will have a status code of 200 and a content type of application/json. The body of the response will contain an array of email objects, with each object containing various properties such as id, createdDateTime, lastModifiedDateTime, subject, bodyPreview, and sender information.</p>\n<ul>\n<li><code>{email_address}</code> (Path Parameter): The email address for which emails need to be retrieved.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>The response will have a status code of 200 and a content type of application/json. The body of the response will contain an array of email objects with the following structure:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>jsonCopy code[\n    {\n        \"id\": \"String\",\n        \"createdDateTime\": \"String (ISO 8601 format)\",\n        \"lastModifiedDateTime\": \"String (ISO 8601 format)\",\n        \"subject\": \"String\",\n        \"bodyPreview\": \"String\",\n        \"sender\": {\n            \"name\": \"String\",\n            \"emailAddress\": {\n                \"address\": \"String\",\n                \"name\": \"String\"\n            }\n        }\n        // Additional email properties if needed\n    },\n    // Additional email objects\n]\n\n</code></pre><h4 id=\"properties\">Properties</h4>\n<ul>\n<li><p><code>id</code> (String): The unique identifier of the email.</p>\n</li>\n<li><p><code>createdDateTime</code> (String): The date and time when the email was created (in ISO 8601 format).</p>\n</li>\n<li><p><code>lastModifiedDateTime</code> (String): The date and time when the email was last modified (in ISO 8601 format).</p>\n</li>\n<li><p><code>subject</code> (String): The subject of the email.</p>\n</li>\n<li><p><code>bodyPreview</code> (String): A preview of the email body.</p>\n</li>\n<li><p><code>sender</code> (Object): Information about the sender of the email.</p>\n<ul>\n<li><p><code>name</code> (String): The display name of the sender.</p>\n</li>\n<li><p><code>emailAddress</code> (Object): The email address of the sender.</p>\n<ul>\n<li><p><code>address</code> (String): The email address.</p>\n</li>\n<li><p><code>name</code> (String): The display name associated with the email address.</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"http","port":"3000","path":["outlook","all-Mails","bhavishreddy001@outlook.com"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"17c8e4b3-4870-4566-9a59-061aba1e6d6e"},{"name":"read mail","id":"e4a925ca-b44d-4983-9e8d-de77c5a94fe6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/outlook/{:email}/read-Msg/{:messageid}","description":"<h1 id=\"get-outlook-message-details\">Get Outlook Message Details</h1>\n<p>This endpoint retrieves the details of a specific message in the Outlook mailbox.</p>\n<h2 id=\"request\">Request</h2>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: <code>https://localhost:3000/outlook/{:email}/read-Msg/{:messageid}</code></p>\n</li>\n</ul>\n<h2 id=\"response\">Response</h2>\n<ul>\n<li><p>Status: 200</p>\n</li>\n<li><p>Content Type: application/json</p>\n</li>\n</ul>\n<h3 id=\"response-body\">Response Body</h3>\n<p>The response contains the details of the specified message, including its ID, timestamps, categories, sender information, recipient information, and message flags.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"@odata.context\": \"\",\n  \"@odata.etag\": \"\",\n  \"id\": \"\",\n  \"createdDateTime\": \"\",\n  \"lastModifiedDateTime\": \"\",\n  \"changeKey\": \"\",\n  \"categories\": [],\n  \"receivedDateTime\": \"\",\n  \"sentDateTime\": \"\",\n  \"hasAttachments\": true,\n  \"internetMessageId\": \"\",\n  \"subject\": \"\",\n  \"bodyPreview\": \"\",\n  \"importance\": \"\",\n  \"parentFolderId\": \"\",\n  \"conversationId\": \"\",\n  \"conversationIndex\": \"\",\n  \"isDeliveryReceiptRequested\": null,\n  \"isReadReceiptRequested\": true,\n  \"isRead\": true,\n  \"isDraft\": true,\n  \"webLink\": \"\",\n  \"inferenceClassification\": \"\",\n  \"body\": {\n    \"contentType\": \"\",\n    \"content\": \"\"\n  },\n  \"sender\": {\n    \"emailAddress\": {\n      \"name\": \"\",\n      \"address\": \"\"\n    }\n  },\n  \"from\": {\n    \"emailAddress\": {\n      \"name\": \"\",\n      \"address\": \"\"\n    }\n  },\n  \"toRecipients\": [\n    {\n      \"emailAddress\": {\n        \"name\": \"\",\n        \"address\": \"\"\n      }\n    }\n  ],\n  \"ccRecipients\": [],\n  \"bccRecipients\": [],\n  \"replyTo\": [],\n  \"flag\": {\n    \"flagStatus\": \"\"\n  }\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"3000","path":["outlook","{:email}","read-Msg","{:messageid}"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"e4a925ca-b44d-4983-9e8d-de77c5a94fe6"},{"name":"send mail using outlook","id":"82cfb64f-a968-487b-bfb0-d2d02ffa687e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"from\":\"bhavishreddy001@gmail.com\",\r\n    \"to\":\"bhavishreddy001@gmail.com\",\r\n    \"label\":\"Not Interested\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/outlook/bhavishreddy001@outlook.com/send-Mail/","description":"<p>This endpoint is used to send an email via Outlook. The HTTP POST request should be made to the specified URL with the required payload in the raw request body.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><code>from</code> (string): The email address of the sender.</li>\n<li><code>to</code> (string): The email address of the recipient.</li>\n<li><code>label</code> (string): The label or category for the email.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>Upon a successful execution, the API returns a JSON response with the following fields:</p>\n<ul>\n<li><code>message</code> (string): A message indicating the status of the operation.</li>\n<li><code>result</code> (string): Additional result information.</li>\n</ul>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"message\": \"Success\",\n    \"result\": \"Email sent successfully\"\n}\n\n</code></pre>\n<p>In case of an error, appropriate status codes and error messages will be returned.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["outlook","bhavishreddy001@outlook.com","send-Mail",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"82cfb64f-a968-487b-bfb0-d2d02ffa687e"},{"name":"send mail via outlook using bullmq","id":"25c327c3-7b1a-4071-8f5c-469527864201","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"from\":\"bhavishreddy001@outlook.com\",\r\n    \"to\":\"bhavishreddy001@gmail.com\"\r\n\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/outlook/sendone/bhavishreddy001@outlook.com/AQMkADAwATMwMAItNzM4OS05N2JkLTAwAi0wMAoARgAAA36UTws0KM9Mtq7OVfl1NfwHAEn2pVXtmdZIpCEBtLcfZLkAAAIBDAAAAEn2pVXtmdZIpCEBtLcfZLkAAAIFXQAAAA==","description":"<p><code>POST /outlook/sendone/{recipientEmail}/{messageId}</code></p>\n<h3 id=\"description\">Description:</h3>\n<p>This endpoint sends an email response based on the content of the specified message ID. The response content is generated using OpenAI's text generation capabilities.</p>\n<h3 id=\"parameters\">Parameters:</h3>\n<ul>\n<li><p><code>{recipientEmail}</code> (string, required): The email address of the recipient to whom the reply will be sent.</p>\n</li>\n<li><p><code>{messageId}</code> (string, required): The unique identifier of the message for which the reply will be generated.</p>\n</li>\n</ul>\n<h3 id=\"request-body\">Request Body:</h3>\n<p>The request body should contain any additional data required by the endpoint, such as authentication tokens or configuration settings.</p>\n<h3 id=\"response\">Response:</h3>\n<ul>\n<li><p><strong>200 OK</strong>: The email response has been successfully sent.</p>\n<ul>\n<li><strong>Content</strong>: The ID of the sent email message.</li>\n</ul>\n</li>\n<li><p><strong>400 Bad Request</strong>: If the request is malformed or missing required parameters.</p>\n<ul>\n<li><strong>Content</strong>: Error message indicating the reason for the bad request.</li>\n</ul>\n</li>\n<li><p><strong>401 Unauthorized</strong>: If the request lacks valid authentication credentials.</p>\n<ul>\n<li><strong>Content</strong>: Error message indicating the need for valid authentication.</li>\n</ul>\n</li>\n<li><p><strong>500 Internal Server Error</strong>: If there is an unexpected error during processing.</p>\n<ul>\n<li><strong>Content</strong>: Error message indicating the nature of the server error</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"http","port":"3000","path":["outlook","sendone","bhavishreddy001@outlook.com","AQMkADAwATMwMAItNzM4OS05N2JkLTAwAi0wMAoARgAAA36UTws0KM9Mtq7OVfl1NfwHAEn2pVXtmdZIpCEBtLcfZLkAAAIBDAAAAEn2pVXtmdZIpCEBtLcfZLkAAAIFXQAAAA=="],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"25c327c3-7b1a-4071-8f5c-469527864201"}]}