Hello

I am trying to access api with this code and getting error

{errorCode: 'UNAUTHORIZED', message: 'Missing user record with apikey or user id: -1', data: {…}}


const apiInfo = { endpoint: "https://predict.app.landing.ai/inference/v1/predict?endpoint_id=bd8b715f-4336-401e-b742-1f66e4f9fb27", key: "land_sk_qOh7bZ89Z3tqXtXYUyKvQNPOS7xJCNf0ebapnn7EN6g86Vm76d", }; export default function App() { const [image, setImage] = useState(null); // Store uploaded image const [result, setResult] = useState(null); // Store inference result // Handle Image Upload const handleImageUpload = async (uploadedImage) => { setImage(uploadedImage); const formData = new FormData(); formData.append("file", uploadedImage); try { const response = await fetch(apiInfo.endpoint, { method: "POST", headers: { Authorization: `Bearer ${apiInfo.key}`, }, body: formData, }); const data = await response.json(); setResult(data); // Set the result of the inference } catch (error) { console.error("Error fetching inference result:", error); } };