Skip to Content
ReferenceREST API

REST API

Base URL: https://waitlistly.live/api/v1

KeyHeaderUse
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.

FieldTypeNotes
emailstringRequired.
namestringOptional.
refstringReferral code from ?ref=. Credits the referrer.
answerstringReply to your qualifying question.
fieldsobjectCustom 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, referrerstringAttribution. The SDK fills these.
websitestringHoneypot. Leave empty; bots fill it.
200 OK
{ "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:

TypeAcceptsStored as
textUp to 500 charactersTrimmed text
long_textUp to 5,000 charactersTrimmed text
emailAn email addressLowercase
phoneA number with country code: +91 98200 12345, 0044 7700 900123+E.164, e.g. +919820012345
urlhttp(s) links; linkedin.com/in/x gets https://Full URL
number12, "1,200"Number
selectOne of your options, any caseThe option as you wrote it
checkboxtrue/false, yes/no, 1/0Boolean
dateYYYY-MM-DD or an ISO timestampYYYY-MM-DD

A value that doesn’t fit its type is dropped and listed in warnings; the contact is still saved:

200 OK (with a dropped value)
{ "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:

422 Unprocessable Entity
{ "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

200 OK
{ "status": "joined", "position": 12, "total": 310, "referrals": 3 }

Invites

POST /invites/verify

Secret key. Check an invite code before creating an account.

Request
{ "code": "K7QM-2XPD" }
200 OK
{ "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.

Request
{ "code": "K7QM-2XPD" }
200 OK
{ "valid": true, "status": "sent", "email": "ada@example.com", "expires_at": "2026-11-20T10:00:00Z" }
200 OK (not usable)
{ "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.

Request
{ "code": "K7QM-2XPD" }

or { "email": "ada@example.com" }.

200 OK
{ "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.

Last updated on