Scrub API
POST/v1/tools/list_draftsfree

List drafts

A person's drafts, newest first, fifty at a time, free: what was set on a page and not yet run. Each with its name (draft_…), its tool, its own title (a script's title, the first words of an idea or a prompt, or the file it takes), when it was saved and the job it was started from. Give tool to list one tool's, words to find drafts with those words in them. total says how many match; when more is true, pass the last one's name as after for the next fifty.

Fields

FieldTypeDefaultWhat it is
toolstringNoneOnly this tool’s or action’s drafts
wordsstringNoneOnly drafts with these words in them
afterstringNoneThe next page: the drafts after this one

Call it

Request

curl -X POST https://app.scrub.app/v1/tools/list_drafts \
  -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.