Skip to Content
0
Jun 17, 2020 at 04:54 PM

Connect chatbot to ui5 application

153 Views

I've created a chatbot on CAI platform, it works fine and I can include it with script js.
But when I want to call it with dev token using ajax, I always get 404 error.
Calling method :

$.ajax({
				type: "GET",
				url: "https://" + "api.cai.tools.sap/auth/poc/owners/xxx", // my user slug
				
				headers: {
					"Authorization": 'Token xxxxxx' //my devtoken
				},
				success: function (data) {
				},
				error: function (data) {}
			});