API Requests
Learn how to make an API request
Make an API Request
const API_ENDPOINT = "https://api.verida.ai/api/rest/v1/auth";
// Obtain token from localstorage (or your own database)
const authToken = localStorage.getItem("veridaAuthToken") || "";
// Example: search/universal endpoint
$.get({
url: `${API_ENDPOINT}/search/universal?keywords=meeting+agenda`,
headers: {
"Authorization": `Bearer ${authToken}`,
"Content-Type": "application/json"
},
success: (response) => {
console.log(response);
// Handle the response data
}
});Last updated