MiniH3
EnglishWorkflows

Whole-series breakdown workflow

中文

POSThttps://api.minih3.dev/v1/tools/breakdown-series-v1

Purpose: the whole-series breakdown workflow: it plans the calls, you make them. The server keeps no state; progress lives in the signed sheet. Send the newest sheet back, unchanged, every time.
Flow: plan (episodes [{n, link, seconds?}], contents, optional report_language) returns a sheet and a quote at base prices (your group ratio applies; prices on /catalog; an episode without seconds counts as 1 minute until its length is known, the quote says provisional, and if the total goes up a new approve_quote is needed) → show the quote → approve_quote (amount = the quote total the user agreed to) → loop: next returns the ready-made calls (fetch, breakdown-v1, breakdown-merge-v1, records export) and the questions for the user; make one call, then record its result, until done is true. resume rechecks after a break.
Rules: after a 202, record submitted (tool, job_id) before anything else. Right after a 200, record may answer 409 not_delivered_yet for a few seconds: wait, poll the job again and record again; never submit it again.
Billing: the workflow itself is free; each call it lists is billed as that call.

Parameters

NameInTypeRequiredDescription
X-MiniH3-Skill-Versionheaderstringno

The skill-pack version you use (in SKILL.md and the pack's VERSION file, plus one on every upgrade; the current one is 13). Compared as numbers, segment by segment (10 is newer than 9, 2 equals 2.0). When it is missing, not numeric or older than the current pack, the answer adds the X-MiniH3-Notice header, and a 2xx JSON answer of /v1/tools/* also adds the minih3_notice field; the result is unchanged, never an error, never an extra charge.

actionbodystringyes-
planapprove_quotenextresumerecord
sheetbodyobjectno

Required except for plan; the newest sheet, unchanged

episodesbodyarray<object>no-
contentsbodyarray<string>no-
report_languagebodystringno-
enzh
amountbodynumberno

approve_quote

eventbodystringno-
submittedfetchedfetch_failedpulledpull_failedaccept_partialrerunskiprelinkmergedmerge_failedreportreport_failedrestart_roster
nbodyinteger | stringno

集号,或 roster / report

toolbodystringno-
breakdown-v1breakdown-merge-v1
job_idbodystringno-
media_urlbodystringno-
secondsbodynumberno-
expires_atbodystringno-
breakdown_idbodystringno-
roster_idbodystringno-
record_idbodystringno-
codebodystringno-
reasonbodystringno-
linkbodystringno-

Code samples

curl -X POST "https://api.minih3.dev/v1/tools/breakdown-series-v1" \
  -H "Authorization: Bearer $MINIH3_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "action": "plan",
  "episodes": [
    {
      "n": 1,
      "link": "https://www.tiktok.com/@a/video/1"
    },
    {
      "n": 2,
      "link": "https://www.tiktok.com/@a/video/2"
    }
  ],
  "contents": [
    "story",
    "asset"
  ],
  "report_language": "en"
}'

Try it

Kept in this browser tab only (sessionStorage) and sent straight to api.minih3.dev; it never reaches this site.

Enter your key to send.

Responses

200

The new sheet, plus quote, calls, asks or done

400

Error

404

Error

409

Error

503

Error