Documentation
Guides and API reference for uploads, image transforms and video.
npm install @cd2/fileboy-react API https://api.fileboy.io
Documentation menu
Management API reference
The management 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.ioList, search, update and delete your own files, videos and labels, and change whether reads need signed URLs, from your server. Needs your private key.
/filesList your files
Your app's files, newest first by default. Needs a token signed with your private key. Images Fileboy generates when resizing, and the parts of videos, are not listed. Filters combine with AND. Ranges (minSize/maxSize, the dimensions) include both ends; createdAfter and createdBefore do not. A range whose lower end is above its upper end is a 400 invalid_parameter.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
limit | query | integer | Page size, 1 to 100. |
cursor | query | string | The nextCursor of the previous page. Use it with the same filters and sort. Paging is stable: files added or deleted while you page are never skipped or repeated. |
sort | query | "createdAt" | "name" | "fileSize" | |
order | query | "asc" | "desc" | Defaults to desc, except for sort=name which defaults to asc. |
createdBefore | query | string (date-time) | Only items created before this date or time (ISO 8601). |
createdAfter | query | string (date-time) | Only items created after this date or time (ISO 8601). |
label | query | string | Only the file this label points at. |
mime | query | string | Only files whose type starts with this, like image/ or application/pdf. |
name | query | string | Only files whose name contains this text, ignoring case. |
hash | query | string | Only files with this SHA-1 hash. |
metadata | query | Metadata | Only files whose metadata contains these pairs. Send metadata[key]=value once per pair (up to 20), or one JSON object like {"orderId":"42"}. |
hasMetadata | query | string[] | Only files whose metadata has this key, with any value (an empty string counts). Repeat for more keys: all of them must be there. Keys are case-sensitive. Pairs and keys together are limited to 20. |
notReadSince | query | string (date-time) | Only files uploaded before this date or time (ISO 8601) that have not been read since: the files nobody uses any more. Reads are counted as for lastReadAt, and only from when Fileboy began counting them (the dashboard's Downloads filter shows the date): a time before then means not read since then. |
minSize | query | integer | Only files of at least this many bytes. 1048576 is 1 MB. A file with no stored size counts as 0. |
maxSize | query | integer | Only files of at most this many bytes. Not less than minSize. |
minWidth | query | integer | Only images at least this many pixels wide. With any dimension filter, only images whose dimensions are stored match: never other files. |
maxWidth | query | integer | Only images at most this many pixels wide. |
minHeight | query | integer | Only images at least this many pixels tall. |
maxHeight | query | integer | Only images at most this many pixels tall. |
folderId | query | string (uuid) | string | Only files directly in this folder, or root for files in no folder. Without a folder filter every file is listed, whatever folder it is in. 404 if there is no such folder. |
folderPath | query | string | Like folderId, by path: /products/shoes, compared ignoring case. / is the root. Send folderId or folderPath, not both. |
recursive | query | boolean | With folderId or folderPath, include the files in its subfolders too. folderId=root&recursive=true is every file. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
200 | One page of files.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
/files/deleteDelete several files
Deletes up to 100 files in one request: into the trash on a plan that keeps deleted files, or with their stored data and cached image copies on one that doesn't (see DELETE /files/{id}; retentionDays says which). Ids that are unknown, belong to another app or are already deleted are listed in notFound and are not an error, so the same request can be repeated safely. A file whose stored data cannot be removed stays in place and is listed in failed: send it again. Sends one file.deleted webhook per deleted file.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Request body
application/jsonids * | string (uuid)[] |
Responses
200 | What happened to each id.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
/trashList the trash
The files, videos and folders the app has deleted that can still be restored, most recently deleted first. On a plan that keeps deleted files (Pro 7 days, Max 30) a delete moves things here; after retentionDays they are deleted for good. A deleted folder is one item (kind folder), restored with its subfolders and files by POST /folders/{id}/restore; its files are listed too, and can be restored on their own. Everything here still counts toward storage (storageBytes, also trashStorageBytes in GET /usage) and not toward the file, video or audio counts. kind=file, kind=video (audio files included) or kind=folder lists one kind. A scoped key without videos:read sees only the files and folders. With counts=true it also has counts, of everything in the trash.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
kind | query | "file" | "video" | "folder" | |
limit | query | integer | Page size, 1 to 100. |
cursor | query | string | The nextCursor of the previous page. Use it with the same filters and sort. Paging is stable: files added or deleted while you page are never skipped or repeated. |
counts | query | boolean | true to count everything in the trash too (counts), such as before emptying it. It reads the whole trash, so ask only when you need it. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
200 | One page of the trash.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
/folders/{id}/restoreRestore a folder
Takes a folder deleted into the trash back out, with the same id, the folders below it and the files that went to the trash with it, each back in its folder (a file deleted on its own before stays in the trash). It goes back in the folder it was in, or at the top level if that folder is gone, in the trash, or now too deep for it (folders nest 20 deep at most). If another folder there has taken its name, it comes back as Name (restored) (shortened to fit 255 characters) and renamedFrom says so. Sends file.restored for each file. Files the app has no room for (its plan's file limit), or that could not be restored now (a folder of thousands of files gets 30 seconds), stay in the trash on their own and are listed in failed: POST /files/restore brings them back into their folders. 404 when the folder is not in the trash; 403 folder_limit_reached when the app has no room for its folders; 409 folder_being_purged while POST /folders/{id}/purge is deleting it.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | A folder id. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
200 | The folder, as it is now, and what came back with it.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
409 | An error. error is a short code and message says what went wrong.application/json |
/folders/{id}/purgeDelete a folder in the trash forever
Deletes a folder in the trash for good at once, with the folders below it and the files that went to the trash with it. Sends file.purged for each file. Can't be undone. 404 when the folder is not in the trash.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | A folder id. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
200 | What was deleted.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
500 | An error. error is a short code and message says what went wrong.application/json |
/trash/emptyEmpty the trash
Deletes everything in the trash for good, up to 200 files and videos a request, and every folder in it: while remaining is above 0, send it again. Sends file.purged and video.purged for each. Can't be undone. A scoped key without videos:write empties only the files and folders.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
200 | What was deleted.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
/files/restoreRestore several files
Takes up to 100 files out of the trash, as POST /files/{id}/restore does. Ids not in the trash are in notFound; files the app has no room for (its plan's file limit) are in failed with why, and the others still come back.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Request body
application/jsonids * | string (uuid)[] |
Responses
200 | What happened to each id.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
/files/{id}/restoreRestore a file
Takes a file out of the trash: the same id, URLs, labels and metadata, back in its folder (or at the root if the folder was deleted meanwhile). Sends file.restored. Refused with 403 limit_reached when the app already has as many files as its plan allows. 404 when the file is not in the trash. The id can also be PUBLIC_KEY+LABEL.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string | A file id (UUID), or PUBLIC_KEY+LABEL to address a labelled file.e.g. 2a860257-ecf9-424a-846e-00ab68e2fd58e.g. YOUR_PUBLIC_KEY+logo |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
200 | The file, as it is now.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
/files/{id}/replaceReplace a file's content
Uploads new content for an existing file, as multipart form data with the file as file. The file keeps its id, so its URLs (by id, by label and on custom domains), name, labels, metadata, folder, read permission, expiring links, share page and download counts all stay as they are: only the bytes change, and they are served at once. The type may change too (a PNG replaced by a JPEG): mime, fileSize, hash and originalFilename become the new file's. What was worked out from the old content goes with it: cached image transforms, the image's size and palette, EXIF data and AI image data (queued again when the app has it on), and a new virus scan is queued. The old content is deleted from storage. The ETag of every read changes with the content, so a revalidation gets the new file, but a browser that kept the old one without revalidating (public reads may be kept for a year) shows it until its copy expires: add any query parameter that isn't a read option (?v=2) to change the URL. Sends file.updated with content in its changes. Held to the app's upload size cap; only growth counts against its storage limit (403 storage_limit_reached), and the file limit doesn't apply. Needs the app's private key. 409 not_replaceable for a video's file (replace the video with replaceVideo) or a copy Fileboy made, 409 file_quarantined for a file AI moderation quarantined, 409 file_held while its bucket's access is revoked, 403 content_unavailable for a file support disabled, 404 for a file in the trash. The id can also be PUBLIC_KEY+LABEL.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string | A file id (UUID), or PUBLIC_KEY+LABEL to address a labelled file.e.g. 2a860257-ecf9-424a-846e-00ab68e2fd58e.g. YOUR_PUBLIC_KEY+logo |
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 new content. |
Responses
200 | Replaced. The file, as it is now.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
409 | The file can't be replaced: a video's file or a copy Fileboy made (not_replaceable), quarantined (file_quarantined) or held (file_held).application/json |
413 | An error. error is a short code and message says what went wrong.application/json |
422 | An error. error is a short code and message says what went wrong.application/json |
/files/{id}/purgeDelete a file forever
Deletes a file for good at once, with its stored data and cached copies, whether it is in the trash or not. Sends file.purged for a file that was in the trash, file.deleted for one that wasn't. Can't be undone. 404 when there is no such file.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string | A file id (UUID), or PUBLIC_KEY+LABEL to address a labelled file.e.g. 2a860257-ecf9-424a-846e-00ab68e2fd58e.g. YOUR_PUBLIC_KEY+logo |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
204 | Deleted for good. |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
500 | An error. error is a short code and message says what went wrong.application/json |
/files/{id}Update a file
Change a file's name, type, metadata, labels, folder or share page. Only the fields you send change. metadata is merged into the existing metadata: keys you send are set, a null value removes a key and other keys stay. Send replaceMetadata: true to make metadata the complete new metadata instead. A label points at one file, so adding a label that is on another file moves it here. The id can also be PUBLIC_KEY+LABEL. folderId (null for the root) or folderPath moves the file to a folder; folderPath creates missing folders. sharePage turns the file's share page (https://fileboy.io/f/{id}) on or off, see getFileShare. The stored bytes and the file's URLs never change. Sends a file.updated webhook when the labels, metadata, name or folder really change (an update that changes none of them sends nothing), and one for the file a label moves off.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string | A file id (UUID), or PUBLIC_KEY+LABEL to address a labelled file.e.g. 2a860257-ecf9-424a-846e-00ab68e2fd58e.g. YOUR_PUBLIC_KEY+logo |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Request body
application/jsonname | string | |
mime | string | |
metadata | object | Pairs to set. A null value removes the key. Up to 100 keys, keys up to 128 characters, values up to 4096. The stored metadata is at most 16 KB. |
replaceMetadata | boolean | Make metadata the complete new metadata instead of changes to the old. Values cannot be null. |
labels | object | |
folderId | string | null | Move the file to this folder, or to the root with null. |
folderPath | string | Move the file to the folder at this path, creating missing folders. / is the root. Send folderId or folderPath, not both. |
sharePage | boolean | Turn the file's share page on or off. A page that is on still follows the file's read access. |
Responses
200 | The file as it is now.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
/files/{id}Delete a file
On a plan that keeps deleted files (Pro 7 days, Max 30) the file goes to the trash: from then on it reads as if it did not exist (404 everywhere), and it can be restored with POST /files/{id}/restore until its time runs out, when it is deleted for good. It still counts toward storage until then, not toward the file count. On a plan with no trash (Free), or with POST /files/{id}/purge, it is removed at once with its stored data and any cached image copies. Sends a file.deleted webhook either way, when it stops being served. Answers 404 if there is no such file, which includes a file that was already deleted and a file of another app, so a repeated delete can treat 404 as done. If storage cannot be reached the answer is 500, nothing is deleted and the request can be repeated. The id can also be PUBLIC_KEY+LABEL.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string | A file id (UUID), or PUBLIC_KEY+LABEL to address a labelled file.e.g. 2a860257-ecf9-424a-846e-00ab68e2fd58e.g. YOUR_PUBLIC_KEY+logo |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
204 | Deleted. |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
500 | An error. error is a short code and message says what went wrong.application/json |
/files/{id}/exifGet a photo's EXIF data
The camera, lens, exposure, date taken, orientation, GPS position, colour profile and the rest of the EXIF, IPTC and XMP metadata of an image, read from JPEG, PNG, WebP, TIFF (and DNG) and HEIF/HEIC/AVIF files. fields is the normalised, typed view and raw every tag read. It is read when the image is uploaded; an image uploaded before that is read the first time it is asked for. It includes personal data (the GPS position, place names, serial numbers and the camera owner's name), so it needs a token signed with your private key: a public key, an access token or a signed read URL is refused, and no public route ever carries it. personal=false leaves the personal data out. Files that are not images answer with status: "unsupported". The id can also be PUBLIC_KEY+LABEL.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string | A file id (UUID), or PUBLIC_KEY+LABEL to address a labelled file.e.g. 2a860257-ecf9-424a-846e-00ab68e2fd58e.g. YOUR_PUBLIC_KEY+logo |
personal | query | "true" | "false" | false leaves out the GPS position, place names, serial numbers and the camera owner's name, from fields and raw. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
200 | The metadata.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
502 | exif_read_failed: an image never read before could not be fetched from storage. Try again.application/json |
/files/{id}/analysisGet a file's AI image data
The text read from an image or PDF (OCR), its alt text (description) and keyword tags, and the moderation check of an image, made by OpenAI. It is off by default: an app turns each part on with the aiImageText, aiImageDescriptions, aiImageTags and aiImageModeration settings, and only then are its files sent. New uploads are analysed a few seconds after they arrive; status says where it is (none, pending, processing, done, failed, skipped or unsupported). The text can be personal data, so this needs your private key (or a key with files:read); the description and tags are also on /files/data/{id} as altText and imageTags. The id can also be PUBLIC_KEY+LABEL.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string | A file id (UUID), or PUBLIC_KEY+LABEL to address a labelled file.e.g. 2a860257-ecf9-424a-846e-00ab68e2fd58e.g. YOUR_PUBLIC_KEY+logo |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
200 | The AI image data.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
/files/{id}/analysisCorrect a file's alt text, tags or text
Write the description (alt text, up to 500 characters), the tags (up to 25, each up to 50 characters; they are trimmed, lower-cased and de-duplicated) or the text (up to 20,000 characters). Fields you leave out are unchanged; null or "" clears one, [] the tags. What you write is kept when the file is analysed again (edited says which). It works whether or not the file was analysed, so you can write alt text yourself with AI image data off.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string | A file id (UUID), or PUBLIC_KEY+LABEL to address a labelled file.e.g. 2a860257-ecf9-424a-846e-00ab68e2fd58e.g. YOUR_PUBLIC_KEY+logo |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Request body
application/jsontext | string | null | |
description | string | null | |
tags | array | null |
Responses
200 | The AI image data, changed.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
/files/{id}/analyzeAnalyse a file with AI now
Queue the file's analysis, with the app's AI image data settings as they are now: for files uploaded before they were turned on, or to try again. A file already queued or being analysed is left as it is. Images (JPEG, PNG, WebP, BMP, TIFF) are shrunk to fit 1536px before they are sent; PDFs up to 10 MB are sent as they are, for text, description and tags (moderation is for images). Each app starts up to 300 analyses a UTC clock hour, counted for all of Fileboy's servers together (see getAiUsage); the rest wait their turn. Failures from rate limits or OpenAI's own errors are tried again, up to 4 times.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string | A file id (UUID), or PUBLIC_KEY+LABEL to address a labelled file.e.g. 2a860257-ecf9-424a-846e-00ab68e2fd58e.g. YOUR_PUBLIC_KEY+logo |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
202 | Queued. Read it again with GET /files/{id}/analysis.application/json |
401 | No key was sent.application/json |
402 | ai_addon_required: the app doesn't have the AI add-on, which every AI feature needs (paid plans only: add it on the app's Plan & billing page). Anything already made stays readable. See /docs/ai-addon. Or spend_cap_reached: the app is at its spend cap while overage billing is on, so no new AI work starts until the month ends (resetsAt) or the cap is raised (usageUrl). See /docs/usage-alerts.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
409 | analysis_off: none of the app's AI image data settings is on, so nothing is sent.application/json |
422 | unsupported_file: not a JPEG, PNG, WebP, BMP or TIFF image or a PDF.application/json |
429 | rate_limited: too many analysis requests for this app. Try again later.application/json |
503 | analysis_unavailable: AI image data is not available on this server.application/json |
/files/{id}/moderation/releaseRelease a quarantined file
With aiQuarantineFlagged on, an image moderation flags is quarantined: every read of it and its cached transforms is refused with 403 file_quarantined, signed or not, through links, share pages, zips and overlays too, except with the app's own private key. Its read permission also becomes authenticated. Releasing it puts back the read permission it had, unless you changed it meanwhile. The moderation result stays. Releasing a file that is not quarantined changes nothing. Only the app's own private key can release a file: scoped keys and personal access tokens can't.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string | A file id (UUID), or PUBLIC_KEY+LABEL to address a labelled file.e.g. 2a860257-ecf9-424a-846e-00ab68e2fd58e.g. YOUR_PUBLIC_KEY+logo |
Responses
200 | The AI image data, with quarantine.quarantined false.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
/files/{id}/scanGet a file's virus scan
Every upload is scanned with ClamAV a few seconds after it arrives (files, upload sessions, videos and their replacements, posters and caption files; not the copies Fileboy makes). status is pending, clean (nothing known was found), infected (signature names what was found), error (it could not be scanned after 5 tries, message says why), skipped (reason: too_large, over maxBytes, or not_configured, scanning was off on the server) or none (uploaded before scanning). An infected file is blocked: every read of its bytes answers 403 file_infected, whatever key or signature it carries. With the app's holdDownloadsUntilScanned on, a pending file answers 409 file_scan_pending, a failed one 409 file_scan_failed and a skipped one 409 file_not_scanned. blocked says whether reads are refused now. Needs your private key (or a key with files:read). The id can also be PUBLIC_KEY+LABEL.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string | A file id (UUID), or PUBLIC_KEY+LABEL to address a labelled file.e.g. 2a860257-ecf9-424a-846e-00ab68e2fd58e.g. YOUR_PUBLIC_KEY+logo |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
200 | The file's virus scan.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
/files/{id}/scanScan a file for viruses again
Queue the file to be scanned: one whose scan failed or was skipped, or one uploaded before scanning. A file already pending is left as it is (200). An infected file is never scanned again: delete it. Needs your private key (or a key with files:write).
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string | A file id (UUID), or PUBLIC_KEY+LABEL to address a labelled file.e.g. 2a860257-ecf9-424a-846e-00ab68e2fd58e.g. YOUR_PUBLIC_KEY+logo |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
200 | Already pending: the scan as it is.application/json |
202 | Queued. Read it again with GET /files/{id}/scan.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
409 | file_infected: the file was found infected and stays blocked; delete it. scanning_not_configured: virus scanning is not set up on this server.application/json |
/files/{id}/remove-backgroundRemove an image's background with AI
Queue an AI background removal: the main subject on a transparent background, at the image's shape and its own size up to a long edge of 1536 px. It is made by an OpenAI GPT Image model, which draws a new image from this one: it is a regeneration, not a pixel-exact edit, and faces, text, logos and fine detail can change. The result is stored as a new file in the same app and folder, with metadata derivedFrom (this file's id), operation and imageEditId; the file itself is never changed. The model makes sizes whose sides are multiples of 16, between about 0.66 and 3.7 megapixels and 1:3 to 3:1: width and height say what was chosen. It is asynchronous (from about ten seconds to a minute or two): the answer is 202 with the edit, and file.edit_completed or file.edit_failed is sent when it is done. It costs AI credits (2 plus 1, 6 or 22 per megapixel of output at low, medium or high quality, credits), counted against the app's hourly limit and monthly cap for the operation (see GET /usage/ai) and given back if it fails. Paid plans only. Refused for a file the virus scan found infected or holds back, or that AI moderation flagged. Needs your private key or a scoped key with images:edit, never a public key. The id can also be PUBLIC_KEY+LABEL.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string | A file id (UUID), or PUBLIC_KEY+LABEL to address a labelled file.e.g. 2a860257-ecf9-424a-846e-00ab68e2fd58e.g. YOUR_PUBLIC_KEY+logo |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Request body
application/jsonformat | "png" | "webp" | |
quality | "low" | "medium" | "high" | |
prompt | string | A hint of what to keep, such as the product and its shadow. |
Responses
202 | Queued. Read it again with GET /image-edits/{id}, or wait for the file.edit_completed or file.edit_failed webhook.application/json |
400 | invalid_format, invalid_quality, invalid_prompt or invalid_longEdge: an option is not one of those listed. invalid_json: the body is not JSON or has another field.application/json |
401 | No key was sent.application/json |
402 | ai_addon_required: the app doesn't have the AI add-on, which every AI feature needs (paid plans only: add it on the app's Plan & billing page). Anything already made stays readable. See /docs/ai-addon. Or spend_cap_reached: the app is at its spend cap while overage billing is on, so no new AI work starts until the month ends (resetsAt) or the cap is raised (usageUrl). See /docs/usage-alerts.application/json |
403 | plan_limit: the app's plan has no AI image edits (the Free plan). limit_reached: the app is at its file limit, so there is no room for the new file. Also private_key_required (a public key or upload token) and insufficient_scope (a scoped key without images:edit).application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
409 | file_infected: the virus scan found malware in the file. file_scan_pending or file_scan_failed: the app holds downloads until scanned and this file isn't clean yet. file_flagged: AI moderation flagged the image. ai_not_configured: this Fileboy server has no OpenAI key.application/json |
413 | image_too_large: over 50 MB, or larger than the image service decodes.application/json |
415 | unsupported_image: only JPEG, PNG, WebP, BMP, TIFF and HEIC images can be edited.application/json |
422 | unreadable_image: the image could not be read. already_large_enough (upscale only): the result would be no larger than the image.application/json |
429 | rate_limited: the edit's credits would take the app past its hourly limit or monthly cap for the operation. The message says how many credits are left; a lower quality may fit.application/json |
/files/{id}/upscaleUpscale an image with AI
Queue an AI upscale: the same image redrawn at a higher resolution, the nearest size the model makes to longEdge at the image's shape (a 3:2 image at 2560 comes out at 2336x1568). Not super-resolution: a regeneration. It is made by an OpenAI GPT Image model, which draws a new image from this one: it is a regeneration, not a pixel-exact edit, and faces, text, logos and fine detail can change. The result is stored as a new file in the same app and folder, with metadata derivedFrom (this file's id), operation and imageEditId; the file itself is never changed. The model makes sizes whose sides are multiples of 16, between about 0.66 and 3.7 megapixels and 1:3 to 3:1: width and height say what was chosen. It is asynchronous (from about ten seconds to a minute or two): the answer is 202 with the edit, and file.edit_completed or file.edit_failed is sent when it is done. It costs AI credits (2 plus 1, 6 or 22 per megapixel of output at low, medium or high quality, credits), counted against the app's hourly limit and monthly cap for the operation (see GET /usage/ai) and given back if it fails. Paid plans only. Refused for a file the virus scan found infected or holds back, or that AI moderation flagged. Needs your private key or a scoped key with images:edit, never a public key. The id can also be PUBLIC_KEY+LABEL.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string | A file id (UUID), or PUBLIC_KEY+LABEL to address a labelled file.e.g. 2a860257-ecf9-424a-846e-00ab68e2fd58e.g. YOUR_PUBLIC_KEY+logo |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Request body
application/jsonlongEdge | "1536" | "2048" | "2560" | |
quality | "low" | "medium" | "high" | |
format | "png" | "webp" | "jpeg" |
Responses
202 | Queued. Read it again with GET /image-edits/{id}, or wait for the file.edit_completed or file.edit_failed webhook.application/json |
400 | invalid_format, invalid_quality, invalid_prompt or invalid_longEdge: an option is not one of those listed. invalid_json: the body is not JSON or has another field.application/json |
401 | No key was sent.application/json |
402 | ai_addon_required: the app doesn't have the AI add-on, which every AI feature needs (paid plans only: add it on the app's Plan & billing page). Anything already made stays readable. See /docs/ai-addon. Or spend_cap_reached: the app is at its spend cap while overage billing is on, so no new AI work starts until the month ends (resetsAt) or the cap is raised (usageUrl). See /docs/usage-alerts.application/json |
403 | plan_limit: the app's plan has no AI image edits (the Free plan). limit_reached: the app is at its file limit, so there is no room for the new file. Also private_key_required (a public key or upload token) and insufficient_scope (a scoped key without images:edit).application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
409 | file_infected: the virus scan found malware in the file. file_scan_pending or file_scan_failed: the app holds downloads until scanned and this file isn't clean yet. file_flagged: AI moderation flagged the image. ai_not_configured: this Fileboy server has no OpenAI key.application/json |
413 | image_too_large: over 50 MB, or larger than the image service decodes.application/json |
415 | unsupported_image: only JPEG, PNG, WebP, BMP, TIFF and HEIC images can be edited.application/json |
422 | unreadable_image: the image could not be read. already_large_enough (upscale only): the result would be no larger than the image.application/json |
429 | rate_limited: the edit's credits would take the app past its hourly limit or monthly cap for the operation. The message says how many credits are left; a lower quality may fit.application/json |
/files/{id}/editsList a file's AI image edits
The file's most recent AI image edits (where it is the source) and the edit that made it (where it is the result), newest first, at most 20. Needs your private key (or a key with files:read). The id can also be PUBLIC_KEY+LABEL.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string | A file id (UUID), or PUBLIC_KEY+LABEL to address a labelled file.e.g. 2a860257-ecf9-424a-846e-00ab68e2fd58e.g. YOUR_PUBLIC_KEY+logo |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
200 | The edits.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
/image-edits/{id}Get an AI image edit
An AI image edit: queued, processing, completed (with resultFileId, the new file) or failed (with error and message). Needs your private key (or a key with files:read).
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
200 | The edit.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | image_edit_not_found: the app has no edit with that id.application/json |
/files/{id}/paletteGet an image's colour palette
The image's dominant colour, its main colours with their share of the image, the named swatches (vibrant, muted and their dark and light versions) and a readable text colour for each. It is worked out at upload; for images uploaded before then it is worked out on the first request and stored. The same palette is served on the image routes with the palette transform, which follows the image's read access instead of needing the private key. {id} can be PUBLIC_KEY+label.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string | A file id (UUID), or PUBLIC_KEY+LABEL to address a labelled file.e.g. 2a860257-ecf9-424a-846e-00ab68e2fd58e.g. YOUR_PUBLIC_KEY+logo |
colors | query | integer | How many main colours to list. The dominant colour and swatches are always included. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
200 | The palette.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
422 | The file is not a JPEG, PNG, WebP, BMP, TIFF or HEIC image. error is unsupported_image.application/json |
500 | An error. error is a short code and message says what went wrong.application/json |
/usageGet your app's usage
How many files, videos and audio files the app has (audio files have their own allowance, apart from videos) and how many bytes it stores (originals, image copies, video renditions, posters and transcripts), with the limits set on the app. It also has this UTC month: each metered resource (storage, delivery, video encoding, image transforms, AI credits and audio) used so far against the plan's allowance, where it is heading at the last 7 days' rate and what use past the allowance would be billed, with the month's overage against the spend cap. Until overageBilling is on, nothing over the plan is charged: the amounts are what would be billed. The figures are worked out every few minutes, so reading them is cheap; they are at most about 30 minutes old (ratedAt). The amounts (each resource's amount and projectedAmount, and overage) are the app's billing: they are left out, with money false, for a scoped key and for a Developer's or Viewer's personal access token. The app's private key and an Owner's or Admin's token get them.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
200 | Current usage.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
/usage/alertsGet your usage alert settings and this month's alerts
When the app reaches a share of a plan limit (80% and 100% unless you change it) Fileboy emails the app's members and any extra recipients, shows a banner in the dashboard and sends a usage.threshold_reached webhook. Each threshold fires at most once a month (calendar months in UTC) per limit, and every threshold can fire again from the 1st. Usage is checked every few minutes. Files, videos, audio files and storage alert as usage.threshold_reached. The metered allowances (delivery, video encoding and, on Free, image transforms) alert at the same thresholds as usage.threshold, and a paid app's spend cap (see spendCap in GET /app/settings) at 50%, 80% (usage.threshold) and 100% (usage.cap_reached), once overage billing is on. Delivery is counted from when Fileboy measures it per app.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
200 | The settings, the current period and the alerts recorded in it.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
/usage/alertsChange your usage alert settings
Only the fields you send change, and metrics only changes the limits it names. Thresholds are sorted and duplicates removed; email addresses are lower cased. Answers 400 validation_error for a value that is not allowed, invalid_json for an unknown field and empty_update when nothing is sent.
Authorization: public key or signed token
Request body
application/jsonenabled | boolean | |
thresholds | UsageAlertThresholds | |
metrics | object | |
emailMembers | boolean | |
recipients | UsageAlertRecipients | |
webhook | boolean |
Responses
200 | The new settings, the current period and its alerts.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
/usage/transcriptionGet your app's auto-generated captions usage
Seconds of audio sent to OpenAI for auto-generated captions, how many transcriptions ran, and the calls and failures, per UTC day and in total. Nothing is billed from it.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
days | query | integer | How many days back, today included. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
200 | The usage.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
/usage/translationGet your app's translated captions usage
Characters of caption text and tokens sent to OpenAI to translate captions, how many translations ran, and the calls and failures, per UTC day and in total. Nothing is billed from it.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
days | query | integer | How many days back, today included. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
200 | The usage.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
/usage/docs-qaGet your app's video documents and questions usage
Documents and questions (each one OpenAI was asked for and billed, whether or not it gave a usable answer: one that cost nothing isn't counted), the calls to OpenAI and their failures, and the characters of caption text and tokens sent, per UTC day and in total, with today's use and the daily limits. Nothing is billed from it.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
days | query | integer | How many days back, today included. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
200 | The usage.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
/usage/aiGet your app's AI usage and limits
For each AI feature (imageAnalysis, transcription, translation, summary, fillers, documents, questions): how many the app started this UTC clock hour and this UTC calendar month, its hourly limit and monthly cap (null for none), and when it may start again if it is at one. The limits come from the app's plan and hold per app across all of Fileboy's servers: each AI job (an analysis, a transcription, a translation, a title/summary/chapters run, a filler scan) counts when it starts, retries included, and each document or question when it is asked for (one that cost nothing is given back). Queued jobs over a limit wait (they stay pending) and start when the next hour or month begins; documents and questions are refused with 429 rate_limited.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
200 | The usage.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
/usage/summaryGet your app's auto title, summary and chapters usage
Characters of caption text and tokens sent to OpenAI to write titles, summaries and chapters, how many runs there were, and the calls and failures, per UTC day and in total. Nothing is billed from it.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
days | query | integer | How many days back, today included. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
200 | The usage.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
/usage/storageGet your app's storage breakdown
What the app stores by kind, its biggest files and videos, and one total a day. Every stored file counts once, under one kind, so the kinds add up to storageBytes, the same total GET /usage reports and the app's storage limit is measured against. Daily totals are recorded just after midnight UTC and kept for 400 days; days before tracking started are missing rather than filled in. A day's kinds is empty when the app's files took too long to add up that day; its storageBytes is still recorded. Adding up a very large app's files can take a while: past 20 seconds the request is stopped and answers 504 with the error storage_timeout. Try again in a moment.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
days | query | integer | How many days of daily totals to return. |
top | query | integer | How many of the biggest files and videos to list. 0 lists none: the totals by kind and the daily history alone, which answer quickly however many files and videos the app has. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
200 | The storage breakdown.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
504 | An error. error is a short code and message says what went wrong.application/json |
/app/keys/usageWhen the app's public and private key were last used, and from where
For each of the app's two current keys: when it was last used, the address that request came from, and what it was used for (management, upload or read). A key that was never used has all nulls. A regenerated key starts as never used, and the old key's record is gone. recent lists up to 20 distinct address and day pairs per key, newest first.
What counts: the private key when a request is signed with it (management calls, uploads, and reads that need it), including uploads made with an access token created from it; the public key when an upload sends it or a publicKey+label URL is read. Signed URLs do not count, and a call whose token says via: dashboard is recorded like any other, with its real address, and shown as route dashboard (a hint: any holder of the key can say so). Times are recorded at most once a minute per key, so lastUsedAt can be up to a minute behind. Reads of publicKey+label URLs are recorded at most once a minute per key whatever the address, so for them lastIp and recent are a sample of readers, not every one. This request is itself a use of the private key. Keys are never returned, only when they were used.
Authorization: public key or signed token
Responses
200 | The usage.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
/keysList the app's scoped keys
Every scoped key of the app, newest first, revoked and expired ones included, with its scopes, expiry and when it was last used (recorded at most once a minute). The keys themselves are never returned, only their prefix. Needs the app's own private key: a scoped key gets 403 private_key_required.
Authorization: public key or signed token
Responses
200 | The keys.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
/keysMake a scoped key
An extra key for the app that can only call the endpoints its scopes allow (each endpoint names its one scope in x-fileboy-scope), and optionally stops working at expiresAt. The answer holds the whole key in key, this once: Fileboy keeps only hashes of it. Send it as Authorization: Bearer fbk_.... Scoped keys can't make, list or revoke keys, read or change settings, or see key usage. An app may have 50 keys that still work (409 too_many_keys). Recorded in the activity log as key.created, without the key. Needs the app's own private key.
Authorization: public key or signed token
Request body
application/jsonname * | string | |
scopes * | ApiKeyScope[] | Duplicates are dropped. Scopes don't include each other. |
expiresAt | string | null | When the key stops working: in the future, at most five years ahead. Leave it out for a key that never expires. |
Responses
201 | The key, with the whole key in key.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
409 | An error. error is a short code and message says what went wrong.application/json |
/keys/{id}Revoke a scoped key
The key stops working at once (401 key_revoked), and so do URLs it signed. It can't be brought back. Revoking a revoked key changes nothing and answers with it. Recorded in the activity log as key.revoked. Needs the app's own private key.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) |
Responses
200 | The key, revoked.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
/me/appsList the apps a personal access token can reach
The apps the token's owner is a member of right now, narrowed to the token's appIds when it has any, by name. Only a personal access token may call this, and it needs no X-Fileboy-App header. Anything else is 403 personal_token_required. Each app says the token owner's role in it: a Viewer's token can only read there, and add recordings (a video upload with "source": "recording").
Authorization: public key or signed token
Responses
200 | The apps.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
/me/orgsList the organisations of a personal access token's owner
The organisations the token's owner is in right now, by name, with their role and the org's apps the token can reach. A token limited to some apps lists only the organisations with at least one of those apps. Read-only: members, invites and an organisation's settings are managed in the dashboard, never with a token or an app's key. Only a personal access token may call this, and it needs no X-Fileboy-App header. Anything else is 403 personal_token_required.
Authorization: public key or signed token
Responses
200 | The organisations.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
/me/tokenRevoke the personal access token making the request
The token the request is made with revokes itself, as signing out of the Chrome extension does. It stops working at once (401 key_revoked). A token can only revoke itself this way, never another. Recorded on its owner's account as pat.revoked, via token. Only a personal access token may call this, and it needs no X-Fileboy-App header. Anything else is 403 personal_token_required.
Authorization: public key or signed token
Responses
200 | The token, revoked.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
/domainsList the app's custom domains
The app's custom domains (files.example.com) with their status and the DNS records each needs, the number its plan allows (limit: 0 on Free, 1 on Pro, 3 on Max), the CNAME target, and the customDomainLinks setting with the address links use because of it (linkBaseUrl). Needs the app's own private key: scoped keys and personal access tokens are refused.
Authorization: public key or signed token
Responses
200 | The app's domains.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
503 | custom_domains_unavailable: custom domains are not set up on this Fileboy server (no Cloudflare configuration).application/json |
/domainsAdd a custom domain
Add a subdomain of yours, such as files.example.com, to serve the app's files on. It starts pending, with the DNS records to add in records: a CNAME to the CNAME target, the ownership TXT record (_cf-custom-hostname.<hostname>) and, with sslMethod txt, the certificate's TXT record. It only goes active once the CDN has activated the hostname and its certificate and Fileboy has found the ownership TXT record, so a name that reaches Fileboy through a wildcard CNAME can't be claimed by another app. Fileboy checks it until it is active (often minutes after the records are in place; it fails after two weeks pending), and from then on requests on that host serve this app's files, and only them, with every access rule as on api.fileboy.io. The hostname is lower-cased and an international name stored as punycode (xn--). Root domains, wildcards, IP addresses, ports, paths and Fileboy's own domains are refused (400 invalid_hostname). sslMethod is "http" (the default: the certificate is issued once the CNAME points at Fileboy, and renews by itself) or "txt" (a TXT record for the certificate too, to have it before switching the CNAME over). At most 10 adds an hour per app. Needs the app's own private key.
Authorization: public key or signed token
Request body
application/jsonhostname * | string | |
sslMethod | "http" | "txt" |
Responses
201 | Added, pending: add the records it shows.application/json |
400 | invalid_hostname or validation_error.application/json |
401 | No key was sent.application/json |
403 | plan_limit: the app's plan allows no more custom domains. private_key_required: a scoped key or personal access token.application/json |
409 | hostname_taken: another app (or this one) has the hostname. Another app's domain that has failed, or has been pending for three days without its ownership TXT record, is taken over instead. hostname_unavailable: it can't be added on Fileboy's CDN.application/json |
429 | An error. error is a short code and message says what went wrong.application/json |
502 | cloudflare_error: Fileboy's CDN could not be reached. Nothing was added.application/json |
503 | custom_domains_unavailable: custom domains are not set up on this Fileboy server (no Cloudflare configuration).application/json |
/domains/{id}Remove a custom domain
The domain stops serving files at once, and its hostname is removed from Fileboy's CDN. If the CDN can't be reached the answer is 202 with the domain deleting, and Fileboy finishes removing it later. Remove the DNS records afterwards. Needs the app's own private key.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string | The domain's id, or its hostname (files.example.com). |
Responses
202 | Being removed: it no longer serves files.application/json |
204 | Removed. |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
503 | custom_domains_unavailable: custom domains are not set up on this Fileboy server (no Cloudflare configuration).application/json |
/domains/{id}/refreshCheck a custom domain now
Look at the domain on Fileboy's CDN now, asking it to try validation again, and return it as it now is. A failed domain is set up again from the start, with new records, when the app's plan has room for it and it hasn't added too many domains this hour. At most a few times a minute per domain. Needs the app's own private key.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string | The domain's id, or its hostname (files.example.com). |
Responses
200 | The domain as it now is.application/json |
401 | No key was sent.application/json |
403 | plan_limit: setting a failed domain up again needs room for it on the app's plan.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
409 | domain_deleting: the domain is being removed.application/json |
429 | An error. error is a short code and message says what went wrong.application/json |
502 | cloudflare_error: Fileboy's CDN could not be reached.application/json |
503 | custom_domains_unavailable: custom domains are not set up on this Fileboy server (no Cloudflare configuration).application/json |
/storageGet where the app's files are stored
Bring your own storage: the bucket the app's new uploads go to (active, null when they go to Fileboy's storage), the buckets it stored in before that still hold files (retired), whether its plan includes the feature, and the CORS rule a bucket needs for upload parts sent straight to it. The secret access key is never returned, only its last 4 characters. Needs the app's own private key: scoped keys and personal access tokens are refused.
Authorization: public key or signed token
Responses
200 | The app's storage.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
503 | byo_storage_unavailable: bring your own storage isn't set up on this Fileboy server (no STORAGE_CREDENTIALS_KEY).application/json |
/storageStore the app's new uploads in your own bucket
Test an S3-compatible bucket (write, read, list and delete a small object under the prefix, and check its CORS rules when directParts is on) and, when every step passes, send the app's new uploads to it: files, upload sessions, video renditions, posters, captions, thumbnails, cached transforms and AI edits. Files already stored stay where they are and keep working. The same endpoint, bucket and prefix as the active bucket changes its options or credentials in place (leave secretAccessKey out to keep the saved one, with the same accessKeyId); another bucket or prefix becomes the active one, and the one before is kept for its files. The endpoint must be https and resolve only to public addresses. The secret is stored encrypted and never returned. At most 10 tests (saves, tests and checks) every 10 minutes per app. On the Max plan. Needs the app's own private key, and from the dashboard an Owner or Admin.
Authorization: public key or signed token
Request body
application/jsonendpoint * | string (uri) | The service's https address, with no path: https://s3.eu-west-2.amazonaws.com, https://ACCOUNT_ID.r2.cloudflarestorage.com, https://lon1.digitaloceanspaces.com, https://s3.eu-central-003.backblazeb2.com. |
region | string | The bucket's region (auto for R2). Defaults to us-east-1. |
bucket * | string | |
prefix | string | A folder every key starts with, like fileboy/. A missing trailing slash is added. |
pathStyle | boolean | Path-style requests (endpoint/bucket/key). R2 and MinIO need them. |
directParts | boolean | Send upload session parts straight to the bucket with presigned URLs. Needs the bucket's CORS rules (see corsRules in GET /storage). |
accessKeyId * | string | |
secretAccessKey | string | Stored encrypted and never returned. Leave it out to keep the saved one (the same bucket and access key id only). |
Responses
200 | Saved: new uploads go to the bucket.application/json |
400 | validation_error.application/json |
401 | No key was sent.application/json |
403 | plan_limit: the app's plan doesn't include it. role_forbidden: not an Owner or Admin. private_key_required: a scoped key or personal access token.application/json |
422 | storage_check_failed: the bucket failed its test, and nothing was saved. message is the first step that failed.application/json |
429 | An error. error is a short code and message says what went wrong.application/json |
503 | byo_storage_unavailable: bring your own storage isn't set up on this Fileboy server (no STORAGE_CREDENTIALS_KEY).application/json |
/storageSend new uploads back to Fileboy's storage
New uploads go to Fileboy's storage again. Files already in the bucket stay there and keep reading from it, with its credentials, so keep the bucket working until they are deleted. Answers with the bucket as it now is (retired), or null when nothing was stored in it and it is forgotten altogether. Needs the app's own private key, and from the dashboard an Owner or Admin.
Authorization: public key or signed token
Responses
200 | New uploads go to Fileboy's storage.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | storage_not_configured: uploads go to Fileboy's storage already.application/json |
503 | byo_storage_unavailable: bring your own storage isn't set up on this Fileboy server (no STORAGE_CREDENTIALS_KEY).application/json |
/storage/testTest a bucket without saving it
The same test as PUT /storage, saving nothing: of the bucket in the body, or of the saved active bucket with an empty body ({}). Each step says what went wrong, with nothing secret. Counts towards the 10 tests every 10 minutes. On the Max plan.
Authorization: public key or signed token
Request body
application/jsonendpoint * | string (uri) | The service's https address, with no path: https://s3.eu-west-2.amazonaws.com, https://ACCOUNT_ID.r2.cloudflarestorage.com, https://lon1.digitaloceanspaces.com, https://s3.eu-central-003.backblazeb2.com. |
region | string | The bucket's region (auto for R2). Defaults to us-east-1. |
bucket * | string | |
prefix | string | A folder every key starts with, like fileboy/. A missing trailing slash is added. |
pathStyle | boolean | Path-style requests (endpoint/bucket/key). R2 and MinIO need them. |
directParts | boolean | Send upload session parts straight to the bucket with presigned URLs. Needs the bucket's CORS rules (see corsRules in GET /storage). |
accessKeyId * | string | |
secretAccessKey | string | Stored encrypted and never returned. Leave it out to keep the saved one (the same bucket and access key id only). |
Responses
200 | The steps, and whether every one passed.application/json |
400 | validation_error.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
429 | An error. error is a short code and message says what went wrong.application/json |
503 | byo_storage_unavailable: bring your own storage isn't set up on this Fileboy server (no STORAGE_CREDENTIALS_KEY).application/json |
/storage/checkCheck the app's buckets now
Check every bucket the app stores in (by listing its prefix) and mark each healthy or failing, as Fileboy's own re-check does (every 5 minutes for a failing bucket, every 6 hours for one that works). Answers with GET /storage's overview.
Authorization: public key or signed token
Responses
200 | The app's storage, checked.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
429 | An error. error is a short code and message says what went wrong.application/json |
503 | byo_storage_unavailable: bring your own storage isn't set up on this Fileboy server (no STORAGE_CREDENTIALS_KEY).application/json |
/storage/locations/{id}Give new credentials for a bucket
New credentials for one of the app's buckets, such as one it stored in before (retired) after you rotated its key. They are tested by listing the prefix before they are saved.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The bucket's id, from GET /storage. |
Request body
application/jsonaccessKeyId * | string | |
secretAccessKey * | string |
Responses
200 | Saved.application/json |
400 | validation_error.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | storage_location_not_found.application/json |
422 | storage_check_failed: the bucket failed its test, and nothing was saved. message is the first step that failed.application/json |
429 | An error. error is a short code and message says what went wrong.application/json |
503 | byo_storage_unavailable: bring your own storage isn't set up on this Fileboy server (no STORAGE_CREDENTIALS_KEY).application/json |
/app/settingsGet the app's read access, photo location, player branding and allowed origins settings
Whether reads of files, images and videos need a signed URL (off by default: nothing is private until you turn it on), whether GPS positions are removed from photos at upload (off by default), the player branding every video starts with, and the websites whose pages may use the public key (allowedOrigins, empty by default: any site).
Authorization: public key or signed token
Responses
200 | The settings.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
/app/settingsRequire signed URLs to read, remove photo locations at upload, set the player branding, or limit the public key to your websites
Send any of the settings. With requireSignedReads: true, every unsigned link to the app's files, images and videos stops working at once (401 signature_required) until it is signed with the private key. Applies to every route that reads a file, image or video, including video manifests, segments, posters and captions. Turning it off makes every link public again. With stripLocationOnUpload: true, the GPS position is removed from the EXIF and XMP data of every image uploaded from then on, before it is stored. The file is not re-encoded and nothing else in it changes; its hash is of the stored bytes. Files already uploaded are not changed.
holdDownloadsUntilScanned: true (off by default) holds every new upload's bytes back until its virus scan is clean: until then reads answer 409 file_scan_pending, or 409 file_scan_failed if the scan failed (see GET /files/{id}/scan). Files too large to scan, or uploaded while scanning was off, are held too: 409 file_not_scanned. An infected file is blocked (403 file_infected) whatever this says.
customDomainLinks: true (off by default) puts every file, image, video and playlist link in management API answers, video webhooks and share pages on the app's active custom domain (see GET /domains). Links the domain doesn't serve (uploads, zips, expiring links, the management API) and your own metadata stay as they are. With no active domain they stay on the API.
aiImageText, aiImageDescriptions, aiImageTags and aiImageModeration turn on AI image data (see GET /files/{id}/analysis): while any is on, the app's new images and PDFs are sent to OpenAI. aiQuarantineFlagged makes an image moderation flags unreadable (except with the private key) until you release it.
autoSummary and autoChapters (off by default) write a video's title and summary, and its chapters, with OpenAI from its captions whenever they are made or added, without overwriting what the owner set (see POST /videos/{id}/summarize).
autoTranslateLanguages is a list of at most 10 language codes (null or [] turns it off): when auto-generated captions are made, their caption text is sent to OpenAI again and translated into each, as new machine-translated tracks (see POST /videos/{id}/transcripts/{transcriptId}/translate).
autoCaptions: true turns on auto-generated captions (see GET /videos/{id}/transcription): each new or replaced video's sound is sent to OpenAI for speech to text once it is processed. autoCaptionsLanguage is the language to transcribe in (a code like en or pt-BR, whose first part the speech model knows), or null to detect it.
playerBranding replaces the app's player branding (null clears it). It applies to every video that does not set the same field itself, on the watch and embed pages and in <fileboy-player branding>.
allowedOrigins replaces the list of websites whose pages may use the public key (null or [] allows any site again). Each entry is an origin: https://example.com, https://*.example.com (any subdomain, not the domain itself) or http://localhost:* (any port). The scheme must match, no port means the default one, and an entry without a scheme gets https://. Entries are stored normalised (lowercase, no default port or trailing slash, no duplicates), up to 50; a path, a bad host, null or a wildcard on a top-level domain is a 400 validation_error naming the entry. blockRequestsWithoutOrigin: true also refuses public-key requests with no Origin or Referer header, while the list has entries; it is stored as false whenever the list ends up empty, so a cleared list never brings it back later. Only requests made with the public key are checked (uploads); private-key requests, access tokens and reads never are.
spendCap sets a paid app's cap on a month's overage (on by default at the plan's: Starter £10, Pro £40, Max £150): {"amount": 2500} for £25, {"amount": 0} for no overage, {"amount": null} for the plan's, {"enabled": false} for no cap. Free apps have none (400 spend_cap_unavailable). The cap applies once overage billing is on; until then nothing over the plan is charged.
Nothing changes unless everything sent is valid.
Authorization: public key or signed token
Request body
application/jsonrequireSignedReads | boolean | |
stripLocationOnUpload | boolean | |
holdDownloadsUntilScanned | boolean | |
customDomainLinks | boolean | |
aiImageText | boolean | |
aiImageDescriptions | boolean | |
aiImageTags | boolean | |
aiImageModeration | boolean | |
aiQuarantineFlagged | boolean | |
autoCaptions | boolean | |
autoCaptionsLanguage | string | null | |
autoSummary | boolean | |
autoChapters | boolean | |
autoTranslateLanguages | array | null | |
playerBranding | PlayerBranding | null | |
allowedOrigins | array | null | Origins like https://example.com, https://*.example.com or http://localhost:*. Replaces the list; null or [] means any site. |
blockRequestsWithoutOrigin | boolean | |
embedDomains | array | null | The websites allowed to show the app's videos in a frame (their embed and watch pages), for videos without their own list. Written like allowedOrigins, IPv6 addresses excepted. Replaces the list; null or [] means any site. It stops other sites framing the player, not direct use of the stream URLs. |
videoFeedback | object | Who may react to and comment on the videos that follow the app default (off, signed_in or anyone). Send one or both; the other keeps its value. |
spendCap | object | A paid app's spend cap: enabled turns it on or off, amount sets it in pence (0 to 10,000,000; 0 bills no overage) or null for the plan's. An amount without enabled turns the cap on too. 400 spend_cap_unavailable on Free; 403 role_forbidden for a dashboard member who isn't the app's Owner. |
Responses
200 | The settings as they are now.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
/videosList your videos
Your app's videos, newest first by default. Every video has its description, tags and metadata. Needs a token signed with your private key.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
limit | query | integer | Page size, 1 to 100. |
cursor | query | string | The nextCursor of the previous page. Use it with the same filters and sort. Paging is stable: files added or deleted while you page are never skipped or repeated. |
sort | query | "createdAt" | "name" | |
order | query | "asc" | "desc" | Defaults to desc, except for sort=name which defaults to asc. |
createdBefore | query | string (date-time) | Only items created before this date or time (ISO 8601). |
createdAfter | query | string (date-time) | Only items created after this date or time (ISO 8601). |
name | query | string | Only videos whose name contains this text, ignoring case. |
status | query | "pending" | "processing" | "ready" | "failed" | |
kind | query | "video" | "audio" | Only videos (video) or only audio files (audio). Both when left out. |
source | query | "recording" | "upload" | Only recordings (recording, made with Fileboy's recorder) or only other uploads (upload). Both when left out. |
tags | query | string[] | Only videos that have every one of these tags (up to 20). Comma-separated, tags=launch,2026, or repeated, tags=launch&tags=2026. Tags are case-sensitive. |
metadata | query | Metadata | Only videos whose metadata contains these pairs. Send metadata[key]=value once per pair (up to 20), or one JSON object like {"orderId":"42"}. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
200 | One page of videos.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}Change a video's name, description, tags, metadata, player branding or privacy
Only the fields you send change, and a request that would break a limit, or has an invalid field, changes nothing. description is public: the watch page and /videos/{id}/data show it. tags and metadata are private: they are only in management responses and webhooks. tags is a list that replaces the tags, null to remove them all, or {"add": [...], "remove": [...]} to change some. metadata is merged like a file's: a null value removes a key, replaceMetadata: true replaces it all. playerBranding is this video's own branding on top of the app's: each field it sets replaces the app's, controls merge control by control, and null makes the video follow the app again.
allowDownloads: false turns the video's downloads off: the player hides its download button, and the original file, /videos/{id}/audio.m4a and the MP4 downloads answer 403 downloads_disabled unless the request has the private key or a URL signed for the download scope. Streaming is not affected, so it cannot stop someone recording their screen. embedDomains lists the websites allowed to show the video's embed and watch pages in a frame (a Content-Security-Policy: frame-ancestors header on those pages); [] allows any site and null follows the app's default (embedDomains in /app/settings). It does not stop direct use of the video's stream URLs: use signed reads and expiring links for that.
visibility is who can watch it: app (the default) follows the app's read setting; public opens it to anyone with its id, even in an app that requires signed reads; unlisted follows the app and leaves out the watch page's oEmbed discovery tag; private needs a signed URL, the private key or an expiring link even in a public app; password needs one of those or a grant from POST /videos/{id}/unlock. Send password (8 characters to 72 bytes) with "visibility": "password" to set or change it; only a bcrypt hash is kept and it is never shown. Changing it ends every grant made for the old one, and any other visibility removes it. A video's setting only tightens the app's, except public: in an app that requires signed reads, unlisted and password videos need a signature like private ones. See https://fileboy.io/docs/video/privacy.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Request body
application/jsonname | string | |
description | string | null | Plain text, trimmed, line breaks kept. No control characters other than tabs and line breaks. "" or null removes it. |
tags | VideoTags | null | object | A list replaces the tags, null removes them all, an object changes some. |
metadata | object | Pairs to set. A null value removes the key. A video can have up to 100 keys of 1 to 128 characters, with no [, ] or control characters, and values up to 4096 characters. The stored metadata is at most 16 KB. |
replaceMetadata | boolean | Make metadata the complete new metadata instead of changes to the old. Values cannot be null. |
playerBranding | PlayerBranding | null | This video's own player branding, on top of the app's. null makes the video follow the app again. |
allowDownloads | boolean | False turns the video's downloads off (the original and the audio need the private key or a download-scope signature), true turns them back on. |
embedDomains | array | null | The websites allowed to show the video in a frame, like https://example.com or https://*.example.com. [] allows any site, null follows the app's default. |
visibility | VideoVisibility | |
password | string | The password of a password video, sent with "visibility": "password": 8 characters to 72 bytes. Stored as a bcrypt hash only. Leave it out to keep the current one. |
Responses
200 | The video as it is now.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}Delete a video
On a plan that keeps deleted files (Pro 7 days, Max 30) the video goes to the trash with everything it holds: it stops playing at once, processing skips it, and it can be restored with POST /videos/{id}/restore until its time runs out. It counts toward storage until it is deleted for good, not toward the video or audio count. On a plan with no trash (Free), or with POST /videos/{id}/purge, it is removed at once: the original, the posters, the transcripts and every rendition from storage, then the video. Sends a video.deleted webhook either way. 404 if there is no such video or it was already deleted. If storage cannot be reached the answer is 500: the video is still listed, with whatever was not yet removed, and the request can be repeated to finish.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
204 | Deleted. |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
500 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/restoreRestore a video
Takes a video out of the trash with everything it holds: the same id, links and embeds play again. Sends video.restored. Refused with 403 limit_reached when the app already has as many videos (or audio files, for audio) as its plan allows. 404 when it is not in the trash.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
200 | The video, as it is now.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/moveMove a video to another app
Moves a video, with the files it uses (original, renditions, posters, captions, thumbnails, attachments), its comments, reactions, captions jobs, summaries, expiring links and its own analytics, into another app of yours. It keeps its id, so file and image URLs by id keep working; URLs made with this app's keys (signed URLs, viewer links and grants, label URLs) stop working for it, and the other app's settings (visibility, embed domains, branding, watermark) apply to it. Its labels move with their files (one the other app already has is removed), and it leaves this app's playlists and folders. A file another video of this app also uses stays until the last of them moves. Both apps must agree: sign the request with this app's private key, and send to, a token made with the other app's private key (as the SDKs make one for Authorization). Scoped keys and personal access tokens can't move videos. dryRun only says what would happen. Refused with 409 move_refused when the other app can't take it (suspended, being deleted, or its plan has no room), 409 video_busy when the video can't move now (still processing, an upload open, a file disabled or on your own storage), and 404 when it isn't in this app.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
Request body
application/jsonto * | string | A token made with the private key of the app the video goes to (PUBLIC_KEY$NONCE$JWT, with or without token in front). |
dryRun | boolean | Only say what would happen. |
Responses
200 | What moved (or, with dryRun, would move).application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
409 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/purgeDelete a video forever
Deletes a video for good at once, with its original, renditions, posters and captions, whether it is in the trash or not. Sends video.purged for one that was in the trash, video.deleted for one that wasn't. Can't be undone.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
204 | Deleted for good. |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
500 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/posterChoose a video's poster: a suggested frame, or the automatic or custom one
{ "suggestion": "<fileId>" } makes one of the video's posterSuggestions its poster. The suggestion becomes the video's custom poster, exactly as if it had been uploaded, so every poster rule stays the same; the automatic poster is kept. { "source": "automatic" } goes back to the frame picked when the video was processed, { "source": "custom" } to the custom poster. 400 when the file is not one of this video's suggestions, 409 no_custom_poster when there is no custom poster to switch to.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Request body
application/jsonResponses
200 | The video as it is now.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
409 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/extrasMake or remake a video's poster suggestions, animated preview and MP4 downloads
Fileboy makes them for every new video without being asked, once it is ready. This queues making them for a video processed before they existed, or again after a failure. The job runs in the background when no upload is waiting; what the video had is served until the new ones replace it, and a suggestion chosen as the poster is kept. Asking again while they are queued or being made changes nothing (queued is false). No webhook is sent: extras.status on the video says when they are ready. 409 video_not_ready while the video is still processing, or if it failed.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
202 | Queued, or already queued or being made.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
409 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/thumbnailsMake or remake a video's seek-preview thumbnails
Queues making the video's seek-preview thumbnails, as the dashboard's Generate button does: for a video processed before they existed, to remake them in the current format, or to try again after a failure. Fileboy makes them for every new video without being asked. The job runs in the background when no upload is waiting, usually within seconds, and ends with a video.thumbnails_ready or video.thumbnails_failed webhook. Asking again while they are queued or being made changes nothing (queued is false). 409 video_not_ready while the video is still processing, or if it failed.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
202 | Queued, or already queued or being made.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
409 | The video is not ready (video_not_ready).application/json |
/videos/{id}/replaceReplace a video's source file
Uploads a new file for an existing video, as multipart form data with the file as file (content type video/*, or audio/* for an audio file: the kind is kept, so an audio file takes audio and a video takes a video). The video keeps its id, so its URLs, embeds, expiring links, playlists, captions, chapters, poster choice, branding, privacy, description, tags and metadata all stay as they are: only the picture and sound change. The answer comes as soon as the file is stored, with the video's replacement.status pending. Encoding runs in the background while the old version keeps playing (status stays ready). Once every new rendition is made they are swapped in at once, the video's version goes up by one and the old files are deleted, so the app stores one copy again. Segment, audio and MP4 URLs carry the version (v=N from 2) and an older version's URL is 410, so nothing cached of the old version is served for the new one, and fileboy-player 1.5.0+ playing it at the time loads the new version. A video.replaced webhook says when it plays; video.replacement_failed when the new file could not be used: the old version then stays, the new file is deleted and replacement.message says why. Chapters that start after the new end are kept, and replacement.message counts them. Seek-preview thumbnails, poster suggestions, the animated preview and MP4 downloads are made again. Needs the app's private key. 409 video_not_ready while the video's first upload is still processing, 409 replacement_in_progress while another replacement waits or runs. 403 storage_limit_reached when the new version (the file, plus renditions estimated in proportion to the current ones) would grow storage past the app's limit.
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 new video. |
Responses
202 | Stored and queued. The video, with replacement.status pending.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 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
409 | The video is still processing (video_not_ready), or already has a replacement in progress (replacement_in_progress).application/json |
413 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/trimTrim a video
Cuts the video down to start..end, in seconds of the video as it plays now. The range must be inside the video (0 <= start < end <= duration), at least a second long, and not the whole video. A video whose upload the virus scan found infected can't be trimmed (403 file_infected), and neither can it be cut into a clip or stitched. A trim works like a replacement (POST /videos/{id}/replace) whose new source Fileboy cuts itself: the answer comes at once, with replacement.status pending and replacement.reason trim. The current version keeps playing while the range is encoded; then it is swapped in under the same id, version goes up by one and video.replaced is sent with replacement.reason trim. If it fails, the video plays as before, replacement.message says why and video.replacement_failed is sent. Chapters and caption cues move back by start. A chapter already running at start begins at 0; chapters that end before the range or start at or after its end are removed. Cues that overlap an edge are shortened to fit, cues wholly outside are removed. replacement.message counts what was removed. The cut becomes the video's original (rawFileId, the original download). The upload it was cut from is kept, so the trim can be reset (POST /videos/{id}/trim/reset) or done again with another range, cut afresh from the upload. It counts towards the app's storage, as a video original, until the trim is reset or the video is replaced or deleted, and it is never served unsigned. A trim of a cut video (POST /videos/{id}/cuts) keeps the range of what plays now, through the cut's edit list. Needs the app's private key. 400 invalid_range; 409 video_not_ready while the video is processing; 409 replacement_in_progress while a replacement, trim or cut waits or runs; while a trim, cut or reset waits or runs, caption track uploads and edits (POST /videos/{id}/transcripts/upload, PUT /videos/{id}/transcripts/{transcriptId}) also answer 409 replacement_in_progress; 403 storage_limit_reached when the trimmed version (estimated in proportion to the current one) would take storage past the app's limit.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Request body
application/jsonstart * | number | |
end * | number |
Responses
202 | Queued. The video, with replacement.status pending and replacement.reason trim.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 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
409 | The video is still processing (video_not_ready), or a replacement or trim is in progress (replacement_in_progress).application/json |
/videos/{id}/trim/resetReset a video's trim
Puts a trimmed or cut video back to the whole upload it was made from, undoing every trim and cut, as a replacement with replacement.reason reset_trim: the trimmed version plays until the whole one is encoded, then version goes up and video.replaced is sent. The cut is deleted. Chapters and caption cues move back to where they play in the upload; the ones a trim or cut removed do not come back. No body. Needs the app's private key. 409 not_trimmed for a video that is not trimmed, and the other errors of POST /videos/{id}/trim.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
202 | Queued. The video, with replacement.status pending and replacement.reason reset_trim.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 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
409 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/clipsMake a clip of a video
Makes a new video in the same app from start..end of this one (seconds of it as it plays now, at least a second long). The source video is not changed (403 file_infected when its upload was found infected by the virus scan). The clip is cut from the source's original and processed like an upload: video.uploaded now (with clipOf), then video.ready or video.failed. It counts as a new video towards the app's file and storage limits. Its chapters and caption tracks are copied from the source and moved to its own timeline, by the rules of POST /videos/{id}/trim. It is as private as the source: its visibility (a password video's clip takes the same password), downloads setting and embed domains are copied. name defaults to the source's name with " (clip)". If the source is replaced, trimmed or deleted before the clip is cut, the clip fails. Needs the app's private key. 400 invalid_range; 409 video_not_ready when the source isn't ready; 409 replacement_in_progress while the source has a replacement, trim, cut or blur waiting or running (the clip would be cut from the version being replaced, so ask again once it is done); 403 limit_reached (a clip is a video, whose files never count towards the file limit); 403 storage_limit_reached.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Request body
application/jsonResponses
201 | The new video, status pending until it is cut and processed.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 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
409 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/cutsRemove sections of a video
Removes any number of sections from the video, in seconds of the video as it plays now, and joins what is left, under the same id. Each section must be inside the video (0 <= start < end <= duration); sections that overlap or touch are merged, at least a second of the video must be left, and a cut must remove something. A trim (POST /videos/{id}/trim) is the one-range case: a cut works the same way, as a replacement with replacement.reason cut. The current version plays until the cut is encoded; then version goes up and video.replaced is sent with replacement.reason cut, replacement.cut.removed (the merged sections) and replacement.trim.keep (the edit list: the ranges of the untrimmed upload that now play). If it fails, the video plays as before and video.replacement_failed is sent. Chapters and caption cues move to the new timeline: a chapter that starts inside a removed section starts at the cut, one wholly removed is dropped; a cue across a cut is shortened by what was removed, a cue wholly removed is dropped. replacement.message counts what was removed. Every cut is made afresh from the untrimmed upload, which is kept, so trims and cuts can follow one another and POST /videos/{id}/trim/reset puts the whole upload back. Needs the app's private key. 400 invalid_range; 409 video_not_ready; 409 replacement_in_progress while a replacement, trim or cut waits or runs (caption track uploads and edits answer the same while a cut does); 403 storage_limit_reached.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Request body
application/jsonremove * | CutRange[] | The sections to remove, in any order. |
Responses
202 | Queued. The video, with replacement.status pending and replacement.reason cut.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 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
409 | The video is still processing (video_not_ready), or a replacement, trim or cut is in progress (replacement_in_progress).application/json |
/videos/{id}/fillersGet a video's filler word and silence scan
The latest scan for filler words and silences (POST /videos/{id}/fillers/detect): where it is, and once done the regions it proposes to remove, how much time they save, and whether the video changed since (stale). Nothing is removed until you apply them. status is none before the first scan.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
200 | The scan.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/fillers/detectFind filler words and silences in a video
Scans the video for pauses longer than minSilence and for filler words ("um", "uh", "erm", "you know" in English; other languages have their own list, or send fillerWords). It only proposes: review the regions with GET /videos/{id}/fillers and cut the ones you keep with POST /videos/{id}/fillers/apply. Pauses are found with ffmpeg on the video's sound, with no AI. Filler words need word timings: they are only looked for with fillers: true. Then, when the server has an OpenAI key, the video's speech is sent to OpenAI (whisper-1) once more, asked to write every filler, and counts in the app's transcription usage (GET /usage/transcription); scanning the same version again reuses those words and sends nothing. A video or app whose auto captions were turned off is never sent. Otherwise, or if OpenAI fails, the words of the video's auto captions are used (they often leave fillers out), or only pauses are found, with a message. Each pause keeps padding seconds at both ends; regions never cut into a kept word, a filler widens to where its sound starts and stops, pauses (or fillers) close together merge, a pause and a filler stay separate so either can be kept, and edges snap inward to the video's frames. At most 100 regions are proposed (what one cut removes): the longest, with capped true. Answers at once, pending. A scan already queued is left as it is (and isn't counted). 409 video_not_ready, 409 replacement_in_progress while an edit is processed, 429 rate_limited after 30 scans an hour per app. Needs the AI add-on (402 ai_addon_required), except for a recording of up to 15 minutes a signed-in person made, whose scans are free and use no AI credits (see VideoSource). A longer recording needs the add-on like any video.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Request body
application/jsonsilences | boolean | Look for pauses. |
fillers | boolean | Look for filler words too. This can send the video's speech to OpenAI (see above), so it is only done when asked for. |
minSilence | number | The shortest pause to remove, in seconds. |
padding | number | The pause kept at each end of a removed pause, in seconds, so speech doesn't start or stop abruptly. Less than half of minSilence. |
language | string | The language spoken, for the filler list and OpenAI (en, fr, de, es and nl have their own lists; others use English). Left out: the captions' language, or heard by OpenAI. |
fillerWords | string[] | Your own filler list in place of the language's, each one to three words. A filler of more than one word only counts when a pause sets it off. |
Responses
202 | Queued.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 | ai_addon_required: the app doesn't have the AI add-on, which every AI feature needs (paid plans only: add it on the app's Plan & billing page). Anything already made stays readable. See /docs/ai-addon. Or spend_cap_reached: the app is at its spend cap while overage billing is on, so no new AI work starts until the month ends (resetsAt) or the cap is raised (usageUrl). See /docs/usage-alerts.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
409 | An error. error is a short code and message says what went wrong.application/json |
429 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/fillers/applyRemove the filler words and silences you kept
Cuts the regions named (their ids from GET /videos/{id}/fillers, with that scan's scanId) out of the video as one cut: it works exactly like POST /videos/{id}/cuts, with replacement.reason cut. The current version plays until the cut is encoded; chapters, captions, translations, the transcript and blurs move with it, and POST /videos/{id}/trim/reset puts the whole upload back. Name the regions to remove: nothing is ever applied without them. 409 no_filler_scan before a scan is done, 409 fillers_stale when the video changed since the scan, or it was scanned again since (scanId is no longer its scan: read it again), 409 replacement_in_progress, 400 for an unknown region, 403 storage_limit_reached.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Request body
application/jsonscanId * | string (uuid) | The scanId of the scan the regions are from. Region ids are only unique within one scan, so this makes sure the regions cut are the ones reviewed. |
regions * | string[] | The ids of the regions to remove. |
Responses
202 | Queued. The video, with replacement.status pending and replacement.reason cut.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 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
409 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/blursList a video's blurs
The regions the video blurs (PUT /videos/{id}/blurs), in the order they were set. Each blur has its times on the timeline that plays now (start, end) and on the untrimmed upload's (untrimmedStart, untrimmedEnd): blurs are kept on the upload's timeline, so trims, cuts and resets keep them. A blur wholly inside a section a trim or cut removed is kept but not active (active false, start and end null); it applies again if the trim is reset. Needs the app's private 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. |
Responses
200 | The blurs.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/blursSet a video's blurs
Replaces the whole list of regions the video blurs: a box (x, y, width, height, fractions 0 to 1 of the picture as it is shown, so it fits every rendition and allows for rotation) for a time range (start, end, seconds of the video as it plays now, at least 0.1 s long, inside the video). The box must lie within the picture and be at least 1% of it each way. strength is light, medium (the default) or strong: each pixelates and blurs the region so what was under it can't be recovered; they differ in how coarse it is. At most 50 blurs; an empty list removes every blur. To keep a blur as it is, send it back with untrimmedStart and untrimmedEnd (as GET /videos/{id}/blurs shows them) in place of start and end: that is the only way to keep one that is not active. It works like a trim, as a replacement with replacement.reason blur: the current version plays until the blurred one is encoded, then version goes up (URLs of the old version answer 410) and video.replaced is sent with replacement.reason blur and replacement.blurCount; if it fails, the video plays as before and video.replacement_failed is sent. A list that is what the video already has answers 200 and queues nothing. Once the blurs are in, everything served is made from the blurred version: every rendition and segment, the MP4 and original downloads (rawFileId is the blurred render), the poster, the seek-preview thumbnails, the poster suggestions, the animated preview, and clips and stitches made from then on (clips made before keep what they were cut from). The upload it was made from is kept, as for a trim, and is only ever read with a signed URL; it counts towards storage until the blurs and any trim are removed. A custom poster that was a frame inside a blurred range (a chosen poster suggestion, or a chosen frame whose time is no longer known) is removed, and the automatic poster is shown; an uploaded poster image is kept. Chapters and captions don't change. Replacing the video with a new file (POST /videos/{id}/replace) removes every blur. Needs the app's private key. 400 invalid_range; 409 video_not_ready; 409 replacement_in_progress while a replacement, trim, cut or blur waits or runs (caption track uploads and edits, and clips (POST /videos/{id}/clips), answer the same while a blur does); 403 storage_limit_reached.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Request body
application/jsonblurs * | object[] | The whole list. Empty removes every blur. |
Responses
200 | The list is what the video already has: nothing is queued. The video.application/json |
202 | Queued. The video, with replacement.status pending and replacement.reason blur.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 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
409 | The video is still processing (video_not_ready), or a replacement, trim, cut or blur is in progress (replacement_in_progress).application/json |
/app/video-watermarkGet the app's default video watermark
The watermark burned into the renditions of the app's videos when they are encoded, unless a video has its own setting (PUT /videos/{id}/watermark). Null for none. Needs the app's own private key.
Authorization: public key or signed token
Responses
200 | The default.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
/app/video-watermarkSet the app's default video watermark
Sets (or, with null, removes) the watermark the app's videos are encoded with: a logo, text, or both, placed like an image's overlay and text layers, with sizes relative to the video so one watermark fits every rendition. It applies to videos encoded from now on (uploads, and replacements, trims, cuts and blurs of existing videos). Nothing is re-encoded by this call: an existing video keeps the watermark it was encoded with until it is re-processed (POST /videos/{id}/reprocess). The renditions are watermarked, so the MP4 downloads, thumbnails and animated preview are too; the original upload and the poster taken from it are not. Audio files are never watermarked. A logo must be a PNG, JPEG, WebP, BMP or TIFF image of this app of at most 5 MB, not quarantined; any other id is the same 400. A tiled layer too small to tile on an HD picture is a 400. Needs the app's own private key. Recorded as settings.updated.
Authorization: public key or signed token
Request body
application/jsonwatermark * | VideoWatermark | null |
Responses
200 | The default as stored, with every default filled in.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/watermarkGet a video's watermark
The video's own setting (app follows the app's default, off, or custom), the app's default, what a re-process or edit would encode it with now (effective), what the version that plays now was encoded with (applied, null for none and for videos encoded before watermarks existed), and upToDate, false when the two differ. supported is false for an audio file. Needs the app's private 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. |
Responses
200 | The video's watermark.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/watermarkSet a video's watermark
Sets the video's own watermark: {"mode": "app"} (or null) follows the app's default, {"mode": "off"} has none, and {"mode": "custom", "logo": ..., "text": ...} has its own. Nothing is re-encoded: the video plays the version it has until it is re-processed (POST /videos/{id}/reprocess) or edited; upToDate in the answer says whether that would change it. A logo is checked as for the app's default, and one that needs a signature to read (authenticated, or an app that requires signed reads) also needs a scoped key to have files:read. Needs the app's private key. 400 validation_error; 409 not_supported_for_audio for an audio file. Recorded as video.updated.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Request body
application/jsonwatermark * | VideoWatermarkSetting | null |
Responses
200 | The video's watermark, as GET answers.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
409 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/retryRetry a failed or stuck video
Puts a video back in the queue: one that failed (status failed), or one stuck processing, with no progress written for 5 minutes (processing.updatedAt, or when it started). It is processed again from its original, as a first upload is, and answers with status pending; video.ready or video.failed follows. Free: it isn't counted against your plan. Up to 3 retries per video (retries), counted apart from the processor's own attempts; after that, contact support. No body. Needs the app's private key, or a scoped key with videos:write. 403 file_infected (the virus scan found the upload infected: it is never processed). 409 retry_limit_reached, already_queued, video_ready (use POST /videos/{id}/reprocess to encode a ready video again), still_processing (a heartbeat in the last 5 minutes), video_in_trash (restore it first), replacement_in_progress, app_deleting (the app is being deleted) or not_retryable (a state that cannot be retried). Recorded as video.retried.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
202 | Queued again. The video, with status pending and retries.used one more.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 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
409 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/reprocessRe-process a video with its current watermark
Encodes the video's original again, as it is, with the watermark it has now (GET /videos/{id}/watermark effective), as a replacement with replacement.reason reprocess: the current version plays until the new one is encoded, then it is swapped in, version goes up (URLs of the old version answer 410, so caches move on) and video.replaced is sent; if it fails, the video plays as before and video.replacement_failed is sent. The original, trim, blurs, chapters and captions are not changed; the poster, thumbnails, poster suggestions, animated preview and MP4 downloads are made again. No body. Needs the app's private key. 409 watermark_up_to_date (nothing would change, and nothing is queued), video_not_ready, replacement_in_progress or not_supported_for_audio. Recorded as video.reprocessed.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
202 | Queued. The video, with replacement.status pending and replacement.reason reprocess.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 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
409 | An error. error is a short code and message says what went wrong.application/json |
/videos/stitchStitch videos together
Makes a new video in the same app that plays whole videos of the app one after another, in the order given (2 to 20; a video can appear more than once). The sources are not changed (403 file_infected when one's upload was found infected by the virus scan). The new video is made from their originals, each re-encoded to one picture size (the largest source's; the others are fitted inside it, with black bars) and frame rate (the highest, up to 60 fps), with silence added for a source that has no sound. It is processed like an upload: video.uploaded now (with stitchedFrom), then video.ready or video.failed. It counts as a new video towards the app's file and storage limits. Chapters are joined, each video's moved later by the length of the videos before it. Caption tracks are joined the same way, one track per language that every source has a track in; a language missing from any source is left out. The new video is as private as the most private source: private when any source is private or has a password (a password is never copied, so share it with a link or make it a password video yourself), otherwise the strictest of unlisted, app and public; downloads are on only if every source allows them; and it can be framed only on the sites every source allows (private when they have none in common). name defaults to the first two names joined with " + ", or the first and how many more. If a source is replaced, trimmed, cut or deleted before it is joined, the new video fails with a message saying so. Needs the app's private key. 404 video_not_found when any id is not one of the app's videos; 409 video_not_ready when a source isn't ready; 409 replacement_in_progress when a source is being replaced, trimmed or cut; 403 storage_limit_reached (a stitch is a video, whose files never count towards the file limit).
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Request body
application/jsonvideos * | string (uuid)[] | The videos to join, in the order they play. |
name | string | The new video's title. |
Responses
201 | The new video, status pending until it is joined and processed.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 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
409 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/transcripts/{transcriptId}Replace a caption track's text
Saves new WebVTT for one of a video's caption tracks, as the dashboard's caption editor does. The track keeps its id, so players and pages that link to it pick up the new text. The text is stored as a new file (counted as caption storage, like an upload) and the old file is deleted. It swaps one file for another, so it never counts against the file limit: an app at its limit can still edit its captions. Only growth over the old text is checked against the storage limit. Checked before it is saved: it must start with a WEBVTT line, be UTF-8, at most 512 KB, and every cue must end after it starts, in start time order (invalid_vtt, with the line). Cue settings, NOTE, STYLE and REGION blocks are kept as sent. No webhook is sent.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
transcriptId * | path | string (uuid) | |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Request body
application/jsonvtt * | string | The whole track as WebVTT. |
language | string | A new language for the track, like en, en-GB or pt-BR. Leave it out to keep the track's own. |
Responses
200 | The track, now serving the new text.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, or storage_limit_reached when the new text is bigger than the old and the difference would take the app over its storage limit.application/json |
404 | video_not_found, or transcript_not_found when the video has no such track.application/json |
415 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/transcriptionGet a video's auto-generated captions
Speech to text of the video's sound, made by OpenAI: the plain text, the timed segments (with word timings when the model gives them), the caption track they are on (trackId), and the video's settings. It is off by default: the app's autoCaptions setting or the video's own turns it on, and only then is its sound sent. Then each new or replaced video is transcribed once it is processed, and POST /videos/{id}/transcribe does it on request. Trims and cuts move the segments with the caption track, so they always agree. The plain text is also on /videos/{id}/data while the track exists.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
200 | The transcription.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/transcriptionTurn auto-generated captions on or off for a video, or choose its language
autoCaptions: true lets this video's sound be sent to OpenAI even when the app's setting is off, false never sends it, and null follows the app. language is the language to transcribe in (a code like fr or pt-BR; its first part must be a language the speech model knows, or it is refused with a 400), or null to use the app's (or detect it). Changing them doesn't transcribe the video: use POST /videos/{id}/transcribe. Needs the app's own private key, like the app settings.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
Request body
application/jsonautoCaptions | boolean | null | |
language | string | null |
Responses
200 | The transcription, with the new settings.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/transcribeMake a video's captions by speech to text now
Queue the video's transcription: for videos uploaded before auto captions were on, after editing the language, or to try again. A video already queued or being transcribed is left as it is, its language too. language (optional) sets this video's language for the job it queues. The sound is sent to OpenAI as compressed mono audio, in pieces. A track you haven't edited gets the new words; one you have edited is kept and a new track is made beside it. Sends video.transcribed when done. 409 auto_captions_off while the app and the video have it off, 409 video_not_ready while it is processed, 422 no_audio for a video with no sound, 429 rate_limited after 60 requests an hour per app, and 503 transcription_unavailable when the server has no OpenAI 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
application/jsonlanguage | string | null |
Responses
202 | Queued. The transcription, with status pending.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 | ai_addon_required: the app doesn't have the AI add-on, which every AI feature needs (paid plans only: add it on the app's Plan & billing page). Anything already made stays readable. See /docs/ai-addon. Or spend_cap_reached: the app is at its spend cap while overage billing is on, so no new AI work starts until the month ends (resetsAt) or the cap is raised (usageUrl). See /docs/usage-alerts.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
409 | An error. error is a short code and message says what went wrong.application/json |
422 | An error. error is a short code and message says what went wrong.application/json |
429 | An error. error is a short code and message says what went wrong.application/json |
503 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/transcripts/{transcriptId}/translateTranslate a caption track into other languages
Translate one of the video's caption tracks, uploaded or auto-generated, into each language in languages, by OpenAI. The track's caption text is sent to OpenAI (never the video), in batches of cues with ids, and the answer is checked to be the same cues before it is used. Each language becomes a new caption track marked machine-translated, with the source's cue timings exactly: only the words change. It answers at once with each translation pending, and sends video.captions_translated as each is made. A language already queued or being translated is left as it is. Translating a language again replaces the track Fileboy made, unless the owner edited it: then theirs is kept and a new track is made beside it. A translation is marked stale when its source track changes afterwards; translating again updates it. 422 too_many_languages when the video would be in more languages than TRANSLATION_MAX_LANGUAGES (default 10), 400 validation_error for a bad language or the language the track is already in, 404 transcript_not_found, 409 replacement_in_progress while the video is being trimmed, cut or blurred, 429 rate_limited after 120 languages an hour per app (a request that doesn't fit is refused whole, and nothing in it is queued), and 503 translation_unavailable when the server has no OpenAI key.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
transcriptId * | path | string (uuid) | The caption track to translate: any of the video's tracks. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Request body
application/jsonlanguages * | string[] | Language codes to translate into, like fr, es or pt-BR. |
Responses
202 | Queued. One translation per language, each with status pending.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 | ai_addon_required: the app doesn't have the AI add-on, which every AI feature needs (paid plans only: add it on the app's Plan & billing page). Anything already made stays readable. See /docs/ai-addon. Or spend_cap_reached: the app is at its spend cap while overage billing is on, so no new AI work starts until the month ends (resetsAt) or the cap is raised (usageUrl). See /docs/usage-alerts.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
409 | An error. error is a short code and message says what went wrong.application/json |
422 | An error. error is a short code and message says what went wrong.application/json |
429 | An error. error is a short code and message says what went wrong.application/json |
503 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/translationsList a video's translated captions
Every translation of the video's caption tracks and where each is: pending, processing, done, failed or skipped, with its caption track once done and stale when its source track has changed since. Also whether translation is available on this server, the most languages a video can have, and the app's automatic languages.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
200 | The translations.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/translations/{translationId}Get one translation of a video's captions
One translation, for its status: the job and the track it made.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
translationId * | path | string (uuid) | The translation's id, from translateCaptions or listCaptionTranslations. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
200 | The translation.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/documentsList a video's documents
The documents written from the video's captions, newest first, with how many it may hold and whether this server can write them (available is false without an OpenAI key). Documents are private to the app.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
200 | The documents.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/documentsWrite a document from a video's captions
Has OpenAI write a document from one of the video's caption tracks (transcriptId, or when left out its auto-generated captions, else one of the owner's tracks): guide (a step-by-step guide), meeting_notes (a summary, key points, decisions and action items with owners where the captions name them), tasks (a task list) or custom (the owner's instruction, at most 500 characters). Only the cues' words and start times are sent, never the video. The answer is Markdown in which each step, section or item links to the moment it begins as [1:23](#t=83). The times come from the captions' cues, checked against the video's length, never from the model; links, images and HTML in the model's text are removed. It waits for the answer (up to 3 minutes) and answers 201 with the document. 409 too_many_documents when the video holds 20, 422 no_captions or no_words, 404 transcript_not_found, 429 daily_limit_reached after the app's documents for the UTC day (50 by default) or rate_limited at the app's AI limit (30 documents a UTC clock hour, counted for all of Fileboy's servers together, or a monthly cap where the plan sets one: see getAiUsage), 502 bad_answer or openai_error, 503 openai_busy or docs_unavailable (no OpenAI key on the server), 504 openai_timeout.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Request body
application/jsontemplate * | "guide" | "meeting_notes" | "tasks" | "custom" | |
instruction | string | What document to write. Only for, and needed by, the custom template. |
transcriptId | string (uuid) | The caption track to read. Left out: the best one. |
Responses
201 | The document.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 | ai_addon_required: the app doesn't have the AI add-on, which every AI feature needs (paid plans only: add it on the app's Plan & billing page). Anything already made stays readable. See /docs/ai-addon. Or spend_cap_reached: the app is at its spend cap while overage billing is on, so no new AI work starts until the month ends (resetsAt) or the cap is raised (usageUrl). See /docs/usage-alerts.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
409 | An error. error is a short code and message says what went wrong.application/json |
422 | An error. error is a short code and message says what went wrong.application/json |
429 | An error. error is a short code and message says what went wrong.application/json |
502 | An error. error is a short code and message says what went wrong.application/json |
503 | An error. error is a short code and message says what went wrong.application/json |
504 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/documents/{documentId}Get a video document
One document. stale is true when it may no longer match the video: staleReason is captions_changed (the track it was written from was edited or made again), content_removed (a trim or cut took out a moment it links to; its links have moved with the video) or captions_deleted.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
documentId * | path | string (uuid) | A document id. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
200 | The document.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/documents/{documentId}Edit a video document
The owner's own title (1 to 200 characters) or markdown (up to 100,000 characters, no control characters but line breaks and tabs). A changed document is marked edited. Send the updatedAt you read the document at, and the edit is refused with 409 document_changed if something else changed it since (a trim or cut moving its links, say), so it can't put back links that have moved.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
documentId * | path | string (uuid) | A document id. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Request body
application/jsontitle | string | |
markdown | string | |
updatedAt | string (date-time) | The document's updatedAt when you read it. |
Responses
200 | The document.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
409 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/documents/{documentId}Delete a video document
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
documentId * | path | string (uuid) | A document id. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
204 | Deleted. |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/askAsk a question of a video
Has OpenAI answer a question from one of the video's caption tracks only. The answer marks its citations [1], [2]…, and each citation is a moment of the video (start, end, in seconds) with a short quote; they come from the captions' cues, checked against the video's length. When the captions don't answer the question, or the model gives no citation that checks out, answered is false and the answer is "That isn't covered in this video." Send the last few turns as history for a follow-up (the last 6 are used). Questions and answers are not stored. 422 no_captions, 429 daily_limit_reached after the app's questions for the UTC day (300 by default) or rate_limited at the app's AI limit (120 questions a UTC clock hour, or a monthly cap where the plan sets one: see getAiUsage), 502, 503 and 504 as for documents.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Request body
application/jsonquestion * | string | |
history | object[] | |
transcriptId | string (uuid) | The caption track to read. Left out: the best one. |
Responses
200 | The answer.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 | ai_addon_required: the app doesn't have the AI add-on, which every AI feature needs (paid plans only: add it on the app's Plan & billing page). Anything already made stays readable. See /docs/ai-addon. Or spend_cap_reached: the app is at its spend cap while overage billing is on, so no new AI work starts until the month ends (resetsAt) or the cap is raised (usageUrl). See /docs/usage-alerts.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
422 | An error. error is a short code and message says what went wrong.application/json |
429 | An error. error is a short code and message says what went wrong.application/json |
502 | An error. error is a short code and message says what went wrong.application/json |
503 | An error. error is a short code and message says what went wrong.application/json |
504 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/summarizeWrite a video's title, summary and chapters from its captions
Have OpenAI write a title, a summary of two to four sentences and chapters for the video from one of its caption tracks: transcriptId, or when left out its auto-generated captions, else one of the owner's tracks. The track's words and cue start times are sent to OpenAI, never the video. Chapters are checked: none for a video under two minutes, the first at 0, each moved to a cue start, at least 20 seconds long, 3 to 15 of them. Nothing the owner set is overwritten: the title only replaces the video's default name (its file name) or an earlier auto title, the summary only an empty description or an earlier auto summary, and the chapters only no chapters or the earlier auto ones, unchanged. Anything else is kept as a suggestion (see POST /videos/{id}/summary/accept). It answers at once, pending, and sends video.summarized when it is done. A run already queued is left as it is. With auto: true it only starts the run a new caption track would start: when the video's settings (autoSummary, autoChapters) are on and nothing was written yet, making what they turn on. 202 when it started one, 200 when not. A caption track uploaded with the public key never starts a run by itself (anyone with the public key could steer what is written), so call this, signed, after such an upload. 422 no_captions when the video has no caption track, 404 transcript_not_found, 409 video_not_ready, 409 replacement_in_progress while the video is being trimmed, cut or blurred, 429 rate_limited after 60 runs an hour per app, and 503 summary_unavailable when the server has no OpenAI 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
application/jsontranscriptId | string (uuid) | The caption track to read. Left out: the best one. |
parts | "summary" | "chapters"[] | What to write: summary (the title and summary) and chapters. Both when left out. Not with auto. |
auto | boolean | Only as the video's settings would, for a caption track just added: see above. |
Responses
200 | With auto: nothing was started.application/json |
202 | Queued.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 | ai_addon_required: the app doesn't have the AI add-on, which every AI feature needs (paid plans only: add it on the app's Plan & billing page). Anything already made stays readable. See /docs/ai-addon. Or spend_cap_reached: the app is at its spend cap while overage billing is on, so no new AI work starts until the month ends (resetsAt) or the cap is raised (usageUrl). See /docs/usage-alerts.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
409 | An error. error is a short code and message says what went wrong.application/json |
422 | An error. error is a short code and message says what went wrong.application/json |
429 | An error. error is a short code and message says what went wrong.application/json |
503 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/summaryGet a video's auto title, summary and chapters
Where the last run is, what was written, whether each part was put on the video (applied) or kept as a suggestion (suggested), whether the video still has it (autoGenerated), whether the captions changed since (stale), and the video's settings.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
200 | The summary.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/summaryChange a video's own auto title, summary and chapters settings
autoSummary and autoChapters: true or false for this video, or null to follow the app's settings. Needs the app's own private key: turning it on agrees to send the video's captions to OpenAI.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
Request body
application/jsonautoSummary | boolean | null | |
autoChapters | boolean | null |
Responses
200 | The summary, with the new settings.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/summary/acceptPut suggested title, summary or chapters on the video
Puts the parts named that are suggestions on the video in place of the owner's own: title becomes its name, summary its description, chapters its chapters. A part already applied is left as it is, even if the owner changed it since. Give summarizedAt from the summary you showed, and a result written since is refused with 409 summary_changed. 404 summary_not_found before anything was written, 409 nothing_to_accept when none of the parts named is a suggestion.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Request body
application/jsonparts * | "title" | "summary" | "chapters"[] | |
summarizedAt | string (date-time) | The summarizedAt of the summary you looked at: when it was written again since, nothing is accepted (409 summary_changed). |
Responses
200 | The summary.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
409 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/chaptersGet a video's chapters
The video's chapters in start time order: named sections that players show as marks on the seek bar. Each runs until the next one starts, the last to the end of the video.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
200 | The chapters, [] when there are none.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/chaptersSet a video's chapters
Replaces the whole list; [] removes them all. Up to 100 chapters, each a title of 1 to 100 characters (spaces tidied) and a start time in seconds, before the end of the video, no two at the same time (to the millisecond). They are saved sorted by start time. A list read with getVideoChapters can be sent back as it is: endTime is ignored. Players read them from GET /videos/{id}/chapters.vtt.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Request body
application/jsonchapters * | object[] |
Responses
200 | The chapters as saved.application/json |
400 | validation_error, saying which chapter and why.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
415 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/attachmentsList a video's attachments
Files of the app attached to the video, in order: the watch page lists them under the video as downloads, for anyone who can watch it. Each says whether it is offered now (available), and why not.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
200 | The attachments, [] when there are none.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/attachmentsAttach a file to a video
Attaches one of the app's own files (not one in the trash or a part of a video), last in the list. Nothing is copied: the file counts towards storage as before. A video can have 20, counting attachments whose file is in the trash. name is shown in place of the file's name (1 to 200 characters, spaces tidied); leave it out for the file's own.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Request body
application/jsonfileId * | string (uuid) | |
name | string | null |
Responses
201 | The attachment.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | No such video (video_not_found), or file to attach (file_not_found).application/json |
409 | The file is attached already (already_attached), or the video has 20 (attachment_limit_reached).application/json |
415 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/attachments/orderReorder a video's attachments
Every one of the video's attachments, once each, in the new order.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | The video's id. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Request body
application/jsonattachmentIds * | string (uuid)[] |
Responses
200 | The attachments in their new order.application/json |
400 | validation_error: the list isn't each of the video's attachments once.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
415 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/attachments/{attachmentId}Rename a video attachment
name is the name shown (1 to 200 characters), or null (or an empty string) for the file's own name.
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 |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Request body
application/jsonname * | string | null |
Responses
200 | The attachment.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
415 | An error. error is a short code and message says what went wrong.application/json |
/videos/{id}/attachments/{attachmentId}Remove a video attachment
Detaches the file from the video. The file stays in the app.
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 |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
204 | Removed. |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |