logowaitly

Check if an email is in a waitlist

Check if an email is in a waitlist.

Use checkEmailExists method

This method checks if an email is in a waitlist. It is useful to check if an email is in a waitlist before creating a new entry.

main.tsx

import { createWaitlyClient } from "@go-waitly/waitly-sdk";

const waitly = createWaitlyClient({
  apiKey: "you_api_key",
  waitlistId: "your_waitlist_id",
});

const exists = await waitly.checkEmailExists({
  email: "test@test.com",
});

if (exists) {
  console.log("Email is in the waitlist");
} else {
  console.log("Email is not in the waitlist");
});