Documentation

Guides and API reference for uploads, image transforms and video.

npm install @cd2/fileboy-react
API https://api.fileboy.io

Reactions and comments

Let viewers react to a moment of a video and leave comments at a timestamp, when you turn it on. You choose who may take part, for the whole app or one video, and you can hide, delete, block and export what they post.

Turn them on

Reactions and comments are two settings, each Off, Signed-in people (signed_in) or Anyone with access (anyone). Both are off until you change them, except on recordings.

A recording (a video made with Fileboy Record: the dashboard's Record button, the Chrome extension or <fileboy-recorder>, whose data says "source": "recording") starts with reactions from anyone and comments from signed-in people, as long as neither the video nor the app has a setting saved. Once you save the app default, recordings follow it like every other video; switch one recording off on its Recording tab or its Audience tab. Fileboy's watch page shows a recording's comments beside the player.

The app default is in the app's Settings, under Video defaults, in the dashboard, or videoFeedback in PATCH /app/settings. Each video follows it (app) until you choose otherwise on the video's Audience tab (under Feedback), or with PATCH /videos/:id/feedback/settings. The player reads what applies from the video's data, so your embed code doesn't change.

The settings only ever open reactions and comments to people who can already watch the video. Every feedback request checks the video's read access first, like its stream: a private video's comments need the same signed URL, password grant or video link as the video itself (see Video privacy).

What viewers see

The player gets a React button with six reactions (👍 ❤️ 😂 😮 👏 🎉), posted at the moment playing, and dots on the seek bar where people reacted. A Comments button opens a panel of comments, oldest first, with one level of replies. A timestamped comment has a time that seeks there, and a flag on the seek bar. Viewers can edit or delete their own comments for 15 minutes.

Comments are plain text, up to 2,000 characters with at most 3 links. They are shown as text, never HTML, and only http and https URLs become links, opened in a new tab with rel="nofollow ugc noopener". If you show comments yourself, escape them the same way.

Who is who, and what is stored

With Anyone with access, a viewer is a random token the player makes once and keeps in localStorage on the page's own origin (fileboy_viewer_token). It goes in an X-Fileboy-Viewer header, never in a URL. It is what lets that browser edit its own comments, so it is a secret. Fileboy never stores it, only a hash of it (the viewer's vw_ id). The player also remembers the last display name used (fileboy_viewer_name). There are no cookies.

With Signed-in people, only someone with a known identity may post. On the watch and embed pages on fileboy.io that is a Fileboy account, passed to the player as a short viewer session (X-Fileboy-Viewer-Session, 20 minutes, renewed every 10). Their id in your app starts vu_. On your own site there are two more ways, below: a Fileboy account through a sign-in window (the same vu_ id), or one of your own users, whom your server vouches for (an id starting va_, kind app_user).

Names are whatever the viewer chooses (1 to 50 characters): required to comment, optional to react. So the only mark a name gets is Team, on comments by members of the video's app signed in with Fileboy (author.team, worked out as the comments are read, so someone who leaves the app loses it). To other viewers, anyone else is a guest: their author.kind is viewer even when they signed in, and only your moderation list and webhooks say user. A name with "Fileboy" in it is refused from anyone but the team. Nobody's email is shown or sent, to viewers, to you or in webhooks. Fileboy stores no IP addresses: rate limits count in memory, for a few minutes at most, by a hashed address key.

Player attributes

With video-id the player needs nothing more. On your own pages these attributes of <fileboy-player> (1.6.0 and later) change it:

Attributes

feedback string, optional

off hides reactions and comments on this page, whatever the video's settings, and loads nothing for them.

viewer-token string, optional

1.13.0+. A token your server signed for your logged-in user (see below). The viewerTokenProvider property is a callback that returns a fresh one instead. From 1.17.0 the player also sends it with its analytics, so the user is named in the video's Who watched (see Video analytics).

website-url string, optional

1.13.0+. Where the Fileboy sign-in window opens. https://fileboy.io by default.

viewer-session string, optional

A signed-in Fileboy person's viewer session. Only fileboy.io's own pages set this.

sign-in-url string, optional

Makes Sign in a link to this page instead of the Fileboy sign-in window. http(s) only.

