{"info":{"_postman_id":"a4e6322c-6c42-4f1a-99a1-ea20d9ae8e1d","name":"MessageBuzz API","description":"<html><head></head><body><h1 id=\"get-started-here\">📄 Get started here</h1>\n<p>This template contains a boilerplate for documentation that you can quickly customize and reuse.</p>\n<h2 id=\"🔖-how-to-use-this-template\">🔖 How to use this template</h2>\n<ul>\n<li>Replace the content given brackets (()) with your API's details.</li>\n<li>Tips are formatted in <code>codespan</code> - feel free to read and remove them.</li>\n</ul>\n<hr>\n<p><code>Start with a brief overview of what your API offers.</code></p>\n<p>The ((product name)) provides many API products, tools, and resources that enable you to ((add product value here)).</p>\n<p><code>You can also list the APIs you offer, link to the relevant pages, or do both in this section.</code></p>\n<h2 id=\"getting-started-guide\"><strong>Getting started guide</strong></h2>\n<p><code>List the steps or points required to start using your APIs. Make sure to cover everything required to reach success with your API as quickly as possible.</code></p>\n<p>To start using the ((add APIs here)), you need to -</p>\n<p><code>The points given below are from The Postman API's documentation. You can reference it to write your own getting started guide.</code></p>\n<ul>\n<li>You must use a valid API Key to send requests to the API endpoints. You can get your API key from Postman's <a href=\"https://go.postman.co/settings/me/api-keys\">integrations dashboard</a>.</li>\n<li>The API has <a href=\"https://learning.postman.com/docs/developer/postman-api/postman-api-rate-limits/\">rate and usage limits</a>.</li>\n<li>The API only responds to HTTPS-secured communications. Any requests sent via HTTP return an HTTP 301 redirect to the corresponding HTTPS resources.</li>\n<li>The API returns request responses in JSON format. When an API request returns an error, it is sent in the JSON response as an error key.</li>\n</ul>\n<h2 id=\"authentication\">Authentication</h2>\n<p><code>Add details on the authorization keys/tokens required, steps that cover how to get them, and the relevant error codes.</code></p>\n<p>The ((product name)) API uses ((add your API's authorization type)) for authentication.</p>\n<p><code>The details given below are from the Postman API's documentation. You can reference it to write your own authentication section.</code></p>\n<p>Postman uses API keys for authentication. You can generate a Postman API key in the <a href=\"https://postman.postman.co/settings/me/api-keys\">API keys</a> section of your Postman account settings.</p>\n<p>You must include an API key in each request to the Postman API with the X-Api-Key request header.</p>\n<h3 id=\"authentication-error-response\">Authentication error response</h3>\n<p>If an API key is missing, malformed, or invalid, you will receive an HTTP 401 Unauthorized response code.</p>\n<h2 id=\"rate-and-usage-limits\">Rate and usage limits</h2>\n<p><code>Use this section to cover your APIs' terms of use. Include API limits, constraints, and relevant error codes, so consumers understand the permitted API usage and practices.</code></p>\n<p><code>The example given below is from The Postman API's documentation. Use it as a reference to write your APIs' terms of use.</code></p>\n<p>API access rate limits apply at a per-API key basis in unit time. The limit is 300 requests per minute. Also, depending on your plan, you may have usage limits. If you exceed either limit, your request will return an HTTP 429 Too Many Requests status code.</p>\n<p>Each API response returns the following set of headers to help you identify your use status:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Header</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>X-RateLimit-Limit</code></td>\n<td>The maximum number of requests that the consumer is permitted to make per minute.</td>\n</tr>\n<tr>\n<td><code>X-RateLimit-Remaining</code></td>\n<td>The number of requests remaining in the current rate limit window.</td>\n</tr>\n<tr>\n<td><code>X-RateLimit-Reset</code></td>\n<td>The time at which the current rate limit window resets in UTC epoch seconds.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"503-response\">503 response</h3>\n<p>An HTTP <code>503</code> response from our servers indicates there is an unexpected spike in API access traffic. The server is usually operational within the next five minutes. If the outage persists or you receive any other form of an HTTP <code>5XX</code> error, <a href=\"https://support.postman.com/hc/en-us/requests/new/\">contact support</a>.</p>\n<h3 id=\"need-some-help\"><strong>Need some help?</strong></h3>\n<p><code>Add links that customers can refer to whenever they need help.</code></p>\n<p>In case you have questions, go through our tutorials ((link to your video or help documentation here)). Or visit our FAQ page ((link to the relevant page)).</p>\n<p>Or you can check out our community forum, there’s a good chance our community has an answer for you. Visit our developer forum ((link to developer forum)) to review topics, ask questions, and learn from others.</p>\n<p><code>You can also document or add links to libraries, code examples, and other resources needed to make a request.</code></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"📄 Get started here","slug":"get-started-here"}],"owner":"29729601","collectionId":"a4e6322c-6c42-4f1a-99a1-ea20d9ae8e1d","publishedId":"2sA3XY7deX","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-06-25T06:01:32.000Z"},"item":[{"name":"Authentication","item":[{"name":"ForgetPassword","id":"dc6f3eef-457a-47e4-aca5-068327a682c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"thapanaresh760@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/user/forgot-password","description":"<p>This API endpoint is used to initiate the process of resetting a user's forgotten password.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<p>The request should be made using an HTTP POST method with a JSON payload in the request body. The payload should include the user's email address in the following format:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"email\": \"user@example.com\"\n}\n\n</code></pre>\n<h3 id=\"response\">Response</h3>\n<p>Upon successful initiation of the password reset process, the API will return a response indicating the success of the request. The specific structure of the response will depend on the implementation of the API and the success status of the request.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"a4e6322c-6c42-4f1a-99a1-ea20d9ae8e1d","id":"a4e6322c-6c42-4f1a-99a1-ea20d9ae8e1d","name":"MessageBuzz API","type":"collection"}},"urlObject":{"path":["v1","user","forgot-password"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"dc6f3eef-457a-47e4-aca5-068327a682c3"},{"name":"ResetPassword","id":"86fd2af7-ab1d-40ca-a490-0f409a5ce32c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"password\":\"helloworld\",\r\n    \"passwordConfirm\":\"helloworld\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/user/reset-password/07dc95574e257d2b1b4eb6d4380ce80abe8dc6146f14b8b348c7f33139444cbf ","description":"<h3 id=\"patch-apiv1userreset-passwordresettoken\">PATCH /api/v1/user/reset-password/{resetToken}</h3>\n<p>This endpoint is used to reset the password for a user by providing a reset token.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>password</code> (string, required): The new password for the user.</p>\n</li>\n<li><p><code>passwordConfirm</code> (string, required): Confirmation of the new password.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request is a JSON object with the following properties:</p>\n<ul>\n<li><code>message</code> (string): A message indicating the status of the password reset process.</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"message\": \"Password reset successful\"\n}\n\n</code></pre>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"a4e6322c-6c42-4f1a-99a1-ea20d9ae8e1d","id":"a4e6322c-6c42-4f1a-99a1-ea20d9ae8e1d","name":"MessageBuzz API","type":"collection"}},"urlObject":{"path":["v1","user","reset-password","07dc95574e257d2b1b4eb6d4380ce80abe8dc6146f14b8b348c7f33139444cbf "],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"86fd2af7-ab1d-40ca-a490-0f409a5ce32c"}],"id":"9d59c546-4dc7-4b9f-a665-4a3ab17347a4","_postman_id":"9d59c546-4dc7-4b9f-a665-4a3ab17347a4","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"a4e6322c-6c42-4f1a-99a1-ea20d9ae8e1d","id":"a4e6322c-6c42-4f1a-99a1-ea20d9ae8e1d","name":"MessageBuzz API","type":"collection"}}},{"name":"Chat","item":[{"name":"deleteChat","id":"72481893-320b-4b76-8382-f68e28cc025f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"description":"<h3 id=\"delete-chat\">Delete Chat</h3>\n<p>This endpoint is used to delete a chat based on the provided chat ID.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><code>chatId</code> (string, required): The ID of the chat to be deleted.</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will indicate the success or failure of the deletion operation.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"a4e6322c-6c42-4f1a-99a1-ea20d9ae8e1d","id":"a4e6322c-6c42-4f1a-99a1-ea20d9ae8e1d","name":"MessageBuzz API","type":"collection"}},"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"72481893-320b-4b76-8382-f68e28cc025f"},{"name":"save-chat","id":"8d28b7be-8c81-443b-9291-2a5e3abd490d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"a4e6322c-6c42-4f1a-99a1-ea20d9ae8e1d","id":"a4e6322c-6c42-4f1a-99a1-ea20d9ae8e1d","name":"MessageBuzz API","type":"collection"}},"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"8d28b7be-8c81-443b-9291-2a5e3abd490d"}],"id":"546a531d-4cbe-4861-bfd8-99408714cfe8","_postman_id":"546a531d-4cbe-4861-bfd8-99408714cfe8","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"a4e6322c-6c42-4f1a-99a1-ea20d9ae8e1d","id":"a4e6322c-6c42-4f1a-99a1-ea20d9ae8e1d","name":"MessageBuzz API","type":"collection"}}},{"name":"User","item":[{"name":"createUser","event":[{"listen":"prerequest","script":{"id":"4734f70c-b63c-4565-aff2-a5f0f6def985","exec":[""],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"45b7933d-c726-4907-bcf9-886abfb22b72","exec":["pm.environment.set(\"jwt\", pm.response.json().token);"],"type":"text/javascript","packages":{}}}],"id":"39c1289a-a203-41c8-bc2b-94ca1b1ca12c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"naresh","type":"text"},{"key":"email","value":"thapanaresh42@gmail.com","type":"text"},{"key":"password","value":"hello123","type":"text"},{"key":"image","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/C:/Users/thapa/Downloads/Snapchat for Web 2024-5-3 at 9_28_57 PM.jpeg"],"src":"/C:/Users/thapa/Downloads/Snapchat for Web 2024-5-3 at 9_28_57 PM.jpeg"}]},"url":"{{URL}}api/v1/user/signup","description":"<h3 id=\"user-signup\">User Signup</h3>\n<p>This endpoint is used to create a new user account.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>name</code> (text): The name of the user.</p>\n</li>\n<li><p><code>email</code> (text): The email address of the user.</p>\n</li>\n<li><p><code>password</code> (text): The password for the user account.</p>\n</li>\n<li><p><code>image</code> (file): An optional image for the user profile.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response of this request is a JSON schema representing the user account details.</p>\n","urlObject":{"path":["v1","user","signup"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"39c1289a-a203-41c8-bc2b-94ca1b1ca12c"},{"name":"UpdateUser","id":"c1c0aba9-d2e4-4d41-b536-2ded45796c28","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"description":"<h3 id=\"update-user-password\">Update User Password</h3>\n<p>This endpoint allows the user to update their password.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>passwordCurrent</code> (string, required): The user's current password.</p>\n</li>\n<li><p><code>password</code> (string, required): The new password.</p>\n</li>\n<li><p><code>passwordConfirm</code> (string, required): Confirmation of the new password.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request is a JSON object conforming to the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"status\": {\n      \"type\": \"string\"\n    },\n    \"message\": {\n      \"type\": \"string\"\n    }\n  }\n}\n\n</code></pre>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"a4e6322c-6c42-4f1a-99a1-ea20d9ae8e1d","id":"a4e6322c-6c42-4f1a-99a1-ea20d9ae8e1d","name":"MessageBuzz API","type":"collection"}},"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"c1c0aba9-d2e4-4d41-b536-2ded45796c28"},{"name":"addFriend","id":"0b5caede-4e6f-4164-b79d-76fc5c799478","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"friendId\":\"9238ytgj1ebrvu093ujk4\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/user/addFriend","description":"<h3 id=\"add-friend-to-user\">Add Friend to User</h3>\n<p>This endpoint is used to add a friend to a user.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: <code>PATCH</code></p>\n</li>\n<li><p>URL: <code>{{URL}}api/v1/user/addFriend</code></p>\n</li>\n<li><p>Body:</p>\n<ul>\n<li><code>friendId</code> (string, required): The ID of the friend to be added.</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response of this request is in JSON format and follows the schema below:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    // Define the properties of the response here\n  }\n}\n\n</code></pre>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"a4e6322c-6c42-4f1a-99a1-ea20d9ae8e1d","id":"a4e6322c-6c42-4f1a-99a1-ea20d9ae8e1d","name":"MessageBuzz API","type":"collection"}},"urlObject":{"path":["v1","user","addFriend"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"0b5caede-4e6f-4164-b79d-76fc5c799478"},{"name":"login","id":"5c0fa738-fc22-4e73-9e7d-24d63161e300","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"thapanaresh8412@gmail.com\",\r\n    \"password\":\"Nare@1999\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/user/login","description":"<h3 id=\"user-login\">User Login</h3>\n<p>This endpoint allows users to log in by providing their email and password.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>email</code> (string, required): The email address of the user.</p>\n</li>\n<li><p><code>password</code> (string, required): The password for the user account.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will include the user's authentication token and other relevant user information upon successful login.</p>\n","urlObject":{"path":["v1","user","login"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"5c0fa738-fc22-4e73-9e7d-24d63161e300"}],"id":"de59def8-8cd9-4c86-9157-29feafa816ed","_postman_id":"de59def8-8cd9-4c86-9157-29feafa816ed","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"a4e6322c-6c42-4f1a-99a1-ea20d9ae8e1d","id":"a4e6322c-6c42-4f1a-99a1-ea20d9ae8e1d","name":"MessageBuzz API","type":"collection"}}}],"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"{{token}}"}]}},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""]}},{"listen":"test","script":{"type":"text/javascript","exec":[""]}}],"variable":[{"id":"ee7eea7e-5492-47da-b8c5-0190d07fa8c8","key":"baseUrl","value":"https://farming-simulator.pstmn.io"}]}