{"info":{"_postman_id":"e55e8498-62f7-4e93-a114-4dd507a74d5f","name":"NapiBot","description":"<html><head></head><body><h2 id=\"google-assistant-api-collection\">Google Assistant API collection</h2>\n<h3 id=\"both-apis-serve-the-same-purpose-use-as-per-convenience-based-on-your-desired-auth-method\">(Both APIs serve the same purpose, use as per convenience based on your desired auth method)</h3>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"11176025","collectionId":"e55e8498-62f7-4e93-a114-4dd507a74d5f","publishedId":"2s9YsJBCEK","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"1E2025","highlight":"158cfa"},"publishDate":"2024-01-07T13:21:17.000Z"},"item":[{"name":"Execute","id":"43050394-22d1-4324-b84b-2c0b24a63253","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"YOUR_API_KEY_HERE"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"command\": \"Your google assistant command here (Eg - Turn on room lights)\"\n}","options":{"raw":{"language":"json"}}},"url":"https://napibot.com/api/execute","description":"<h2 id=\"auth\"><strong>Auth:</strong></h2>\n<p>Pass your API key as the bearer token in the header of the request</p>\n<h2 id=\"body\">Body:</h2>\n<p>Pass a raw JSON body with the <code>command</code> as the key your input in the value</p>\n<h2 id=\"errors\">Errors:</h2>\n<p>400 - Missing command in body</p>\n<p>401 - Missing auth token</p>\n<p>402 - Not enough credits remaining to perform the action</p>\n<p>403 - Invalid token</p>\n<p>500 - Error in Google Assistant API</p>\n<h2 id=\"example-response\">Example Response:</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"result\": \"Success\",\n    \"creditsRemaining\": 1989\n}\n\n</code></pre>\n<h6 id=\"note-google-assistants-orginal-response-is-not-yet-available-at-this-stage-will-be-added-in-later-versions-at-this-stage-its-a-one-way-command-execution-api\">Note: Google assistant's orginal response is not yet available at this stage, will be added in later versions. At this stage it's a one way command execution API</h6>\n","urlObject":{"protocol":"https","path":["api","execute"],"host":["napibot","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"43050394-22d1-4324-b84b-2c0b24a63253"},{"name":"Execute with Inline Auth","id":"994048ad-5f45-41df-813d-4b53708940d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"token\": \"{YOUR_API_TOKEN}\",\n    \"command\": \"Your google assistant command here (Eg - Turn on room lights)\"\n}","options":{"raw":{"language":"json"}}},"url":"https://napibot.com/api/executeWithInlineAuth","description":"<h2 id=\"usage\">Usage:</h2>\n<p>In cases where you need to pass the token right inside the body. For example when making calls from Chat GPT agents etc..</p>\n<h2 id=\"body\">Body:</h2>\n<p>Pass a raw JSON body with</p>\n<ol>\n<li><code>command</code> as the key and your input in the value</li>\n<li><code>token</code> as the key and your API key in the value</li>\n</ol>\n<h2 id=\"errors\">Errors:</h2>\n<p>400 - Missing command in body</p>\n<p>401 - Missing auth token</p>\n<p>402 - Not enough credits remaining to perform the action</p>\n<p>403 - Invalid token</p>\n<p>500 - Error in Google Assistant API</p>\n<h2 id=\"example-response\">Example Response:</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"result\": \"Success\",\n    \"creditsRemaining\": 1989\n}\n\n</code></pre>\n<h6 id=\"note-google-assistants-orginal-response-is-not-yet-available-at-this-stage-will-be-added-in-later-versions-at-this-stage-its-a-one-way-command-execution-api\">Note: Google assistant's orginal response is not yet available at this stage, will be added in later versions. At this stage it's a one way command execution API</h6>\n","urlObject":{"protocol":"https","path":["api","executeWithInlineAuth"],"host":["napibot","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"994048ad-5f45-41df-813d-4b53708940d5"}],"variable":[{"key":"YOUR_API_KEY_HERE","value":"YOUR_API_KEY_HERE"}]}