HTML
1
2
3
4
5
6
7
8
<!-- On your own site: "Sign in to comment" opens the Fileboy sign-in window -->
<fileboy-player video-id="VIDEO_ID"></fileboy-player>

<!-- Your own logged-in user, vouched for by your server -->
<fileboy-player video-id="VIDEO_ID" viewer-token="TOKEN_FROM_YOUR_SERVER"></fileboy-player>

<!-- Or turn them off on one page, whatever the video's settings say -->
<fileboy-player video-id="VIDEO_ID" feedback="off"></fileboy-player>

The player fires fileboy-reaction-posted, fileboy-comment-posted, fileboy-comment-edited and fileboy-comment-deleted events. See Play a video.

Signed-in viewers on your own site

On your own site there is no Fileboy session (browsers keep a site's sign-ins to itself), so for a video set to Signed-in people the player (1.13.0 and later) has two ways to know who is watching. Both count as signed in.

Which to use

Your own users

Your site has its own login, and the viewers are your customers. Your server signs a short-lived token for the logged-in user. No Fileboy account needed, their comments show the name (and picture) you give, and you can sign them out by not sending one. Use this for a product or a members' area.

Fileboy accounts

The viewers have Fileboy accounts: your team, or clients reviewing work. Sign in to comment opens a Fileboy window and hands their sign-in to the page. Nothing to build on your server, but your site must be in the app's allowed origins.

Your own users. Make a viewer signing secret on the app's API keys page (or POST /app/viewer-signing-secret). It is shown once: keep it on your server, like a password. Then sign a token for the logged-in user with the server SDK and give it to the player as viewer-token, or set viewerTokenProvider to a callback that fetches a fresh one.

Node
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { signViewerToken } from "@cd2/fileboy-node"

// A route on your server that your page fetches, for the logged-in user only
app.get("/api/fileboy-viewer-token", requireLogin, (req, res) => {
  const token = signViewerToken({
    appId: process.env.FILEBOY_APP_ID, // the app's id
    secret: process.env.FILEBOY_VIEWER_SECRET, // fbvs_..., from the app's API keys page
    userId: req.user.id, // your id for them, 1 to 128 characters
    name: req.user.name, // what their comments show, 1 to 50 characters
    picture: req.user.avatarUrl, // optional, https only
    expiresIn: 600, // seconds, at most 3600
  })
  res.json({ token })
})
Ruby
1
2
3
4
5
6
7
8
9
token = Fileboy.sign_viewer_token(
  app_id: ENV.fetch("FILEBOY_APP_ID"),
  secret: ENV.fetch("FILEBOY_VIEWER_SECRET"),
  user_id: current_user.id,
  name: current_user.name,
  picture: current_user.avatar_url, # optional, https only
  expires_in: 600
)
render json: { token: token }
Python
1
2
3
4
5
6
7
8
9
10
11
12
import os
import fileboy

token = fileboy.sign_viewer_token(
    app_id=os.environ["FILEBOY_APP_ID"],
    secret=os.environ["FILEBOY_VIEWER_SECRET"],
    user_id=request.user.id,
    name=request.user.get_full_name(),
    picture=None,  # optional, https only
    expires_in=600,
)
return JsonResponse({"token": token})
PHP
1
2
3
4
5
6
7
8
9
10
11
use Fileboy\ViewerToken;

$token = ViewerToken::sign(
    appId: getenv('FILEBOY_APP_ID'),
    secret: getenv('FILEBOY_VIEWER_SECRET'),
    userId: $user->id,
    name: $user->name,
    picture: null, // optional, https only
    expiresIn: 600,
);
return ['token' => $token];
Without an SDK
1
2
3
4
5
6
7
8
9
10
// Any language: an HS256 JWT signed with the viewer signing secret
header  { "alg": "HS256", "typ": "JWT" }
claims  {
  "app": "APP_ID",          // must be the video's app
  "sub": "user_42",         // your id for the user
  "name": "Ada Lovelace",   // 1 to 50 characters
  "picture": "https://…",   // optional
  "iat": 1800000000,        // now, in seconds
  "exp": 1800000600         // at most an hour after iat
}
Your page
1
2
3
4
5
6
7
8
9
10
11
12
13
<fileboy-player id="player" video-id="VIDEO_ID"></fileboy-player>
<script type="module">
  const player = document.getElementById("player")
  // Called when there's no token, a minute before one expires, when Fileboy refuses one,
  // and when the viewer presses "Sign in". Return null while nobody is logged in.
  player.viewerTokenProvider = async () => {
    const res = await fetch("/api/fileboy-viewer-token", { credentials: "same-origin" })
    return res.ok ? (await res.json()).token : null
  }
  // Show your own login when they press "Sign in", then the provider is asked again
  player.addEventListener("fileboy-viewer-sign-in-request", () => openYourLogin())
  player.addEventListener("fileboy-viewer-signed-in", e => console.log("signed in", e.detail))
</script>
React
1
2
3
4
5
6
7
8
9
10
11
function Video({ videoId }: { videoId: string }) {
  const ref = useRef<HTMLElement & { viewerTokenProvider?: () => Promise<string | null> }>(null)
  useEffect(() => {
    if (!ref.current) return
    ref.current.viewerTokenProvider = async () => {
      const res = await fetch("/api/fileboy-viewer-token")
      return res.ok ? (await res.json()).token : null
    }
  }, [])
  return <fileboy-player ref={ref} video-id={videoId} />
}

Fileboy checks every token: HS256 with the app's secret, made for this video's app (a token for another app is always refused), at most an hour from iat to exp, with a minute's leeway for clocks a little apart. The player asks the provider again a minute before a token expires, and once more if Fileboy refuses one. A refused token reads as anonymous (viewer.viewerTokenInvalid) and writes get 401 viewer_token_invalid, saying why. Their id in your app is va_ and a hash of your app and your id for them, so they are never confused with a Fileboy account or another app's users. Limits, blocks and moderation are as for anyone else.

Rotating the secret. Make a new one and the old one keeps working for 24 hours (or as long as you choose, up to 7 days, or not at all), so you can update your server first. Removing the secret stops every token at once.

Anyone with the secret can comment as any of your users, so never put it in a page or an app. Sign tokens only for the user who is logged in, on your server.

Fileboy accounts. With no viewer token, Sign in to comment opens a small window on fileboy.io. The person signs in as usual (Google, GitHub and two-factor work), sees which site is asking, and presses Continue. The window hands a one-time code back to your page with postMessage, and the player swaps it for a sign-in for this app's videos that lasts 20 minutes, renews while the page is open, and is kept for the tab. It lasts at most 12 hours, ends when they press Sign out in the comments panel, and ends with their Fileboy session (signing out of Fileboy, or changing their password, signs them out here too).

HTML
1
2
3
4
5
6
7
<!-- Your page's origin must be in the app's allowed origins (app settings) -->
<fileboy-player video-id="VIDEO_ID"></fileboy-player>
<script type="module">
  const player = document.querySelector("fileboy-player")
  player.addEventListener("fileboy-viewer-signed-in", e => console.log(e.detail)) // { method: "fileboy" }
  player.addEventListener("fileboy-viewer-signed-out", e => console.log(e.detail)) // { method, reason }
</script>

Add your page's origin (like https://www.example.com) to the app's allowed origins. The window refuses any other site, and says so, without anyone signing in. An app with no allowed origins can't use it from other sites at all. Fileboy's own embeds (an iframe of fileboy.io) need nothing: they use it automatically when framed on your site. Taking a site off the list ends its sign-ins at once.

The same list limits the app's public key. While it is empty, the public key works from any site; once you add the first origin, it works only from the sites listed. So list every site that uses the public key (for uploads, say), not only the one you want sign-in on.

A picture in a viewer token is loaded by each viewer's browser straight from its URL, with no referrer, so whoever hosts it sees viewers' IP addresses. Host pictures somewhere you trust, such as your own CDN.

How it is kept safe

Pinned messages

The window only posts to your page's exact origin, and only after the window that opened it answered from that origin. The player only listens to Fileboy's origin, that window and that sign-in.

One-time codes

A code works once, for 60 seconds, from your origin, for this app's videos. Fileboy stores only a hash of it.

PKCE

The player makes a secret and gives the window only its hash. The code is useless without the secret, so a stolen code can't be used.

Nothing in URLs

No session, code or token is ever in a URL. Your page never sees the person's email or password.

If a popup blocker stops the window, the player shows a link that opens it. The player fires fileboy-viewer-signed-in ({ method: "fileboy" | "app", name? }) and fileboy-viewer-signed-out ({ method, reason: "signed-out" | "expired" }) for both ways.

Moderate them

Each video's Audience tab in the dashboard has, under Feedback, its settings, its reaction counts and its comments, with Hide, Unhide, Delete and Block viewer. The Feedback page under Videos has every comment and reaction in the app (newest first, filtered by status), the blocked viewers, and CSV exports. The app default is in Settings, under Video defaults.

Hiding takes a comment (and its replies) or a reaction out of what viewers see, and can be undone. Deleting can't. Blocking a viewer stops new comments, edits and reactions from them on every video of the app, and can hide everything they posted. Each of these is recorded in the app's activity log.

Limits and errors

Rate limits (429 rate_limited, with Retry-After in seconds)

Reactions

20 a minute per viewer per video, 60 a minute per address, 600 a minute per video.

Comments and edits

6 a minute per viewer (across the app), 12 a minute per address, 120 a minute per video.

Errors

403 reactions_off, comments_off

That setting is off.

401 sign_in_required

The setting is signed_in and there is no valid viewer session, or a write sent one that expired. Reads don't refuse it: they read as anonymous, with viewer.sessionExpired true.

401 viewer_token_invalid

A viewer token that doesn't check out: the message says why (signature, expired, another app, too long, a bad claim). Reads don't refuse it: they read as anonymous, with viewer.viewerTokenInvalid true.

400 invalid_sign_in_code, 403 origin_not_allowed

Exchanging a sign-in code that is unknown, used, expired, from another origin or app, or with the wrong verifier; or from a site that isn't in the app's allowed origins.

400 viewer_required

Neither an X-Fileboy-Viewer token nor a session.

403 viewer_blocked

You blocked this viewer.

400 validation_error

A bad name, body (1 to 2000 characters, zero-width and direction characters taken out), time (up to the video's end, or 24 hours while it is processing) or reaction, or a reply to a reply.

400 too_many_links

More than 3 links in a comment.

409 too_many_replies

The comment has 100 replies, the most one can have.

409 duplicate_comment

The same author posted the same text on the video in the last 10 minutes.

410 version_replaced

The video was replaced since the viewer started watching (the v query).

403 edit_window_passed

Editing or deleting your own comment more than 15 minutes after posting it.

404 comment_not_found, video_not_found

Also for someone else's comment.

The video's usual read refusals come first (401 video_private, password_required, signature_required, 403 grant_expired and so on).

Webhooks

video.comment_created and video.reaction_created are sent when a viewer posts. They carry the video (with its tags and metadata, so video filters apply) and a comment or reaction with its author's name, kind and viewer id. Moderation sends none. See Webhooks. The app's members can also get an email about new comments, batched.

Read a video's reactions and comments

What the player reads: the effective settings, what this viewer may do (and who they are: kind viewer, user or app_user), reaction counts and a timeline (by whole second), and the first 50 comments. Always 200 for a video the reader can watch. Send the video's own read access in the query (fb_exp and fb_sig, fb_grant or fb_link) and the viewer's X-Fileboy-Viewer, X-Fileboy-Viewer-Session or X-Fileboy-Viewer-Token header. GET /videos/:id/comments?cursor=&limit= pages through the rest. No key needed.

GET
1
https://api.fileboy.io/videos/:id/feedback

URL Params

id string

The video's id.

Example

REQUEST
1
curl https://api.fileboy.io/videos/9b1c4d1e-5c1e-4b8e-9d57-3f0a4f1a7c10/feedback -H "X-Fileboy-Viewer: VIEWER_TOKEN"
RESPONSE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
  "data": {
    "videoId": "9b1c4d1e-5c1e-4b8e-9d57-3f0a4f1a7c10",
    "appId": "3f2b8c1d-4e5a-4b6c-9d7e-8f9a0b1c2d3e",
    "version": 1,
    "settings": { "reactions": "anyone", "comments": "signed_in" },
    "viewer": {
      "signedIn": false,
      "viewerId": "vw_3f9a1c0b7e2d4a6c8b1e",
      "kind": "viewer",
      "name": null,
      "canReact": true,
      "canComment": false,
      "blocked": false,
      "sessionExpired": false,
      "viewerTokenInvalid": false
    },
    "reactions": {
      "options": [{ "reaction": "thumbs_up", "emoji": "👍", "label": "Thumbs up" }, ...],
      "counts": { "thumbs_up": 3, "heart": 2, "laugh": 0, "surprised": 0, "clap": 1, "celebrate": 0 },
      "timeline": [{ "at": 12, "reaction": "heart", "count": 2 }]
    },
    "comments": { "total": 1, "items": [COMMENT], "nextCursor": null }
  }
}

Post a comment

For a viewer, when comments are on for them. A reply names a visible top-level comment of the video as parentId. Add ?v= with the version being watched to get 410 version_replaced after a replacement. Answers 201. PATCH /videos/:id/comments/:commentId with a body edits it, and DELETE removes it with its replies, for the same viewer within 15 minutes.

POST
1
https://api.fileboy.io/videos/:id/comments

URL Params

id string

The video's id.

Body

body string

Plain text, 1 to 2000 characters.

name string

The viewer's display name, 1 to 50.

at number | null, optional

Seconds into the video, or null.

parentId string, optional

The comment it replies to.

Example

REQUEST
1
curl -X POST https://api.fileboy.io/videos/9b1c4d1e-5c1e-4b8e-9d57-3f0a4f1a7c10/comments -H "X-Fileboy-Viewer: VIEWER_TOKEN" -H "Content-Type: application/json" -d '{"body": "The bit at 1:23 is great", "at": 83.5, "name": "Sam"}'
RESPONSE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{
  "data": {
    "id": "5a0f3c2e-7b1d-4e6a-9c8b-2d4f6a8b0c1e",
    "parentId": null,
    "body": "The bit at 1:23 is great",
    "at": 83.5,
    "version": 1,
    "author": { "name": "Sam", "kind": "viewer" },
    "createdAt": "2026-11-17T15:00:00Z",
    "editedAt": null,
    "mine": true,
    "editableUntil": "2026-11-17T15:15:00Z",
    "replies": []
  }
}

React

For a viewer, when reactions are on for them. reaction is thumbs_up, heart, laugh, surprised, clap or celebrate, and at is seconds into the video. Takes ?v= like comments. Answers 201.

POST
1
https://api.fileboy.io/videos/:id/reactions

URL Params

id string

The video's id.

Body

reaction string

One of the six.

at number

Seconds into the video.

name string, optional

A display name.

Example

REQUEST
1
curl -X POST https://api.fileboy.io/videos/9b1c4d1e-5c1e-4b8e-9d57-3f0a4f1a7c10/reactions -H "X-Fileboy-Viewer: VIEWER_TOKEN" -H "Content-Type: application/json" -d '{"reaction": "heart", "at": 12.3}'
RESPONSE
1
{ "data": { "id": "0c1e5a0f-3c2e-4b1d-8e6a-9c8b2d4f6a8b", "reaction": "heart", "emoji": "❤️", "at": 12.3, "version": 1, "createdAt": "2026-11-17T15:01:00Z" } }

Exchange a sign-in code

What the player does with the code the Fileboy sign-in window posts to it: the code (once, within 60 seconds) and the PKCE verifier whose S256 hash the window was given, from the page the code was made for (its Origin header) and for a video of the same app. The code is used up by the first try, right or wrong. Answers 201 with an app viewer session for X-Fileboy-Viewer-Session. POST /videos/:id/feedback/viewer-session/renew with that header (from the same origin) answers a new one while the sign-in lasts (12 hours at most, and only while the Fileboy session that made it does), and DELETE /videos/:id/feedback/viewer-session signs out (204). No key needed.

POST
1
https://api.fileboy.io/videos/:id/feedback/viewer-session

URL Params

id string

The video's id.

Body

code string

From the sign-in window's message.

verifier string

The PKCE verifier, 43 to 128 characters.

Example

REQUEST
1
curl -X POST https://api.fileboy.io/videos/9b1c4d1e-5c1e-4b8e-9d57-3f0a4f1a7c10/feedback/viewer-session -H "Origin: https://www.example.com" -H "Content-Type: application/json" -d '{"code": "CODE", "verifier": "VERIFIER"}'
RESPONSE
1
2
3
4
5
6
7
{
  "data": {
    "session": "fbas1.…",
    "expiresAt": "2026-11-23T15:20:00Z",
    "signedInUntil": "2026-11-24T03:00:00Z"
  }
}

Get a video's reaction and comment settings

The video's own settings (app follows the app default, which every existing video does) and what they come to, in effective. Scope videos:read.

GET
1
https://api.fileboy.io/videos/:id/feedback/settings

URL Params

id string

The video's id.

Example

REQUEST
1
curl https://api.fileboy.io/videos/9b1c4d1e-5c1e-4b8e-9d57-3f0a4f1a7c10/feedback/settings -H "Authorization: token 0000000...."
RESPONSE
1
2
3
4
5
6
7
8
{
  "data": {
    "videoId": "9b1c4d1e-5c1e-4b8e-9d57-3f0a4f1a7c10",
    "reactions": "app",
    "comments": "anyone",
    "effective": { "reactions": "off", "comments": "anyone" }
  }
}

Change a video's reaction and comment settings

Send reactions, comments or both. Recorded in the activity log as video.feedback_settings_updated. 404 video_not_found. Scope videos:write.

PATCH
1
https://api.fileboy.io/videos/:id/feedback/settings

URL Params

id string

The video's id.

Body

reactions string, optional

app, off, signed_in or anyone.

comments string, optional

app, off, signed_in or anyone.

Example

REQUEST
1
curl -X PATCH https://api.fileboy.io/videos/9b1c4d1e-5c1e-4b8e-9d57-3f0a4f1a7c10/feedback/settings -H "Authorization: token 0000000...." -H "Content-Type: application/json" -d '{"comments": "anyone"}'
RESPONSE
1
2
3
4
5
6
7
8
{
  "data": {
    "videoId": "9b1c4d1e-5c1e-4b8e-9d57-3f0a4f1a7c10",
    "reactions": "app",
    "comments": "anyone",
    "effective": { "reactions": "off", "comments": "anyone" }
  }
}

Set the app default

What every video set to app follows: off (the default), signed_in or anyone, for reactions and for comments. Send one or both. Needs the app's private key.

PATCH
1
https://api.fileboy.io/app/settings

Body

videoFeedback object

{ reactions?, comments? }, each off, signed_in or anyone.

Example

REQUEST
1
curl -X PATCH https://api.fileboy.io/app/settings -H "Authorization: token 0000000...." -H "Content-Type: application/json" -d '{"videoFeedback": {"reactions": "anyone"}}'
SDKs
1
2
3
4
5
6
7
8
9
10
11
// Node (Ruby, Python and PHP have the same methods in their own style)
await fileboy.updateAppSettings({ videoFeedback: { reactions: "anyone" } })
await fileboy.updateVideoFeedbackSettings(videoId, { comments: "signed_in" })

const page = await fileboy.listComments({ status: "visible" })
await fileboy.setCommentStatus(commentId, "hidden")
await fileboy.deleteComment(commentId)
await fileboy.blockViewer(page.data[0].author.viewerId, { reason: "spam", hideExisting: true })
await fileboy.unblockViewer(viewerId)
// Also: getVideoFeedbackSettings, listReactions, setReactionStatus, deleteReaction,
// listFeedbackBlocks
RESPONSE
1
{ "data": { "videoFeedback": { "reactions": "anyone", "comments": "off" }, ... } }

List comments

Every comment in the app, newest first, hidden ones included, with author.viewerId (never an email). With format=csv the answer is comments.csv (text/csv, as an attachment) with the columns id, videoId, videoName, parentId, at, version, status, authorName, authorKind, viewerId, body, createdAt and editedAt; a cell starting with =, +, -, @, a tab or a carriage return gets a leading ' so spreadsheets don't run it. Scope videos:read.

GET
1
https://api.fileboy.io/comments

Query Params

videoId string, optional

Only this video's.

status string, optional

visible or hidden.

viewerId string, optional

Only this viewer's (vw_..., vu_... or va_...).

cursor string, optional

The previous page's nextCursor.

limit number, optional

1 to 100, default 50.

format string, optional

csv for a CSV file of every match, up to 50,000, newest first.

Example

REQUEST
1
curl "https://api.fileboy.io/comments?videoId=9b1c4d1e-5c1e-4b8e-9d57-3f0a4f1a7c10&status=visible" -H "Authorization: token 0000000...."
CSV
1
curl -o comments.csv "https://api.fileboy.io/comments?format=csv" -H "Authorization: token 0000000...."
RESPONSE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
  "data": [
    {
      "id": "5a0f3c2e-7b1d-4e6a-9c8b-2d4f6a8b0c1e",
      "videoId": "9b1c4d1e-5c1e-4b8e-9d57-3f0a4f1a7c10",
      "videoName": "Launch day",
      "parentId": null,
      "body": "The bit at 1:23 is great",
      "at": 83.5,
      "version": 1,
      "status": "visible",
      "author": { "name": "Sam", "kind": "viewer", "viewerId": "vw_3f9a1c0b7e2d4a6c8b1e" },
      "replyCount": 0,
      "createdAt": "2026-11-17T15:00:00Z",
      "editedAt": null
    }
  ],
  "nextCursor": null
}

