{"info":{"_postman_id":"b2b149d4-9754-4272-b5b2-1d08b2728c2e","name":"Profanity Detection","description":"<html><head></head><body><h2 id=\"profanity-detection-api-😡💢\">Profanity Detection API 😡💢</h2>\n<p>Profanity is such a problem in an App where user can submits their own message or text. So thats basically why this API exist 😁</p>\n<h2 id=\"how-it-works-🤔\">How It Works? 🤔</h2>\n<p>How this API works is quiet simple, the API snatch the message users are trying to send and send it to Google's Gemini to filter if theres any profanity included in the text😁. So modern tech on the roll😄</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"29725546","collectionId":"b2b149d4-9754-4272-b5b2-1d08b2728c2e","publishedId":"2sA3QterJW","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-05-29T13:22:13.000Z"},"item":[{"name":"Create Token","id":"436be2f5-89b9-46f0-81dc-55a271cea2e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"SERVER_SECRET"}],"body":{"mode":"raw","raw":"{\r\n    \"expiresInDays\": 365\r\n}","options":{"raw":{"language":"json"}}},"url":"{{ENDPOINT}}/token","description":"<h3 id=\"post-token\">POST /token</h3>\n<p>This endpoint is used to obtain a token.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li>Method: POST</li>\n<li>Endpoint: {{ENDPOINT}}/token</li>\n<li>Body (raw, application/json):<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"expiresInDays\": 0\n}\n</code></pre>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li>Status: 200</li>\n<li>Content-Type: application/json</li>\n<li>Body: <pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"token\": \"\"\n}\n</code></pre>\n</li>\n</ul>\n<h4 id=\"json-schema-for-response\">JSON Schema for Response</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"object\",\n    \"properties\": {\n        \"token\": {\n            \"type\": \"string\"\n        }\n    }\n}\n</code></pre>\n","urlObject":{"path":["token"],"host":["{{ENDPOINT}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"436be2f5-89b9-46f0-81dc-55a271cea2e1"},{"name":"Detect Profanity","id":"83680c24-4f40-480c-bc4a-784bac919696","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{TOKEN}}"}],"body":{"mode":"raw","raw":"{\r\n    \"message\": \"This is fucking awesome🔥🔥🔥\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{ENDPOINT}}/detect","description":"<p>This endpoint allows you to send a POST request to {{ENDPOINT}}/detect in order to detect profanity in a message. The request should include a JSON payload in the raw request body type with a \"message\" key.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><code>message</code> (string, required): The message in which profanity needs to be detected.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>Upon successful execution, the response will have a status code of 200 and a Content-Type of application/json. The response body will include:</p>\n<ul>\n<li><p><code>message</code> (string): The original message sent in the request.</p>\n</li>\n<li><p><code>result</code> (object):</p>\n<ul>\n<li><p><code>profanity_included</code> (boolean): Indicates whether profanity was detected in the message.</p>\n</li>\n<li><p><code>censored</code> (string): The censored version of the message, if profanity was detected.</p>\n</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"path":["detect"],"host":["{{ENDPOINT}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"83680c24-4f40-480c-bc4a-784bac919696"}]}