API reference
Base URL https://api.whenwiz.com/wp-json/whenwiz/v1.
Send X-Whenwiz-Client on every request. The site sends the login cookie. A device sends Authorization: Bearer. Creating a countdown also sends Idempotency-Key. Updating one sends If-Match with the revision. A published countdown can be read without a credential. The full document is the OpenAPI file.
POST /register
Create an account
No sign-in.
Parameters
X-Whenwiz-Clientheader, required
Body
emailstring, email, requiredpasswordstring, requirednamestring
Response SessionResponse.
POST /session
Sign in
No sign-in.
Parameters
X-Whenwiz-Clientheader, required
Body
emailstring, email, requiredpasswordstring, required
Response SessionResponse.
POST /logout
Sign out
Signed-in account.
Parameters
X-Whenwiz-Clientheader, required
GET /account
Read the signed-in account
Signed-in account.
Parameters
X-Whenwiz-Clientheader, required
Response Account.
PATCH /account
Update name and default formats
Signed-in account.
Parameters
X-Whenwiz-Clientheader, required
Body
first_namestringlast_namestringdate_formatmonth_day_year | day_month_year | weekday_day_month | mdy_numeric | mdy_dots | dmy_numeric | dmy_dots | ymdtime_formath12 | h12_lower | h24timezonestring — IANA timezone used for new countdowns.
Response Account.
GET /timezones
List canonical IANA timezones
No sign-in.
Parameters
X-Whenwiz-Clientheader, requiredsearchquery
Response TimezoneList.
GET /places/autocomplete
Search businesses with Google Places
Signed-in account.
Parameters
X-Whenwiz-Clientheader, requiredqquery, required
Response PlaceList.
POST /places/hours
Load the next open or close for a business
Signed-in account.
Parameters
X-Whenwiz-Clientheader, required
Body
place_idstring, required
Response PlaceHours.
POST /events
Create an event
Signed-in account.
Parameters
X-Whenwiz-Clientheader, requiredIdempotency-Keyheader, required
Body
labelstring, required — Short name shown on the countdown.statusdraft | private | published — draft and private are visible to the owner. published is readable without a credential. A draft or private id returns the same 404 as a missing id.displayuntil | since | both — until counts down, since counts up, both shows each side.external_refstring — Optional id from another system.poll_interval_secondsinteger — Optional per-event poll interval override, in seconds.kinddatetime, requiredconfigDatetimeConfig, requiredtimezonestring — Canonical IANA timezone, or UTC. Abbreviations and numeric offsets are not zones.deadline_atstring — Unambiguous ISO 8601 instant ending in Z or a numeric offset. The timezone, when set, is only where that instant is displayed and edited.local_datestring — Civil date YYYY-MM-DD.local_timestring — Civil time HH:MM.start_nowboolean — Start a count-up from the server clock. Stores the civil time in timezone.
appearanceAppearance — How the countdown is drawn. A preset id expands to that design. Each styled field maps to a CSS variable.presetstring — Id of a saved design, or custom.show_cardbooleanbackgroundstringborder_colorstringborder_widthintegerborder_radiusintegershow_backgroundbooleanbackground_blurintegerbackground_wash_opacityintegershow_statusbooleanstatus_fontstringstatus_sizeintegerstatus_colorstringstatus_backgroundstringstatus_border_colorstringstatus_border_widthintegerstatus_radiusintegershow_iconbooleaniconstringicon_sizeintegericon_backgroundstringicon_foregroundstringicon_border_colorstringicon_border_widthintegericon_radiusintegershow_labelbooleanlabel_fontstringlabel_sizeintegerlabel_colorstringshow_datetimebooleanshow_timebooleanshow_timezonebooleandate_formatstringtime_formataccount | h12 | h12_lower | h24datetime_fontstringdatetime_sizeintegerdatetime_colorstringshow_untilbooleanuntil_fontstringuntil_sizeintegeruntil_colorstringshow_countdownbooleanhide_zero_unitsbooleanlayoutunits | sleeps | days | split-flap | rings | tear-offday_basisviewer | eventcountdown_fontstringcountdown_sizeintegercountdown_colorstring
labelstring, required — Short name shown on the countdown.statusdraft | private | published — draft and private are visible to the owner. published is readable without a credential. A draft or private id returns the same 404 as a missing id.displayuntil | since | both — until counts down, since counts up, both shows each side.external_refstring — Optional id from another system.poll_interval_secondsinteger — Optional per-event poll interval override, in seconds.kindfixed, requiredconfigFixedConfig, requiredtimezonestring — Canonical IANA timezone, or UTC. Abbreviations and numeric offsets are not zones.deadline_atstring — Unambiguous ISO 8601 instant ending in Z or a numeric offset. The timezone, when set, is only where that instant is displayed and edited.local_datestring — Civil date YYYY-MM-DD.local_timestring — Civil time HH:MM.start_nowboolean — Start a count-up from the server clock. Stores the civil time in timezone.
appearanceAppearance — How the countdown is drawn. A preset id expands to that design. Each styled field maps to a CSS variable.presetstring — Id of a saved design, or custom.show_cardbooleanbackgroundstringborder_colorstringborder_widthintegerborder_radiusintegershow_backgroundbooleanbackground_blurintegerbackground_wash_opacityintegershow_statusbooleanstatus_fontstringstatus_sizeintegerstatus_colorstringstatus_backgroundstringstatus_border_colorstringstatus_border_widthintegerstatus_radiusintegershow_iconbooleaniconstringicon_sizeintegericon_backgroundstringicon_foregroundstringicon_border_colorstringicon_border_widthintegericon_radiusintegershow_labelbooleanlabel_fontstringlabel_sizeintegerlabel_colorstringshow_datetimebooleanshow_timebooleanshow_timezonebooleandate_formatstringtime_formataccount | h12 | h12_lower | h24datetime_fontstringdatetime_sizeintegerdatetime_colorstringshow_untilbooleanuntil_fontstringuntil_sizeintegeruntil_colorstringshow_countdownbooleanhide_zero_unitsbooleanlayoutunits | sleeps | days | split-flap | rings | tear-offday_basisviewer | eventcountdown_fontstringcountdown_sizeintegercountdown_colorstring
labelstring, required — Short name shown on the countdown.statusdraft | private | published — draft and private are visible to the owner. published is readable without a credential. A draft or private id returns the same 404 as a missing id.displayuntil | since | both — until counts down, since counts up, both shows each side.external_refstring — Optional id from another system.poll_interval_secondsinteger — Optional per-event poll interval override, in seconds.kindduration, requiredconfigDurationConfig, requiredduration_secondsinteger, required — Length of the timer in seconds, from 1 to 31536000 (one year).stateidle | running | paused — Server-owned. A new timer is idle until the actions endpoint starts it.remaining_secondsinteger — Server-owned frozen remainder while the timer is paused or idle.
appearanceAppearance — How the countdown is drawn. A preset id expands to that design. Each styled field maps to a CSS variable.presetstring — Id of a saved design, or custom.show_cardbooleanbackgroundstringborder_colorstringborder_widthintegerborder_radiusintegershow_backgroundbooleanbackground_blurintegerbackground_wash_opacityintegershow_statusbooleanstatus_fontstringstatus_sizeintegerstatus_colorstringstatus_backgroundstringstatus_border_colorstringstatus_border_widthintegerstatus_radiusintegershow_iconbooleaniconstringicon_sizeintegericon_backgroundstringicon_foregroundstringicon_border_colorstringicon_border_widthintegericon_radiusintegershow_labelbooleanlabel_fontstringlabel_sizeintegerlabel_colorstringshow_datetimebooleanshow_timebooleanshow_timezonebooleandate_formatstringtime_formataccount | h12 | h12_lower | h24datetime_fontstringdatetime_sizeintegerdatetime_colorstringshow_untilbooleanuntil_fontstringuntil_sizeintegeruntil_colorstringshow_countdownbooleanhide_zero_unitsbooleanlayoutunits | sleeps | days | split-flap | rings | tear-offday_basisviewer | eventcountdown_fontstringcountdown_sizeintegercountdown_colorstring
labelstring, required — Short name shown on the countdown.statusdraft | private | published — draft and private are visible to the owner. published is readable without a credential. A draft or private id returns the same 404 as a missing id.displayuntil | since | both — until counts down, since counts up, both shows each side.external_refstring — Optional id from another system.poll_interval_secondsinteger — Optional per-event poll interval override, in seconds.kindrecurring, requiredconfigRecurringConfig, requiredtimezonestring — Canonical IANA timezone the civil time repeats in. Omit it to run the schedule in UTC.frequencydaily | weekly | monthly | yearly, required — How the countdown rolls forward after each occurrence.local_timestring, required — Civil time HH:MM of each occurrence.days_of_weekarray of integer — Required for weekly. 1 is Monday and 7 is Sunday.day_of_monthinteger — Required for monthly and yearly. Months or years without that day are skipped.monthinteger — Required for yearly. 1 is January.annual_datestring — A civil date whose month and day repeat each year. The year is not kept.
appearanceAppearance — How the countdown is drawn. A preset id expands to that design. Each styled field maps to a CSS variable.presetstring — Id of a saved design, or custom.show_cardbooleanbackgroundstringborder_colorstringborder_widthintegerborder_radiusintegershow_backgroundbooleanbackground_blurintegerbackground_wash_opacityintegershow_statusbooleanstatus_fontstringstatus_sizeintegerstatus_colorstringstatus_backgroundstringstatus_border_colorstringstatus_border_widthintegerstatus_radiusintegershow_iconbooleaniconstringicon_sizeintegericon_backgroundstringicon_foregroundstringicon_border_colorstringicon_border_widthintegericon_radiusintegershow_labelbooleanlabel_fontstringlabel_sizeintegerlabel_colorstringshow_datetimebooleanshow_timebooleanshow_timezonebooleandate_formatstringtime_formataccount | h12 | h12_lower | h24datetime_fontstringdatetime_sizeintegerdatetime_colorstringshow_untilbooleanuntil_fontstringuntil_sizeintegeruntil_colorstringshow_countdownbooleanhide_zero_unitsbooleanlayoutunits | sleeps | days | split-flap | rings | tear-offday_basisviewer | eventcountdown_fontstringcountdown_sizeintegercountdown_colorstring
labelstring, required — Short name shown on the countdown.statusdraft | private | published — draft and private are visible to the owner. published is readable without a credential. A draft or private id returns the same 404 as a missing id.displayuntil | since | both — until counts down, since counts up, both shows each side.external_refstring — Optional id from another system.poll_interval_secondsinteger — Optional per-event poll interval override, in seconds.kindpersonalized, requiredconfigPersonalizedConfig, requiredduration_secondsinteger, required — Window length in seconds. Each person's deadline is this long from the moment they are added.external_user_idstring, required — Your stable id for the first person. Further people are added with the subjects endpoint.
appearanceAppearance — How the countdown is drawn. A preset id expands to that design. Each styled field maps to a CSS variable.presetstring — Id of a saved design, or custom.show_cardbooleanbackgroundstringborder_colorstringborder_widthintegerborder_radiusintegershow_backgroundbooleanbackground_blurintegerbackground_wash_opacityintegershow_statusbooleanstatus_fontstringstatus_sizeintegerstatus_colorstringstatus_backgroundstringstatus_border_colorstringstatus_border_widthintegerstatus_radiusintegershow_iconbooleaniconstringicon_sizeintegericon_backgroundstringicon_foregroundstringicon_border_colorstringicon_border_widthintegericon_radiusintegershow_labelbooleanlabel_fontstringlabel_sizeintegerlabel_colorstringshow_datetimebooleanshow_timebooleanshow_timezonebooleandate_formatstringtime_formataccount | h12 | h12_lower | h24datetime_fontstringdatetime_sizeintegerdatetime_colorstringshow_untilbooleanuntil_fontstringuntil_sizeintegeruntil_colorstringshow_countdownbooleanhide_zero_unitsbooleanlayoutunits | sleeps | days | split-flap | rings | tear-offday_basisviewer | eventcountdown_fontstringcountdown_sizeintegercountdown_colorstring
labelstring, required — Short name shown on the countdown.statusdraft | private | published — draft and private are visible to the owner. published is readable without a credential. A draft or private id returns the same 404 as a missing id.displayuntil | since | both — until counts down, since counts up, both shows each side.external_refstring — Optional id from another system.poll_interval_secondsinteger — Optional per-event poll interval override, in seconds.kindbusiness, requiredconfigBusinessConfig, requiredplace_idstring, required — Google Place id. WhenWiz loads the hours. The browser does not send them.namestring — Display name from Google.timezonestring — IANA timezone of the place.hours_fetched_atinteger — Unix epoch seconds when the hours were last read from Google.closed_datesarray of string — Civil dates YYYY-MM-DD that replace the weekly hours and stay shut.datedarray of value — Opening intervals that name a civil date, including special days.regulararray of value — Weekly opening intervals. Days are 1 (Monday) to 7 (Sunday).boundaryopen | close | open_ended — What target_at is counting toward.
appearanceAppearance — How the countdown is drawn. A preset id expands to that design. Each styled field maps to a CSS variable.presetstring — Id of a saved design, or custom.show_cardbooleanbackgroundstringborder_colorstringborder_widthintegerborder_radiusintegershow_backgroundbooleanbackground_blurintegerbackground_wash_opacityintegershow_statusbooleanstatus_fontstringstatus_sizeintegerstatus_colorstringstatus_backgroundstringstatus_border_colorstringstatus_border_widthintegerstatus_radiusintegershow_iconbooleaniconstringicon_sizeintegericon_backgroundstringicon_foregroundstringicon_border_colorstringicon_border_widthintegericon_radiusintegershow_labelbooleanlabel_fontstringlabel_sizeintegerlabel_colorstringshow_datetimebooleanshow_timebooleanshow_timezonebooleandate_formatstringtime_formataccount | h12 | h12_lower | h24datetime_fontstringdatetime_sizeintegerdatetime_colorstringshow_untilbooleanuntil_fontstringuntil_sizeintegeruntil_colorstringshow_countdownbooleanhide_zero_unitsbooleanlayoutunits | sleeps | days | split-flap | rings | tear-offday_basisviewer | eventcountdown_fontstringcountdown_sizeintegercountdown_colorstring
Response Event.
PUT /events/order
Set the countdown order
Signed-in account.
Parameters
X-Whenwiz-Clientheader, required
Body
idsarray of string, required
PATCH /events/{id}
Update an event
Signed-in account.
Parameters
X-Whenwiz-Clientheader, requiredIf-Matchheader, required
Body
labelstring, required — Short name shown on the countdown.statusdraft | private | published — draft and private are visible to the owner. published is readable without a credential. A draft or private id returns the same 404 as a missing id.displayuntil | since | both — until counts down, since counts up, both shows each side.external_refstring — Optional id from another system.poll_interval_secondsinteger — Optional per-event poll interval override, in seconds.kinddatetime, requiredconfigDatetimeConfig, requiredtimezonestring — Canonical IANA timezone, or UTC. Abbreviations and numeric offsets are not zones.deadline_atstring — Unambiguous ISO 8601 instant ending in Z or a numeric offset. The timezone, when set, is only where that instant is displayed and edited.local_datestring — Civil date YYYY-MM-DD.local_timestring — Civil time HH:MM.start_nowboolean — Start a count-up from the server clock. Stores the civil time in timezone.
appearanceAppearance — How the countdown is drawn. A preset id expands to that design. Each styled field maps to a CSS variable.presetstring — Id of a saved design, or custom.show_cardbooleanbackgroundstringborder_colorstringborder_widthintegerborder_radiusintegershow_backgroundbooleanbackground_blurintegerbackground_wash_opacityintegershow_statusbooleanstatus_fontstringstatus_sizeintegerstatus_colorstringstatus_backgroundstringstatus_border_colorstringstatus_border_widthintegerstatus_radiusintegershow_iconbooleaniconstringicon_sizeintegericon_backgroundstringicon_foregroundstringicon_border_colorstringicon_border_widthintegericon_radiusintegershow_labelbooleanlabel_fontstringlabel_sizeintegerlabel_colorstringshow_datetimebooleanshow_timebooleanshow_timezonebooleandate_formatstringtime_formataccount | h12 | h12_lower | h24datetime_fontstringdatetime_sizeintegerdatetime_colorstringshow_untilbooleanuntil_fontstringuntil_sizeintegeruntil_colorstringshow_countdownbooleanhide_zero_unitsbooleanlayoutunits | sleeps | days | split-flap | rings | tear-offday_basisviewer | eventcountdown_fontstringcountdown_sizeintegercountdown_colorstring
labelstring, required — Short name shown on the countdown.statusdraft | private | published — draft and private are visible to the owner. published is readable without a credential. A draft or private id returns the same 404 as a missing id.displayuntil | since | both — until counts down, since counts up, both shows each side.external_refstring — Optional id from another system.poll_interval_secondsinteger — Optional per-event poll interval override, in seconds.kindfixed, requiredconfigFixedConfig, requiredtimezonestring — Canonical IANA timezone, or UTC. Abbreviations and numeric offsets are not zones.deadline_atstring — Unambiguous ISO 8601 instant ending in Z or a numeric offset. The timezone, when set, is only where that instant is displayed and edited.local_datestring — Civil date YYYY-MM-DD.local_timestring — Civil time HH:MM.start_nowboolean — Start a count-up from the server clock. Stores the civil time in timezone.
appearanceAppearance — How the countdown is drawn. A preset id expands to that design. Each styled field maps to a CSS variable.presetstring — Id of a saved design, or custom.show_cardbooleanbackgroundstringborder_colorstringborder_widthintegerborder_radiusintegershow_backgroundbooleanbackground_blurintegerbackground_wash_opacityintegershow_statusbooleanstatus_fontstringstatus_sizeintegerstatus_colorstringstatus_backgroundstringstatus_border_colorstringstatus_border_widthintegerstatus_radiusintegershow_iconbooleaniconstringicon_sizeintegericon_backgroundstringicon_foregroundstringicon_border_colorstringicon_border_widthintegericon_radiusintegershow_labelbooleanlabel_fontstringlabel_sizeintegerlabel_colorstringshow_datetimebooleanshow_timebooleanshow_timezonebooleandate_formatstringtime_formataccount | h12 | h12_lower | h24datetime_fontstringdatetime_sizeintegerdatetime_colorstringshow_untilbooleanuntil_fontstringuntil_sizeintegeruntil_colorstringshow_countdownbooleanhide_zero_unitsbooleanlayoutunits | sleeps | days | split-flap | rings | tear-offday_basisviewer | eventcountdown_fontstringcountdown_sizeintegercountdown_colorstring
labelstring, required — Short name shown on the countdown.statusdraft | private | published — draft and private are visible to the owner. published is readable without a credential. A draft or private id returns the same 404 as a missing id.displayuntil | since | both — until counts down, since counts up, both shows each side.external_refstring — Optional id from another system.poll_interval_secondsinteger — Optional per-event poll interval override, in seconds.kindduration, requiredconfigDurationConfig, requiredduration_secondsinteger, required — Length of the timer in seconds, from 1 to 31536000 (one year).stateidle | running | paused — Server-owned. A new timer is idle until the actions endpoint starts it.remaining_secondsinteger — Server-owned frozen remainder while the timer is paused or idle.
appearanceAppearance — How the countdown is drawn. A preset id expands to that design. Each styled field maps to a CSS variable.presetstring — Id of a saved design, or custom.show_cardbooleanbackgroundstringborder_colorstringborder_widthintegerborder_radiusintegershow_backgroundbooleanbackground_blurintegerbackground_wash_opacityintegershow_statusbooleanstatus_fontstringstatus_sizeintegerstatus_colorstringstatus_backgroundstringstatus_border_colorstringstatus_border_widthintegerstatus_radiusintegershow_iconbooleaniconstringicon_sizeintegericon_backgroundstringicon_foregroundstringicon_border_colorstringicon_border_widthintegericon_radiusintegershow_labelbooleanlabel_fontstringlabel_sizeintegerlabel_colorstringshow_datetimebooleanshow_timebooleanshow_timezonebooleandate_formatstringtime_formataccount | h12 | h12_lower | h24datetime_fontstringdatetime_sizeintegerdatetime_colorstringshow_untilbooleanuntil_fontstringuntil_sizeintegeruntil_colorstringshow_countdownbooleanhide_zero_unitsbooleanlayoutunits | sleeps | days | split-flap | rings | tear-offday_basisviewer | eventcountdown_fontstringcountdown_sizeintegercountdown_colorstring
labelstring, required — Short name shown on the countdown.statusdraft | private | published — draft and private are visible to the owner. published is readable without a credential. A draft or private id returns the same 404 as a missing id.displayuntil | since | both — until counts down, since counts up, both shows each side.external_refstring — Optional id from another system.poll_interval_secondsinteger — Optional per-event poll interval override, in seconds.kindrecurring, requiredconfigRecurringConfig, requiredtimezonestring — Canonical IANA timezone the civil time repeats in. Omit it to run the schedule in UTC.frequencydaily | weekly | monthly | yearly, required — How the countdown rolls forward after each occurrence.local_timestring, required — Civil time HH:MM of each occurrence.days_of_weekarray of integer — Required for weekly. 1 is Monday and 7 is Sunday.day_of_monthinteger — Required for monthly and yearly. Months or years without that day are skipped.monthinteger — Required for yearly. 1 is January.annual_datestring — A civil date whose month and day repeat each year. The year is not kept.
appearanceAppearance — How the countdown is drawn. A preset id expands to that design. Each styled field maps to a CSS variable.presetstring — Id of a saved design, or custom.show_cardbooleanbackgroundstringborder_colorstringborder_widthintegerborder_radiusintegershow_backgroundbooleanbackground_blurintegerbackground_wash_opacityintegershow_statusbooleanstatus_fontstringstatus_sizeintegerstatus_colorstringstatus_backgroundstringstatus_border_colorstringstatus_border_widthintegerstatus_radiusintegershow_iconbooleaniconstringicon_sizeintegericon_backgroundstringicon_foregroundstringicon_border_colorstringicon_border_widthintegericon_radiusintegershow_labelbooleanlabel_fontstringlabel_sizeintegerlabel_colorstringshow_datetimebooleanshow_timebooleanshow_timezonebooleandate_formatstringtime_formataccount | h12 | h12_lower | h24datetime_fontstringdatetime_sizeintegerdatetime_colorstringshow_untilbooleanuntil_fontstringuntil_sizeintegeruntil_colorstringshow_countdownbooleanhide_zero_unitsbooleanlayoutunits | sleeps | days | split-flap | rings | tear-offday_basisviewer | eventcountdown_fontstringcountdown_sizeintegercountdown_colorstring
labelstring, required — Short name shown on the countdown.statusdraft | private | published — draft and private are visible to the owner. published is readable without a credential. A draft or private id returns the same 404 as a missing id.displayuntil | since | both — until counts down, since counts up, both shows each side.external_refstring — Optional id from another system.poll_interval_secondsinteger — Optional per-event poll interval override, in seconds.kindpersonalized, requiredconfigPersonalizedConfig, requiredduration_secondsinteger, required — Window length in seconds. Each person's deadline is this long from the moment they are added.external_user_idstring, required — Your stable id for the first person. Further people are added with the subjects endpoint.
appearanceAppearance — How the countdown is drawn. A preset id expands to that design. Each styled field maps to a CSS variable.presetstring — Id of a saved design, or custom.show_cardbooleanbackgroundstringborder_colorstringborder_widthintegerborder_radiusintegershow_backgroundbooleanbackground_blurintegerbackground_wash_opacityintegershow_statusbooleanstatus_fontstringstatus_sizeintegerstatus_colorstringstatus_backgroundstringstatus_border_colorstringstatus_border_widthintegerstatus_radiusintegershow_iconbooleaniconstringicon_sizeintegericon_backgroundstringicon_foregroundstringicon_border_colorstringicon_border_widthintegericon_radiusintegershow_labelbooleanlabel_fontstringlabel_sizeintegerlabel_colorstringshow_datetimebooleanshow_timebooleanshow_timezonebooleandate_formatstringtime_formataccount | h12 | h12_lower | h24datetime_fontstringdatetime_sizeintegerdatetime_colorstringshow_untilbooleanuntil_fontstringuntil_sizeintegeruntil_colorstringshow_countdownbooleanhide_zero_unitsbooleanlayoutunits | sleeps | days | split-flap | rings | tear-offday_basisviewer | eventcountdown_fontstringcountdown_sizeintegercountdown_colorstring
labelstring, required — Short name shown on the countdown.statusdraft | private | published — draft and private are visible to the owner. published is readable without a credential. A draft or private id returns the same 404 as a missing id.displayuntil | since | both — until counts down, since counts up, both shows each side.external_refstring — Optional id from another system.poll_interval_secondsinteger — Optional per-event poll interval override, in seconds.kindbusiness, requiredconfigBusinessConfig, requiredplace_idstring, required — Google Place id. WhenWiz loads the hours. The browser does not send them.namestring — Display name from Google.timezonestring — IANA timezone of the place.hours_fetched_atinteger — Unix epoch seconds when the hours were last read from Google.closed_datesarray of string — Civil dates YYYY-MM-DD that replace the weekly hours and stay shut.datedarray of value — Opening intervals that name a civil date, including special days.regulararray of value — Weekly opening intervals. Days are 1 (Monday) to 7 (Sunday).boundaryopen | close | open_ended — What target_at is counting toward.
appearanceAppearance — How the countdown is drawn. A preset id expands to that design. Each styled field maps to a CSS variable.presetstring — Id of a saved design, or custom.show_cardbooleanbackgroundstringborder_colorstringborder_widthintegerborder_radiusintegershow_backgroundbooleanbackground_blurintegerbackground_wash_opacityintegershow_statusbooleanstatus_fontstringstatus_sizeintegerstatus_colorstringstatus_backgroundstringstatus_border_colorstringstatus_border_widthintegerstatus_radiusintegershow_iconbooleaniconstringicon_sizeintegericon_backgroundstringicon_foregroundstringicon_border_colorstringicon_border_widthintegericon_radiusintegershow_labelbooleanlabel_fontstringlabel_sizeintegerlabel_colorstringshow_datetimebooleanshow_timebooleanshow_timezonebooleandate_formatstringtime_formataccount | h12 | h12_lower | h24datetime_fontstringdatetime_sizeintegerdatetime_colorstringshow_untilbooleanuntil_fontstringuntil_sizeintegeruntil_colorstringshow_countdownbooleanhide_zero_unitsbooleanlayoutunits | sleeps | days | split-flap | rings | tear-offday_basisviewer | eventcountdown_fontstringcountdown_sizeintegercountdown_colorstring
Response Event.
GET /events/{id}/background
Read the countdown background image
Signed-in account.
Parameters
wquery — With h, returns a JPEG already fitted, positioned, and blurred for a card of this width.hquery — With w, returns a JPEG already fitted, positioned, and blurred for a card of this height.
POST /events/{id}/background
Upload a background image
Signed-in account.
Parameters
X-Whenwiz-Clientheader, required
Response Event.
DELETE /events/{id}/background
Remove the background image
Signed-in account.
Parameters
X-Whenwiz-Clientheader, required
Response Event.
GET /events/{id}/icon
Read the custom icon
Signed-in account.
POST /events/{id}/icon
Upload a custom icon
Signed-in account.
Parameters
X-Whenwiz-Clientheader, required
Response Event.
DELETE /events/{id}/icon
Remove the custom icon
Signed-in account.
Parameters
X-Whenwiz-Clientheader, required
Response Event.
GET /events/{id}/gif
Render an animated GIF of the countdown
Signed-in account.
Parameters
X-Whenwiz-Clientheader, requiredwidthquery — Image width in pixels. Height follows the countdown.secondsquery — Seconds in the loop. Ten seconds is a practical length for email.
POST /events/{id}/actions
Start, pause, resume, or reset a duration timer
Signed-in account.
Parameters
X-Whenwiz-Clientheader, requiredIf-Matchheader, required
Body
actionstart | pause | resume | reset, required
Response Event.
POST /events/{id}/subjects
Add a person to a personalized timer
Signed-in account.
Parameters
X-Whenwiz-Clientheader, required
Body
external_user_idstring, required
Response Subject.
POST /pairings
Start device pairing
No sign-in.
Parameters
X-Whenwiz-Clientheader, required
Body
client_idstring, requireddevice_namestring
Response Pairing.
POST /pairings/token
Poll for a device token
No sign-in.
Parameters
X-Whenwiz-Clientheader, required
Body
device_codestring, required
Response DeviceToken.
POST /pairings/approve
Approve a pairing code
Signed-in account.
Parameters
X-Whenwiz-Clientheader, required
Body
user_codestring, required — The code shown on the display. The dash is optional.
Response Device.
POST /oauth/authorize
Approve a site connection
Signed-in account.
Parameters
X-Whenwiz-Clientheader, required
Body
response_typestring, requiredclient_idstring, requiredredirect_uristring, requiredstatestring, requiredcode_challengestring, requiredcode_challenge_methodstring, required
Response OAuthRedirect.
POST /oauth/token
Exchange an authorization code or refresh token
No sign-in.
Parameters
X-Whenwiz-Clientheader, required
Body
grant_typestringcodestringredirect_uristringclient_idstringcode_verifierstringrefresh_tokenstring
Response DeviceToken.
PATCH /device
Update this device
Signed-in account.
Parameters
X-Whenwiz-Clientheader, required
Body
namestringactive_event_idstring
Response Device.
GET /device/catalog
List the account countdowns for a paired WordPress site. Drafts are left out.
Signed-in account.
Parameters
X-Whenwiz-Clientheader, required
Response DeviceCatalog.
GET /device/events
List this device's countdowns. Drafts are left out.
Signed-in account.
Parameters
X-Whenwiz-Clientheader, required
Response EventList.
GET /device/firmware
Check whether a newer firmware image is published
Signed-in account.
Parameters
X-Whenwiz-Clientheader, requiredX-Whenwiz-Firmwareheader, required — Firmware version on the device, major.minor.patch.X-Whenwiz-Boardheader, required — Board id, such as crowpanel-advance-7.
Response FirmwareCheck.
GET /device/firmware/image
Download the published firmware image
Signed-in account.
Parameters
X-Whenwiz-Clientheader, requiredX-Whenwiz-Boardheader, required — Board id, such as crowpanel-advance-7.
PUT /devices/{id}/events
Assign events to a device
Signed-in account.
Parameters
X-Whenwiz-Clientheader, required
Body
event_idsarray of string, required
Response Device.