Authorization: Bearer <key> or X-API-Key); every call sees only your workspace. A key needs the tutorials permission (or none narrowed), and a key limited to some agents cannot use tutorials (403). Viewers may read; members, admins and owners may create, change, make and delete.
POST /v1/tutorials
Creates a tutorial and starts writing its script. Answers 201 with the tutorial, in state writing. Writing is free; like every request it needs the balance to start one ($0.25) and is held to your spend limits.
400.
GET /v1/tutorials
Your tutorials, newest first (the last 200), without their scripts and videos, the price of a video, and what the service can do right now:
sign_in_available false: a tutorial with a sign_in is refused (400); use a public page. make_available false: scripts are written, and make answers 503 tutorials.unavailable.
GET /v1/tutorials/{id}
The tutorial with its script and, once made, its videos. Ask again while it is being written or made: state and progress say how far it is (every few seconds is enough). Links to files last an hour.
PATCH /v1/tutorials/{id}
Changes the script’s words, the title, what to show, or the sign-in. Answers the tutorial. While its script is being written or its video waits or is being made, 409 tutorials.busy.
Markers. A scene’s
say carries markers such as [click:open-voices]: each ties a step to the word after it, so the browser acts as the voice says that word. You may send the words without them: the markers are put back before the same words they stood before (before the next word that is still there, if that one went). Expression tags such as [laugh] are words, and stay as you write them. text is the same words without markers, as a person reads them.
A scene’s words are at most 600 characters. Words that would take longer than eight minutes in the script’s language (estimate.seconds, at about 15 characters a second) are kept, and Make refuses them until they are shorter.
The sign-in
{"url": "…", "user": "…", "password": "…"}: the page where the account signs in, on the same site as site_url (app.example.com and login.example.com are the same site), and a test or demo account’s user or e-mail (up to 200 characters) and password (up to 500).
- The user and password are sealed as they arrive and are never answered by any route: a tutorial says only
sign_in.urlandsign_in.delete_after. - They are typed only by a sign-in step that runs before anything is filmed. No filmed step, and no step the model writes, types into a password field.
- They are deleted at
delete_after: 30 days after you give them, or the end of the video’s free remakes if that is later."sign_in": nulldeletes them now. signs_in: truesays the video is filmed signed in: while it has no sign-in, Make answers400until you give one again.- A page with a CAPTCHA, or an account that asks for a code (a second factor), cannot be signed in to: the job ends with
sign_in_captchaorsign_in_second_factor.
400) and public pages still work.
POST /v1/tutorials/{id}/write
Writes the script again from the same goal, free. 202 with the tutorial in state writing. The words you changed are replaced.
POST /v1/tutorials/{id}/make
Makes the video in every language. 202 with the tutorial in state queued; then making, then done or failed.
- What it costs is in the tutorial’s
make:{"charge": true, "usd": 15}takes $15 (tutorial_videoon the rate card) from the balance now, in the same step as the job is queued. Within 30 days of a paid make,{"charge": false, "remakes_left": 9, "remakes_until": "…"}: it is made again for nothing, up to ten times. - The balance must cover the price:
402billing.insufficient_balanceotherwise (nothing is taken), or another402billing.*code for a spend limit. - A make that cannot be done ends as
failedwith itserror, and a paid one is given back to the balance by itself, once. 400when there is no script yet, when its words take longer than eight minutes, when a step would pay, delete or send (flag: "refused"), or when a video filmed signed in has no sign-in.- One video is made at a time for every workspace. While yours waits,
aheadis how many will be worked on before it.
DELETE /v1/tutorials/{id}
Deletes the tutorial, its videos and files, its jobs and its sign-in, at once. A job in progress stops. 200 {"deleted": true, "id": "…"}. A paid video that was still waiting or being made is given back to the balance; one that was made is not.
The tutorial
Videos
Once made,videos has one per language, its files by links that last an hour:
video_url plays the MP4 in a browser; download_url saves it under the tutorial’s title and language. captions_url and chapters_url are WebVTT, captions_srt_url SubRip. article is the step-by-step article in Markdown, its pictures linked for the hour; article_url downloads it. captions_vtt is the captions’ WebVTT itself, for a player that cannot read the bucket’s link from your page. Only the latest make’s files are kept.
Why a job ended
Errors
Refusals answer{"error": "…", "code": "…"}; error says what to change.