Hide or unhide a comment

A hidden comment, and its replies, no longer show to viewers. Recorded as comment.hidden or comment.unhidden. 404 comment_not_found. Scope videos:write.

PATCH
1
https://api.fileboy.io/comments/:id

URL Params

id string

The comment's id.

Body

status string

hidden or visible.

Example

REQUEST
1
curl -X PATCH https://api.fileboy.io/comments/COMMENT_ID -H "Authorization: token 0000000...." -H "Content-Type: application/json" -d '{"status": "hidden"}'
RESPONSE
1
{ "data": { "id": "COMMENT_ID", "status": "hidden", ... } }

Delete a comment

For good, with its replies. Recorded as comment.deleted. Answers 204. Scope videos:write.

DELETE
1
https://api.fileboy.io/comments/:id

URL Params

id string

The comment's id.

Example

REQUEST
1
curl -X DELETE https://api.fileboy.io/comments/COMMENT_ID -H "Authorization: token 0000000...."
RESPONSE
1
204 No Content

List reactions

Every reaction in the app, newest first, with the same filters and paging as comments. format=csv answers reactions.csv with the columns id, videoId, videoName, reaction, emoji, at, version, status, authorName, authorKind, viewerId and createdAt. Scope videos:read.

GET
1
https://api.fileboy.io/reactions

