FlapAndTell Board API

Update any region of a published board from an external system. Authenticate with a per-board API key (board editor, Publish tab) or a JWT from the API tokens page in the dashboard. Tokens are stored as hashes - treat them like passwords.

Endpoint: https://flapandtell.com/functions/boardApiUpdate

Authentication

Send the token in the Authorization: Bearer header. Two kinds are accepted:

  • Per-board API key (ftl_...) - generated in the board editor's Publish tab; valid for that one board only.
  • JWT (HS256-signed) - created on the API tokens page. A board token works like a per-board key; an account token works across every board you own, so one token manages all of them.

JWTs do not expire on their own; revoke them from the API tokens page. Every request still names the target board by slug, and the token is checked against that board's scope before any update is applied.

POST boardApiUpdate - update regions

Headers: Authorization: Bearer YOUR_KEY, Content-Type: application/json.

curl -X POST "https://flapandtell.com/functions/boardApiUpdate" \
  -H "Authorization: Bearer ftl_YOUR_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "board": "your-board-slug",
    "updates": [
      {
        "region_id": "REGION_ID",
        "mode": "replace",
        "rows": [
          ["1A", "CENTRAL STATION", "10:15", "SCHEDULED"],
          ["2B", "RIVERSIDE PARK", "10:32", "SCHEDULED"]
        ]
      }
    ]
  }'

Rows can be arrays (in column order) or objects keyed by column id:

"rows": [
  { "route": "1A", "destination": "CENTRAL STATION", "departs": "10:15" }
]

Update modes

  • replace - replaces the region's content permanently (region bindings are untouched; bound regions switch to this content until the next feed refresh).
  • override - temporary takeover with ttl_seconds (max 86400). When it expires, the region automatically returns to its feed content.
{
  "region_id": "announcements",
  "mode": "override",
  "ttl_seconds": 900,
  "rows": [ ["SPECIAL: LIVE MUSIC AT 8PM"] ]
}

Success response

{
  "board": "your-board-slug",
  "revision": 3,
  "updated_regions": 1,
  "details": [ { "region_id": "REGION_ID", "mode": "replace" } ],
  "server_time": "2026-10-07T17:30:00.000Z"
}

Published players poll for changes every 15 seconds, so updates appear on screens within ~15s.

Widgets and the API

Live widget regions - clock, countdown, ticker, and weather - compute and refresh their own content on our servers, so they never need an API push. The API is for text-table regions (manual, RSS, GTFS, or custom content). Pushing rows to a widget region is not supported.

Scheduling, playlists & revisions

Boards can run a time-of-day schedule. Everything below is configured in the board editor's Schedule tab and ships inside the published snapshot, so the API and the schedule always work from the same data.

  • Playlist - a named sequence of scenes, shown in order, each with its own dwell time.
  • Scene - the region rows for that moment. A scene only touches the regions it names, so feeds and bindings on every other region keep running.
  • Rule - binds a playlist to days of the week, a start and end time, an optional date range, blackout dates, and a priority. Windows are read in the board's timezone, so daylight saving never shifts them, and overnight windows such as 22:00 - 05:00 are supported.
  • Revision - every publish stores an immutable snapshot with its version, author, and change summary, and any earlier version can be restored.

Resolution order, highest first:

active timed override  >  schedule rule  >  live source content  >  default playlist  >  manual fallback
  • An override push outranks the schedule, so an emergency notice covers a scheduled scene and flips back to it when the TTL runs out.
  • A replace push is source content: a scheduled scene covers it while its window is active, and the pushed rows return once the window closes.
  • When several rules are active at once, the highest priority wins, then the narrower window.

GET - published board state

curl "https://flapandtell.com/functions/boardApiUpdate?slug=your-board-slug"

Returns the sanitized published snapshot (layout + content) for a published board. No key required - this is the same projection public players read.

The snapshot carries board.default_playlist_id, a playlists array (each with its items scenes), and aschedule_rules array (days, start_time, end_time, start_date, end_date,exceptions, priority). Players resolve the schedule themselves at read time, so replicating the resolution order above is all an external dashboard needs to show the same content.

Limits & errors

  • Max 20 region updates and 200 rows per call; cells are sanitized to the flap character set.
  • 401 invalid or missing key - 404 unknown board or region - 400 validation errors.
  • Character set: A-Z, 0-9, and . , : ; - ' & / + ! ? % = - everything else is transliterated or replaced with a space.

Need a token?

Open your board in the dashboard, go to the Publish tab, and generate an API key or board JWT. For an account-wide token, use the API tokens page.