API documentation
With the Fiig API you create, update and delete widgets from your own systems, and fetch their statistics. For example, to create a countdown for every campaign automatically, or to keep its end date in step with your planning.
Getting started
- Base URL:
https://api.fiig.io/v1. All requests go over HTTPS. - You send and receive JSON. With a body, send the header
Content-Type: application/json. - The API is in every plan, Free included. Only the number of requests per minute differs per plan (see Limits).
There are ten widget types: countdown, poll, rating, calendar, progress (progress bar), stock (stock counter), banner (promo banner), hours (opening hours), countup (day counter) and cutoff (order cutoff). They use the same keys and endpoints, each with its own settings. Without a type you create a countdown, so existing integrations keep working. Upcoming widgets will be added the same way.
Not writing code yourself? Zapier has its own integration (Fiig in Zapier), and with Make you use the API without programming. See Zapier and Make below.
What's new in the API? See Changes at the very bottom: within /v1, things are only added.
Create an API key
- Log in and go to Account → API.
- Give the key a name you'll recognise, like "Zapier" or "Webshop".
- Click Create key and copy the key right away. You only see it once.
- A key belongs to your workspace: it works for all widgets in it, including your colleagues'.
- You can have up to 10 keys. Use one per system, so you can revoke one without affecting the rest.
- Each key shows when it was last used.
Treat a key like a password. Only use it on a server or in a tool like Zapier, never in a website, app or email. Leaked? Revoke it under Account → API and create a new one.
Authentication
Send your key with every request in the Authorization header:
Authorization: Bearer fiig_…Without a valid key you get 401 unauthorized. An example that lists your widgets:
curl https://api.fiig.io/v1/widgets \
-H "Authorization: Bearer $FIIG_API_KEY"Widgets
Every widget has an id: the same part as in the image URL, so k7Qx2mPa9rTb in https://fiig.email/t/k7Qx2mPa9rTb.gif. A widget looks like this:
{
"data": {
"id": "k7Qx2mPa9rTb",
"type": "countdown",
"name": "Christmas sale",
"altText": "3 days until Christmas",
"config": {
"targetAt": "2026-12-24T18:00",
"timezone": "Europe/Amsterdam",
"width": 600,
"height": 200,
"...": "..."
},
"imageUrl": "https://fiig.email/t/k7Qx2mPa9rTb.gif",
"embedHtml": "<img src=\"https://fiig.email/t/k7Qx2mPa9rTb.gif\" width=\"600\" height=\"200\" alt=\"3 days until Christmas\" style=\"display:block;border:0;max-width:100%;height:auto;\">",
"dashboardUrl": "https://fiig.io/dashboard/widgets/42",
"createdAt": "2026-10-05T14:02:11.000Z",
"updatedAt": "2026-10-05T14:02:11.000Z"
}
}config always contains every setting, defaults included. embedHtml is the code you paste into your email: one <img> tag for a countdown, progress bar or stock counter, for a promo banner too, wrapped in its switching link when a phase has a URL, and for opening hours, wrapped in their link when they have one; the question, answer buttons and live results for a poll; the question and a row of choices for a rating; the event and a button per calendar for a calendar widget. For a poll, imageUrl is the results image; for a rating or calendar widget, an invisible 1 × 1 pixel image that counts opens.
List widgets
GET/v1/widgets
Returns your widgets, most recently changed first, in pages. Use limit (1 to 100, default 50) and page (from 1). The response has data, page, totalPages and totalCount.
GET/v1/widgets/{id}
Returns one widget.
Create a widget
POST/v1/widgets
Required are name and, in config, the end date (targetAt) and time zone (timezone). Anything you leave out comes from your workspace's brand, or else from the defaults, just like in the dashboard. You get 201 with the new widget, including embedHtml.
curl https://api.fiig.io/v1/widgets \
-H "Authorization: Bearer $FIIG_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Christmas sale",
"altText": "Christmas is almost here",
"config": {
"targetAt": "2026-12-24T18:00",
"timezone": "Europe/Amsterdam"
}
}'const response = await fetch("https://api.fiig.io/v1/widgets", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.FIIG_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
name: "Christmas sale",
config: { targetAt: "2026-12-24T18:00", timezone: "Europe/Amsterdam" },
}),
});
const { data: widget } = await response.json();
console.log(widget.embedHtml);Create a poll
Send "type": "poll". Required are name and, in config, the question (question) and 2 to 5 answers (options). An answer without an id gets one automatically. All fields are under Poll settings.
curl https://api.fiig.io/v1/widgets \
-H "Authorization: Bearer $FIIG_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "poll",
"name": "Cake of the week",
"config": {
"question": "Which cake should we bake on Saturday?",
"options": [
{ "label": "Apple pie" },
{ "label": "Chocolate cake" },
{ "label": "Lemon tart" }
],
"closesAt": "2026-12-20T18:00",
"timezone": "Europe/Amsterdam"
}
}'Create a rating
Send "type": "rating". Only name is required. Choose the scale with scale: thumbs, smileys3, smileys5, stars, numbers5 (1–5) or nps (0–10). Without a question you get "Wat vind je van deze nieuwsbrief?" (or "What do you think of this newsletter?" with "locale": "en"). All fields are under Rating settings.
curl https://api.fiig.io/v1/widgets \
-H "Authorization: Bearer $FIIG_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "rating",
"name": "October newsletter",
"config": {
"question": "How did you like this newsletter?",
"scale": "stars"
}
}'Create a calendar widget
Send "type": "calendar". Required are name and in config the event's name (title) and start (startAt). Without endAt the event lasts an hour. The buttons lead to fiig.io, which opens the calendar with the event as it is at that moment. All fields are under Calendar widget settings.
curl https://api.fiig.io/v1/widgets \
-H "Authorization: Bearer $FIIG_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "calendar",
"name": "November webinar",
"config": {
"title": "Webinar: email that sells",
"startAt": "2026-11-12T19:30",
"endAt": "2026-11-12T21:00",
"location": "Online",
"url": "https://example.com/webinar"
}
}'Create a progress bar
Send "type": "progress". Required are name and, in config, the goal (goal). The current value (current) starts at 0 if you leave it out. All fields are under Progress bar settings.
curl https://api.fiig.io/v1/widgets \
-H "Authorization: Bearer $FIIG_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "progress",
"name": "New oven",
"config": {
"current": 7200,
"goal": 10000,
"title": "Help us buy a new oven",
"prefix": "€ "
}
}'Create a stock counter
Send "type": "stock". Only name is required; the count (count) starts at 0 if you leave it out. Without textBefore and textAfter you get "Nog 25 op voorraad" (or "Only 25 left in stock" with "locale": "en"). All fields are under Stock counter settings.
curl https://api.fiig.io/v1/widgets \
-H "Authorization: Bearer $FIIG_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "stock",
"name": "Christmas cakes",
"config": {
"count": 25,
"textBefore": "Only",
"textAfter": "Christmas cakes left",
"lowStock": 5
}
}'Create a promo banner
Send "type": "banner". Only name is required. The banner shows its own text per phase: before the start (before), during the sale (during) and after it (after). {time} in a text becomes the time left until the next switch, like "2 days". Without startAt and endAt the sale lasts a week, from tomorrow. Give a phase a url and the banner links through fiig.io to that phase's page at the moment of the click. All fields are under Promo banner settings.
curl https://api.fiig.io/v1/widgets \
-H "Authorization: Bearer $FIIG_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "banner",
"name": "Black Friday",
"config": {
"startAt": "2026-11-27T00:00",
"endAt": "2026-11-30T23:59",
"timezone": "Europe/Amsterdam",
"locale": "en",
"phases": {
"before": { "title": "The sale starts Friday", "text": "Ends in {time}" },
"during": { "title": "Up to 40% off now", "text": "Ends in {time}", "url": "https://example.com/sale" },
"after": { "title": "The sale has ended", "url": "https://example.com/new" }
}
}
}'Create opening hours
Send "type": "hours". Only name is required. Without week you get Monday to Friday 9:00–17:30 and Saturday 10:00–17:00; a week you send only replaces the days in it. Days that differ, like public holidays, go in exceptions. All fields are under Opening hours settings.
curl https://api.fiig.io/v1/widgets \
-H "Authorization: Bearer $FIIG_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "hours",
"name": "Shop opening hours",
"config": {
"timezone": "Europe/Amsterdam",
"locale": "en",
"week": {
"mon": [],
"sat": [{ "open": "09:00", "close": "17:00" }],
"sun": [{ "open": "12:00", "close": "17:00" }]
},
"url": "https://example.com/contact"
}
}'Create a day counter
Send "type": "countup". Only name is required; without startDate it counts from today. Without textBefore and textAfter you get the words for the unit, like "3 days". All fields are under Day counter settings.
curl https://api.fiig.io/v1/widgets \
-H "Authorization: Bearer $FIIG_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "countup",
"name": "Cooking challenge",
"config": {
"startDate": "2026-11-01",
"timezone": "Europe/Amsterdam",
"locale": "en",
"unit": "days",
"countFrom": 1,
"total": 30,
"textBefore": "Day",
"textAfter": "of {total}",
"doneText": "The challenge is done!"
}
}'Create an order cutoff
Send "type": "cutoff". Only name is required; with nothing else you get: ordered before 10 pm on a weekday, delivered the next delivery day. Public holidays go in closedDates. All fields are under Order cutoff settings.
curl https://api.fiig.io/v1/widgets \
-H "Authorization: Bearer $FIIG_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "cutoff",
"name": "Order before 9 pm",
"config": {
"cutoffTime": "21:00",
"timezone": "Europe/Amsterdam",
"locale": "en",
"shipDays": ["mon", "tue", "wed", "thu", "fri"],
"deliveryDays": ["tue", "wed", "thu", "fri", "sat"],
"transitDays": 1,
"closedDates": ["2026-12-25", "2026-12-26"]
}
}'Update a widget
PATCH/v1/widgets/{id}
Send only what changes: name, altText and/or fields in config. The image in emails you already sent changes within two minutes.
- A field in
configreplaces the old value. unitsandlabelsmerge per key:{ "labels": { "days": "d" } }only changes the label for days.nullresets a field to its default, for example{ "cornerRadius": null }.- For a poll,
optionsis always replaced as a whole. Send the existingids when you reword an answer: they're in the vote links of sent emails and in the counts. - A rating's
scalecan't change once there are votes: they're counted per choice. - Move an event (
startAt,endAt) and the calendar buttons in emails you already sent open the new time. The date as text in those emails doesn't change. - A promo banner's
phasesmerge per phase and per field:{ "phases": { "during": { "title": "Extended!" } } }only changes that title. With"startAt": nullthe phase before the start goes. - For opening hours,
weekmerges per day:{ "week": { "sun": [] } }only closes Sunday.textsmerges per status and field;exceptionsis replaced as a whole. - A widget's
typecan't change.
Make a countdown end a week later:
curl -X PATCH https://api.fiig.io/v1/widgets/k7Qx2mPa9rTb \
-H "Authorization: Bearer $FIIG_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "config": { "targetAt": "2026-12-31T23:59" } }'Update a progress bar's value, for example from your webshop, Zapier or Make. Send the new total, not the difference (for the difference: see Increase or decrease a number below):
curl -X PATCH https://api.fiig.io/v1/widgets/Rt5mW8cQz2Lp \
-H "Authorization: Bearer $FIIG_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "config": { "current": 8350 } }'A stock counter's count works the same way. At 0 it shows the sold-out text:
curl -X PATCH https://api.fiig.io/v1/widgets/Wq3nB7xKd9Fs \
-H "Authorization: Bearer $FIIG_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "config": { "count": 12 } }'Extend a sale: the new end date and a different title during the sale. Banners in emails you already sent show it right away:
curl -X PATCH https://api.fiig.io/v1/widgets/Bk8sV2nRq5Yx \
-H "Authorization: Bearer $FIIG_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"config": {
"endAt": "2026-12-01T23:59",
"phases": { "during": { "title": "Extended: up to 40% off" } }
}
}'Put Christmas in your opening hours, for example from your till system. Christmas Eve shorter, the two Christmas days closed with a reason:
curl -X PATCH https://api.fiig.io/v1/widgets/Hr7tK2mWq9Lc \
-H "Authorization: Bearer $FIIG_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"config": {
"exceptions": [
{ "date": "2026-12-24", "ranges": [{ "open": "09:00", "close": "16:00" }] },
{ "date": "2026-12-25", "reason": "Christmas Day" },
{ "date": "2026-12-26", "reason": "Boxing Day" }
]
}
}'Increase or decrease a number
POST/v1/widgets/{id}/adjust
Adds by to a stock counter's number (count) or a progress bar's total (current). Useful when you get a signal per event rather than a total: an order (-1), a sign-up (1) or a donation (the amount). Requests at the same moment all count.
curl -X POST https://api.fiig.io/v1/widgets/Wq3nB7xKd9Fs/adjust \
-H "Authorization: Bearer $FIIG_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "by": -1 }'- A negative number subtracts. The result never goes below 0.
- For a stock counter
bymust be a whole number; for a progress bar it can have decimals. - Other widgets return
422. You get the widget back with its new number.
Delete a widget
DELETE/v1/widgets/{id}
Returns 204 without content. Note: the image also disappears from emails that were already sent.
curl -X DELETE https://api.fiig.io/v1/widgets/k7Qx2mPa9rTb \
-H "Authorization: Bearer $FIIG_API_KEY"Countdown settings
These are the fields in config. Colors are always #rrggbb.
| Field | Default | Description |
|---|---|---|
targetAt | required | End date and time, in the time zone below: 2026-12-24T18:00. An offset works too: 2026-12-24T18:00:00+01:00. |
timezone | required | IANA time zone, for example Europe/Amsterdam or Europe/London. |
locale | nl | Language of the default labels and text: nl or en. |
units | all on | Which units to show: { "days": true, "hours": true, "minutes": true, "seconds": true }. |
labels | per language | Your own label per unit, up to 24 characters: { "days": "days" }. Empty = default label. |
width, height | 600, 200 | Size in pixels, as shown in your email. Width 100 to 600, height 50 to 300. |
background | #ffffff | Background color, or transparent. |
matteColor | #ffffff | With a transparent background: your email's background color. Edges are blended with it. |
boxColor | #18181b | Color of the boxes. |
digitColor | #ffffff | Color of the digits. |
labelColor | #d4d4d8 | Color of the labels. |
font | inter | Font: inter, montserrat, poppins, spacegrotesk, oswald, bebas, dmserif, nunito, mono, archivo, alfaslab, fredoka, kalam. |
cornerRadius | 10 | Rounding of the boxes in percent: 0 is square, 50 fully round. |
expired | text | After the end: { "type": "text", "text": "This offer has ended" } or { "type": "image", "url": "https://…" }. |
personalDeadline | off | Personal deadline: a date of their own per recipient from your email tool, for example { "tag": "{{end_date}}", "dateOnly": "endOfDay", "addDays": 0 }. tag goes into embedHtml after ?deadline=; repeat is once or yearly (every year again, like a birthday: only day and month count, on the day itself the timer shows expired, without a readable date noDateText, max. 60 characters); dateOnly is endOfDay (to the end of that day) or startOfDay; addDays 0 to 365. A fixed date without a readable date counts down to targetAt. null turns it off. |
Poll settings
The fields in a poll's config. Colors are always #rrggbb. Anything you leave out comes from your brand or the defaults.
| Field | Default | Description |
|---|---|---|
question | required | The question, up to 140 characters. It's text in your email, above the buttons. |
options | required | 2 to 5 answers: [{ "id": "a", "label": "Apple pie" }, …]. label up to 60 characters; id 1 to 12 lowercase letters or digits, and you can leave it out for new answers. |
locale | nl | Language of the vote page: nl or en. |
closesAt | none | Closes the poll at this moment, in the time zone below: 2026-12-20T18:00. After that, new votes don't count. Without this field the poll stays open. |
timezone | Europe/Amsterdam | IANA time zone, for closesAt and the votes per day. |
resultsInEmail | true | Show the live results as an image below the buttons. Set to false if you don't want to influence readers. |
publicResults | false | A public page with the live results at fiig.io/r/{id}, to share. Not findable in Google. |
showVoteCounts | false | Also show the number of votes on that page, not only percentages. |
afterVote | results | What readers see after voting: { "type": "results" }, { "type": "message", "text": "Thanks!" } or { "type": "redirect", "url": "https://…" }. |
width | 600 | Width of the whole poll block in pixels, 240 to 600. |
background | #ffffff | Background color of the poll block. Always a color, so the question stays readable in dark mode too. |
textColor | #18181b | Color of the question and the text in the results. |
buttonColor | #9333ea | Color of the answer buttons. |
buttonTextColor | #ffffff | Text color on the buttons. |
barColor | #9333ea | Color of the bars in the results. |
trackColor | #f4f4f5 | Color behind the bars. |
font | inter | Font: inter, montserrat, poppins, spacegrotesk, oswald, bebas, dmserif, nunito, mono, archivo, alfaslab, fredoka, kalam. |
cornerRadius | 10 | Rounding of the buttons and bars in percent: 0 is square. |
Rating settings
The fields in a rating's config. Colors are always #rrggbb. Anything you leave out comes from your brand or the defaults.
| Field | Default | Description |
|---|---|---|
question | per language | The question, up to 140 characters. Shown as text in your email, above the choices. |
scale | smileys5 | thumbs (👍 👎), smileys3 (🙁 😐 🙂), smileys5 (😠 🙁 😐 🙂 😄), stars (1 to 5 stars), numbers5 (1 to 5) or nps (0 to 10). Can't change once there are votes. |
lowLabel | per scale | Label under the first choice, up to 40 characters, for example Poor. Empty: no label. Not for thumbs. |
highLabel | per scale | Label under the last choice, up to 40 characters, for example Excellent. |
locale | nl | Language of the vote page: nl or en. |
closesAt | none | Closes the rating at this moment, in the time zone below. After that, new votes no longer count. |
timezone | Europe/Amsterdam | IANA time zone, for closesAt and the votes and opens per day. |
afterVote | thank-you | What the reader sees after voting: { "type": "thanks" }, { "type": "message", "text": "Thanks!" } or { "type": "redirect", "url": "https://…" }. |
width | 600 | Width of the whole block in pixels, 240 to 600. |
size | normal | normal or compact: a smaller question and choices, for example for an email signature. |
align | center | The question and choices center or left. |
background | #ffffff | Background color of the block. Always a color, so the question stays readable in dark mode too. |
textColor | #18181b | Color of the question and the labels. |
buttonColor | #f4f4f5 | Color behind each choice (not for stars). |
buttonTextColor | #18181b | Color of the numbers for nps. |
starColor | #f59e0b | Color of the stars for stars. |
font | inter | Font: inter, montserrat, poppins, spacegrotesk, oswald, bebas, dmserif, nunito, mono, archivo, alfaslab, fredoka, kalam. |
cornerRadius | 10 | Rounding of the buttons in percent: 0 is square. |
Calendar widget settings
The fields in a calendar widget's config. Times are local in timezone, without a time zone after them: 2026-11-12T19:30. Colors are always #rrggbb. Anything you leave out comes from your brand or the defaults.
| Field | Default | Description |
|---|---|---|
title | required | The event's name, up to 120 characters. As it shows in the calendar. |
startAt | required | Start, in the time zone below. |
endAt | none | End. Without it the event lasts an hour (all day: one day). |
allDay | false | All day: only the dates of startAt and endAt count. |
timezone | Europe/Amsterdam | IANA time zone of the times, and for the clicks and opens per day. |
location | empty | Address or "Online", up to 200 characters. In the email and the calendar. |
description | empty | Up to 1000 characters. In the calendar only, not in the email. |
url | none | A link for the event (https), for example to your webinar. Added to the calendar. |
heading | per language | Heading above the event in the email, up to 80 characters. Empty: no heading. |
calendars | ["google", "outlook", "ics"] | The buttons: google, outlook (Outlook.com), office365 (work and school accounts) and ics (a calendar file for Apple Calendar and other apps). |
locale | nl | Language of the buttons, the date and the page that opens: nl or en. |
width | 600 | Width of the whole block in pixels, 240 to 600. |
size | normal | normal or compact. |
align | center | center or left. |
background | #ffffff | Background color of the block. Always a color. |
textColor | #18181b | Color of the texts. |
buttonColor | #9333ea | Color of the buttons. |
buttonTextColor | #ffffff | Text color on the buttons. |
font | inter | Font: inter, montserrat, poppins, spacegrotesk, oswald, bebas, dmserif, nunito, mono, archivo, alfaslab, fredoka, kalam. |
cornerRadius | 10 | Rounding of the buttons in percent: 0 is square. |
Progress bar settings
The fields in a progress bar's config. Colors are always #rrggbb. Anything you leave out comes from your brand or the defaults.
| Field | Default | Description |
|---|---|---|
goal | required | The goal, more than 0. |
current | 0 | The current value. Above the goal the bar stays full and the percentage keeps counting (112%). |
title | empty | Optional line above the bar, up to 80 characters. |
valueFormat | both | Below the bar: both (amount and percentage), amount, percent or none. |
prefix, suffix | empty | Text around every amount, like "€ " before or " kg" after. |
decimals | 0 | Number of decimals: 0, 1 or 2. |
locale | nl | Number format (7.200 or 7,200) and the word between value and goal: nl or en. |
timezone | Europe/Amsterdam | IANA time zone, for the opens per day. |
width | 600 | Width in pixels, 240 to 600. The height follows from what you show. |
background | #ffffff | Background color. Always a color, so the title and amounts stay readable in dark mode too. |
textColor | #18181b | Color of the title and the amounts. |
barColor | #9333ea | Color of the bar. |
trackColor | #f4f4f5 | Color behind the bar. |
font | inter | Font: inter, montserrat, poppins, spacegrotesk, oswald, bebas, dmserif, nunito, mono, archivo, alfaslab, fredoka, kalam. |
cornerRadius | 10 | Rounding of the bar in percent: 0 is square, 50 fully round. |
Stock counter settings
The fields in a stock counter's config. Colors are always #rrggbb. Anything you leave out comes from your brand or the defaults.
| Field | Default | Description |
|---|---|---|
count | 0 | The number in stock, a whole number of 0 or more. At 0 it says it's sold out. |
textBefore | empty | Text before the number, up to 40 characters, for example Only. |
textAfter | empty | Text after the number, up to 40 characters, for example left in stock. |
soldOutText | per language | Text when the count is 0. Empty: Uitverkocht or Sold out. |
lowStock | 0 | From this count on, the number gets lowColor. 0 turns this off. |
locale | nl | Number format (1.250 or 1,250) and the default sold-out text: nl or en. |
timezone | Europe/Amsterdam | IANA time zone, for the opens per day. |
align | center | Alignment: center or left. |
width | 600 | Width in pixels, 240 to 600. If the text doesn't fit, everything gets a little smaller. |
background | #ffffff | Background color. Always a color, so the text stays readable in dark mode too. |
textColor | #18181b | Color of the texts. |
numberColor | #9333ea | Color of the number and of the sold-out text. |
lowColor | #dc2626 | Color of the number when almost gone (see lowStock). |
font | inter | Font: inter, montserrat, poppins, spacegrotesk, oswald, bebas, dmserif, nunito, mono, archivo, alfaslab, fredoka, kalam. |
cornerRadius | 0 | Corner rounding as a percentage of the shorter side: 0 is square, 50 fully round. |
matteColor | #ffffff | Your email's background color. Rounded corners are blended with it, because GIF has no soft transparent edges. |
Opening hours settings
The fields in an opening hours widget's config. Times are HH:mm, local in timezone. Colors are always #rrggbb. Anything you leave out comes from your brand or the defaults.
| Field | Default | Description |
|---|---|---|
week | Mon–Fri 9:00–17:30, Sat 10:00–17:00 | Per day (mon … sun) 0, 1 or 2 ranges: { "open": "09:00", "close": "17:30" }. Empty is closed; two ranges for a break. A range that closes at or before it opens (17:00–01:00) runs into the next day. |
exceptions | none | Max 60 dates that differ: { "date": "2026-12-25", "ranges": [], "reason": "Christmas Day" }. Without ranges: closed all day. The reason (max 40 characters) goes into the text. |
timezone | Europe/Amsterdam | IANA time zone of the times, and for the opens per day. |
closingSoonMinutes | 30 | This many minutes before closing the widget shows "Closing in …". 0 turns it off. |
texts | per language | Per status (open, closingSoon, closedToday, closed, closedFor): title (max 60 characters) and text (max 90). An empty title shows the default text. Use {time}, {day}, {minutes} and {reason}. |
locale | nl | Language of the default texts, day names and times: nl (18:00) or en (6 pm). |
dot | true | A colored dot before the title. |
align | center | Alignment: center or left. |
width, height | 600, 100 | Size in pixels, as in your email. Width 240 to 600, height 60 to 300. |
background | #ffffff | Background color. Always a color, so the text stays readable in dark mode too. |
titleColor | #18181b | Color of the title. |
textColor | #52525b | Color of the line under the title. |
openColor, soonColor, closedColor | green, orange, red | Color of the dot when open, closing soon and closed. |
font | inter | Font: inter, montserrat, poppins, spacegrotesk, oswald, bebas, dmserif, nunito, mono, archivo, alfaslab, fredoka, kalam. |
cornerRadius | 0 | Corner rounding as a percentage of the shorter side: 0 is square, 50 fully round. |
matteColor | #ffffff | Your email's background color. Rounded corners are blended with it, because GIF has no soft transparent edges. |
url | empty | A link for the image (https), for example your contact page. Empty: no link. |
Day counter settings
The fields in a day counter's config. It counts whole days, weeks, months or years from startDate, at the moment the email is opened. Colors are always #rrggbb. Anything you leave out comes from your brand or the defaults.
| Field | Default | Description |
|---|---|---|
startDate | today | The day counting starts: YYYY-MM-DD, in timezone. |
timezone | Europe/Amsterdam | IANA time zone. At midnight in this time zone it counts one day on. |
unit | days | days, weeks, months or years: whole units, rounded down. |
countFrom | 1 | 1: the start day is day 1 (a challenge). 0: time elapsed (an anniversary). |
total | none | Optional, for example 30. After it, doneText shows. With PATCH, remove it with null. |
textBefore | per unit | Text before the number, up to 40 characters, for example Day. |
textAfter | per unit | Text after the number, up to 40 characters. {total} becomes the total: of {total}. |
textAfterOne | per unit | Instead of textAfter when the number is 1 (day instead of days). Empty: textAfter. |
beforeText | per language | Before the start date, up to 60 characters. {time} becomes the time to the start. Empty: Starts in {time}. |
doneText | per language | Once the total has passed, up to 60 characters. Empty: Done!. |
locale | nl | Number formatting, the time before the start and the default texts: nl or en. |
align | center | Alignment: center or left. |
width | 600 | Width in pixels, 240 to 600. If the text doesn't fit, everything gets a little smaller. |
background | #ffffff | Background color. Always a color, so the text stays readable in dark mode too. |
textColor | #18181b | Color of the texts. |
numberColor | #9333ea | Color of the number and of doneText. |
font | inter | Font: inter, montserrat, poppins, spacegrotesk, oswald, bebas, dmserif, nunito, mono, archivo, alfaslab, fredoka, kalam. |
cornerRadius | 0 | Corner rounding as a percentage of the shorter side: 0 is square, 50 fully round. |
matteColor | #ffffff | Your email's background color. Rounded corners are blended with it, because GIF has no soft transparent edges. |
Order cutoff settings
The fields in an order cutoff's config. It counts down to the cutoff every day, then to the next one, and never expires. Colors are always #rrggbb. Anything you leave out comes from your brand or the defaults.
| Field | Default | Description |
|---|---|---|
cutoffTime | 22:00 | The daily cutoff, HH:mm, in timezone. |
timezone | Europe/Amsterdam | IANA time zone of the cutoff and the days. |
shipDays | Mon–Fri | Days an order before the cutoff ships the same day: mon … sun. At least one. |
deliveryDays | Mon–Sat | Days the carrier delivers: mon … sun. At least one. |
transitDays | 1 | Delivery days between shipping and delivery: 0 the same day, 1 the next delivery day, up to 5. |
closedDates | none | Dates without shipping or delivery (YYYY-MM-DD), such as public holidays. At most 60. |
texts | per language | The headline: today while the cutoff is today, later when it's another day. {time} becomes the cutoff time, {day} the delivery day, {orderday} the day of the cutoff. Up to 60 characters; PATCH per text. |
locale | nl | Language of the default texts, the day names and the time: nl (22:00) or en (10 pm). |
units | hours, minutes, seconds | Which units the timer shows. Without days, the hours keep counting (Saturday to Monday: 48 hours). |
labels | per language | Own labels per unit, up to 24 characters. |
width | 600 | Width in pixels, 240 to 600. |
height | 200 | Height in pixels, 100 to 300. |
background | #ffffff | Background color. Always a color: the headline sits on it. |
headlineColor | #18181b | Color of the headline. |
boxColor | #18181b | Color of the boxes. |
digitColor | #ffffff | Color of the digits. |
labelColor | #d4d4d8 | Color of the labels. |
font | inter | Font, as for the countdown. |
cornerRadius | 10 | Rounding of the boxes, 0 to 50 (percent of the shorter side). |
Statistics
GET/v1/widgets/{id}/stats
Total opens and opens per day, in the widget's time zone. Use days (1 to 366, default 30) to choose how many days back, today included. Test emails and builder previews don't count.
curl "https://api.fiig.io/v1/widgets/k7Qx2mPa9rTb/stats?days=7" \
-H "Authorization: Bearer $FIIG_API_KEY"{
"data": {
"id": "k7Qx2mPa9rTb",
"timezone": "Europe/Amsterdam",
"totalOpens": 18452,
"days": [
{ "date": "2026-12-18", "opens": 0 },
{ "date": "2026-12-19", "opens": 9210 },
{ "date": "2026-12-20", "opens": 4022 }
]
}
}A poll also gets votes: the total, the results per answer (in the poll's order, with whole percentages) and the votes per day. For a poll, totalOpens counts how often the results image was loaded. Votes from test emails and the builder preview don't count.
{
"data": {
"id": "Pq8sV2nLx4Ke",
"timezone": "Europe/Amsterdam",
"totalOpens": 6120,
"days": [ … ],
"votes": {
"total": 412,
"results": [
{ "id": "a", "label": "Apple pie", "votes": 231, "percent": 56 },
{ "id": "b", "label": "Chocolate cake", "votes": 124, "percent": 30 },
{ "id": "c", "label": "Lemon tart", "votes": 57, "percent": 14 }
],
"days": [
{ "date": "2026-12-18", "votes": 0 },
{ "date": "2026-12-19", "votes": 301 },
{ "date": "2026-12-20", "votes": 111 }
]
}
}
}A rating gets the same votes, with the choices in the scale's order, plus score: for thumbs the share of thumbs up (positive), for smileys and stars the average (average, from 1 to max) and for nps the Net Promoter Score (nps, from -100 to 100: the share of promoters minus the share of detractors). Without votes, score is null. totalOpens counts how often the invisible image was loaded.
{
"data": {
"id": "Hv6tR3wMy8Qa",
"timezone": "Europe/Amsterdam",
"totalOpens": 1840,
"days": [ … ],
"votes": {
"total": 96,
"score": { "kind": "average", "value": 4.3, "max": 5 },
"results": [
{ "id": "1", "label": "★", "votes": 2, "percent": 2 },
{ "id": "2", "label": "★", "votes": 3, "percent": 3 },
{ "id": "3", "label": "★", "votes": 9, "percent": 9 },
{ "id": "4", "label": "★", "votes": 29, "percent": 30 },
{ "id": "5", "label": "★", "votes": 53, "percent": 56 }
],
"days": [ … ]
}
}
}A calendar widget gets clicks: how often each calendar button was used, in total (total), per calendar (perCalendar) and per day. A click only counts once the calendar page opens in a visible browser window, so virus scanners don't count.
{
"data": {
"id": "Cx4pL9mQw2Rt",
"timezone": "Europe/Amsterdam",
"totalOpens": 2350,
"days": [ … ],
"clicks": {
"total": 184,
"perCalendar": { "google": 97, "outlook": 31, "office365": 0, "ics": 56 },
"days": [ … ]
}
}
}A promo banner with a link gets the same clicks, with perPhase instead of perCalendar: the clicks per phase, by the phase at the moment of the click.
{
"data": {
"id": "Bk8sV2nRq5Yx",
"timezone": "Europe/Amsterdam",
"totalOpens": 5120,
"days": [ … ],
"clicks": {
"total": 268,
"perPhase": { "before": 31, "during": 214, "after": 23 },
"days": [ … ]
}
}
}Errors
Errors always have the same format:
{
"error": {
"code": "invalid_request",
"message": "Some fields are invalid. See details.",
"details": [
{ "path": "config.width", "message": "Too big: expected number to be <=600" }
]
}
}| Status | Code | Meaning |
|---|---|---|
| 401 | unauthorized | No key, or the key is wrong or revoked. |
| 403 | account_blocked | Your account is blocked. Please contact us. |
| 404 | not_found | No widget with this id in your workspace. |
| 422 | invalid_request | A field is invalid. details lists each problem (path and message). |
| 429 | rate_limited | Too many requests. Wait the number of seconds in the Retry-After header. |
| 500 | server_error | Something went wrong on our side. Try again later. |
Limits
- Up to 120 requests per minute per key during the beta. After that it depends on your plan; see the prices. Above that you get
429with aRetry-Afterheader. - Up to 10 keys per workspace.
- The API is meant for servers and tools. Requests from a browser aren't supported, so your key can't leak.
Zapier and Make
Connect Fiig to other apps without programming. An example: move your countdown's end date when the deadline in your planning changes.
Zapier
Zapier has its own Fiig integration: choose your widget from a list and update a stock counter, progress bar or countdown, without webhooks or JSON. See Fiig in Zapier.
Make
- Add the module HTTP → Make a request.
- Method:
PATCH. URL:https://api.fiig.io/v1/widgets/followed by your widget's id. - Body type Raw, content type JSON (application/json), with the JSON below in Request content. Put the field from your trigger in place of
{{deadline}}. - Add the header
AuthorizationwithBearerand your key. - Run the module. On success you get the widget back with its new end date.
{ "config": { "targetAt": "{{deadline}}" } }Send the end date as 2026-12-24T18:00 (no seconds, no time zone): the widget's time zone then decides when it ends.
OpenAPI
A complete, machine-readable description of the API is at https://api.fiig.io/v1/openapi.json. Import it into Postman or Insomnia, for example, to try every request right away.
Changes
Within /v1, things are only added: existing fields and requests keep working as they do. If something ever really has to change, there will be a /v2, announced well in advance. Newest first.
| Date | Change |
|---|---|
| 2026-10-27 | Countdowns got personalDeadline: a date per recipient through ?deadline= in the image URL. |
| 2026-10-16 | New widget type cutoff (order cutoff). |
| 2026-10-15 | New: POST /v1/widgets/{id}/adjust adds to or takes off a stock counter or progress bar, per event (see Increase or decrease a number). |
| 2026-10-13 | Promo banners, stock counters, opening hours and day counters got cornerRadius (rounded corners, default 0) and matteColor. |
| 2026-10-12 | New widget type countup (day counter). |
| 2026-10-11 | New widget type hours (opening hours). |
| 2026-10-10 | New widget type banner (promo banner); statistics give the clicks per phase. |
| 2026-10-08 | Ratings got the scale numbers5 (1 to 5). |
| 2026-10-07 | New widget type calendar; statistics give the clicks per calendar. |
| 2026-10-06 | New widget types poll, progress, stock and rating, with votes and scores in the statistics. Polls got publicResults and showVoteCounts, ratings width, align and size. Every widget now also returns dashboardUrl. |
| 2026-10-05 | Version 1 of the API: list, get, create, update and delete widgets, statistics, API keys and openapi.json. Countdowns only. |