{"info":{"_postman_id":"67854598-0c8e-4ab2-82fb-7fc4a1c82e46","name":"Blits Client API","description":"<html><head></head><body><p>The Blits Client (REST) API allows developers and teams to integrate their own channels with the Blits platform. This enables custom communication with websites, apps and other user channels to interact with the bot via voice and/or text.</p>\n<p>StartFragmentThe API uses a JWT token for authentication, and identification of the bot and tenant. The JWT key can be obtained from the Bot Settings, Configuraion, API channel, settings, JSON Web Token. You should have an active account within the Blits Platform.</p>\n<p>Login into your account at <a href=\"https://platform.blits.ai/login\">https://platform.blits.ai/login</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"12778718","collectionId":"67854598-0c8e-4ab2-82fb-7fc4a1c82e46","publishedId":"2sA3kd8wiS","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-07-31T12:30:13.000Z"},"item":[{"name":"Initialize New Conversation","id":"e316179b-820d-4daa-9687-5f92fe3d7303","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{authToken}}"}]},"isInherited":false},"method":"POST","header":[{"key":"","value":"","type":"text"}],"url":"{{baseUrl}}/initialize","description":"<p>With this POST request a new conversation ID is created. The conversation ID is used to interact with the chatbot. The conversation ID is needed for the other APIs to return information such as:</p>\n<ul>\n<li><p>Type of prior block </p>\n</li>\n<li><p>Type of following block </p>\n</li>\n<li><p>Content of the user message </p>\n</li>\n<li><p>Content of the bot response.</p>\n</li>\n</ul>\n<p>The conversation id is used to chat with the bot.</p>\n","urlObject":{"path":["initialize"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"6eead12e-2043-4c87-a45b-9e3b721476ed","name":"Initialize New Conversation","originalRequest":{"method":"POST","header":[],"url":"https://platform.blits.ai/api/external/initialize"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 31 Jul 2024 12:25:18 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"178"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"Access-Control-Allow-Origin","value":"https://platform.blits.ai"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate,no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Expires","value":"0"},{"key":"Pragma","value":"no-cache,no-cache"},{"key":"Set-Cookie","value":"TiPMix=65.14266014626357; path=/; HttpOnly; Domain=blits-production-app.azurewebsites.net; Max-Age=3600; Secure; SameSite=None"},{"key":"Set-Cookie","value":"x-ms-routing-name=self; path=/; HttpOnly; Domain=blits-production-app.azurewebsites.net; Max-Age=3600; Secure; SameSite=None"},{"key":"Set-Cookie","value":"ARRAffinity=413b46c135b0297a9e2a1eb717c27f1954496b3071dbf72bf70dbd061058d50e;Path=/;HttpOnly;Secure;Domain=blits-production-app.azurewebsites.net"},{"key":"Set-Cookie","value":"ARRAffinitySameSite=413b46c135b0297a9e2a1eb717c27f1954496b3071dbf72bf70dbd061058d50e;Path=/;HttpOnly;SameSite=None;Secure;Domain=blits-production-app.azurewebsites.net"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains; preload"},{"key":"X-Frame-Options","value":"allow-from https://platform.blits.ai"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"set-cookie","value":"ASLBSA=000334fedbdbd37d44036f556ad0558bbbdb23b2211c36d371b8bcbe8e793b78e446; Path=/; Secure; HttpOnly;"},{"key":"set-cookie","value":"ASLBSACORS=000334fedbdbd37d44036f556ad0558bbbdb23b2211c36d371b8bcbe8e793b78e446; SameSite=none; Path=/; Secure; HttpOnly;"},{"key":"x-azure-ref","value":"20240731T122518Z-r159c8798fd6c28m9ykkequy58000000085g00000000kv4q"},{"key":"X-Cache","value":"CONFIG_NOCACHE"},{"key":"Accept-Ranges","value":"bytes"}],"cookie":[],"responseTime":null,"body":"{\n    \"conversationId\": \"63525c75-7734-44b6-8a65-96d1d16ac06b\"\n}"}],"_postman_id":"e316179b-820d-4daa-9687-5f92fe3d7303"},{"name":"Check conversation is active","id":"72c29dfa-b9c8-478c-b070-1fa419166f43","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{authToken}}"}]},"isInherited":false},"method":"POST","header":[],"url":"https://platform.blits.ai/api/external/is-active/:conversationId","urlObject":{"protocol":"https","path":["api","external","is-active",":conversationId"],"host":["platform","blits","ai"],"query":[],"variable":[{"type":"any","value":"{{conversationId}}","key":"conversationId"}]}},"response":[{"id":"4d9cd359-eeb6-4f29-afd9-5758d569af9d","name":"is active","originalRequest":{"method":"POST","header":[],"url":{"raw":"https://platform.blits.ai/api/external/is-active/:conversationId","protocol":"https","host":["platform","blits","ai"],"path":["api","external","is-active",":conversationId"],"variable":[{"key":"conversationId","value":"{{conversationId}}"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"72c29dfa-b9c8-478c-b070-1fa419166f43"},{"name":"Requesting Opening Message","id":"ebe0627e-b965-4472-b2f8-2d07d8831d65","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{authToken}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"type\": \"NEW\"\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/messages/:conversationId/text","description":"<p>With this POST request a the opening message(s) can be requested from the bot. Set the header speech-response to true if you want to receive audio instead of text.</p>\n","urlObject":{"path":["messages",":conversationId","text"],"host":["{{baseUrl}}"],"query":[],"variable":[{"type":"any","value":"{{conversationId}}","key":"conversationId"}]}},"response":[{"id":"edac79ea-f25b-4420-a52a-add651a27f42","name":"Requesting Opening Message","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"type\": \"NEW\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{baseUrl}}/messages/:conversationId/text","host":["{{baseUrl}}"],"path":["messages",":conversationId","text"],"variable":[{"key":"conversationId","value":"{{conversationId}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 31 Jul 2024 12:26:49 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"246"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"Access-Control-Allow-Origin","value":"https://platform.blits.ai"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate,no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Expires","value":"0"},{"key":"Pragma","value":"no-cache,no-cache"},{"key":"Set-Cookie","value":"TiPMix=29.94973035504097; path=/; HttpOnly; Domain=blits-production-app.azurewebsites.net; Max-Age=3600; Secure; SameSite=None"},{"key":"Set-Cookie","value":"x-ms-routing-name=self; path=/; HttpOnly; Domain=blits-production-app.azurewebsites.net; Max-Age=3600; Secure; SameSite=None"},{"key":"Set-Cookie","value":"ARRAffinity=413b46c135b0297a9e2a1eb717c27f1954496b3071dbf72bf70dbd061058d50e;Path=/;HttpOnly;Secure;Domain=blits-production-app.azurewebsites.net"},{"key":"Set-Cookie","value":"ARRAffinitySameSite=413b46c135b0297a9e2a1eb717c27f1954496b3071dbf72bf70dbd061058d50e;Path=/;HttpOnly;SameSite=None;Secure;Domain=blits-production-app.azurewebsites.net"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains; preload"},{"key":"X-Frame-Options","value":"allow-from https://platform.blits.ai"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"set-cookie","value":"ASLBSA=000334fedbdbd37d44036f556ad0558bbbdb23b2211c36d371b8bcbe8e793b78e446; Path=/; Secure; HttpOnly;"},{"key":"set-cookie","value":"ASLBSACORS=000334fedbdbd37d44036f556ad0558bbbdb23b2211c36d371b8bcbe8e793b78e446; SameSite=none; Path=/; Secure; HttpOnly;"},{"key":"x-azure-ref","value":"20240731T122648Z-179b6fb4958pb65hyf2r442v6s00000009sg0000000032b8"},{"key":"X-Cache","value":"CONFIG_NOCACHE"},{"key":"Accept-Ranges","value":"bytes"}],"cookie":[],"responseTime":null,"body":"{\n    \"conversationToken\": \"63525c75-7734-44b6-8a65-96d1d16ac06b\",\n    \"expectUserResponse\": true,\n    \"response\": [\n        \"Hi! This is the 'Welcome Message!\"\n    ]\n}"},{"id":"05508ecf-1641-45e1-b1f4-fc6a26d1a23d","name":"Requesting Opening Message Speech","originalRequest":{"method":"POST","header":[{"key":"speech-response","value":"true","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"type\": \"NEW\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{baseUrl}}/messages/:conversationId/text","host":["{{baseUrl}}"],"path":["messages",":conversationId","text"],"variable":[{"key":"conversationId","value":"{{conversationId}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 31 Jul 2024 12:26:49 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"246"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"Access-Control-Allow-Origin","value":"https://platform.blits.ai"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate,no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Expires","value":"0"},{"key":"Pragma","value":"no-cache,no-cache"},{"key":"Set-Cookie","value":"TiPMix=29.94973035504097; path=/; HttpOnly; Domain=blits-production-app.azurewebsites.net; Max-Age=3600; Secure; SameSite=None"},{"key":"Set-Cookie","value":"x-ms-routing-name=self; path=/; HttpOnly; Domain=blits-production-app.azurewebsites.net; Max-Age=3600; Secure; SameSite=None"},{"key":"Set-Cookie","value":"ARRAffinity=413b46c135b0297a9e2a1eb717c27f1954496b3071dbf72bf70dbd061058d50e;Path=/;HttpOnly;Secure;Domain=blits-production-app.azurewebsites.net"},{"key":"Set-Cookie","value":"ARRAffinitySameSite=413b46c135b0297a9e2a1eb717c27f1954496b3071dbf72bf70dbd061058d50e;Path=/;HttpOnly;SameSite=None;Secure;Domain=blits-production-app.azurewebsites.net"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains; preload"},{"key":"X-Frame-Options","value":"allow-from https://platform.blits.ai"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"set-cookie","value":"ASLBSA=000334fedbdbd37d44036f556ad0558bbbdb23b2211c36d371b8bcbe8e793b78e446; Path=/; Secure; HttpOnly;"},{"key":"set-cookie","value":"ASLBSACORS=000334fedbdbd37d44036f556ad0558bbbdb23b2211c36d371b8bcbe8e793b78e446; SameSite=none; Path=/; Secure; HttpOnly;"},{"key":"x-azure-ref","value":"20240731T122648Z-179b6fb4958pb65hyf2r442v6s00000009sg0000000032b8"},{"key":"X-Cache","value":"CONFIG_NOCACHE"},{"key":"Accept-Ranges","value":"bytes"}],"cookie":[],"responseTime":null,"body":"{\n    \"conversationToken\": \"63525c75-7734-44b6-8a65-96d1d16ac06b\",\n    \"expectUserResponse\": true,\n    \"response\": [\n        \"Hi! This is the 'Welcome Message!\"\n    ]\n}"}],"_postman_id":"ebe0627e-b965-4472-b2f8-2d07d8831d65"},{"name":"Sending Text","id":"3cbf5fd8-b7d2-4ea1-938f-3161219dfb80","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{authToken}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"message\": \"Hallo, this is a test message\"\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/messages/:conversationId/text","description":"<p>With this POST request a text message can be send to the bot.</p>\n","urlObject":{"path":["messages",":conversationId","text"],"host":["{{baseUrl}}"],"query":[],"variable":[{"type":"any","value":"{{conversationId}}","key":"conversationId"}]}},"response":[{"id":"c1a2e61a-f4ff-4758-a936-87b98e0b72d0","name":"Sending Text","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"message\": \"Hallo, this is a test message\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://platform.blits.ai/api/external/messages/:conversationId/text","protocol":"https","host":["platform","blits","ai"],"path":["api","external","messages",":conversationId","text"],"variable":[{"key":"conversationId","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 31 Jul 2024 12:10:27 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"241"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"Access-Control-Allow-Origin","value":"https://platform.blits.ai"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate,no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Expires","value":"0"},{"key":"Pragma","value":"no-cache,no-cache"},{"key":"Set-Cookie","value":"TiPMix=27.698348573759944; path=/; HttpOnly; Domain=blits-production-app.azurewebsites.net; Max-Age=3600; Secure; SameSite=None"},{"key":"Set-Cookie","value":"x-ms-routing-name=self; path=/; HttpOnly; Domain=blits-production-app.azurewebsites.net; Max-Age=3600; Secure; SameSite=None"},{"key":"Set-Cookie","value":"ARRAffinity=413b46c135b0297a9e2a1eb717c27f1954496b3071dbf72bf70dbd061058d50e;Path=/;HttpOnly;Secure;Domain=blits-production-app.azurewebsites.net"},{"key":"Set-Cookie","value":"ARRAffinitySameSite=413b46c135b0297a9e2a1eb717c27f1954496b3071dbf72bf70dbd061058d50e;Path=/;HttpOnly;SameSite=None;Secure;Domain=blits-production-app.azurewebsites.net"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains; preload"},{"key":"X-Frame-Options","value":"allow-from https://platform.blits.ai"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"set-cookie","value":"ASLBSA=000334fedbdbd37d44036f556ad0558bbbdb23b2211c36d371b8bcbe8e793b78e446; Path=/; Secure; HttpOnly;"},{"key":"set-cookie","value":"ASLBSACORS=000334fedbdbd37d44036f556ad0558bbbdb23b2211c36d371b8bcbe8e793b78e446; SameSite=none; Path=/; Secure; HttpOnly;"},{"key":"x-azure-ref","value":"20240731T121026Z-r185d5857fbwz7wx7fyggruc5w00000008tg00000000rbkf"},{"key":"X-Cache","value":"CONFIG_NOCACHE"},{"key":"Accept-Ranges","value":"bytes"}],"cookie":[],"responseTime":null,"body":"{\n    \"conversationToken\": \"918c3937-cc54-4200-a797-6378ab262ab0\",\n    \"expectUserResponse\": true,\n    \"response\": [\n        \"Hi! This is the response message for your input!\"\n    ]\n}"},{"id":"824b3ab3-6169-4a97-abb4-0bb25d9c591d","name":"Sending Text (advance reponse)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"message\": \"Hallo, this is a test message\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://platform.blits.ai/api/external/messages/:conversationId/text","protocol":"https","host":["platform","blits","ai"],"path":["api","external","messages",":conversationId","text"],"variable":[{"key":"conversationId","value":"918c3937-cc54-4200-a797-6378ab262ab0"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 31 Jul 2024 12:10:27 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"241"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"Access-Control-Allow-Origin","value":"https://platform.blits.ai"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate,no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Expires","value":"0"},{"key":"Pragma","value":"no-cache,no-cache"},{"key":"Set-Cookie","value":"TiPMix=27.698348573759944; path=/; HttpOnly; Domain=blits-production-app.azurewebsites.net; Max-Age=3600; Secure; SameSite=None"},{"key":"Set-Cookie","value":"x-ms-routing-name=self; path=/; HttpOnly; Domain=blits-production-app.azurewebsites.net; Max-Age=3600; Secure; SameSite=None"},{"key":"Set-Cookie","value":"ARRAffinity=413b46c135b0297a9e2a1eb717c27f1954496b3071dbf72bf70dbd061058d50e;Path=/;HttpOnly;Secure;Domain=blits-production-app.azurewebsites.net"},{"key":"Set-Cookie","value":"ARRAffinitySameSite=413b46c135b0297a9e2a1eb717c27f1954496b3071dbf72bf70dbd061058d50e;Path=/;HttpOnly;SameSite=None;Secure;Domain=blits-production-app.azurewebsites.net"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains; preload"},{"key":"X-Frame-Options","value":"allow-from https://platform.blits.ai"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"set-cookie","value":"ASLBSA=000334fedbdbd37d44036f556ad0558bbbdb23b2211c36d371b8bcbe8e793b78e446; Path=/; Secure; HttpOnly;"},{"key":"set-cookie","value":"ASLBSACORS=000334fedbdbd37d44036f556ad0558bbbdb23b2211c36d371b8bcbe8e793b78e446; SameSite=none; Path=/; Secure; HttpOnly;"},{"key":"x-azure-ref","value":"20240731T121026Z-r185d5857fbwz7wx7fyggruc5w00000008tg00000000rbkf"},{"key":"X-Cache","value":"CONFIG_NOCACHE"},{"key":"Accept-Ranges","value":"bytes"}],"cookie":[],"responseTime":null,"body":"{\n  \"conversationToken\": \"e2e8dd3f-9cd9-47e7-b061-d6b0fd71efcf\",\n  \"expectUserResponse\": true,\n  \"response\": [\n    {\n      \"items\": [\n        {\n          \"simpleResponse\": {\n            \"displayText\": \"Please download the following form. Fill in all the required fields and print it afterwards. Please show the form at the nearest postal office together with your package.\",\n            \"textToSpeech\": \"Please download the following form. Fill in all the required fields and print it afterwards. Please show the form at the nearest postal office together with your package.\"\n          }\n        },\n        {\n          \"adaptiveCard\": {\n            \"type\": \"AdaptiveCard\",\n            \"body\": [\n              {\n                \"type\": \"Container\",\n                \"items\": [\n                  {\n                    \"type\": \"Image\",\n                    \"size\": \"small\",\n                    \"url\": \"https://blitsproduction.z6.web.core.windows.net/pdf-icon.png\"\n                  },\n                  {\n                    \"type\": \"TextBlock\",\n                    \"text\": \"Dummy_PDF.pdf\"\n                  }\n                ],\n                \"selectAction\": {\n                  \"type\": \"Action.OpenUrl\",\n                  \"url\": \"https://platform.blits.ai/api/block-download-file/28600-whitelabeled---customer-support/f213e429-96f5-49b2-a8cb-a84ec8361534/Dummy_PDF.pdf\"\n                }\n              }\n            ]\n          }\n        }\n      ],\n      \"suggestions\": []\n    }\n  ]\n}"}],"_postman_id":"3cbf5fd8-b7d2-4ea1-938f-3161219dfb80"},{"name":"Sending Files or Images","id":"d0c7b5e0-f04f-4125-8d05-40cda3054b52","protocolProfileBehavior":{"disabledSystemHeaders":{"content-type":true},"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data; boundary=< >","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"attachments","type":"file","value":null}]},"url":"https://platform.blits.ai/api/external/messages/:conversationId/text","description":"<p>With this POST a file or image can be send to the bot. This API only works if the bot is expecting a file or image.</p>\n","urlObject":{"protocol":"https","path":["api","external","messages",":conversationId","text"],"host":["platform","blits","ai"],"query":[],"variable":[{"type":"any","value":"{{conversationId}}","key":"conversationId"}]}},"response":[{"id":"7beebf6d-a0ac-4d7d-9109-83cf35f8180c","name":"Sending Files (without response)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data; boundary=< >","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"attachments","type":"file","value":null}]},"url":{"raw":"https://platform.blits.ai/api/external/messages/:conversationId/text","protocol":"https","host":["platform","blits","ai"],"path":["api","external","messages",":conversationId","text"],"variable":[{"key":"conversationId","value":""}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"conversationToken\": \"0cef8139-8af8-4936-9f48-589825e492c7\",\n  \"expectUserResponse\": true,\n  \"response\": [\n    {\n      \"items\": [],\n      \"suggestions\": []\n    }\n  ]\n}"},{"id":"1a18bfe6-0adb-48c3-97f1-e7e0e2363001","name":"Sending Files (with response)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data; boundary=< >","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"attachments","type":"file","value":null}]},"url":{"raw":"https://platform.blits.ai/api/external/messages/:conversationId/text","protocol":"https","host":["platform","blits","ai"],"path":["api","external","messages",":conversationId","text"],"variable":[{"key":"conversationId","value":""}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"conversationToken\": \"0cef8139-8af8-4936-9f48-589825e492c7\",\n    \"expectUserResponse\": true,\n    \"response\": [\n        {\n            \"items\": [\n                {\n                    \"simpleResponse\": {\n                        \"displayText\": \"Thank you\",\n                        \"textToSpeech\": \"Thank you\"\n                    }\n                }\n            ],\n            \"suggestions\": []\n        }\n    ]\n}"}],"_postman_id":"d0c7b5e0-f04f-4125-8d05-40cda3054b52"},{"name":"Sending Speech","id":"c156860d-a523-4f6d-96a3-cadb6d9c45c7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{authToken}}"}]},"isInherited":false},"method":"POST","header":[{"key":"speech-response","value":"true","type":"text"},{"key":"Content-Type","value":"multipart/form-data; boundary=< >","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"attachments","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":["/Users/lendebets/Downloads/hello.wav"],"value":null}]},"url":"https://platform.blits.ai/api/external/messages/:conversationId/speech","description":"<p>With this POST request a voice message can be send to the bot.</p>\n","urlObject":{"protocol":"https","path":["api","external","messages",":conversationId","speech"],"host":["platform","blits","ai"],"query":[],"variable":[{"type":"any","value":"{{conversationId}}","key":"conversationId"}]}},"response":[{"id":"12f31e56-c4c4-4e39-afd1-609c8b24ce4a","name":"receiving speech","originalRequest":{"method":"POST","header":[{"key":"speech-response","value":"true","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"attachments","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":["/Users/lendebets/Downloads/hello.wav"],"value":null}]},"url":{"raw":"https://platform.blits.ai/api/external/messages/:conversationId/speech","protocol":"https","host":["platform","blits","ai"],"path":["api","external","messages",":conversationId","speech"],"variable":[{"key":"conversationId","value":"{{conversationId}}"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"conversationToken\": \"c3fb84f4-848e-47fc-8969-c3f33b9fcb71\",\n    \"expectUserResponse\": true,\n    \"response\": [\n        {\n            \"items\": [\n                {\n                    \"simpleResponse\": {\n                        \"displayText\": \"Send your document\",\n                        \"textToSpeech\": \"Send your document\"\n                    }\n                }\n            ],\n            \"suggestions\": []\n        }\n    ]\n}"}],"_postman_id":"c156860d-a523-4f6d-96a3-cadb6d9c45c7"},{"name":"Analyze Message","id":"8ee82430-b3f3-4edc-86bc-f43d96db66e3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://platform.blits.ai/api/external/analyze-message?message=<message>","description":"<p>With this GET request a message can be send to the bot nlu providers, be analyzed and respond to you with the intent recognition results.</p>\n","urlObject":{"protocol":"https","path":["api","external","analyze-message"],"host":["platform","blits","ai"],"query":[{"key":"message","value":"<message>"}],"variable":[]}},"response":[{"id":"eb441523-0a75-470d-a6c4-aa17d1b8c910","name":"Analyze Message","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://platform.blits.ai/api/external/analyze-message?message=I want this message to be analyzed","protocol":"https","host":["platform","blits","ai"],"path":["api","external","analyze-message"],"query":[{"key":"message","value":"I want this message to be analyzed"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"allRecognitionResults\": {\n        \"MICROSOFT\": {\n            \"text\": \"I want this message to be analyzed\",\n            \"topIntent\": {\n                \"name\": \"Hello\",\n                \"score\": 0.9365917\n            },\n            \"intents\": [\n                {\n                    \"name\": \"Hello\",\n                    \"score\": 0.9365917\n                },\n                {\n                    \"name\": \"Welcome\",\n                    \"score\": 0.0328616761\n                }\n            ],\n            \"entities\": {},\n            \"provider\": \"MICROSOFT\"\n        }\n    },\n    \"recognitionResult\": {\n        \"text\": \"hi\",\n        \"topIntent\": {\n            \"name\": \"Hello\",\n            \"score\": 0.9365917\n        },\n        \"intents\": [\n            {\n                \"name\": \"Hello\",\n                \"score\": 0.9365917\n            },\n            {\n                \"name\": \"Welcome\",\n                \"score\": 0.0328616761\n            }\n        ],\n        \"entities\": {},\n        \"provider\": \"MICROSOFT\"\n    },\n    \"extractionResult\": {\n        \"entities\": {},\n        \"provider\": \"MICROSOFT\"\n    },\n    \"sentiment\": {\n        \"provider\": \"MICROSOFT\",\n        \"score\": 0.9431402087211609\n    }\n}"}],"_postman_id":"8ee82430-b3f3-4edc-86bc-f43d96db66e3"},{"name":"Sending Speech - Large File","id":"18847836-3a78-4cc8-9cbe-a9f05e14d17b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{authToken}}"}]},"isInherited":false},"method":"POST","header":[{"key":"speech-response","value":"true","type":"text"},{"key":"text-response","value":"true","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"attachments","type":"file","src":"/C:/Users/marce/Documents/2024 Len Blits/long speech.wav"}]},"url":"{{baseUrl}}messages/:conversationId/speech?textResponse=true","urlObject":{"path":[":conversationId","speech"],"host":["{{baseUrl}}messages"],"query":[{"key":"textResponse","value":"true"}],"variable":[{"type":"any","value":"{{conversationId}}","key":"conversationId"}]}},"response":[],"_postman_id":"18847836-3a78-4cc8-9cbe-a9f05e14d17b"}],"event":[{"listen":"prerequest","script":{"id":"fc6595bd-a537-46c4-8785-dd6a74bfd1e0","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"bc64bd12-8761-4abc-9cdb-e0990b16d909","type":"text/javascript","exec":[""]}}]}