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

  1. Log in and go to Account → API.
  2. Give the key a name you'll recognise, like "Zapier" or "Webshop".
  3. 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:

Header
Authorization: Bearer fiig_…

Without a valid key you get 401 unauthorized. An example that lists your widgets:

curl
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:

JSON
{
  "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
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"
    }
  }'
JavaScript
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
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
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
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
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
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
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
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
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
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 config replaces the old value.
  • units and labels merge per key: { "labels": { "days": "d" } } only changes the label for days.
  • null resets a field to its default, for example { "cornerRadius": null }.
  • For a poll, options is always replaced as a whole. Send the existing ids when you reword an answer: they're in the vote links of sent emails and in the counts.
  • A rating's scale can'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 phases merge per phase and per field: { "phases": { "during": { "title": "Extended!" } } } only changes that title. With "startAt": null the phase before the start goes.
  • For opening hours, week merges per day: { "week": { "sun": [] } } only closes Sunday. texts merges per status and field; exceptions is replaced as a whole.
  • A widget's type can't change.

Make a countdown end a week later:

curl
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
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
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
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
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
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 by must 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
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.

FieldDefaultDescription
targetAtrequiredEnd date and time, in the time zone below: 2026-12-24T18:00. An offset works too: 2026-12-24T18:00:00+01:00.
timezonerequiredIANA time zone, for example Europe/Amsterdam or Europe/London.
localenlLanguage of the default labels and text: nl or en.
unitsall onWhich units to show: { "days": true, "hours": true, "minutes": true, "seconds": true }.
labelsper languageYour own label per unit, up to 24 characters: { "days": "days" }. Empty = default label.
width, height600, 200Size in pixels, as shown in your email. Width 100 to 600, height 50 to 300.
background#ffffffBackground color, or transparent.
matteColor#ffffffWith a transparent background: your email's background color. Edges are blended with it.
boxColor#18181bColor of the boxes.
digitColor#ffffffColor of the digits.
labelColor#d4d4d8Color of the labels.
fontinterFont: inter, montserrat, poppins, spacegrotesk, oswald, bebas, dmserif, nunito, mono, archivo, alfaslab, fredoka, kalam.
cornerRadius10Rounding of the boxes in percent: 0 is square, 50 fully round.
expiredtextAfter the end: { "type": "text", "text": "This offer has ended" } or { "type": "image", "url": "https://…" }.
personalDeadlineoffPersonal 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.

FieldDefaultDescription
questionrequiredThe question, up to 140 characters. It's text in your email, above the buttons.
optionsrequired2 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.
localenlLanguage of the vote page: nl or en.
closesAtnoneCloses 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.
timezoneEurope/AmsterdamIANA time zone, for closesAt and the votes per day.
resultsInEmailtrueShow the live results as an image below the buttons. Set to false if you don't want to influence readers.
publicResultsfalseA public page with the live results at fiig.io/r/{id}, to share. Not findable in Google.
showVoteCountsfalseAlso show the number of votes on that page, not only percentages.
afterVoteresultsWhat readers see after voting: { "type": "results" }, { "type": "message", "text": "Thanks!" } or { "type": "redirect", "url": "https://…" }.
width600Width of the whole poll block in pixels, 240 to 600.
background#ffffffBackground color of the poll block. Always a color, so the question stays readable in dark mode too.
textColor#18181bColor of the question and the text in the results.
buttonColor#9333eaColor of the answer buttons.
buttonTextColor#ffffffText color on the buttons.
barColor#9333eaColor of the bars in the results.
trackColor#f4f4f5Color behind the bars.
fontinterFont: inter, montserrat, poppins, spacegrotesk, oswald, bebas, dmserif, nunito, mono, archivo, alfaslab, fredoka, kalam.
cornerRadius10Rounding 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.

FieldDefaultDescription
questionper languageThe question, up to 140 characters. Shown as text in your email, above the choices.
scalesmileys5thumbs (👍 👎), smileys3 (🙁 😐 🙂), smileys5 (😠 🙁 😐 🙂 😄), stars (1 to 5 stars), numbers5 (1 to 5) or nps (0 to 10). Can't change once there are votes.
lowLabelper scaleLabel under the first choice, up to 40 characters, for example Poor. Empty: no label. Not for thumbs.
highLabelper scaleLabel under the last choice, up to 40 characters, for example Excellent.
localenlLanguage of the vote page: nl or en.
closesAtnoneCloses the rating at this moment, in the time zone below. After that, new votes no longer count.
timezoneEurope/AmsterdamIANA time zone, for closesAt and the votes and opens per day.
afterVotethank-youWhat the reader sees after voting: { "type": "thanks" }, { "type": "message", "text": "Thanks!" } or { "type": "redirect", "url": "https://…" }.
width600Width of the whole block in pixels, 240 to 600.
sizenormalnormal or compact: a smaller question and choices, for example for an email signature.
aligncenterThe question and choices center or left.
background#ffffffBackground color of the block. Always a color, so the question stays readable in dark mode too.
textColor#18181bColor of the question and the labels.
buttonColor#f4f4f5Color behind each choice (not for stars).
buttonTextColor#18181bColor of the numbers for nps.
starColor#f59e0bColor of the stars for stars.
fontinterFont: inter, montserrat, poppins, spacegrotesk, oswald, bebas, dmserif, nunito, mono, archivo, alfaslab, fredoka, kalam.
cornerRadius10Rounding 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.

