API reference

Base URL: your Feltiv address, e.g. https://api.example.com. The full machine-readable reference is at /openapi.json (import it into Postman or Insomnia); try requests in the browser at /docs or read /redoc.

Conventions

Endpoints

Method Path Scope What it does
GET /v1/catalog none Languages, engines, voices, styles, limits
GET /v1/account usage:read Your plan, limits and this month's usage
POST /v1/streams streams:write Create a stream (returns the stream key once)
GET /v1/streams streams:read List streams, newest first (status filter, pagination)
GET /v1/streams/{id} streams:read One stream with status, ingest, playback, recording
PATCH /v1/streams/{id} streams:write Rename, metadata; settings only while not running
POST /v1/streams/{id}/stop streams:write Stop now (recording kept)
POST /v1/streams/{id}/start streams:write (LiveKit source) join the room
POST /v1/streams/{id}/test-source streams:write Play our sample source into the stream
POST /v1/streams/{id}/rotate-key streams:write New stream key (old one stops working)
DELETE /v1/streams/{id} streams:write Delete the stream and its media now
POST /v1/streams/{id}/playback-tokens streams:read Signed, expiring viewer links
GET /v1/streams/{id}/captions?lang=hi&format=vtt streams:read Subtitle file (after the stream)
GET /v1/streams/{id}/transcript streams:read Every sentence: source text, translation, times
GET /v1/streams/{id}/metrics streams:read Live quality numbers
GET /v1/usage?from=&to= usage:read Language-minutes per stream and language
POST/GET/DELETE /v1/webhooks webhooks:write Manage webhook endpoints (Webhooks)
POST /v1/webhooks/{id}/test webhooks:write Send a test event
GET /v1/webhooks/{id}/deliveries webhooks:write Recent deliveries and their result
GET /play/{id}/..., /play/{id}/t/{token}/... none / token The HLS files viewers load
GET /healthz, /readyz none Health checks for monitoring

The stream object

{
  "id": "str_3bf953b5a06973ac689a63c1",
  "object": "stream",
  "name": "Physics 10-B",
  "status": "live",
  "created_at": 1795509193.2, "started_at": 1795509195.0, "live_at": 1795509213.4, "ended_at": null, "end_reason": null,
  "settings": {"source": "rtmp", "languages": ["hi"], "engine": "sarvam", "voice": "female", "style": "modern-colloquial",
               "delay_s": 12, "original_audio": true, "subtitles": "target", "background_original_db": null,
               "playback": "public", "record": true, "video_transcode": false, "reconnect_window_s": 60},
  "ingest": {"rtmp": {"server_url": "rtmp://ingest.example.com:1935/live", "stream_key": null}, "note": "..."},
  "stream_key_hint": "fdsk...27c8",
  "livekit": null,
  "restream": [],
  "playback": {"policy": "public", "hls_url": ".../master.m3u8", "hls_url_per_language": {"hi": ".../lang_hi.m3u8"},
               "player_url": ".../watch/str_...", "embed_html": "<iframe ...>", "available": true},
  "recording": {"available": false},
  "live": {"state": "live", "media_seconds": 812.4, "published_seconds": 800.1, "source_connected": true},
  "metadata": {"course": "physics"}
}

status: idle (waiting for video) → starting (video arrived, first segments being made) → live → reconnecting (encoder dropped, waiting) → ending → ended or failed. An ended stream can be used again: send video with the same key and it starts over (the previous output is replaced).

end_reason: stopped_by_api, source_disconnected, no_source, max_duration, trial_exhausted, monthly_cap_reached, source_has_no_audio_or_video, worker_exited.

Create-stream fields

Field Default Notes
name required 1-100 characters
source rtmp rtmp, srt, whip (push), livekit (we join)
languages required 1-4 codes from the catalog
engine sarvam sarvam or gemini
voice female female, male, clone (Sarvam; needs voice_clone_consent: true)
style engine default see Languages
delay_s 12 8-30. Lower = less waiting, more late sentences
original_audio true also offer the original sound
subtitles target target, source, both, none
background_original_db null e.g. -20: keep the original sound quietly under the dub
playback public or signed
record true keep a recording after the stream
video_transcode false re-encode the picture (for encoders without a 2 s keyframe interval)
reconnect_window_s 60 10-300
restream [] up to 3 × {language, rtmp_url}
livekit null {url, api_key, api_secret, room, participant?} for source: livekit
metadata {} up to 20 string pairs, returned as is

Code samples

Python

import requests
API, KEY = "https://api.example.com", "fds_live_..."
s = requests.post(f"{API}/v1/streams", headers={"Authorization": f"Bearer {KEY}", "Idempotency-Key": "demo-42"},
                  json={"name": "Demo stream 42", "languages": ["hi"]}).json()
print(s["ingest"]["rtmp"]["server_url"], s["ingest"]["rtmp"]["stream_key"], s["playback"]["player_url"])

Node.js

const r = await fetch("https://api.example.com/v1/streams", {
  method: "POST",
  headers: {Authorization: `Bearer ${process.env.FDS_KEY}`, "Content-Type": "application/json"},
  body: JSON.stringify({name: "Demo stream 42", languages: ["hi", "ta"], engine: "gemini"})
});
const s = await r.json();