Scrub API
POST/v1/tools/make_spreadsheetpriced

Make a spreadsheet

Writes a spreadsheet as an Excel file and a CSV: sheets with formulas, formats and tabs, or a table another action read, a CSV or JSON file, or rows typed or pasted.

Takes table_file (file). Give exactly one of: workbook; or table_file; or table_text. Returns excel, csv, table (the table as written into the files).

Free.

Afterwards, change columns or sheet with adjust; quote_adjustment prices the change.

Fields

FieldTypeDefaultWhat it is
table_filestringNoneA file_id from create_upload, accepting application/vnd.scrub.table+json, text/csv, text/tab-separated-values, application/json, text/plain, up to 20 MB. Get one with create_upload. Or the job_id of a finished job that made a file of this kind: that file is used. Pass the job_id rather than retyping its result. Without one, read_fields (Read documents into a table) makes one, or study_videos (Study reference videos) makes one: run it first and pass its job_id here.
workbookobjectNoneThe spreadsheet, sheet by sheet, each cell by its address, with formulas and formats.
table_textstringNoneA table typed or pasted, one row a line, values separated by commas or tabs, the first line the column names.
columnsstringWhich columns to include, in order, by name, comma separated. Leave it empty for every column.
sheetstringSheet 1The name of the sheet in the Excel file.

Call it

Request

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

Answer

{
  "ok": true,
  "result": {
    "job_id": "job_…",
    "status": "running",
    "price_usd": "$…"
  }
}

It starts at once and answers running. Ask job_status with the job_id for its result. quote gives its price first, free.

Every call can also answer an error: what comes back. Try it with your key from Account.