arrow_back
back to Help Center
Integration API
Effortlessly create pre-filled availability polls directly from your website.
WhenAvailable offers a seamless API integration empowering your website users to initiate pre-filled
availability polls on our platform with a single click. This integration ensures a cohesive user experience
and eliminates the need for manual data entry, enhancing convenience and efficiency.
Key Features:
- Pre-Selected Event Themes: Customize the poll's visual aesthetic to align
perfectly
with the event's
theme, fostering a tailored and engaging experience.
- Effortless Poll Creation and Sharing: Users can effortlessly create polls and
share
them with friends
via shareable links or invitations directly through our platform.
- Frictionless Participation: Recipients of polls can conveniently provide their
availability without the
need to create accounts or sign in, maximizing participation rates.
Integration Made Simple:
- Data Object Creation: Construct a data object on your website encompassing the
information you wish to
transmit to WhenAvailable.
- Date/Time Customization (Optional): Seamlessly specify preferred date and time
options, while adhering
to best practices that suggest avoiding an excessive number of choices to ensure clarity and decisive
results.
- Button or Link Integration: Effortlessly incorporate a button or link on your website
containing the
generated URI, empowering users to initiate poll creation and sharing with ease.
- Theme Selection: Discover the ideal theme identifier on our comprehensive
Explore Theme Selection
page
to achieve a visually captivating and thematically aligned poll experience.
Embrace WhenAvailable's API integration to elevate your website's scheduling capabilities,
foster effortless
poll creation, and streamline the process of finding the perfect time for any event.
Example data object construction:
var dataToWhenAvailable = JSON.stringify({
ref: 'Hiking Adventures',
title: 'Guided hike in Italy',
dates: [
'2024-06-24 08:00',
'2024-07-08 08:00',
'2024-07-22 08:00',
'2024-08-05 08:00',
'2024-08-19 08:00'
],
location: 'Verona, Italy',
tz: 'GMT+01:00 CET Europe/Rome',
theme: 'theme-free-ah-1003',
description: 'The hike is 5 days and include breakfast and tracking.'
})
var target = 'https://whenavailable.com/create?data='
var encodedData = encodeURIComponent(dataToWhenAvailable)
var url = target.concat(encodedData)