Quickstart
Three calls connect your waitlist to your app. Most apps are done in under 15 minutes.
Get your keys
In your dashboard, open Developers → API keys.
- The public key (
pk_…) is safe in browser code. - Create a secret key (
sk_…) and keep it on your server only.
WAITLISTLY_PUBLIC_KEY=pk_your_public_key
WAITLISTLY_SECRET_KEY=sk_your_secret_keyCollect: add a contact from your form
Call this when someone submits your waitlist form.
const res = await fetch('https://waitlistly.live/api/v1/contacts', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-Waitlistly-Key': process.env.NEXT_PUBLIC_WAITLISTLY_PUBLIC_KEY!, // public key
},
body: JSON.stringify({
email,
name, // optional
ref: new URLSearchParams(location.search).get('ref'), // credits the referrer
}),
});
const contact = await res.json();
// { status: 'joined', position: 42, total: 310,
// referral_code: 'k3x9p2aa', referral_link: 'https://yourapp.com/?ref=k3x9p2aa' }Show position and referral_link on your page. Handle the three statuses:
status | Show |
|---|---|
joined | “You’re #42 in line” and the referral link |
pending_confirmation | “Check your inbox to confirm” (double opt-in is on) |
already_joined | “You’re already on the list” |
Gate: verify the invite at sign-up
When you release a cohort, each contact gets an email with a single-use invite. The link opens your sign-up page with ?invite_code=… appended. Set that page in Settings → Access rules.
Prefill their email so they only choose a password: add data-waitlistly-invite to your sign-up form (with the SDK loaded), or call POST /invites/lookup yourself.
Before creating the account, check the code on your server:
const res = await fetch('https://waitlistly.live/api/v1/invites/verify', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${process.env.WAITLISTLY_SECRET_KEY}`,
},
body: JSON.stringify({ code: inviteCode }),
});
const invite = await res.json(); // { valid, status, email, expires_at }
if (!invite.valid) throw new Error('This invite is not valid or has expired.');Activate: report the new user
After the account is created:
await fetch('https://waitlistly.live/api/v1/activations', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${process.env.WAITLISTLY_SECRET_KEY}`,
},
body: JSON.stringify({ code: inviteCode }), // or { email }
});This call closes the loop. Your activation rate and every cohort report come from it.
Check it works
Open Developers → Integration. Each step shows a check mark when its first call arrives, and Developers → Request log lists every call with its status.