Query Params

videoId string, optional

Only this video's.

status string, optional

visible or hidden.

viewerId string, optional

Only this viewer's (vw_..., vu_... or va_...).

cursor string, optional

The previous page's nextCursor.

limit number, optional

1 to 100, default 50.

format string, optional

csv for a CSV file of every match, up to 50,000, newest first.

Example

REQUEST
1
curl "https://api.fileboy.io/reactions?status=visible" -H "Authorization: token 0000000...."
RESPONSE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
  "data": [
    {
      "id": "0c1e5a0f-3c2e-4b1d-8e6a-9c8b2d4f6a8b",
      "videoId": "9b1c4d1e-5c1e-4b8e-9d57-3f0a4f1a7c10",
      "videoName": "Launch day",
      "reaction": "heart",
      "emoji": "❤️",
      "at": 12.3,
      "version": 1,
      "status": "visible",
      "author": { "name": null, "kind": "viewer", "viewerId": "vw_3f9a1c0b7e2d4a6c8b1e" },
      "createdAt": "2026-11-17T15:01:00Z"
    }
  ],
  "nextCursor": null
}

Hide, unhide or delete a reaction

PATCH with a status hides a reaction (it no longer counts or shows on the seek bar) or puts it back; DELETE /reactions/:id removes it for good (204). Recorded as reaction.hidden, reaction.unhidden or reaction.deleted. 404 reaction_not_found. Scope videos:write.

