Documentation
Guides and API reference for uploads, image transforms and video.
npm install @cd2/fileboy-react API https://api.fileboy.io
Documentation menu
Videos API reference
The videos 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.ioUpload video, read processing state and stream it.
/videos/{id}/posterGet a video's poster image
The custom poster if one was uploaded, otherwise the generated frame. An uploaded poster is virus scanned like any upload, and refused or held like one.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
fb_exp | query | integer (int64) | Unix time in seconds after which a signed URL stops working (30 seconds of leeway for clock differences). Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated). |
fb_sig | query | string | The signature of a signed URL. Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated), ignored otherwise. |
fb_ip | query | string | An IP address or CIDR range the request must come from. Part of the signature, so it cannot be added or removed afterwards. |
fb_key | query | string | For a URL signed with a scoped key or a personal access token: its prefix (fbk_ or fbp_ and 12 characters). fb_sig is then keyed with its signing key, the hex HMAC-SHA256 of fileboy-url-signing-v1 keyed with the whole key. Accepted only while it works, only with files:read (files, images, file data, share pages) or videos:read (videos, downloads, playlists), and for a token only while its owner is a member of the app that owns what is signed. |
Responses
200 | The image.image/* |
400 | The id is not a valid video id.application/json |
401 | The app requires signed reads, or the file's read permission is authenticated, and the request has no signature. In an app that requires signed reads the same answer is given whether or not the file exists.application/json |
403 | The signature is wrong (signature_invalid: tampered, for another file, transform or filename, or made with another key), has expired (signature_expired) or the request comes from an address the URL is not valid for (ip_not_allowed).application/json |
404 | poster_not_found: the video has no poster yet. Or no such video exists.application/json |
409 | Only for an app with holdDownloadsUntilScanned on: file_scan_pending, the file is still being scanned (try again shortly), file_scan_failed, it could not be scanned, or file_not_scanned, it was skipped (larger than the scan limit, or uploaded while scanning was off).application/json |
500 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/posterCheck a video's poster image
Same as the GET, without the body.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
fb_exp | query | integer (int64) | Unix time in seconds after which a signed URL stops working (30 seconds of leeway for clock differences). Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated). |
fb_sig | query | string | The signature of a signed URL. Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated), ignored otherwise. |
fb_ip | query | string | An IP address or CIDR range the request must come from. Part of the signature, so it cannot be added or removed afterwards. |
fb_key | query | string | For a URL signed with a scoped key or a personal access token: its prefix (fbk_ or fbp_ and 12 characters). fb_sig is then keyed with its signing key, the hex HMAC-SHA256 of fileboy-url-signing-v1 keyed with the whole key. Accepted only while it works, only with files:read (files, images, file data, share pages) or videos:read (videos, downloads, playlists), and for a token only while its owner is a member of the app that owns what is signed. |
Responses
200 | Headers only. |
400 | The id is not a valid video id.application/json |
401 | The app requires signed reads, or the file's read permission is authenticated, and the request has no signature. In an app that requires signed reads the same answer is given whether or not the file exists.application/json |
403 | The signature is wrong (signature_invalid: tampered, for another file, transform or filename, or made with another key), has expired (signature_expired) or the request comes from an address the URL is not valid for (ip_not_allowed).application/json |
404 | poster_not_found: the video has no poster yet. Or no such video exists.application/json |
409 | Only for an app with holdDownloadsUntilScanned on: file_scan_pending, the file is still being scanned (try again shortly), file_scan_failed, it could not be scanned, or file_not_scanned, it was skipped (larger than the scan limit, or uploaded while scanning was off).application/json |
500 | An error. error is a short code and message says what went wrong.application/json |
/videos/uploadUpload a video or an audio file
The file's content type must be video/* or audio/* (mp3, m4a, aac, wav, flac, ogg, opus, webm audio and so on). An audio file becomes a video asset with kind: "audio": it is encoded to AAC at 64 and 128 kbps, gets a waveform (GET /videos/{id}/waveform.json) and a cover (its embedded artwork, or a drawing of the waveform), and has every video feature that doesn't need a picture. The kind is set again from what the file holds once it is read: a video/webm with sound and no picture is audio. Encoding happens in the background: poll /videos/{id}/data until extractionStatus finishes. Not available with the demo key. The file can be up to the plan's upload size limit, 5 GB on every plan (413 file_too_large). Held to the app's storage limit (403 storage_limit_reached). A video's files never count towards the file limit, so it doesn't refuse one; the plan's video and audio allowances are not enforced (except Free's videos, below).
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
multipart/form-datafile * | string (binary) | The video. |
data * | string | A JSON string. |
Responses
200 | The new video. This response is not wrapped in data.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 |
402 | spend_cap_reached: the app is at its spend cap while overage billing is on, so no new video encoding starts until the month ends at midnight UTC or the cap is raised. Beside error and message the body has resetsAt (when it lifts) and usageUrl (the app's Usage page, where the cap is set). Existing videos keep playing. See /docs/usage-alerts.application/json |
403 | Refused. storage_limit_reached when the file would take the app past its storage limit, or limit_reached past its file limit, counting what the app's open upload sessions reserve (checked before the file is stored and again as it is saved, so uploads sent at once can't overshoot; an app already over a limit keeps its files but takes no more). origin_not_allowed when the request uses the public key from a page that is not in the app's allowedOrigins (or has no Origin or Referer, when the app sets blockRequestsWithoutOrigin). Requests signed with the private key are never refused for their origin. video_limit_reached for a video (not an audio file) when the app is on the Free plan and has as many videos as the plan includes (15), counting open video upload sessions; videos in the trash don't count. Paid plans' video allowances never refuse an upload.application/json |
413 | An error. error is a short code and message says what went wrong.application/json |
500 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/unlockExchange a password video's password for a playback grant
For a video whose visibility is password. The password goes in the body, never the URL. The answer's query (fb_grant=...) goes on every request for the video, as <fileboy-player signed-query>: its data, manifests, segments, poster, captions, chapters, thumbnails, player config and downloads. A grant opens that video only, lasts four hours, and stops at once if the password is changed or the video stops being a password video; reads with it then answer 403 grant_expired or grant_invalid. It never opens the video's original file, and a player config read with it offers no download of the original. The grant travels in URLs, so treat it like the password while it lasts. Needs no key: the password is the permission. Each address (an IPv6 /64) gets 10 attempts per video in 15 minutes, right or wrong (then 429 rate_limited with Retry-After). After 200 wrong attempts on a video in 15 minutes, attempts are slowed and wrong ones answer 429, but the right password still succeeds. 409 password_not_accepted when the video doesn't take a password, including every video of an app that requires signed reads. Answers Cache-Control: no-store.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
Request body
application/jsonpassword * | string |
Responses
200 | A playback grant.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | invalid_password.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
409 | password_not_accepted: the video doesn't take a password.application/json |
429 | rate_limited: too many attempts. Wait for Retry-After seconds.application/json |
/videos/{id}/dataGet a video's processing state and renditions
A video still being uploaded (its upload session reserved the id) answers 200 with uploading: true, no renditions and extractionStatus: pending, rather than 404, until its upload completes. A recording from <fileboy-recorder>, and an upload that is already H.264 with AAC sound (or none) in a profile every browser plays (most phone and camera MP4 and MOV files, up to 2 GiB), usually has playable: true and a playableSource within seconds of its upload completing, while its renditions are still being made: play that file where canPlayType of its type says the browser can. A video of at least 20 seconds with more than one quality is playable: true once its first quality is stored, while the rest are made (a shorter one, one with a single quality and an audio file once they are done): play its manifest, and load it again once extractionStatus is done for every quality. processing says how far processing has got (progress 0 to 100 and the step) while it is queued or processing.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
fb_exp | query | integer (int64) | Unix time in seconds after which a signed URL stops working (30 seconds of leeway for clock differences). Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated). |
fb_sig | query | string | The signature of a signed URL. Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated), ignored otherwise. |
fb_ip | query | string | An IP address or CIDR range the request must come from. Part of the signature, so it cannot be added or removed afterwards. |
fb_key | query | string | For a URL signed with a scoped key or a personal access token: its prefix (fbk_ or fbp_ and 12 characters). fb_sig is then keyed with its signing key, the hex HMAC-SHA256 of fileboy-url-signing-v1 keyed with the whole key. Accepted only while it works, only with files:read (files, images, file data, share pages) or videos:read (videos, downloads, playlists), and for a token only while its owner is a member of the app that owns what is signed. |
Responses
200 | The video.application/json |
400 | The id is not a valid video id.application/json |
401 | The app requires signed reads, or the file's read permission is authenticated, and the request has no signature. In an app that requires signed reads the same answer is given whether or not the file exists.application/json |
403 | The signature is wrong (signature_invalid: tampered, for another file, transform or filename, or made with another key), has expired (signature_expired) or the request comes from an address the URL is not valid for (ip_not_allowed).application/json |
404 | No such video exists.application/json |
500 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/infoGet a video's basic details
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
fb_exp | query | integer (int64) | Unix time in seconds after which a signed URL stops working (30 seconds of leeway for clock differences). Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated). |
fb_sig | query | string | The signature of a signed URL. Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated), ignored otherwise. |
fb_ip | query | string | An IP address or CIDR range the request must come from. Part of the signature, so it cannot be added or removed afterwards. |
fb_key | query | string | For a URL signed with a scoped key or a personal access token: its prefix (fbk_ or fbp_ and 12 characters). fb_sig is then keyed with its signing key, the hex HMAC-SHA256 of fileboy-url-signing-v1 keyed with the whole key. Accepted only while it works, only with files:read (files, images, file data, share pages) or videos:read (videos, downloads, playlists), and for a token only while its owner is a member of the app that owns what is signed. |
Responses
200 | The video. Not wrapped in data.application/json |
401 | The app requires signed reads, or the file's read permission is authenticated, and the request has no signature. In an app that requires signed reads the same answer is given whether or not the file exists.application/json |
403 | The signature is wrong (signature_invalid: tampered, for another file, transform or filename, or made with another key), has expired (signature_expired) or the request comes from an address the URL is not valid for (ip_not_allowed).application/json |
500 | The id is not valid or no such video exists.application/json |
/videos/{id}/player-configGet the player branding for a video
The app's player branding with the video's own on top, ready for a player: colours, the logo as an image URL, every control's switch, a download URL for the original when downloads are on, the autoplay, muted and loop defaults, and the call-to-action button. <fileboy-player branding> and the watch and embed pages read it. A video with no branding gets the defaults (no colours or logo, every control but download). In an app that requires signed reads it needs the video's signature like the other video routes, and the logo and download URLs come back signed to expire with it. Cached for at most a minute, so dashboard changes show quickly.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
fb_exp | query | integer (int64) | Unix time in seconds after which a signed URL stops working (30 seconds of leeway for clock differences). Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated). |
fb_sig | query | string | The signature of a signed URL. Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated), ignored otherwise. |
fb_ip | query | string | An IP address or CIDR range the request must come from. Part of the signature, so it cannot be added or removed afterwards. |
fb_key | query | string | For a URL signed with a scoped key or a personal access token: its prefix (fbk_ or fbp_ and 12 characters). fb_sig is then keyed with its signing key, the hex HMAC-SHA256 of fileboy-url-signing-v1 keyed with the whole key. Accepted only while it works, only with files:read (files, images, file data, share pages) or videos:read (videos, downloads, playlists), and for a token only while its owner is a member of the app that owns what is signed. |
Responses
200 | The resolved branding.application/json |
400 | The id is not a valid video id.application/json |
401 | The app requires signed reads, or the file's read permission is authenticated, and the request has no signature. In an app that requires signed reads the same answer is given whether or not the file exists.application/json |
403 | The signature is wrong (signature_invalid: tampered, for another file, transform or filename, or made with another key), has expired (signature_expired) or the request comes from an address the URL is not valid for (ip_not_allowed).application/json |
404 | No such video exists.application/json |
500 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/manifestGet the streaming manifest
An HLS (application/x-mpegURL) or DASH (application/dash+xml) manifest for players. Each GET counts as a play. type=auto picks DASH for Chrome and HLS for everything else. Once the video's seek-preview thumbnails are ready, the HLS manifest also has an #EXT-X-IMAGE-STREAM-INF line pointing at images.m3u8, for trick play on TV players (not for audio files).
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
type | query | "auto" | "hls" | "dash" | |
fb_exp | query | integer (int64) | Unix time in seconds after which a signed URL stops working (30 seconds of leeway for clock differences). Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated). |
fb_sig | query | string | The signature of a signed URL. Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated), ignored otherwise. |
fb_ip | query | string | An IP address or CIDR range the request must come from. Part of the signature, so it cannot be added or removed afterwards. |
fb_key | query | string | For a URL signed with a scoped key or a personal access token: its prefix (fbk_ or fbp_ and 12 characters). fb_sig is then keyed with its signing key, the hex HMAC-SHA256 of fileboy-url-signing-v1 keyed with the whole key. Accepted only while it works, only with files:read (files, images, file data, share pages) or videos:read (videos, downloads, playlists), and for a token only while its owner is a member of the app that owns what is signed. |
Responses
200 | The manifest.application/x-mpegURL, application/dash+xml |
206 | The requested byte range of the manifest, with its Content-Range. A Range that can't be parsed is ignored and the whole manifest sent with a 200.application/x-mpegURL, application/dash+xml |
400 | invalid_type: type is not hls, dash or auto. Or the id is not a valid video id.application/json |
401 | The app requires signed reads, or the file's read permission is authenticated, and the request has no signature. In an app that requires signed reads the same answer is given whether or not the file exists.application/json |
403 | The signature is wrong (signature_invalid: tampered, for another file, transform or filename, or made with another key), has expired (signature_expired) or the request comes from an address the URL is not valid for (ip_not_allowed).application/json |
404 | No such video exists.application/json |
409 | video_not_ready: the video is still being processed and has no manifest yet. Try again once it is ready (the video.ready webhook, or GET /videos/{id}/data). Not counted as a play.application/json |
416 | The Range holds no bytes of the manifest (it starts past the end). Content-Range gives its size, as bytes */SIZE. |
/videos/{id}/manifestCheck the streaming manifest
Same as the GET, without the body and without counting a play.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
type | query | "auto" | "hls" | "dash" | |
fb_exp | query | integer (int64) | Unix time in seconds after which a signed URL stops working (30 seconds of leeway for clock differences). Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated). |
fb_sig | query | string | The signature of a signed URL. Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated), ignored otherwise. |
fb_ip | query | string | An IP address or CIDR range the request must come from. Part of the signature, so it cannot be added or removed afterwards. |
fb_key | query | string | For a URL signed with a scoped key or a personal access token: its prefix (fbk_ or fbp_ and 12 characters). fb_sig is then keyed with its signing key, the hex HMAC-SHA256 of fileboy-url-signing-v1 keyed with the whole key. Accepted only while it works, only with files:read (files, images, file data, share pages) or videos:read (videos, downloads, playlists), and for a token only while its owner is a member of the app that owns what is signed. |
Responses
200 | Headers only. |
206 | Headers only. |
400 | invalid_type: type is not hls, dash or auto. Or the id is not a valid video id.application/json |
401 | The app requires signed reads, or the file's read permission is authenticated, and the request has no signature. In an app that requires signed reads the same answer is given whether or not the file exists.application/json |
403 | The signature is wrong (signature_invalid: tampered, for another file, transform or filename, or made with another key), has expired (signature_expired) or the request comes from an address the URL is not valid for (ip_not_allowed).application/json |
404 | No such video exists.application/json |
409 | video_not_ready: the video is still being processed and has no manifest yet. Try again once it is ready (the video.ready webhook, or GET /videos/{id}/data). Not counted as a play.application/json |
416 | The Range holds no bytes of the manifest (it starts past the end). Content-Range gives its size, as bytes */SIZE. |
/videos/{id}/hls-sub-manifestGet one rendition's HLS playlist
Referenced by the main HLS manifest. Players follow it automatically.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
videoFileId * | query | string | A rendition's id from videoFiles in the video data. |
fb_exp | query | integer (int64) | Unix time in seconds after which a signed URL stops working (30 seconds of leeway for clock differences). Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated). |
fb_sig | query | string | The signature of a signed URL. Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated), ignored otherwise. |
fb_ip | query | string | An IP address or CIDR range the request must come from. Part of the signature, so it cannot be added or removed afterwards. |
fb_key | query | string | For a URL signed with a scoped key or a personal access token: its prefix (fbk_ or fbp_ and 12 characters). fb_sig is then keyed with its signing key, the hex HMAC-SHA256 of fileboy-url-signing-v1 keyed with the whole key. Accepted only while it works, only with files:read (files, images, file data, share pages) or videos:read (videos, downloads, playlists), and for a token only while its owner is a member of the app that owns what is signed. |
Responses
200 | An HLS media playlist.application/x-mpegURL |
400 | missing_video_file_id: no videoFileId. Or the id is not a valid video id.application/json |
401 | The app requires signed reads, or the file's read permission is authenticated, and the request has no signature. In an app that requires signed reads the same answer is given whether or not the file exists.application/json |
403 | The signature is wrong (signature_invalid: tampered, for another file, transform or filename, or made with another key), has expired (signature_expired) or the request comes from an address the URL is not valid for (ip_not_allowed).application/json |
404 | video_file_not_found: the video has no rendition with that id. Or no such video exists.application/json |
409 | video_not_ready: the video, or this rendition, is still being processed. Try again once it is ready.application/json |
500 | manifest_error: the rendition's stored segment list can't be read.application/json |
/videos/{id}/hls-sub-manifestCheck one rendition's HLS playlist
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
videoFileId * | query | string | |
fb_exp | query | integer (int64) | Unix time in seconds after which a signed URL stops working (30 seconds of leeway for clock differences). Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated). |
fb_sig | query | string | The signature of a signed URL. Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated), ignored otherwise. |
fb_ip | query | string | An IP address or CIDR range the request must come from. Part of the signature, so it cannot be added or removed afterwards. |
fb_key | query | string | For a URL signed with a scoped key or a personal access token: its prefix (fbk_ or fbp_ and 12 characters). fb_sig is then keyed with its signing key, the hex HMAC-SHA256 of fileboy-url-signing-v1 keyed with the whole key. Accepted only while it works, only with files:read (files, images, file data, share pages) or videos:read (videos, downloads, playlists), and for a token only while its owner is a member of the app that owns what is signed. |
Responses
200 | Headers only. |
400 | missing_video_file_id: no videoFileId. Or the id is not a valid video id.application/json |
401 | The app requires signed reads, or the file's read permission is authenticated, and the request has no signature. In an app that requires signed reads the same answer is given whether or not the file exists.application/json |
403 | The signature is wrong (signature_invalid: tampered, for another file, transform or filename, or made with another key), has expired (signature_expired) or the request comes from an address the URL is not valid for (ip_not_allowed).application/json |
404 | video_file_not_found: the video has no rendition with that id. Or no such video exists.application/json |
409 | video_not_ready: the video, or this rendition, is still being processed. Try again once it is ready.application/json |
500 | manifest_error: the rendition's stored segment list can't be read.application/json |
/videos/{id}/fileGet one encoded rendition
Referenced by the manifests. Supports Range requests.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
file * | query | string | The rendition's file name, as used in the manifest. |
v | query | integer | The video's version, which the manifests put on the URL from version 2. Missing counts as 1. Any other than the current version is 410 version_replaced: the manifest is out of date, fetch it again. |
fb_exp | query | integer (int64) | Unix time in seconds after which a signed URL stops working (30 seconds of leeway for clock differences). Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated). |
fb_sig | query | string | The signature of a signed URL. Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated), ignored otherwise. |
fb_ip | query | string | An IP address or CIDR range the request must come from. Part of the signature, so it cannot be added or removed afterwards. |
fb_key | query | string | For a URL signed with a scoped key or a personal access token: its prefix (fbk_ or fbp_ and 12 characters). fb_sig is then keyed with its signing key, the hex HMAC-SHA256 of fileboy-url-signing-v1 keyed with the whole key. Accepted only while it works, only with files:read (files, images, file data, share pages) or videos:read (videos, downloads, playlists), and for a token only while its owner is a member of the app that owns what is signed. |
Responses
200 | The bytes.*/* |
206 | The requested byte range (HLS fetches segments this way).*/* |
401 | The app requires signed reads, or the file's read permission is authenticated, and the request has no signature. In an app that requires signed reads the same answer is given whether or not the file exists.application/json |
403 | The signature is wrong (signature_invalid: tampered, for another file, transform or filename, or made with another key), has expired (signature_expired) or the request comes from an address the URL is not valid for (ip_not_allowed).application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
410 | The video was replaced since this URL was made (version_replaced).application/json |
416 | The Range holds no bytes of the file (it starts past the end, or is empty). Content-Range gives the file's size, as bytes */SIZE. A Range sent with an If-Range that doesn't name the file's current ETag is ignored and the whole file sent instead. |
/videos/{id}/fileCheck one encoded rendition
Same as the GET, without the body: the size is in Content-Length (or, for a Range, the range's, with Content-Range). The rendition is not read from storage.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
file * | query | string | The rendition's file name, as used in the manifest. |
v | query | integer | The video's version, which the manifests put on the URL from version 2. Missing counts as 1. Any other than the current version is 410 version_replaced: the manifest is out of date, fetch it again. |
fb_exp | query | integer (int64) | Unix time in seconds after which a signed URL stops working (30 seconds of leeway for clock differences). Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated). |
fb_sig | query | string | The signature of a signed URL. Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated), ignored otherwise. |
fb_ip | query | string | An IP address or CIDR range the request must come from. Part of the signature, so it cannot be added or removed afterwards. |
fb_key | query | string | For a URL signed with a scoped key or a personal access token: its prefix (fbk_ or fbp_ and 12 characters). fb_sig is then keyed with its signing key, the hex HMAC-SHA256 of fileboy-url-signing-v1 keyed with the whole key. Accepted only while it works, only with files:read (files, images, file data, share pages) or videos:read (videos, downloads, playlists), and for a token only while its owner is a member of the app that owns what is signed. |
Responses
200 | Headers only. |
206 | Headers only, for the requested byte range. |
401 | The app requires signed reads, or the file's read permission is authenticated, and the request has no signature. In an app that requires signed reads the same answer is given whether or not the file exists.application/json |
403 | The signature is wrong (signature_invalid: tampered, for another file, transform or filename, or made with another key), has expired (signature_expired) or the request comes from an address the URL is not valid for (ip_not_allowed).application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
410 | The video was replaced since this URL was made (version_replaced).application/json |
416 | The Range holds no bytes of the file (it starts past the end, or is empty). Content-Range gives the file's size, as bytes */SIZE. A Range sent with an If-Range that doesn't name the file's current ETag is ignored and the whole file sent instead. |
/videos/{id}/poster/uploadUpload a custom poster
The content type must be image/*, at most 10 MB, and the file itself an image (JPEG, PNG, WebP, HEIC, GIF and the like): one whose bytes aren't is refused with 400 invalid_image. Replaces the video's custom poster. Needs the app's private key: the public key or an access token gets 403 private_key_required, as the public key is in every page that embeds the video. Not available with the demo key.
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
multipart/form-datafile * | string (binary) |
Responses
200 | The stored image file.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 | private_key_required without a request signed with the private key, storage_limit_reached when the poster would take it past its storage limit. A poster is part of its video, so the file limit doesn't apply.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
413 | file_too_large when the upload is over 10 MB or the plan's upload size limit.application/json |
500 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/transcripts/uploadAttach a transcript
The content type must be text/*, and the file a WebVTT document with at least one cue, at most 512 KB: it is checked like an edit (PUT /videos/{id}/transcripts/{transcriptId}), and a file that isn't WebVTT, has no cues, or has a cue that ends before it starts is refused with 400 invalid_vtt, naming the line. Needs the app's private key: the public key or an access token gets 403 private_key_required, as the public key is in every page that embeds the video. Not available with the demo key.
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
multipart/form-datafile * | string (binary) | The transcript. |
data * | string | A JSON string. |
Responses
200 | The new transcript.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 | private_key_required without a request signed with the private key, storage_limit_reached when the transcript would take it past its storage limit. A caption track is part of its video, so the file limit doesn't apply.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
413 | file_too_large when the upload is over 10 MB or the plan's upload size limit.application/json |
500 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/thumbnails.vttGet a video's seek-preview thumbnails as WebVTT
One cue per frame, each pointing at its region of a sprite sheet with a media fragment (.../thumbnails/0.webp?v=...#xywh=x,y,w,h). The format the Fileboy player, Plyr and most other players read for previews over the progress bar. Sheet URLs are absolute and carry this request's signature on, so in an app that requires signed reads sign this URL (or add signVideo's query) and the player can follow the rest. One frame a second for videos up to 100 seconds, then up to 100 frames spread evenly up to about 16 minutes, one every 10 seconds up to 50 minutes, and at most 300 for longer videos. Regions are in the sheet's pixels: tiles are stored at 2x (384x216 for 16:9) to be shown at half that, 192x108. Thumbnails made before WebP sheets point at .jpg sheets with 1x tiles.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
fb_exp | query | integer (int64) | Unix time in seconds after which a signed URL stops working (30 seconds of leeway for clock differences). Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated). |
fb_sig | query | string | The signature of a signed URL. Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated), ignored otherwise. |
fb_ip | query | string | An IP address or CIDR range the request must come from. Part of the signature, so it cannot be added or removed afterwards. |
fb_key | query | string | For a URL signed with a scoped key or a personal access token: its prefix (fbk_ or fbp_ and 12 characters). fb_sig is then keyed with its signing key, the hex HMAC-SHA256 of fileboy-url-signing-v1 keyed with the whole key. Accepted only while it works, only with files:read (files, images, file data, share pages) or videos:read (videos, downloads, playlists), and for a token only while its owner is a member of the app that owns what is signed. |
Responses
200 | The thumbnails track.text/vtt |
400 | The id is not a valid video id.application/json |
401 | The app requires signed reads, or the file's read permission is authenticated, and the request has no signature. In an app that requires signed reads the same answer is given whether or not the file exists.application/json |
403 | The signature is wrong (signature_invalid: tampered, for another file, transform or filename, or made with another key), has expired (signature_expired) or the request comes from an address the URL is not valid for (ip_not_allowed).application/json |
404 | No such video (video_not_found), or its thumbnails are not made yet, being made, or failed (thumbnails_not_found). See thumbnails.status in the video's data.application/json |
500 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/thumbnails.jsonGet a video's seek-preview thumbnails as a JSON storyboard
The same thumbnails as the WebVTT, for players that would rather not parse it: the tile size, the sheets and every tile's time range and position. URLs carry this request's signature on.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
fb_exp | query | integer (int64) | Unix time in seconds after which a signed URL stops working (30 seconds of leeway for clock differences). Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated). |
fb_sig | query | string | The signature of a signed URL. Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated), ignored otherwise. |
fb_ip | query | string | An IP address or CIDR range the request must come from. Part of the signature, so it cannot be added or removed afterwards. |
fb_key | query | string | For a URL signed with a scoped key or a personal access token: its prefix (fbk_ or fbp_ and 12 characters). fb_sig is then keyed with its signing key, the hex HMAC-SHA256 of fileboy-url-signing-v1 keyed with the whole key. Accepted only while it works, only with files:read (files, images, file data, share pages) or videos:read (videos, downloads, playlists), and for a token only while its owner is a member of the app that owns what is signed. |
Responses
200 | The storyboard.application/json |
400 | The id is not a valid video id.application/json |
401 | The app requires signed reads, or the file's read permission is authenticated, and the request has no signature. In an app that requires signed reads the same answer is given whether or not the file exists.application/json |
403 | The signature is wrong (signature_invalid: tampered, for another file, transform or filename, or made with another key), has expired (signature_expired) or the request comes from an address the URL is not valid for (ip_not_allowed).application/json |
404 | No such video, or its thumbnails are not ready (thumbnails_not_found).application/json |
500 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/thumbnails/{sheet}.webpGet a sprite sheet of a video's seek-preview thumbnails
A WebP grid of up to 25 frames, 5 to a row, at most 1920x1080. The VTT and JSON storyboard link to these with a v parameter that changes when the thumbnails are remade, so they can be cached for long. A long video has several sheets, one per 25 frames. 404 for a video whose thumbnails were made as JPEG: use the URLs its VTT or JSON give.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
sheet * | path | integer | The sheet's number, from 0. |
v | query | string | Cache key the VTT and JSON add. Ignored by the server. |
fb_exp | query | integer (int64) | Unix time in seconds after which a signed URL stops working (30 seconds of leeway for clock differences). Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated). |
fb_sig | query | string | The signature of a signed URL. Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated), ignored otherwise. |
fb_ip | query | string | An IP address or CIDR range the request must come from. Part of the signature, so it cannot be added or removed afterwards. |
fb_key | query | string | For a URL signed with a scoped key or a personal access token: its prefix (fbk_ or fbp_ and 12 characters). fb_sig is then keyed with its signing key, the hex HMAC-SHA256 of fileboy-url-signing-v1 keyed with the whole key. Accepted only while it works, only with files:read (files, images, file data, share pages) or videos:read (videos, downloads, playlists), and for a token only while its owner is a member of the app that owns what is signed. |
Responses
200 | The sheet.image/webp |
400 | The id is not a valid video id.application/json |
401 | The app requires signed reads, or the file's read permission is authenticated, and the request has no signature. In an app that requires signed reads the same answer is given whether or not the file exists.application/json |
403 | The signature is wrong (signature_invalid: tampered, for another file, transform or filename, or made with another key), has expired (signature_expired) or the request comes from an address the URL is not valid for (ip_not_allowed).application/json |
404 | No such video or sheet, or the thumbnails are not ready.application/json |
500 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/thumbnails/{sheet}.jpgGet a JPEG sprite sheet of older seek-preview thumbnails
Thumbnails made before WebP sheets: a JPEG grid of up to 100 frames, 10 to a row, 1x. They keep working; remake them with POST /videos/{id}/thumbnails to get WebP and 2x tiles. 404 for thumbnails made as WebP: TV players get every video's sheets as JPEG from /videos/{id}/images/{sheet}.jpg.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
sheet * | path | integer | The sheet's number, from 0. |
v | query | string | Cache key the VTT and JSON add. Ignored by the server. |
fb_exp | query | integer (int64) | Unix time in seconds after which a signed URL stops working (30 seconds of leeway for clock differences). Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated). |
fb_sig | query | string | The signature of a signed URL. Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated), ignored otherwise. |
fb_ip | query | string | An IP address or CIDR range the request must come from. Part of the signature, so it cannot be added or removed afterwards. |
fb_key | query | string | For a URL signed with a scoped key or a personal access token: its prefix (fbk_ or fbp_ and 12 characters). fb_sig is then keyed with its signing key, the hex HMAC-SHA256 of fileboy-url-signing-v1 keyed with the whole key. Accepted only while it works, only with files:read (files, images, file data, share pages) or videos:read (videos, downloads, playlists), and for a token only while its owner is a member of the app that owns what is signed. |
Responses
200 | The sheet.image/jpeg |
400 | The id is not a valid video id.application/json |
401 | The app requires signed reads, or the file's read permission is authenticated, and the request has no signature. In an app that requires signed reads the same answer is given whether or not the file exists.application/json |
403 | The signature is wrong (signature_invalid: tampered, for another file, transform or filename, or made with another key), has expired (signature_expired) or the request comes from an address the URL is not valid for (ip_not_allowed).application/json |
404 | No such video or sheet, or the thumbnails are not ready.application/json |
500 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/images.m3u8Get a video's trick-play thumbnails as an HLS image playlist
An HLS image media playlist (#EXT-X-IMAGES-ONLY, Image Media Playlist spec v0.4) of the video's seek-preview thumbnail sheets, for TV players such as Roku that show thumbnails while the viewer scrubs. Players find it through the #EXT-X-IMAGE-STREAM-INF line of the HLS manifest, so there is nothing to set up. Each sheet is one entry with an #EXT-X-TILES tag giving the tile size, the grid and the seconds each tile covers. Sheet URLs are relative and carry this request's signature (or video link) on. Not for audio files.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
fb_exp | query | integer (int64) | Unix time in seconds after which a signed URL stops working (30 seconds of leeway for clock differences). Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated). |
fb_sig | query | string | The signature of a signed URL. Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated), ignored otherwise. |
fb_ip | query | string | An IP address or CIDR range the request must come from. Part of the signature, so it cannot be added or removed afterwards. |
fb_key | query | string | For a URL signed with a scoped key or a personal access token: its prefix (fbk_ or fbp_ and 12 characters). fb_sig is then keyed with its signing key, the hex HMAC-SHA256 of fileboy-url-signing-v1 keyed with the whole key. Accepted only while it works, only with files:read (files, images, file data, share pages) or videos:read (videos, downloads, playlists), and for a token only while its owner is a member of the app that owns what is signed. |
Responses
200 | The image playlist. Has an ETag.application/x-mpegURL |
304 | The If-None-Match ETag is still current. |
400 | The id is not a valid video id.application/json |
401 | The app requires signed reads, or the file's read permission is authenticated, and the request has no signature. In an app that requires signed reads the same answer is given whether or not the file exists.application/json |
403 | The signature is wrong (signature_invalid: tampered, for another file, transform or filename, or made with another key), has expired (signature_expired) or the request comes from an address the URL is not valid for (ip_not_allowed).application/json |
404 | No such video (video_not_found), an audio file, or its thumbnails are not ready (thumbnails_not_found).application/json |
500 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/images.m3u8Check a video's HLS image playlist
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
fb_exp | query | integer (int64) | Unix time in seconds after which a signed URL stops working (30 seconds of leeway for clock differences). Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated). |
fb_sig | query | string | The signature of a signed URL. Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated), ignored otherwise. |
fb_ip | query | string | An IP address or CIDR range the request must come from. Part of the signature, so it cannot be added or removed afterwards. |
fb_key | query | string | For a URL signed with a scoped key or a personal access token: its prefix (fbk_ or fbp_ and 12 characters). fb_sig is then keyed with its signing key, the hex HMAC-SHA256 of fileboy-url-signing-v1 keyed with the whole key. Accepted only while it works, only with files:read (files, images, file data, share pages) or videos:read (videos, downloads, playlists), and for a token only while its owner is a member of the app that owns what is signed. |
Responses
200 | Headers only. |
401 | The app requires signed reads, or the file's read permission is authenticated, and the request has no signature. In an app that requires signed reads the same answer is given whether or not the file exists.application/json |
403 | The signature is wrong (signature_invalid: tampered, for another file, transform or filename, or made with another key), has expired (signature_expired) or the request comes from an address the URL is not valid for (ip_not_allowed).application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
500 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/images/{sheet}.jpgGet a trick-play thumbnail sheet as JPEG
Sheet n of the seek-preview thumbnails as JPEG, the format TV players read, linked from images.m3u8. WebP sheets are converted when read; older JPEG sheets are served as stored. Cached like the sprite sheets: the playlist adds a v parameter that changes when the thumbnails are remade.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
sheet * | path | integer | The sheet's number, from 0. |
v | query | string | Cache key the playlist adds. Ignored by the server. |
fb_exp | query | integer (int64) | Unix time in seconds after which a signed URL stops working (30 seconds of leeway for clock differences). Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated). |
fb_sig | query | string | The signature of a signed URL. Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated), ignored otherwise. |
fb_ip | query | string | An IP address or CIDR range the request must come from. Part of the signature, so it cannot be added or removed afterwards. |
fb_key | query | string | For a URL signed with a scoped key or a personal access token: its prefix (fbk_ or fbp_ and 12 characters). fb_sig is then keyed with its signing key, the hex HMAC-SHA256 of fileboy-url-signing-v1 keyed with the whole key. Accepted only while it works, only with files:read (files, images, file data, share pages) or videos:read (videos, downloads, playlists), and for a token only while its owner is a member of the app that owns what is signed. |
Responses
200 | The sheet.image/jpeg |
400 | The id is not a valid video id.application/json |
401 | The app requires signed reads, or the file's read permission is authenticated, and the request has no signature. In an app that requires signed reads the same answer is given whether or not the file exists.application/json |
403 | The signature is wrong (signature_invalid: tampered, for another file, transform or filename, or made with another key), has expired (signature_expired) or the request comes from an address the URL is not valid for (ip_not_allowed).application/json |
404 | No such video or sheet, an audio file, or the thumbnails are not ready.application/json |
500 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/preview.mp4Get a video's animated preview clip
A few seconds of silent video from around the best frame, at most 360 pixels high: for hover previews in your own video lists and pages (<fileboy-player> does not show it). Made once the video is ready (preview.status). Follows the video's read access like the poster; it is not a download, so it stays available when downloads are off. Range requests get 206.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
fb_exp | query | integer (int64) | Unix time in seconds after which a signed URL stops working (30 seconds of leeway for clock differences). Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated). |
fb_sig | query | string | The signature of a signed URL. Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated), ignored otherwise. |
fb_ip | query | string | An IP address or CIDR range the request must come from. Part of the signature, so it cannot be added or removed afterwards. |
fb_key | query | string | For a URL signed with a scoped key or a personal access token: its prefix (fbk_ or fbp_ and 12 characters). fb_sig is then keyed with its signing key, the hex HMAC-SHA256 of fileboy-url-signing-v1 keyed with the whole key. Accepted only while it works, only with files:read (files, images, file data, share pages) or videos:read (videos, downloads, playlists), and for a token only while its owner is a member of the app that owns what is signed. |
Responses
200 | The file. 206 for a range.video/mp4 |
400 | The id is not a valid video id.application/json |
401 | The app requires signed reads, or the file's read permission is authenticated, and the request has no signature. In an app that requires signed reads the same answer is given whether or not the file exists.application/json |
403 | The signature is wrong (signature_invalid: tampered, for another file, transform or filename, or made with another key), has expired (signature_expired) or the request comes from an address the URL is not valid for (ip_not_allowed).application/json |
404 | No such video, or it has none yet.application/json |
416 | The Range holds no bytes of the file (it starts past the end, or is empty). Content-Range gives the file's size, as bytes */SIZE. A Range sent with an If-Range that doesn't name the file's current ETag is ignored and the whole file sent instead. |
/videos/{id}/preview.mp4Check a video's animated preview clip
Same as the GET, without the body.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
fb_exp | query | integer (int64) | Unix time in seconds after which a signed URL stops working (30 seconds of leeway for clock differences). Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated). |
fb_sig | query | string | The signature of a signed URL. Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated), ignored otherwise. |
fb_ip | query | string | An IP address or CIDR range the request must come from. Part of the signature, so it cannot be added or removed afterwards. |
fb_key | query | string | For a URL signed with a scoped key or a personal access token: its prefix (fbk_ or fbp_ and 12 characters). fb_sig is then keyed with its signing key, the hex HMAC-SHA256 of fileboy-url-signing-v1 keyed with the whole key. Accepted only while it works, only with files:read (files, images, file data, share pages) or videos:read (videos, downloads, playlists), and for a token only while its owner is a member of the app that owns what is signed. |
Responses
200 | The file. 206 for a range.video/mp4 |
400 | The id is not a valid video id.application/json |
401 | The app requires signed reads, or the file's read permission is authenticated, and the request has no signature. In an app that requires signed reads the same answer is given whether or not the file exists.application/json |
403 | The signature is wrong (signature_invalid: tampered, for another file, transform or filename, or made with another key), has expired (signature_expired) or the request comes from an address the URL is not valid for (ip_not_allowed).application/json |
404 | No such video, or it has none yet.application/json |
416 | The Range holds no bytes of the file (it starts past the end, or is empty). Content-Range gives the file's size, as bytes */SIZE. A Range sent with an If-Range that doesn't name the file's current ETag is ignored and the whole file sent instead. |
/videos/{id}/preview.gifGet a video's animated preview GIF
The same moment as a looping GIF, 320 pixels wide at 10 frames a second: for emails and link previews, where video does not play. Follows the video's read access like the poster.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
fb_exp | query | integer (int64) | Unix time in seconds after which a signed URL stops working (30 seconds of leeway for clock differences). Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated). |
fb_sig | query | string | The signature of a signed URL. Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated), ignored otherwise. |
fb_ip | query | string | An IP address or CIDR range the request must come from. Part of the signature, so it cannot be added or removed afterwards. |
fb_key | query | string | For a URL signed with a scoped key or a personal access token: its prefix (fbk_ or fbp_ and 12 characters). fb_sig is then keyed with its signing key, the hex HMAC-SHA256 of fileboy-url-signing-v1 keyed with the whole key. Accepted only while it works, only with files:read (files, images, file data, share pages) or videos:read (videos, downloads, playlists), and for a token only while its owner is a member of the app that owns what is signed. |
Responses
200 | The file. 206 for a range.image/gif |
400 | The id is not a valid video id.application/json |
401 | The app requires signed reads, or the file's read permission is authenticated, and the request has no signature. In an app that requires signed reads the same answer is given whether or not the file exists.application/json |
403 | The signature is wrong (signature_invalid: tampered, for another file, transform or filename, or made with another key), has expired (signature_expired) or the request comes from an address the URL is not valid for (ip_not_allowed).application/json |
404 | No such video, or it has none yet.application/json |
416 | The Range holds no bytes of the file (it starts past the end, or is empty). Content-Range gives the file's size, as bytes */SIZE. A Range sent with an If-Range that doesn't name the file's current ETag is ignored and the whole file sent instead. |
/videos/{id}/preview.gifCheck a video's animated preview GIF
Same as the GET, without the body.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
fb_exp | query | integer (int64) | Unix time in seconds after which a signed URL stops working (30 seconds of leeway for clock differences). Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated). |
fb_sig | query | string | The signature of a signed URL. Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated), ignored otherwise. |
fb_ip | query | string | An IP address or CIDR range the request must come from. Part of the signature, so it cannot be added or removed afterwards. |
fb_key | query | string | For a URL signed with a scoped key or a personal access token: its prefix (fbk_ or fbp_ and 12 characters). fb_sig is then keyed with its signing key, the hex HMAC-SHA256 of fileboy-url-signing-v1 keyed with the whole key. Accepted only while it works, only with files:read (files, images, file data, share pages) or videos:read (videos, downloads, playlists), and for a token only while its owner is a member of the app that owns what is signed. |
Responses
200 | The file. 206 for a range.image/gif |
400 | The id is not a valid video id.application/json |
401 | The app requires signed reads, or the file's read permission is authenticated, and the request has no signature. In an app that requires signed reads the same answer is given whether or not the file exists.application/json |
403 | The signature is wrong (signature_invalid: tampered, for another file, transform or filename, or made with another key), has expired (signature_expired) or the request comes from an address the URL is not valid for (ip_not_allowed).application/json |
404 | No such video, or it has none yet.application/json |
416 | The Range holds no bytes of the file (it starts past the end, or is empty). Content-Range gives the file's size, as bytes */SIZE. A Range sent with an If-Range that doesn't name the file's current ETag is ignored and the whole file sent instead. |
/videos/{id}/video.mp4Download a video as an MP4, highest quality
A progressive MP4 of the video with its sound, sent as an attachment named after the video and its quality. It is a streamed rendition with the audio track muxed in, not re-encoded. Like other stored files it counts towards storage. Fileboy makes two: the highest quality the video streams (1080p when it has that rendition; MP4s made before 23 Nov 2026 stop at 720p) and a smaller one (at most 480p); mp4.renditions lists them. video.mp4 is the highest. Follows the video's read access, and its downloads setting like audio.m4a: when downloads are off it is 403 downloads_disabled unless the request has the private key or a URL signed for the download scope with the video's id.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
filename | query | string | The name it is saved under. .mp4 is added. Defaults to the video's name and quality. Not part of the signature. |
v | query | integer | The video's version, which the API puts on the URL from version 2 so a cached older version is never used. Any other than the current version is 410 version_replaced. Without it the current version is served, cached briefly once the video has been replaced. |
fb_exp | query | integer (int64) | Unix time in seconds after which a signed URL stops working (30 seconds of leeway for clock differences). Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated). |
fb_sig | query | string | The signature of a signed URL. Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated), ignored otherwise. |
fb_ip | query | string | An IP address or CIDR range the request must come from. Part of the signature, so it cannot be added or removed afterwards. |
fb_key | query | string | For a URL signed with a scoped key or a personal access token: its prefix (fbk_ or fbp_ and 12 characters). fb_sig is then keyed with its signing key, the hex HMAC-SHA256 of fileboy-url-signing-v1 keyed with the whole key. Accepted only while it works, only with files:read (files, images, file data, share pages) or videos:read (videos, downloads, playlists), and for a token only while its owner is a member of the app that owns what is signed. |
Responses
200 | The file. 206 for a range.video/mp4 |
400 | The id is not a valid video id.application/json |
401 | The app requires signed reads, or the file's read permission is authenticated, and the request has no signature. In an app that requires signed reads the same answer is given whether or not the file exists.application/json |
403 | The signature is wrong (signature_invalid: tampered, for another file, transform or filename, or made with another key), has expired (signature_expired) or the request comes from an address the URL is not valid for (ip_not_allowed).application/json |
404 | No such video, or it has no MP4 download yet (mp4_not_found).application/json |
410 | The video was replaced since this URL was made (version_replaced).application/json |
416 | The Range holds no bytes of the file (it starts past the end, or is empty). Content-Range gives the file's size, as bytes */SIZE. A Range sent with an If-Range that doesn't name the file's current ETag is ignored and the whole file sent instead. |
/videos/{id}/video.mp4Check a video's MP4 download
Same as the GET, without the body: the size is in Content-Length.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
filename | query | string | The name it is saved under. .mp4 is added. Defaults to the video's name and quality. Not part of the signature. |
fb_exp | query | integer (int64) | Unix time in seconds after which a signed URL stops working (30 seconds of leeway for clock differences). Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated). |
fb_sig | query | string | The signature of a signed URL. Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated), ignored otherwise. |
fb_ip | query | string | An IP address or CIDR range the request must come from. Part of the signature, so it cannot be added or removed afterwards. |
fb_key | query | string | For a URL signed with a scoped key or a personal access token: its prefix (fbk_ or fbp_ and 12 characters). fb_sig is then keyed with its signing key, the hex HMAC-SHA256 of fileboy-url-signing-v1 keyed with the whole key. Accepted only while it works, only with files:read (files, images, file data, share pages) or videos:read (videos, downloads, playlists), and for a token only while its owner is a member of the app that owns what is signed. |
Responses
200 | The file. 206 for a range.video/mp4 |
400 | The id is not a valid video id.application/json |
401 | The app requires signed reads, or the file's read permission is authenticated, and the request has no signature. In an app that requires signed reads the same answer is given whether or not the file exists.application/json |
403 | The signature is wrong (signature_invalid: tampered, for another file, transform or filename, or made with another key), has expired (signature_expired) or the request comes from an address the URL is not valid for (ip_not_allowed).application/json |
404 | No such video, or it has no MP4 download yet.application/json |
416 | The Range holds no bytes of the file (it starts past the end, or is empty). Content-Range gives the file's size, as bytes */SIZE. A Range sent with an If-Range that doesn't name the file's current ETag is ignored and the whole file sent instead. |
/videos/{id}/mp4/{height}.mp4Download a video as an MP4 of one quality
A progressive MP4 of the video with its sound, sent as an attachment named after the video and its quality. It is a streamed rendition with the audio track muxed in, not re-encoded. Like other stored files it counts towards storage. Fileboy makes two: the highest quality the video streams (1080p when it has that rendition; MP4s made before 23 Nov 2026 stop at 720p) and a smaller one (at most 480p); mp4.renditions lists them. video.mp4 is the highest. Follows the video's read access, and its downloads setting like audio.m4a: when downloads are off it is 403 downloads_disabled unless the request has the private key or a URL signed for the download scope with the video's id.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
height * | path | integer | The rendition's height, one of mp4.renditions[].height. |
filename | query | string | The name it is saved under. .mp4 is added. Defaults to the video's name and quality. Not part of the signature. |
v | query | integer | The video's version, which the API puts on the URL from version 2 so a cached older version is never used. Any other than the current version is 410 version_replaced. Without it the current version is served, cached briefly once the video has been replaced. |
fb_exp | query | integer (int64) | Unix time in seconds after which a signed URL stops working (30 seconds of leeway for clock differences). Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated). |
fb_sig | query | string | The signature of a signed URL. Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated), ignored otherwise. |
fb_ip | query | string | An IP address or CIDR range the request must come from. Part of the signature, so it cannot be added or removed afterwards. |
fb_key | query | string | For a URL signed with a scoped key or a personal access token: its prefix (fbk_ or fbp_ and 12 characters). fb_sig is then keyed with its signing key, the hex HMAC-SHA256 of fileboy-url-signing-v1 keyed with the whole key. Accepted only while it works, only with files:read (files, images, file data, share pages) or videos:read (videos, downloads, playlists), and for a token only while its owner is a member of the app that owns what is signed. |
Responses
200 | The file. 206 for a range.video/mp4 |
400 | The id is not a valid video id.application/json |
401 | The app requires signed reads, or the file's read permission is authenticated, and the request has no signature. In an app that requires signed reads the same answer is given whether or not the file exists.application/json |
403 | The signature is wrong (signature_invalid: tampered, for another file, transform or filename, or made with another key), has expired (signature_expired) or the request comes from an address the URL is not valid for (ip_not_allowed).application/json |
404 | No such video, or no MP4 download of that height (mp4_not_found).application/json |
410 | The video was replaced since this URL was made (version_replaced).application/json |
416 | The Range holds no bytes of the file (it starts past the end, or is empty). Content-Range gives the file's size, as bytes */SIZE. A Range sent with an If-Range that doesn't name the file's current ETag is ignored and the whole file sent instead. |
/videos/{id}/mp4/{height}.mp4Check one of a video's MP4 downloads
Same as the GET, without the body: the size is in Content-Length.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
height * | path | integer | The rendition's height, one of mp4.renditions[].height. |
filename | query | string | The name it is saved under. .mp4 is added. Defaults to the video's name and quality. Not part of the signature. |
fb_exp | query | integer (int64) | Unix time in seconds after which a signed URL stops working (30 seconds of leeway for clock differences). Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated). |
fb_sig | query | string | The signature of a signed URL. Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated), ignored otherwise. |
fb_ip | query | string | An IP address or CIDR range the request must come from. Part of the signature, so it cannot be added or removed afterwards. |
fb_key | query | string | For a URL signed with a scoped key or a personal access token: its prefix (fbk_ or fbp_ and 12 characters). fb_sig is then keyed with its signing key, the hex HMAC-SHA256 of fileboy-url-signing-v1 keyed with the whole key. Accepted only while it works, only with files:read (files, images, file data, share pages) or videos:read (videos, downloads, playlists), and for a token only while its owner is a member of the app that owns what is signed. |
Responses
200 | The file. 206 for a range.video/mp4 |
400 | The id is not a valid video id.application/json |
401 | The app requires signed reads, or the file's read permission is authenticated, and the request has no signature. In an app that requires signed reads the same answer is given whether or not the file exists.application/json |
403 | The signature is wrong (signature_invalid: tampered, for another file, transform or filename, or made with another key), has expired (signature_expired) or the request comes from an address the URL is not valid for (ip_not_allowed).application/json |
404 | No such video, or no MP4 download of that height.application/json |
416 | The Range holds no bytes of the file (it starts past the end, or is empty). Content-Range gives the file's size, as bytes */SIZE. A Range sent with an If-Range that doesn't name the file's current ETag is ignored and the whole file sent instead. |
/videos/{id}/audio.m4aDownload a video's audio
The soundtrack as an M4A file (AAC-LC audio in an MP4 file, fragmented like the streaming track), sent as an attachment named after the video. It is the audio track the manifests stream, so it is ready when the video is and stores nothing extra. Keeps the source's channels: about 128 kbps for stereo. Range requests get 206. Follows the video's read access: in an app that requires signed reads, sign this URL or add signVideo's query. audio.status in the video's data says whether there is one. When the video's downloads are off (allowDownloads: false) it is 403 downloads_disabled unless the request has the private key or a URL signed for the download scope (signDownloadUrl in the SDKs); a video signature or an expiring link does not open it.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
filename | query | string | The name it is saved under. .m4a is added, and characters no OS allows become _. Defaults to the video's name. Not part of the signature. |
v | query | integer | The video's version, which the API puts on the URL from version 2 so a cached older version is never used. Any other than the current version is 410 version_replaced. Without it the current version is served, cached briefly once the video has been replaced. |
fb_exp | query | integer (int64) | Unix time in seconds after which a signed URL stops working (30 seconds of leeway for clock differences). Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated). |
fb_sig | query | string | The signature of a signed URL. Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated), ignored otherwise. |
fb_ip | query | string | An IP address or CIDR range the request must come from. Part of the signature, so it cannot be added or removed afterwards. |
fb_key | query | string | For a URL signed with a scoped key or a personal access token: its prefix (fbk_ or fbp_ and 12 characters). fb_sig is then keyed with its signing key, the hex HMAC-SHA256 of fileboy-url-signing-v1 keyed with the whole key. Accepted only while it works, only with files:read (files, images, file data, share pages) or videos:read (videos, downloads, playlists), and for a token only while its owner is a member of the app that owns what is signed. |
Responses
200 | The audio. Content-Disposition: attachment; filename="...m4a". 206 for a range.audio/mp4 |
400 | The id is not a valid video id.application/json |
401 | The app requires signed reads, or the file's read permission is authenticated, and the request has no signature. In an app that requires signed reads the same answer is given whether or not the file exists.application/json |
403 | The signature is wrong (signature_invalid: tampered, for another file, transform or filename, or made with another key), has expired (signature_expired) or the request comes from an address the URL is not valid for (ip_not_allowed).application/json |
404 | No such video (video_not_found), the video has no audio track (no_audio_track), or it is still being processed or failed (audio_not_found). The message says which.application/json |
410 | The video was replaced since this URL was made (version_replaced).application/json |
416 | The Range holds no bytes of the file (it starts past the end, or is empty). Content-Range gives the file's size, as bytes */SIZE. A Range sent with an If-Range that doesn't name the file's current ETag is ignored and the whole file sent instead. |
500 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/audio.m4aCheck a video's audio download
Same as the GET, without the body: the size is in Content-Length.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
filename | query | string | The name it is saved under. .m4a is added, and characters no OS allows become _. Defaults to the video's name. Not part of the signature. |
fb_exp | query | integer (int64) | Unix time in seconds after which a signed URL stops working (30 seconds of leeway for clock differences). Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated). |
fb_sig | query | string | The signature of a signed URL. Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated), ignored otherwise. |
fb_ip | query | string | An IP address or CIDR range the request must come from. Part of the signature, so it cannot be added or removed afterwards. |
fb_key | query | string | For a URL signed with a scoped key or a personal access token: its prefix (fbk_ or fbp_ and 12 characters). fb_sig is then keyed with its signing key, the hex HMAC-SHA256 of fileboy-url-signing-v1 keyed with the whole key. Accepted only while it works, only with files:read (files, images, file data, share pages) or videos:read (videos, downloads, playlists), and for a token only while its owner is a member of the app that owns what is signed. |
Responses
200 | Headers only. |
401 | The app requires signed reads, or the file's read permission is authenticated, and the request has no signature. In an app that requires signed reads the same answer is given whether or not the file exists.application/json |
403 | The signature is wrong (signature_invalid: tampered, for another file, transform or filename, or made with another key), has expired (signature_expired) or the request comes from an address the URL is not valid for (ip_not_allowed).application/json |
404 | No download, as for the GET.application/json |
500 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/waveform.jsonGet an audio file's waveform
The peaks of an audio file (kind: "audio"), to draw its waveform: the BBC audiowaveform JSON format (version 2, one channel, 8 bit), about 1,800 points, data holding a min and a max (-128 to 127) for each. Point i starts at i * samples_per_pixel / sample_rate seconds. Measured once when the file is processed, and again when its source is replaced. Follows the video's read access, like the poster: in an app that requires signed reads, sign this URL or add signVideo's query. waveform.url in the video's data carries it on.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
v | query | integer | The video's version, which the API puts on the URL from version 2 so a cached older version is never used. Any other than the current version is 410 version_replaced. Without it the current version is served, cached briefly once the video has been replaced. |
fb_exp | query | integer (int64) | Unix time in seconds after which a signed URL stops working (30 seconds of leeway for clock differences). Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated). |
fb_sig | query | string | The signature of a signed URL. Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated), ignored otherwise. |
fb_ip | query | string | An IP address or CIDR range the request must come from. Part of the signature, so it cannot be added or removed afterwards. |
fb_key | query | string | For a URL signed with a scoped key or a personal access token: its prefix (fbk_ or fbp_ and 12 characters). fb_sig is then keyed with its signing key, the hex HMAC-SHA256 of fileboy-url-signing-v1 keyed with the whole key. Accepted only while it works, only with files:read (files, images, file data, share pages) or videos:read (videos, downloads, playlists), and for a token only while its owner is a member of the app that owns what is signed. |
Responses
200 | The waveform.application/json |
304 | Not modified (If-None-Match). |
400 | The id is not a valid video id.application/json |
401 | The app requires signed reads, or the file's read permission is authenticated, and the request has no signature. In an app that requires signed reads the same answer is given whether or not the file exists.application/json |
403 | The signature is wrong (signature_invalid: tampered, for another file, transform or filename, or made with another key), has expired (signature_expired) or the request comes from an address the URL is not valid for (ip_not_allowed).application/json |
404 | No such video (video_not_found), or no waveform (waveform_not_found): it is a video, the audio is still being processed or failed, or its waveform could not be measured. The message says which.application/json |
410 | The video was replaced since this URL was made (version_replaced).application/json |
500 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/waveform.jsonCheck an audio file's waveform
Same as the GET, without the body.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
fb_exp | query | integer (int64) | Unix time in seconds after which a signed URL stops working (30 seconds of leeway for clock differences). Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated). |
fb_sig | query | string | The signature of a signed URL. Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated), ignored otherwise. |
fb_ip | query | string | An IP address or CIDR range the request must come from. Part of the signature, so it cannot be added or removed afterwards. |
fb_key | query | string | For a URL signed with a scoped key or a personal access token: its prefix (fbk_ or fbp_ and 12 characters). fb_sig is then keyed with its signing key, the hex HMAC-SHA256 of fileboy-url-signing-v1 keyed with the whole key. Accepted only while it works, only with files:read (files, images, file data, share pages) or videos:read (videos, downloads, playlists), and for a token only while its owner is a member of the app that owns what is signed. |
Responses
200 | Headers only. |
401 | The app requires signed reads, or the file's read permission is authenticated, and the request has no signature. In an app that requires signed reads the same answer is given whether or not the file exists.application/json |
403 | The signature is wrong (signature_invalid: tampered, for another file, transform or filename, or made with another key), has expired (signature_expired) or the request comes from an address the URL is not valid for (ip_not_allowed).application/json |
404 | No waveform, as for the GET.application/json |
500 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/transcripts/{transcriptId}Get a transcript
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
transcriptId * | path | string (uuid) | |
fb_exp | query | integer (int64) | Unix time in seconds after which a signed URL stops working (30 seconds of leeway for clock differences). Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated). |
fb_sig | query | string | The signature of a signed URL. Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated), ignored otherwise. |
fb_ip | query | string | An IP address or CIDR range the request must come from. Part of the signature, so it cannot be added or removed afterwards. |
fb_key | query | string | For a URL signed with a scoped key or a personal access token: its prefix (fbk_ or fbp_ and 12 characters). fb_sig is then keyed with its signing key, the hex HMAC-SHA256 of fileboy-url-signing-v1 keyed with the whole key. Accepted only while it works, only with files:read (files, images, file data, share pages) or videos:read (videos, downloads, playlists), and for a token only while its owner is a member of the app that owns what is signed. |
Responses
200 | The transcript text.text/* |
401 | The app requires signed reads, or the file's read permission is authenticated, and the request has no signature. In an app that requires signed reads the same answer is given whether or not the file exists.application/json |
403 | The signature is wrong (signature_invalid: tampered, for another file, transform or filename, or made with another key), has expired (signature_expired) or the request comes from an address the URL is not valid for (ip_not_allowed).application/json |
409 | Only for an app with holdDownloadsUntilScanned on: file_scan_pending, the file is still being scanned (try again shortly), file_scan_failed, it could not be scanned, or file_not_scanned, it was skipped (larger than the scan limit, or uploaded while scanning was off).application/json |
500 | No such video or transcript.application/json |
/videos/{id}/attachments/{attachmentId}/downloadDownload a file attached to a video
The attached file, saved under the attachment's name, for anyone who can watch the video: it needs exactly the access the video's data does (a signature, password grant or expiring link for a private or password video), whatever the file's own read permission. A quarantined file answers 403 file_quarantined, a disabled one 403 content_unavailable, an infected one 403 file_infected, and one held until it is scanned 409. Kept by a browser for a minute at most.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
attachmentId * | path | string (uuid) | An attachment's id, from GET /videos/{id}/attachments |
fb_exp | query | integer (int64) | Unix time in seconds after which a signed URL stops working (30 seconds of leeway for clock differences). Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated). |
fb_sig | query | string | The signature of a signed URL. Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated), ignored otherwise. |
fb_ip | query | string | An IP address or CIDR range the request must come from. Part of the signature, so it cannot be added or removed afterwards. |
fb_key | query | string | For a URL signed with a scoped key or a personal access token: its prefix (fbk_ or fbp_ and 12 characters). fb_sig is then keyed with its signing key, the hex HMAC-SHA256 of fileboy-url-signing-v1 keyed with the whole key. Accepted only while it works, only with files:read (files, images, file data, share pages) or videos:read (videos, downloads, playlists), and for a token only while its owner is a member of the app that owns what is signed. |
Responses
200 | The file.application/octet-stream |
206 | A range of the file. |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | The app requires signed reads, or the file's read permission is authenticated, and the request has no signature. In an app that requires signed reads the same answer is given whether or not the file exists.application/json |
403 | The signature is wrong (signature_invalid: tampered, for another file, transform or filename, or made with another key), has expired (signature_expired) or the request comes from an address the URL is not valid for (ip_not_allowed).application/json |
404 | No such video, or attachment (attachment_not_found).application/json |
409 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/attachments/{attachmentId}/downloadCheck a file attached to a video
Same as the GET, without the body: the size is in Content-Length.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
attachmentId * | path | string (uuid) | An attachment's id, from GET /videos/{id}/attachments |
fb_exp | query | integer (int64) | Unix time in seconds after which a signed URL stops working (30 seconds of leeway for clock differences). Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated). |
fb_sig | query | string | The signature of a signed URL. Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated), ignored otherwise. |
fb_ip | query | string | An IP address or CIDR range the request must come from. Part of the signature, so it cannot be added or removed afterwards. |
fb_key | query | string | For a URL signed with a scoped key or a personal access token: its prefix (fbk_ or fbp_ and 12 characters). fb_sig is then keyed with its signing key, the hex HMAC-SHA256 of fileboy-url-signing-v1 keyed with the whole key. Accepted only while it works, only with files:read (files, images, file data, share pages) or videos:read (videos, downloads, playlists), and for a token only while its owner is a member of the app that owns what is signed. |
Responses
200 | Headers only. |
401 | The app requires signed reads, or the file's read permission is authenticated, and the request has no signature. In an app that requires signed reads the same answer is given whether or not the file exists.application/json |
403 | The signature is wrong (signature_invalid: tampered, for another file, transform or filename, or made with another key), has expired (signature_expired) or the request comes from an address the URL is not valid for (ip_not_allowed).application/json |
404 | No such attachment, as for the GET.application/json |
/videos/{id}/chapters.vttGet a video's chapters as a WebVTT chapters track
One cue a chapter, its title as the cue text, for <track kind="chapters"> and players that read chapter tracks. The Fileboy player loads it by itself when the video's data says it has chapters. The last chapter ends with the video. Never cached unchecked, so edits show at once.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
fb_exp | query | integer (int64) | Unix time in seconds after which a signed URL stops working (30 seconds of leeway for clock differences). Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated). |
fb_sig | query | string | The signature of a signed URL. Only used for reads that need a signature (apps that require signed reads, files whose read permission is authenticated), ignored otherwise. |
fb_ip | query | string | An IP address or CIDR range the request must come from. Part of the signature, so it cannot be added or removed afterwards. |
fb_key | query | string | For a URL signed with a scoped key or a personal access token: its prefix (fbk_ or fbp_ and 12 characters). fb_sig is then keyed with its signing key, the hex HMAC-SHA256 of fileboy-url-signing-v1 keyed with the whole key. Accepted only while it works, only with files:read (files, images, file data, share pages) or videos:read (videos, downloads, playlists), and for a token only while its owner is a member of the app that owns what is signed. |
Responses
200 | The chapters track.text/vtt |
400 | The id is not a valid video id.application/json |
401 | The app requires signed reads, or the file's read permission is authenticated, and the request has no signature. In an app that requires signed reads the same answer is given whether or not the file exists.application/json |
403 | The signature is wrong (signature_invalid: tampered, for another file, transform or filename, or made with another key), has expired (signature_expired) or the request comes from an address the URL is not valid for (ip_not_allowed).application/json |
404 | No such video (video_not_found), or it has no chapters (chapters_not_found).application/json |
500 | An error. error is a short code and message says what went wrong.application/json |