Documentation
Guides and API reference for uploads, image transforms and video.
npm install @cd2/fileboy-react API https://api.fileboy.io
Documentation menu
Comments and reactions API reference
The comments and reactions endpoints, generated from the OpenAPI document you can download for code generators and API clients: openapi.json or openapi.yaml. See every endpoint for the rest of the API.
https://api.fileboy.ioViewers' reactions and timestamped comments on videos, when the owner turns them on, and moderating them: hide, delete, block and export. Viewer routes need no key but the video's own read access; moderation needs your private key.
/videos/{id}/feedbackGet a video's reactions and comments, as its player shows them
What <fileboy-player> reads: the video's effective settings, what this viewer may do, the reaction counts and timeline, and the first page (50) of comments. Always 200 for a video the reader can watch, even with both settings off (then reactions and comments are null). It checks the video's read access first, exactly like the video's other reads: a signed URL (fb_exp, fb_sig), a password grant (fb_grant) or a video link (fb_link) in the query. A private video's comments are as private as the video. Send the viewer's X-Fileboy-Viewer token or X-Fileboy-Viewer-Session to get viewer.viewerId, mine and editableUntil for them. Reading needs no identity: an expired session (or a sign-in hand-off that has ended) or a malformed token reads as anonymous, with viewer.sessionExpired: true for a session (writes still refuse it with 401 sign_in_required). timeline buckets the visible reactions of the current version by whole second (at), sorted by at, at most 2000 buckets; on a long video, where that would be more, spans of 2, 4, 8... seconds are merged (each at the second it starts) so it still covers the whole video. Hidden comments, and the replies of a hidden comment, are not returned. Answers Cache-Control: no-store.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
fb_exp | query | string | A signed URL's expiry, for a private video (see ReadSignature). |
fb_sig | query | string | A signed URL's signature, for a private video. |
fb_grant | query | string | A password video's playback grant (POST /videos/{id}/unlock). |
fb_link | query | string | A video link's token, for a video shared with an expiring link. |
X-Fileboy-Viewer | header | string | The viewer's own random token, 22 to 128 characters of A-Z a-z 0-9 _ -, made once and kept by the page (the player keeps it in localStorage). It is a secret: it lets that viewer edit and delete their comments. Fileboy stores only a hash of it. Never put it in a URL. |
X-Fileboy-Viewer-Session | header | string | A signed-in Fileboy person: <userId>.<exp>.<sig>, made by fileboy.io for the person signed in there, or fbas1.…, an app viewer session from a sign-in hand-off (POST /videos/{id}/feedback/viewer-session), good only for that app's videos. At most 30 minutes. Wins over X-Fileboy-Viewer when both are sent. |
X-Fileboy-Viewer-Token | header | string | One of the app's own users: a JWT (HS256) the app's server signed with its viewer signing secret, with the claims app (the app's id), sub, name, optional picture, iat and exp (at most an hour after iat). Wins over the other two. A token that doesn't check out is 401 viewer_token_invalid on writes, and reads as anonymous. |
Responses
200 | The video's feedback.application/json |
401 | An error. error is a short code and message says what went wrong.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/feedback/viewer-sessionExchange a sign-in hand-off's code for an app viewer session
What <fileboy-player> does on another website once the Fileboy sign-in window (fileboy.io/feedback/sign-in) posts it a one-time code. The code works once (the first try uses it up, right or wrong), for 60 seconds, from the page it was made for (the request's Origin must be exactly that origin, which must be Fileboy's or one of the app's allowedOrigins), and for a video of the same app. verifier is the PKCE verifier whose S256 hash the window was given. Any mismatch is the same 400 invalid_sign_in_code; no Origin, or an origin the app no longer allows, is 403 origin_not_allowed. The answer is an app viewer session for X-Fileboy-Viewer-Session, good for 20 minutes and only for this app's videos. Read access to the video is checked as for its other reads. Needs no key. Answers Cache-Control: no-store.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
fb_exp | query | string | A signed URL's expiry, for a private video (see ReadSignature). |
fb_sig | query | string | A signed URL's signature, for a private video. |
fb_grant | query | string | A password video's playback grant (POST /videos/{id}/unlock). |
fb_link | query | string | A video link's token, for a video shared with an expiring link. |
Request body
application/jsoncode * | string | |
verifier * | string |
Responses
201 | Signed in.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
429 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/feedback/viewer-sessionSign out of a sign-in hand-off
Ends the hand-off the X-Fileboy-Viewer-Session app viewer session came from: it can't post or be renewed any more. A correctly signed session for this video's app ends its hand-off even when it has expired (up to 12 hours ago), so a tab that slept can still sign out. A session that doesn't check out gets the same 204. Needs no key.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
fb_exp | query | string | A signed URL's expiry, for a private video (see ReadSignature). |
fb_sig | query | string | A signed URL's signature, for a private video. |
fb_grant | query | string | A password video's playback grant (POST /videos/{id}/unlock). |
fb_link | query | string | A video link's token, for a video shared with an expiring link. |
X-Fileboy-Viewer-Session | header | string | A signed-in Fileboy person: <userId>.<exp>.<sig>, made by fileboy.io for the person signed in there, or fbas1.…, an app viewer session from a sign-in hand-off (POST /videos/{id}/feedback/viewer-session), good only for that app's videos. At most 30 minutes. Wins over X-Fileboy-Viewer when both are sent. |
Responses
204 | Signed out. |
401 | An error. error is a short code and message says what went wrong.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/feedback/viewer-session/renewRenew an app viewer session
A new 20-minute app viewer session for the one in X-Fileboy-Viewer-Session, before it expires, from the page it was made for (Origin). Renewals stop 12 hours after the person signed in, when they sign out on the site, when the page's origin is taken off the app's allowed origins, and when the Fileboy session that signed in ends (signing out of Fileboy, a password change, 30 days unused): then 401 sign_in_required, and they sign in again. Needs no key.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
fb_exp | query | string | A signed URL's expiry, for a private video (see ReadSignature). |
fb_sig | query | string | A signed URL's signature, for a private video. |
fb_grant | query | string | A password video's playback grant (POST /videos/{id}/unlock). |
fb_link | query | string | A video link's token, for a video shared with an expiring link. |
X-Fileboy-Viewer-Session | header | string | A signed-in Fileboy person: <userId>.<exp>.<sig>, made by fileboy.io for the person signed in there, or fbas1.…, an app viewer session from a sign-in hand-off (POST /videos/{id}/feedback/viewer-session), good only for that app's videos. At most 30 minutes. Wins over X-Fileboy-Viewer when both are sent. |
Responses
200 | Renewed.application/json |
401 | An error. error is a short code and message says what went wrong.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
/app/viewer-signing-secretGet the app's viewer signing secret's state
Whether the app has a viewer signing secret, when it was made, and until when the one it replaced still works. Never the secret itself. Needs the app's own private key.
Authorization: public key or signed token
Responses
200 | The state.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
/app/viewer-signing-secretMake a new viewer signing secret
Makes the secret the app's server signs its own users' viewer tokens with (see X-Fileboy-Viewer-Token), and answers it this once in secret: keep it on your server. The secret it replaces keeps working for previousValidFor seconds (default 86400, at most 604800; 0 stops it at once), so tokens from servers not yet updated still work. Recorded as settings.viewer_signing_secret_rotated, never with the secret. Needs the app's own private key.
Authorization: public key or signed token
Request body
application/jsonpreviousValidFor | integer |
Responses
201 | The new secret, shown once.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
/app/viewer-signing-secretRemove the viewer signing secret
Removes the current and the previous secret: every viewer token stops working at once. Recorded as settings.viewer_signing_secret_removed. Answers 204. Needs the app's own private key.
Authorization: public key or signed token
Responses
204 | Removed. |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/commentsList a video's comments
Top-level comments oldest first, each with its replies oldest first (one level deep). Hidden comments and hidden threads are left out. Read access is checked as for the video's other reads. 403 comments_off when comments are off for the video.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
cursor | query | string | The nextCursor of the previous page. |
limit | query | integer | 1 to 100, default 50. |
fb_exp | query | string | A signed URL's expiry, for a private video (see ReadSignature). |
fb_sig | query | string | A signed URL's signature, for a private video. |
fb_grant | query | string | A password video's playback grant (POST /videos/{id}/unlock). |
fb_link | query | string | A video link's token, for a video shared with an expiring link. |
X-Fileboy-Viewer | header | string | The viewer's own random token, 22 to 128 characters of A-Z a-z 0-9 _ -, made once and kept by the page (the player keeps it in localStorage). It is a secret: it lets that viewer edit and delete their comments. Fileboy stores only a hash of it. Never put it in a URL. |
X-Fileboy-Viewer-Session | header | string | A signed-in Fileboy person: <userId>.<exp>.<sig>, made by fileboy.io for the person signed in there, or fbas1.…, an app viewer session from a sign-in hand-off (POST /videos/{id}/feedback/viewer-session), good only for that app's videos. At most 30 minutes. Wins over X-Fileboy-Viewer when both are sent. |
X-Fileboy-Viewer-Token | header | string | One of the app's own users: a JWT (HS256) the app's server signed with its viewer signing secret, with the claims app (the app's id), sub, name, optional picture, iat and exp (at most an hour after iat). Wins over the other two. A token that doesn't check out is 401 viewer_token_invalid on writes, and reads as anonymous. |
Responses
200 | A page of comments.application/json |
401 | An error. error is a short code and message says what went wrong.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/commentsComment on a video, or reply to a comment
For viewers, when the video's comments setting lets them: signed_in needs a valid X-Fileboy-Viewer-Session (else 401 sign_in_required); anyone takes a session or an X-Fileboy-Viewer token (neither is 400 viewer_required). body is plain text, 1 to 2000 characters, with at most 3 links (400 too_many_links); it is stored and returned as written, so escape it when you show it. name is the display name the viewer chooses (1 to 50 characters after trimming). at is seconds into the video, up to its end (or 24 hours while its duration isn't known), or null for a comment that isn't at a moment. A reply's parentId must be a visible top-level comment of this video (replies are one level deep), with fewer than 100 replies (409 too_many_replies). The same author posting the same body on the same video within 10 minutes is 409 duplicate_comment. A blocked viewer gets 403 viewer_blocked. Rate limits: 6 a minute per viewer (posts and edits, across the app), 12 per address and 120 per video (429 rate_limited with Retry-After). Sends a video.comment_created webhook.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
v | query | integer | The video version being watched. When given and no longer current, 410 version_replaced. |
fb_exp | query | string | A signed URL's expiry, for a private video (see ReadSignature). |
fb_sig | query | string | A signed URL's signature, for a private video. |
fb_grant | query | string | A password video's playback grant (POST /videos/{id}/unlock). |
fb_link | query | string | A video link's token, for a video shared with an expiring link. |
X-Fileboy-Viewer | header | string | The viewer's own random token, 22 to 128 characters of A-Z a-z 0-9 _ -, made once and kept by the page (the player keeps it in localStorage). It is a secret: it lets that viewer edit and delete their comments. Fileboy stores only a hash of it. Never put it in a URL. |
X-Fileboy-Viewer-Session | header | string | A signed-in Fileboy person: <userId>.<exp>.<sig>, made by fileboy.io for the person signed in there, or fbas1.…, an app viewer session from a sign-in hand-off (POST /videos/{id}/feedback/viewer-session), good only for that app's videos. At most 30 minutes. Wins over X-Fileboy-Viewer when both are sent. |
X-Fileboy-Viewer-Token | header | string | One of the app's own users: a JWT (HS256) the app's server signed with its viewer signing secret, with the claims app (the app's id), sub, name, optional picture, iat and exp (at most an hour after iat). Wins over the other two. A token that doesn't check out is 401 viewer_token_invalid on writes, and reads as anonymous. |
Request body
application/jsonbody * | string | |
at | number | null | |
parentId | string (uuid) | |
name * | string |
Responses
201 | The comment, with mine: true and editableUntil.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | An error. error is a short code and message says what went wrong.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
409 | An error. error is a short code and message says what went wrong.application/json |
410 | An error. error is a short code and message says what went wrong.application/json |
429 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/comments/{commentId}Edit your own comment
Only the viewer who wrote it (the same X-Fileboy-Viewer token or session), within 15 minutes of posting it. Someone else's comment, or none, is 404 comment_not_found; past the window, 403 edit_window_passed. A blocked viewer can't edit.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
commentId * | path | string (uuid) | The comment's id. |
fb_exp | query | string | A signed URL's expiry, for a private video (see ReadSignature). |
fb_sig | query | string | A signed URL's signature, for a private video. |
fb_grant | query | string | A password video's playback grant (POST /videos/{id}/unlock). |
fb_link | query | string | A video link's token, for a video shared with an expiring link. |
X-Fileboy-Viewer | header | string | The viewer's own random token, 22 to 128 characters of A-Z a-z 0-9 _ -, made once and kept by the page (the player keeps it in localStorage). It is a secret: it lets that viewer edit and delete their comments. Fileboy stores only a hash of it. Never put it in a URL. |
X-Fileboy-Viewer-Session | header | string | A signed-in Fileboy person: <userId>.<exp>.<sig>, made by fileboy.io for the person signed in there, or fbas1.…, an app viewer session from a sign-in hand-off (POST /videos/{id}/feedback/viewer-session), good only for that app's videos. At most 30 minutes. Wins over X-Fileboy-Viewer when both are sent. |
X-Fileboy-Viewer-Token | header | string | One of the app's own users: a JWT (HS256) the app's server signed with its viewer signing secret, with the claims app (the app's id), sub, name, optional picture, iat and exp (at most an hour after iat). Wins over the other two. A token that doesn't check out is 401 viewer_token_invalid on writes, and reads as anonymous. |
Request body
application/jsonbody * | string |
Responses
200 | The comment as it is now.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | An error. error is a short code and message says what went wrong.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
429 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/comments/{commentId}Delete your own comment
Only the viewer who wrote it, within 15 minutes of posting it, as for editing. Its replies go too. Answers 204.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
commentId * | path | string (uuid) | The comment's id. |
fb_exp | query | string | A signed URL's expiry, for a private video (see ReadSignature). |
fb_sig | query | string | A signed URL's signature, for a private video. |
fb_grant | query | string | A password video's playback grant (POST /videos/{id}/unlock). |
fb_link | query | string | A video link's token, for a video shared with an expiring link. |
X-Fileboy-Viewer | header | string | The viewer's own random token, 22 to 128 characters of A-Z a-z 0-9 _ -, made once and kept by the page (the player keeps it in localStorage). It is a secret: it lets that viewer edit and delete their comments. Fileboy stores only a hash of it. Never put it in a URL. |
X-Fileboy-Viewer-Session | header | string | A signed-in Fileboy person: <userId>.<exp>.<sig>, made by fileboy.io for the person signed in there, or fbas1.…, an app viewer session from a sign-in hand-off (POST /videos/{id}/feedback/viewer-session), good only for that app's videos. At most 30 minutes. Wins over X-Fileboy-Viewer when both are sent. |
X-Fileboy-Viewer-Token | header | string | One of the app's own users: a JWT (HS256) the app's server signed with its viewer signing secret, with the claims app (the app's id), sub, name, optional picture, iat and exp (at most an hour after iat). Wins over the other two. A token that doesn't check out is 401 viewer_token_invalid on writes, and reads as anonymous. |
Responses
204 | Deleted. |
401 | An error. error is a short code and message says what went wrong.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/reactionsReact to a moment of a video
For viewers, when the video's reactions setting lets them (the same rules as comments: signed_in or anyone). reaction is one of thumbs_up, heart, laugh, surprised, clap and celebrate. at is seconds into the video, from 0 to its duration (plus a second) when that is known. name is optional. Rate limits: 20 a minute per viewer per video, 60 per address and 600 per video (429 rate_limited with Retry-After). A blocked viewer gets 403 viewer_blocked, and 403 reactions_off when reactions are off. Sends a video.reaction_created webhook.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
v | query | integer | The video version being watched. When given and no longer current, 410 version_replaced. |
fb_exp | query | string | A signed URL's expiry, for a private video (see ReadSignature). |
fb_sig | query | string | A signed URL's signature, for a private video. |
fb_grant | query | string | A password video's playback grant (POST /videos/{id}/unlock). |
fb_link | query | string | A video link's token, for a video shared with an expiring link. |
X-Fileboy-Viewer | header | string | The viewer's own random token, 22 to 128 characters of A-Z a-z 0-9 _ -, made once and kept by the page (the player keeps it in localStorage). It is a secret: it lets that viewer edit and delete their comments. Fileboy stores only a hash of it. Never put it in a URL. |
X-Fileboy-Viewer-Session | header | string | A signed-in Fileboy person: <userId>.<exp>.<sig>, made by fileboy.io for the person signed in there, or fbas1.…, an app viewer session from a sign-in hand-off (POST /videos/{id}/feedback/viewer-session), good only for that app's videos. At most 30 minutes. Wins over X-Fileboy-Viewer when both are sent. |
X-Fileboy-Viewer-Token | header | string | One of the app's own users: a JWT (HS256) the app's server signed with its viewer signing secret, with the claims app (the app's id), sub, name, optional picture, iat and exp (at most an hour after iat). Wins over the other two. A token that doesn't check out is 401 viewer_token_invalid on writes, and reads as anonymous. |
Request body
application/jsonreaction * | ReactionKind | |
at * | number | |
name | string |
Responses
201 | The reaction.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | An error. error is a short code and message says what went wrong.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
410 | An error. error is a short code and message says what went wrong.application/json |
429 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/feedback/settingsGet who may react to and comment on a video
The video's own settings (app follows the app's videoFeedback default, which every existing video does) and what they come to (effective).
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
200 | The settings.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/feedback/settingsChoose who may react to and comment on a video
Send reactions, comments or both: app (follow the app default), off, signed_in (signed-in Fileboy people) or anyone. Settings only open feedback to people who can already watch the video. 404 video_not_found. Recorded in the activity log as video.feedback_settings_updated.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Request body
application/jsonreactions | VideoFeedbackSettingValue | |
comments | VideoFeedbackSettingValue |
Responses
200 | The settings as they are now.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
/commentsList comments, for moderation
The app's comments, newest first, hidden ones included, with who wrote them (author.viewerId, never an email). Filter by videoId, status or viewerId. With format=csv the answer is a CSV file (text/csv, Content-Disposition: attachment; filename="comments.csv") of every matching comment up to 50,000, newest first, with the columns id,videoId,videoName,parentId,at,version,status,authorName,authorKind,viewerId,body,createdAt,editedAt. Cells starting with =, +, -, @, a tab or a carriage return get a leading ' so spreadsheets don't run them.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
videoId | query | string (uuid) | Only this video's. |
status | query | "visible" | "hidden" | |
viewerId | query | string | Only this viewer's (vw_... or vu_...). |
cursor | query | string | The nextCursor of the previous page. |
limit | query | integer | 1 to 100, default 50. |
format | query | "csv" | csv for a CSV file of every match (up to 50,000) in place of a page. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
200 | A page of comments, or the CSV file.application/json, text/csv |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
/comments/{id}Hide or unhide a comment
hidden takes it (and its replies) out of what viewers see; visible puts it back. Recorded as comment.hidden or comment.unhidden. 404 comment_not_found.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The comment's id. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Request body
application/jsonstatus * | "visible" | "hidden" |
Responses
200 | The comment.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
/comments/{id}Delete a comment
Deletes it and its replies for good. Recorded as comment.deleted. Answers 204. 404 comment_not_found.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The comment's id. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
204 | Deleted. |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
/reactionsList reactions, for moderation
The app's reactions, newest first, hidden ones included. Filter by videoId, status or viewerId. With format=csv, a CSV file (reactions.csv) of every matching reaction up to 50,000 with the columns id,videoId,videoName,reaction,emoji,at,version,status,authorName,authorKind,viewerId,createdAt, cells escaped as for comments.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
videoId | query | string (uuid) | Only this video's. |
status | query | "visible" | "hidden" | |
viewerId | query | string | Only this viewer's (vw_... or vu_...). |
cursor | query | string | The nextCursor of the previous page. |
limit | query | integer | 1 to 100, default 50. |
format | query | "csv" | csv for a CSV file of every match (up to 50,000) in place of a page. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
200 | A page of reactions, or the CSV file.application/json, text/csv |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
/reactions/{id}Hide or unhide a reaction
A hidden reaction no longer counts or shows on the seek bar. Recorded as reaction.hidden or reaction.unhidden. 404 reaction_not_found.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The reaction's id. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Request body
application/jsonstatus * | "visible" | "hidden" |
Responses
200 | The reaction.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
/reactions/{id}Delete a reaction
Deletes it for good. Recorded as reaction.deleted. Answers 204. 404 reaction_not_found.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The reaction's id. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
204 | Deleted. |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
/feedback/blocksList blocked viewers
Every blocked viewer of the app, newest first (at most 1000).
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
200 | The blocks.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
/feedback/blocksBlock a viewer
Stops new comments, edits and reactions from the viewer in every video of the app. With hideExisting: true it also hides everything they posted; hidden says how many comments and reactions that hid. 404 viewer_not_found when the viewer never commented or reacted in this app. Blocking a viewer who is blocked already answers 200 with the existing block and hidden: 0. Recorded as viewer.blocked.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Request body
application/jsonviewerId * | string | |
reason | string | |
hideExisting | boolean |
Responses
200 | The viewer was blocked already.application/json |
201 | The block.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
/feedback/blocks/{viewerId}Unblock a viewer
They can comment and react again. What was hidden stays hidden until you unhide it. 404 block_not_found. Recorded as viewer.unblocked. Answers 204.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
viewerId * | path | string | The viewer's id (vw_... or vu_...). |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
204 | Unblocked. |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |