Scrub API
POST/v1/tools/open_draftfree

Open a draft

A draft, free: what was set on a tool's or action's page and not yet run, kept by Scrub as it was changed, to carry on where a person or an AI left off. Open it by its name (draft_…, from list_drafts or a save), or by tool and from, the job it was started from (a result's next step, or a run being changed); by tool alone, the person's latest draft of it. Gives its name, tool, title, params as the page holds them, the job it came from, when it was saved and its version. A finished job with no draft started from it yet opens as its page opens it: a run of that tool with everything it was given, each setting as its steps finished it (a video's timeline voiced and word-timed), or another's result in the setting it fills; it has no name and is at version 0 until edit_draft or save_draft keeps it, by tool and from. 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

FieldTypeDefaultWhat it is
draftstringNoneIts name, draft_…
toolstringNoneThe tool or action
fromstringNoneThe job it was started from, if any

Call it

Request

curl -X POST https://app.scrub.app/v1/tools/open_draft \
  -H "Authorization: Bearer $SCRUB_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

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.