PATCH
1
https://api.fileboy.io/reactions/:id

URL Params

id string

The reaction's id.

Body

status string

hidden or visible.

Example

REQUEST
1
curl -X PATCH https://api.fileboy.io/reactions/REACTION_ID -H "Authorization: token 0000000...." -H "Content-Type: application/json" -d '{"status": "hidden"}'
REQUEST
1
curl -X DELETE https://api.fileboy.io/reactions/REACTION_ID -H "Authorization: token 0000000...."
RESPONSE
1
{ "data": { "id": "REACTION_ID", "status": "hidden", ... } }

Block a viewer

Stops new comments, edits and reactions from the viewer on every video of the app (they get 403 viewer_blocked). hideExisting also hides everything they posted, and hidden says how many comments and reactions that was. Blocking someone already blocked answers 200 with the existing block and hidden 0. 404 viewer_not_found when the viewer never commented or reacted in this app. Recorded as viewer.blocked. Scope videos:write.

POST
1
https://api.fileboy.io/feedback/blocks

Body

viewerId string

From a comment or reaction's author.

reason string, optional

A note for yourself.

hideExisting boolean, optional

Hide what they posted too. Off by default.

Example

REQUEST
1
curl -X POST https://api.fileboy.io/feedback/blocks -H "Authorization: token 0000000...." -H "Content-Type: application/json" -d '{"viewerId": "vw_3f9a1c0b7e2d4a6c8b1e", "reason": "spam", "hideExisting": true}'
RESPONSE
1
2
3
4
5
6
7
8
9
{
  "data": {
    "viewerId": "vw_3f9a1c0b7e2d4a6c8b1e",
    "name": "Sam",
    "reason": "spam",
    "createdAt": "2026-11-17T15:05:00Z",
    "hidden": 3
  }
}

