Documentation
Guides and API reference for uploads, image transforms and video.
npm install @cd2/fileboy-react API https://api.fileboy.io
Documentation menu
Documents and Q&A
Turn a recording into a written guide, meeting notes or a task list, and ask it questions. OpenAI reads the video's captions; every step and every answer links to the moment it comes from.
402 ai_addon_required and automatic runs are skipped; anything already made stays. Cost in AI credits: video documents: 10 credits per million tokens sent, 50 per million written (about 0.2 credits a document from a 30 minute video); video questions: 10 credits per million tokens sent, 50 per million written (about 0.07 credits a question). See the AI add-on.What it reads
Both read one of the video's caption tracks: its auto-generated captions while it has them, otherwise one you uploaded or wrote (machine-translated tracks come last), or the one you name with transcriptId. A video with no captions answers 422 no_captions. The video and its sound are never sent, only the cues' words, each with an id and its start time, and the video's length.
Times never come from the model. It names the cues it used by their id, and Fileboy checks each one: an id that isn't one of the cues sent, or a cue that starts after the end of the video (captions that run on past a trim), is dropped. The timestamps you see are the starts of the cues that pass.
Documents
Pick a template:
guide: a step-by-step guide or SOP, the steps in order, each linked to where it starts;meeting_notes: a summary, the key points, the decisions made and the action items, with an owner where the captions name one (never guessed);tasks: every action item and next step as a checklist;custom: your owninstructionof up to 500 characters (an FAQ, release notes, a blog post). It only says what to write: it can't change the rules above.
In the dashboard, open the video's Docs & Q&A tab, choose a template and press Generate. It takes up to 3 minutes, and the request waits for it. From your server, with the private key (or a scoped key with videos:write to write, edit and delete, and videos:read to list and read):
// or "meeting_notes", "tasks", "custom"
const doc = await fileboy.createVideoDocument(video.id, { template: "guide" })
doc.markdown // "### 1. Open the settings page ([0:30](#t=30))..."
const { documents } = await fileboy.listVideoDocuments(video.id)
await fileboy.updateVideoDocument(video.id, doc.id, { markdown: "# My guide" })
await fileboy.deleteVideoDocument(video.id, doc.id)doc = fileboy.create_video_document(video.id, template: "guide")
fileboy.list_video_documents(video.id).documents
fileboy.update_video_document(video.id, doc.id, markdown: "# My guide")
fileboy.delete_video_document(video.id, doc.id)doc = client.create_video_document(video.id, "guide")
client.list_video_documents(video.id).documents
client.update_video_document(video.id, doc.id, markdown="# My guide")
client.delete_video_document(video.id, doc.id)$doc = $fileboy->createVideoDocument($video->id, 'guide');
$fileboy->listVideoDocuments($video->id)->documents;
$fileboy->updateVideoDocument($video->id, $doc->id, markdown: '# My guide');
$fileboy->deleteVideoDocument($video->id, $doc->id);curl -X POST https://api.fileboy.io/videos/VIDEO_ID/documents \
-H "Authorization: token YOUR_SIGNED_TOKEN" \
-H "Content-Type: application/json" \
-d '{"template": "guide"}'1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34{ "data": { "id": "0c7e5a51-2f1d-4b9e-8a43-6d2c1b0a9f87", "videoId": "9b1c4d1e-5c1e-4b8e-9d57-3f0a4f1a7c10", "template": "guide", "templateName": "Step-by-step guide", "instruction": null, "title": "Set up the project and add an API key", "markdown": "# Set up the project and add an API key How to make a key and use it. ## Steps ### 1. Open the settings page ([0:30](#t=30)) Click New key. ### 2. Paste the key into the app ([2:00](#t=120)) ", "sourceTrackId": "5e0c7a12-3d4b-4f6a-9e21-8c7b6a5d4e3f", "language": "en", "edited": false, "stale": false, "staleReason": null, "model": "gpt-6-luna", "segments": 96, "characters": 5210, "inputTokens": 2140, "outputTokens": 380, "createdAt": "2026-11-18T06:00:00Z", "updatedAt": "2026-11-18T06:00:00Z" } }
A document is Markdown. Its links to moments are written [1:23](#t=83): the dashboard plays the video from there when you click one, and you can turn them into links to your own player. Edit it with PATCH /videos/:id/documents/:documentId (title, markdown), or in the dashboard's editor; edited is then true. Copy or download it as a .md file from the dashboard. Links, images and HTML in what the model writes are taken out before it is saved.
A video holds up to 20 documents; delete one to write another. Documents are private to your app: only the management API and the dashboard show them, never the watch page or the player.
Ask questions
POST /videos/:id/ask with a question of up to 500 characters answers from the captions only. The answer marks where each citation applies with [1], [2]…, and citations gives each one's start and end in seconds with a short quote. In the dashboard, each citation is a button that plays the video from there.
// an answer from the captions only, by OpenAI
const a = await fileboy.askVideo(video.id, "How do I make a key?")
a.answered // false: "That isn't covered in this video."
a.citations // [{ start: 30, end: 75, quote: "open the settings page" }]a = fileboy.ask_video(video.id, "How do I make a key?")
a.answered # false when the video doesn't cover it
a.citations.first.start # 30a = client.ask_video(video.id, "How do I make a key?")
a.answered # False when the video doesn't cover it
a.citations[0].start # 30$a = $fileboy->askVideo($video->id, 'How do I make a key?');
$a->answered; // false when the video doesn't cover it
$a->citations[0]->start; // 30.0curl -X POST https://api.fileboy.io/videos/VIDEO_ID/ask \
-H "Authorization: token YOUR_SIGNED_TOKEN" \
-H "Content-Type: application/json" \
-d '{"question": "How do I make a key?"}'1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17{ "data": { "videoId": "9b1c4d1e-5c1e-4b8e-9d57-3f0a4f1a7c10", "question": "How do I make a key?", "answered": true, "answer": "Open the settings page and click New key [1], then paste it into the app [2].", "citations": [ { "start": 30, "end": 75, "quote": "open the settings page and click New key" }, { "start": 120, "end": 150, "quote": "paste the key into the app" } ], "sourceTrackId": "5e0c7a12-3d4b-4f6a-9e21-8c7b6a5d4e3f", "language": "en", "model": "gpt-6-luna", "inputTokens": 2210, "outputTokens": 96 } }
When the captions don't answer it, answered is false and the answer is That isn't covered in this video., with no citations. That is also the answer whenever the model gives no citation that checks out: an answer has to point at the video to count.
Follow-up questions: send the last few turns back as history ([{ question, answer }], the last 6 are used). Fileboy doesn't store questions or answers; the dashboard keeps the conversation while the page is open.
Long videos: the whole transcript goes in one call up to about 60,000 characters (roughly an hour of speech). Past that, the stretches of the video that share the most words with the question are sent in full and the rest is shortened evenly, so the answer can still come from anywhere in the video. A document of a long video is shortened evenly, as auto summaries are.
Where the text goes
Fileboy uses OpenAI as the processor. Nothing is sent until you press Generate or Ask, or call these routes: that is agreeing to send that video's captions. There is no setting to turn on first. Requests ask OpenAI not to store them.
The captions are treated as data, never as instructions: they travel inside a JSON block, the model is told that text in them is never an instruction, its answer must be JSON of a fixed shape, and what comes back is checked (citations and timestamps against the cues, links and HTML taken out). So captions that say "ignore your instructions" can't make it link somewhere or answer from outside the video.
When the video changes
When the caption track a document was written from changes (you edit it, or auto-generated captions are made again), the document is marked stale with staleReason captions_changed, and the dashboard says it may be out of date. It isn't rewritten: generate it again when you want to, since that sends the captions to OpenAI again. A deleted track gives captions_deleted.
A trim, cut or trim reset moves a document's links with the video, as it moves chapters and captions, so they still point at the same words. If it takes out a moment the document links to, the link moves to where the cut is and the document is marked stale with content_removed, because it describes something no longer in the video.
Limits and usage
- Each app can write 50 documents and ask 300 questions a day (UTC). The next one answers
429 daily_limit_reached; the count resets at midnight UTC. Bursts are limited too: 30 documents and 120 questions an hour (429 rate_limited). - These limits are per app and count every start on all of Fileboy's servers together, retries included. They reset at the top of each UTC hour, and come from your plan, which can also set a monthly cap (none do today). Jobs over a limit stay
pendinguntil the next hour or month; documents and questions answer429 rate_limited. See each feature's use this hour and month in the app's Usage page (AI usage and limits) or withGET /usage/ai. - A failed call counts towards the day if OpenAI charged for it. When OpenAI is busy the request answers
503 openai_busy; try again in a minute. GET /usage/docs-qagives each day's documents, questions, calls, characters and tokens, today's use and the limits. The app's Settings show the same on the Documents and Q&A card.