Lookup email
Check if user exists on Link network
Request
GET https://loginwithlink.com/api/lookup-emailParameter
Example
GET
https://loginwithlink.com/api/[email protected]&STRIPE_PUBLIC_KEY=pk_live_51JocsEA_YOUR_KEY_HEREconst url = "https://loginwithlink.com/api/lookup-email";
const queryParams = {
email: "[email protected]",
STRIPE_PUBLIC_KEY: "pk_live_51JocsEAGmp0k5LnwNUl7SJzZMhMMcMJ4X4PWg928nJLm5ocPpzHLhBOBMbTLBrXPYdkepbg9HX0AJFY8ixt2bXTV00vg5Ja3DP"
};
const queryString = Object.entries(queryParams)
.map(([key, value]) => `${encodeURIComponent(key)}=${encodeURIComponent(value)}`)
.join("&");
const fullUrl = `${url}?${queryString}`;
fetch(fullUrl)
.then(response => response.json())
.then(data => {
// Handle the response data here
console.log(data);
})
.catch(error => {
// Handle any errors that occur during the fetch request
console.error(error);
});Response
Last updated