FieldDefaultDescription
titlerequiredThe event's name, up to 120 characters. As it shows in the calendar.
startAtrequiredStart, in the time zone below.
endAtnoneEnd. Without it the event lasts an hour (all day: one day).
allDayfalseAll day: only the dates of startAt and endAt count.
timezoneEurope/AmsterdamIANA time zone of the times, and for the clicks and opens per day.
locationemptyAddress or "Online", up to 200 characters. In the email and the calendar.
descriptionemptyUp to 1000 characters. In the calendar only, not in the email.
urlnoneA link for the event (https), for example to your webinar. Added to the calendar.
headingper languageHeading 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).
localenlLanguage of the buttons, the date and the page that opens: nl or en.
width600Width of the whole block in pixels, 240 to 600.
sizenormalnormal or compact.
aligncentercenter or left.
background#ffffffBackground color of the block. Always a color.
textColor#18181bColor of the texts.
buttonColor#9333eaColor of the buttons.
buttonTextColor#ffffffText color on the buttons.
fontinterFont: inter, montserrat, poppins, spacegrotesk, oswald, bebas, dmserif, nunito, mono, archivo, alfaslab, fredoka, kalam.
cornerRadius10Rounding 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.

FieldDefaultDescription
goalrequiredThe goal, more than 0.
current0The current value. Above the goal the bar stays full and the percentage keeps counting (112%).
titleemptyOptional line above the bar, up to 80 characters.
valueFormatbothBelow the bar: both (amount and percentage), amount, percent or none.
prefix, suffixemptyText around every amount, like "€ " before or " kg" after.
decimals0Number of decimals: 0, 1 or 2.
localenlNumber format (7.200 or 7,200) and the word between value and goal: nl or en.
timezoneEurope/AmsterdamIANA time zone, for the opens per day.
width600Width in pixels, 240 to 600. The height follows from what you show.
background#ffffffBackground color. Always a color, so the title and amounts stay readable in dark mode too.
textColor#18181bColor of the title and the amounts.
barColor#9333eaColor of the bar.
trackColor#f4f4f5Color behind the bar.
fontinterFont: inter, montserrat, poppins, spacegrotesk, oswald, bebas, dmserif, nunito, mono, archivo, alfaslab, fredoka, kalam.
cornerRadius10Rounding 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.

FieldDefaultDescription
count0The number in stock, a whole number of 0 or more. At 0 it says it's sold out.
textBeforeemptyText before the number, up to 40 characters, for example Only.
textAfteremptyText after the number, up to 40 characters, for example left in stock.
soldOutTextper languageText when the count is 0. Empty: Uitverkocht or Sold out.
lowStock0From this count on, the number gets lowColor. 0 turns this off.
localenlNumber format (1.250 or 1,250) and the default sold-out text: nl or en.
timezoneEurope/AmsterdamIANA time zone, for the opens per day.
aligncenterAlignment: center or left.
width600Width in pixels, 240 to 600. If the text doesn't fit, everything gets a little smaller.
background#ffffffBackground color. Always a color, so the text stays readable in dark mode too.
textColor#18181bColor of the texts.
numberColor#9333eaColor of the number and of the sold-out text.
lowColor#dc2626Color of the number when almost gone (see lowStock).
fontinterFont: inter, montserrat, poppins, spacegrotesk, oswald, bebas, dmserif, nunito, mono, archivo, alfaslab, fredoka, kalam.
cornerRadius0Corner rounding as a percentage of the shorter side: 0 is square, 50 fully round.
matteColor#ffffffYour 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.

FieldDefaultDescription
weekMon–Fri 9:00–17:30, Sat 10:00–17:00Per 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.
exceptionsnoneMax 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.
timezoneEurope/AmsterdamIANA time zone of the times, and for the opens per day.
closingSoonMinutes30This many minutes before closing the widget shows "Closing in …". 0 turns it off.
textsper languagePer 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}.
localenlLanguage of the default texts, day names and times: nl (18:00) or en (6 pm).
dottrueA colored dot before the title.
aligncenterAlignment: center or left.
width, height600, 100Size in pixels, as in your email. Width 240 to 600, height 60 to 300.
background#ffffffBackground color. Always a color, so the text stays readable in dark mode too.
titleColor#18181bColor of the title.
textColor#52525bColor of the line under the title.
openColor, soonColor, closedColorgreen, orange, redColor of the dot when open, closing soon and closed.
fontinterFont: inter, montserrat, poppins, spacegrotesk, oswald, bebas, dmserif, nunito, mono, archivo, alfaslab, fredoka, kalam.
cornerRadius0Corner rounding as a percentage of the shorter side: 0 is square, 50 fully round.
matteColor#ffffffYour email's background color. Rounded corners are blended with it, because GIF has no soft transparent edges.
urlemptyA 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.

