REST API
Base URL: https://waitlistly.live/api/v1
| Key | Header | Use |
|---|---|---|
Public (pk_…) | X-Waitlistly-Key: pk_… (or ?key=) | Browser-safe. Collect and position. |
Secret (sk_…) | Authorization: Bearer sk_… | Server only. Gate and activate. |
Every call appears in Developers → Request log for 14 days.
Contacts
POST /contacts
Add someone to the waitlist. Accepts JSON or a form post.
| Field | Type | Notes |
|---|---|---|
email | string | Required. |
name | string | Optional. |
ref | string | Referral code from ?ref=. Credits the referrer. |
answer | string | Reply to your qualifying question. |
fields | object | Custom field values by key, e.g. { "company": "Tessel", "team_size": 12 }. Up to 30 keys. Define the fields and their types in Settings → Contact fields; see below. |
utm_source, utm_medium, utm_campaign, referrer | string | Attribution. The SDK fills these. |
website | string | Honeypot. Leave empty; bots fill it. |
{
"status": "joined",
"position": 42,
"total": 310,
"referral_code": "k3x9p2aa",
"referral_link": "https://yourapp.com/?ref=k3x9p2aa",
"referrals": 0
}status is joined, pending_confirmation (double opt-in) or already_joined. For already_joined, the referral fields are null so a stranger can’t read someone else’s link.
Typed contact fields
Each field you define has a type, and every value is checked and stored in a normal form:
| Type | Accepts | Stored as |
|---|---|---|
text | Up to 500 characters | Trimmed text |
long_text | Up to 5,000 characters | Trimmed text |
email | An email address | Lowercase |
phone | A number with country code: +91 98200 12345, 0044 7700 900123 | +E.164, e.g. +919820012345 |
url | http(s) links; linkedin.com/in/x gets https:// | Full URL |
number | 12, "1,200" | Number |
select | One of your options, any case | The option as you wrote it |
checkbox | true/false, yes/no, 1/0 | Boolean |
date | YYYY-MM-DD or an ISO timestamp | YYYY-MM-DD |
A value that doesn’t fit its type is dropped and listed in warnings; the contact is still saved:
{ "status": "joined", "position": 42, "total": 310, "referral_code": "k3x9p2aa", "referral_link": "…", "referrals": 0,
"warnings": [{ "field": "phone", "expected": "phone", "message": "Phone should be a phone number with country code, like +14155550182" }] }A required field that’s missing or invalid refuses the signup:
{ "error": "Role is required", "code": "invalid_field", "field": "role", "expected": "select" }Keys you send without a definition are kept as short text, or dropped if you choose Drop them for unknown keys.
GET /contacts/position?code=REFERRAL_CODE
{ "status": "joined", "position": 12, "total": 310, "referrals": 3 }Invites
POST /invites/verify
Secret key. Check an invite code before creating an account.
{ "code": "K7QM-2XPD" }{ "valid": true, "status": "sent", "email": "ada@example.com", "expires_at": "2026-11-20T10:00:00Z" }valid is false once the invite is activated, revoked or expired. Codes are case-insensitive and the dash is optional.
POST /invites/lookup
Public key, safe in the browser. Turns the invite_code from the invite link into the invited email so your sign-up page can prefill it. The email is only returned while the invite is usable, and lookups are rate limited.
{ "code": "K7QM-2XPD" }{ "valid": true, "status": "sent", "email": "ada@example.com", "expires_at": "2026-11-20T10:00:00Z" }{ "valid": false, "status": "expired" }A lookup only prefills. Still call /invites/verify on your server before creating the account.
Activations
POST /activations
Secret key. Report that an invited contact became a user.
{ "code": "K7QM-2XPD" }or { "email": "ada@example.com" }.
{ "status": "activated", "already": false, "email": "ada@example.com", "invite_code": "K7QM-2XPD" }Returns 404 for an unknown contact and 410 if the invite expired or was revoked. Repeating the call is safe: already is true.