List and remove blocks

GET /feedback/blocks lists every blocked viewer, newest first, up to 1000 (scope videos:read). DELETE /feedback/blocks/:viewerId unblocks one: 204, or 404 block_not_found, recorded as viewer.unblocked (scope videos:write). What a block hid stays hidden until you unhide it.

GET
1
https://api.fileboy.io/feedback/blocks

Example

REQUEST
1
curl https://api.fileboy.io/feedback/blocks -H "Authorization: token 0000000...."
REQUEST
1
curl -X DELETE https://api.fileboy.io/feedback/blocks/vw_3f9a1c0b7e2d4a6c8b1e -H "Authorization: token 0000000...."
RESPONSE
1
{ "data": [{ "viewerId": "vw_3f9a1c0b7e2d4a6c8b1e", "name": "Sam", "reason": "spam", "createdAt": "2026-11-17T15:05:00Z" }] }

The viewer signing secret

What your server signs your own users' viewer tokens with (see Signed-in viewers on your own site). GET says whether the app has one and when it was made, never the secret. POST makes a new one and answers it this once (201); the one it replaces keeps working for previousValidFor seconds (default 86400, 0 to 604800), so you can update your server first. DELETE removes both at once (204): every token stops working. Recorded as settings.viewer_signing_secret_rotated or settings.viewer_signing_secret_removed, never with the secret. Needs the app's own private key.

POST
1
https://api.fileboy.io/app/viewer-signing-secret

Body

previousValidFor number, optional

Seconds the replaced secret keeps working. 0 stops it at once.

Example

REQUEST
1
curl -X POST https://api.fileboy.io/app/viewer-signing-secret -H "Authorization: token 0000000...." -H "Content-Type: application/json" -d '{"previousValidFor": 3600}'
REQUEST
1
curl https://api.fileboy.io/app/viewer-signing-secret -H "Authorization: token 0000000...."
REQUEST
1
curl -X DELETE https://api.fileboy.io/app/viewer-signing-secret -H "Authorization: token 0000000...."
RESPONSE
1
2
3
4
5
6
7
8
{
  "data": {
    "configured": true,
    "createdAt": "2026-11-23T15:00:00Z",
    "previousValidUntil": "2026-11-24T15:00:00Z",
    "secret": "fbvs_…"
  }
}

Related guides