API: LBOlCuilL4r7zpoVQwe9xfnL9yPUOug__66ajigrR8U URL: http://localhost:3000 //Python import requests API_URL = "http://localhost:3000/api/v1/prediction/ee00bece-46cd-4ff0-a9e8-cd7a5bc54db5" headers = {"Authorization": "Bearer LBOlCuilL4r7zpoVQwe9xfnL9yPUOug__66ajigrR8U"} def query(payload): response = requests.post(API_URL, headers=headers, json=payload) return response.json() output = query({ "question": "Hey, how are you?", }) -------- //Javascript async function query(data) { const response = await fetch( "http://localhost:3000/api/v1/prediction/ee00bece-46cd-4ff0-a9e8-cd7a5bc54db5", { headers: { Authorization: "Bearer LBOlCuilL4r7zpoVQwe9xfnL9yPUOug__66ajigrR8U", "Content-Type": "application/json" }, method: "POST", body: JSON.stringify(data) } ); const result = await response.json(); return result; } query({"question": "Hey, how are you?"}).then((response) => { console.log(response); }); //CURL curl http://localhost:3000/api/v1/prediction/ee00bece-46cd-4ff0-a9e8-cd7a5bc54db5 \ -X POST \ -d '{"question": "Hey, how are you?"}' \ -H "Content-Type: application/json" \ -H "Authorization: Bearer LBOlCuilL4r7zpoVQwe9xfnL9yPUOug__66ajigrR8U"