Scrub API
POST/v1/tools/quote_adjustmentfree

Price a change

Prices a change to a finished job without running it. Free. Returns what adjust would charge for the same patch, and which params it changes. Adjustable params by action: add_voice_effect: through, room, first, around; burn_captions: start, end, position, text, captions; clean_up_voice: parts, s_sounds, highs_from, listen_above, sensitivity, amount, recovery, steady; compress_video: quality; convert: as, by; cut_video: timeline; draw_chart: chart, says, note, title, answer, across, values, main, aspect_ratio, seconds, back, text, accent, gradient_from, gradient_to, font; make_spreadsheet: columns, sheet; mix_sounds: timeline; read_fields: fields, row; transcribe: language; transcribe_audio: language.

Fields

FieldTypeDefaultWhat it is
job_idstringRequired
patcharrayRequiredAn RFC 6902 JSON Patch against the job's params, e.g. [{"op":"replace","path":"/start","value":15.3}]. replace, add and test are accepted.

Call it

Request

curl -X POST https://app.scrub.app/v1/tools/quote_adjustment \
  -H "Authorization: Bearer $SCRUB_KEY" \
  -H "Content-Type: application/json" \
  -d '{"job_id":"…","patch":[{"op":"replace","path":"…","value":"…"}]}'

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.