Generate a document from a video
Changed onStarts writing a document from the video's transcript, the same way the Ask tab on the video's share page does, and returns it right away with status: pending. Poll GET /v1/videos/{id}/documents/{documentId} until status is completed (then content holds the Markdown) or failed, or subscribe to the document.generated webhook. Most documents finish within a minute. The document uses only what was said in the video and follows the transcript's language unless the prompt asks for another. Returns 403 when document generation is turned off in the video's settings (documentGenerationEnabled) and 429 past 20 documents per minute per workspace; a video without a transcript fails the document. Documents are kept for 7 days.
Request
- Base URLhttps://api.tella.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Unique video identifier
Request body
Example request
{
"prompt": "Write a step-by-step guide from this video"
}Response
Generation started
Example response
{
"document": {
"content": "# How to export a video\n\n1. Open the video...",
"id": "doc_abc123",
"status": "completed",
"videoId": "vid_abc123"
}
}Changes
- info
endpoint added
- info