Working with Waitlist API
/waitlist
/waitlist is a single POST-endpoint to handle your Waitlist
email [string] Pass in the email of a user signing up for your waitlistapi_key [string] Pass in the API key from your Waitlist dashboard (sign up in to generate)
referral_link [string] Fetch the current URL of your website. Used to fetch referral codes.
var submitted_email = '[email protected]'
var your_api_key = 'key123'
var current_url = 'yourwebsite.com/ref-id=1234'
post('/waitlist', {
email: submitted_email,
api_key: your_api_key,
referral_link: current_url
}, success_callback, fail_callback)
i.fe-anchor
Response JSON
The JavaScript snippet below showcases inputs and outputs of the API.
registered_email [string] The email of your user that signed up for the waitlist.current_priority [integer] The current priority of a user that signed up.
total_waiters_currently [integer] Total users signed up for your waitlist.
referral_link [string] Referral link for the user that signed up. Also sent to their email.
{
"registered_email": '[email protected]',
"current_priority": 5,
"total_waiters_currently": 23,
"referral_link": 'www.getwaitlist.com?&ref_id=0GBWN'
}
i.fe-anchor