Fluger API quickstart for developers

The Fluger API lets your own system add videos, schedule them on your channels and manage Video On Demand automatically. This article walks you through the basics in about five minutes and lists the rules that matter most.

The API is included in every paid plan. On the Free plan, calls return HTTP 402 with the code api_not_in_plan.

Addresses

WhatURL
REST API basehttps://public.api.fluger.tv/v1
Interactive docshttps://public.api.fluger.tv/docs
OpenAPI filehttps://public.api.fluger.tv/openapi/v1.json

The interactive docs list every endpoint with its fields, and let you try calls with your token (click Authorize).

The interactive API documentation with the Account and Channels endpoint groups

Authentication, errors and limits

  • Authentication: send your token in the header Authorization: Bearer flg_live_YOUR_TOKEN. See API tokens to create one.
  • Errors are returned as application/problem+json with a stable code you can check in your code, for example schedule_conflict, crosses_midnight, timezone_not_supported, api_not_in_plan, bunny_embed_url or invalid_logo.
  • Rate limit: 120 requests per minute per token. Above that you get HTTP 429 with a Retry-After header telling you how many seconds to wait.

There is no separate test server. Use a test channel on your account and keep it disabled (off the air) until you're ready.

Five-minute walk-through

Replace flg_live_YOUR_TOKEN and CHANNEL_ID with your own values.

1. Create a token

Open the profile menu → API & Integrations → New Token, and copy the token (details).

2. Check your account

curl https://public.api.fluger.tv/v1/me \
  -H "Authorization: Bearer flg_live_YOUR_TOKEN"

The answer shows your plan, its limits, your current usage and the permissions of the token.

3. List your channels

curl https://public.api.fluger.tv/v1/channels \
  -H "Authorization: Bearer flg_live_YOUR_TOKEN"

Note the id of the channel you want to use.

4. Add a video by URL

curl -X POST https://public.api.fluger.tv/v1/videos \
  -H "Authorization: Bearer flg_live_YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://cdn.example.com/shows/ep-101.mp4",
    "externalId": "ep-101",
    "channelIds": ["CHANNEL_ID"]
  }'

externalId is your own id for the episode. Sending the same externalId again returns the existing video instead of creating a duplicate, and you can use it anywhere the API expects a videoId. channelIds adds the video to those channels at once.

5. Schedule it

curl -X POST https://public.api.fluger.tv/v1/channels/CHANNEL_ID/schedule/items \
  -H "Authorization: Bearer flg_live_YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "externalId": "ep-101", "start": "2026-12-01T20:00:00" }'

The start time is the channel's local broadcast time, without a time zone (see the rules below).

6. Add it to Video On Demand

curl -X POST https://public.api.fluger.tv/v1/channels/CHANNEL_ID/vod/categories/CATEGORY_ID/items \
  -H "Authorization: Bearer flg_live_YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "externalId": "ep-101", "availableUntil": "2027-12-01T00:00:00Z" }'

Get the CATEGORY_ID from GET /v1/channels/CHANNEL_ID/vod/categories, or create a category with POST /v1/channels/CHANNEL_ID/vod/categories. This step is for VOD channels.

Videos by URL

POST /v1/videos accepts:

  • a direct https link to an .mp4 file or an .m3u8 (HLS) playlist, including Bunny Stream direct-play and HLS playlist links
  • a YouTube, Vimeo or Dailymotion video page

Nothing is uploaded again: Fluger plays the video from where it is, reads its duration and takes a thumbnail.

Bunny Stream: use the HLS playlist (…/playlist.m3u8, recommended) or the direct MP4 link. The embed link (iframe.mediadelivery.net/…) is refused with bunny_embed_url. Token authentication and referrer blocking must be turned off in your Bunny library, otherwise Fluger can't play the video.

You can also upload files directly (POST /v1/uploads, upload the file, then POST /v1/uploads/complete). See the docs for the details.

Scheduling rules

  • Times are the channel's local broadcast time, with no offset. Send 2026-12-01T20:00:00. A time with Z or an offset such as +02:00 is refused with timezone_not_supported.
  • A programme can't run past midnight (crosses_midnight). Ending exactly at midnight is fine.
  • Programmes can't overlap (schedule_conflict).
To…Call
Add one programmePOST /v1/channels/{id}/schedule/items
Add many at oncePOST /v1/channels/{id}/schedule/items/batch with { "items": [ … ] }. Each item succeeds or fails on its own.
Read the scheduleGET /v1/channels/{id}/schedule?from=…&to=…
Re-send a dayDELETE /v1/channels/{id}/schedule?from=…&to=… to clear the range first, then add the items again
Fill free time automaticallyPOST /v1/channels/{id}/schedule/autofill fills a day's free time with the channel's videos in random order

Video On Demand rules

  • List categories with their items: GET /v1/channels/{id}/vod/categories?includeItems=true.
  • Add an item: POST /v1/channels/{id}/vod/categories/{categoryId}/items with externalId (or videoId) and, optionally, an availability window.
  • VOD availability times are in UTC and end with Z, for example 2027-12-01T00:00:00Z. This is different from schedule times.
  • New items go to the top of the category.
  • Items outside their availability window are hidden everywhere right away. Expired items are removed automatically (checked every hour), and a vod.item.expired webhook is sent.

Other endpoints

  • GET /v1/me: your plan, limits, usage and token permissions.
  • Channels: list, create, update, enable or disable, delete, and player settings.
  • Webhooks: add, list, test and see deliveries (see Webhooks).

Everything else is in the interactive docs.

Recommended video specs

These are recommendations for smooth playback on the web, mobile and TV, not limits:

  • MP4 with "fast start" (the index at the beginning of the file), or HLS
  • H.264 High profile, constant frame rate (25 or 29.97/30 fps), a keyframe every 2 seconds
  • 1080p at 6–8 Mbps, or 720p at 3–5 Mbps
  • AAC-LC audio, 48 kHz stereo, 128–192 kbps