/v1/tools/draft_historyfreeSee a draft’s history
A draft's history, free: every version it was saved at, newest first, fifty at a time, each with when it was saved, who saved it (by: a tool page, Chat, the assistant, a connected AI by its name, an API key, a computer; none where it was not recorded), where (page, chat, assistant, mcp, api or computer) and how many changes made it from the version before. Give version to open that one as well: its params as open_draft gives them, and patch, its change from the version before as JSON Patch on the params. To go back to an earlier version, save its params over the draft with save_draft. total says how many versions there are; when more is true, pass the last one's version as before for the next fifty. placed gives each timeline as it plays, in seconds: its length; its safe area in each aspect ratio (its top left corner, width and height as shares of the frame, null for none), where text boxes, logos and captions belong; each scene with its start, end and words as [word, start, end]; each text box with when it shows and where it is drawn in each aspect ratio (its middle, width and height as shares of the frame); each pause with the word it follows, where it begins, how long it was voiced and how long it plays; and each caption with its first and last word, when it shows, the words said, what it shows instead when set (shows), and whether it was set by hand.
Fields
| Field | Type | Default | What it is |
|---|---|---|---|
draft | string | Required | Its name, draft_… |
version | integer | None | A version to open |
before | integer | None | The next page: the versions before this one |
Call it
Request
curl -X POST https://app.scrub.app/v1/tools/draft_history \
-H "Authorization: Bearer $SCRUB_KEY" \
-H "Content-Type: application/json" \
-d '{"draft":"…"}'Answer
{
"ok": true,
"result": {
"…": "…"
}
}What result holds is said above.
Every call can also answer an error: what comes back. Try it with your key from Account.