FieldDefaultDescription
startDatetodayThe day counting starts: YYYY-MM-DD, in timezone.
timezoneEurope/AmsterdamIANA time zone. At midnight in this time zone it counts one day on.
unitdaysdays, weeks, months or years: whole units, rounded down.
countFrom11: the start day is day 1 (a challenge). 0: time elapsed (an anniversary).
totalnoneOptional, for example 30. After it, doneText shows. With PATCH, remove it with null.
textBeforeper unitText before the number, up to 40 characters, for example Day.
textAfterper unitText after the number, up to 40 characters. {total} becomes the total: of {total}.
textAfterOneper unitInstead of textAfter when the number is 1 (day instead of days). Empty: textAfter.
beforeTextper languageBefore the start date, up to 60 characters. {time} becomes the time to the start. Empty: Starts in {time}.
doneTextper languageOnce the total has passed, up to 60 characters. Empty: Done!.
localenlNumber formatting, the time before the start and the default texts: nl or en.
aligncenterAlignment: center or left.
width600Width in pixels, 240 to 600. If the text doesn't fit, everything gets a little smaller.
background#ffffffBackground color. Always a color, so the text stays readable in dark mode too.
textColor#18181bColor of the texts.
numberColor#9333eaColor of the number and of doneText.
fontinterFont: inter, montserrat, poppins, spacegrotesk, oswald, bebas, dmserif, nunito, mono, archivo, alfaslab, fredoka, kalam.
cornerRadius0Corner rounding as a percentage of the shorter side: 0 is square, 50 fully round.
matteColor#ffffffYour 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.

FieldDefaultDescription
cutoffTime22:00The daily cutoff, HH:mm, in timezone.
timezoneEurope/AmsterdamIANA time zone of the cutoff and the days.
shipDaysMon–FriDays an order before the cutoff ships the same day: mon … sun. At least one.
deliveryDaysMon–SatDays the carrier delivers: mon … sun. At least one.
transitDays1Delivery days between shipping and delivery: 0 the same day, 1 the next delivery day, up to 5.
closedDatesnoneDates without shipping or delivery (YYYY-MM-DD), such as public holidays. At most 60.
textsper languageThe 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.
localenlLanguage of the default texts, the day names and the time: nl (22:00) or en (10 pm).
unitshours, minutes, secondsWhich units the timer shows. Without days, the hours keep counting (Saturday to Monday: 48 hours).
labelsper languageOwn labels per unit, up to 24 characters.
width600Width in pixels, 240 to 600.
height200Height in pixels, 100 to 300.
background#ffffffBackground color. Always a color: the headline sits on it.
headlineColor#18181bColor of the headline.
boxColor#18181bColor of the boxes.
digitColor#ffffffColor of the digits.
labelColor#d4d4d8Color of the labels.
fontinterFont, as for the countdown.
cornerRadius10Rounding 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
curl "https://api.fiig.io/v1/widgets/k7Qx2mPa9rTb/stats?days=7" \
  -H "Authorization: Bearer $FIIG_API_KEY"
JSON
{
  "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.

JSON
{
  "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.

JSON
{
  "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.

JSON
{
  "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.

JSON
{
  "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:

JSON
{
  "error": {
    "code": "invalid_request",
    "message": "Some fields are invalid. See details.",
    "details": [
      { "path": "config.width", "message": "Too big: expected number to be <=600" }
    ]
  }
}
StatusCodeMeaning
401unauthorizedNo key, or the key is wrong or revoked.
403account_blockedYour account is blocked. Please contact us.
404not_foundNo widget with this id in your workspace.
422invalid_requestA field is invalid. details lists each problem (path and message).
429rate_limitedToo many requests. Wait the number of seconds in the Retry-After header.
500server_errorSomething 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 429 with a Retry-After header.
  • 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

  1. Add the module HTTP → Make a request.
  2. Method: PATCH. URL: https://api.fiig.io/v1/widgets/ followed by your widget's id.
  3. 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}}.
  4. Add the header Authorization with Bearer and your key.
  5. Run the module. On success you get the widget back with its new end date.
Request content
{ "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.

DateChange
2026-10-27Countdowns got personalDeadline: a date per recipient through ?deadline= in the image URL.
2026-10-16New widget type cutoff (order cutoff).
2026-10-15New: 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-13Promo banners, stock counters, opening hours and day counters got cornerRadius (rounded corners, default 0) and matteColor.
2026-10-12New widget type countup (day counter).
2026-10-11New widget type hours (opening hours).
2026-10-10New widget type banner (promo banner); statistics give the clicks per phase.
2026-10-08Ratings got the scale numbers5 (1 to 5).
2026-10-07New widget type calendar; statistics give the clicks per calendar.
2026-10-06New 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-05Version 1 of the API: list, get, create, update and delete widgets, statistics, API keys and openapi.json. Countdowns only.