Skip to main content
Create, read and edit the same spreadsheet documents you use in the Finta editor. Start with document and worksheet metadata, then request only the cells you need. For AI tool calls, see Sheets MCP tools. All HTTP paths below are relative to /api/v1. A sheet is a document with an sht_ ID; a worksheet is a tab inside that document, with its own stable ID and user-facing name. The document URL opens the Finta editor. Worksheet IDs are not zero-based tab positions. The revision belongs to the entire document. Existing API authentication, live company permissions, subscription/entitlement checks and rate limits still apply. API key use requires API access Manage in addition to the endpoint’s Forecast permission. Use credentials for the intended company; no company ID is supplied to these operations. A sheet from another company is not exposed by supplying its ID.

List documents and page through results

GET /sheets returns document summaries without any cell data. Optional query performs a case-insensitive document-name substring search (1–256 characters). limit defaults to 100 and accepts 1–500. Order is creation time descending, then internal ID descending. Pass the returned next_cursor unchanged and URL-encoded as starting_after, keeping the query unchanged. Do not derive or decode cursors, even when their current representation resembles a sheet ID. A cursor unavailable under the current company/filter returns 404. This list is not a revision-pinned workbook snapshot.
url on the list envelope is the relative API collection path; url on each document is the absolute editor link on the configured Finta app host. Empty/final pages have has_more: false and next_cursor: null. Document summaries do not currently contain an object discriminator.

Inspect a document before selecting cells

GET /sheets/{id} without ranges returns id, name, url, revision and worksheets. Each worksheet has id, name, used_range, row_count and column_count. used_range is the unqualified bounding A1 rectangle of nonempty authored cells (including formulas), or null when no such cells exist; formatting alone does not make a used range. Grid dimensions describe existing bounds, not used-data dimensions. Read cells by repeating the literal query key ranges[]: ranges[]=Plan!A1:B3&ranges[]=Plan!D1:D3. A single ranges string is also accepted. For example, curl can URL-encode the query safely:
Qualified A1 selections specify the worksheet name: 'Plan'!A1:B2. Double an apostrophe inside a quoted worksheet name: 'Bob''s Plan'!A1. Alternatively pass a stable worksheet_id and an unqualified range such as A1:B2. An unqualified range without a worksheet ID is only unambiguous when the document has one worksheet. If both the range name and worksheet ID are supplied, they must identify the same tab. Worksheet names are labels, not positional indices. Ranges must be bounded cells or rectangles, in ascending order and inside the current grid. Whole-column/whole-row selections such as A:A and 1:10 are not read-range syntax. Up to 100 selections and 10,000 selected cells total are accepted per read. Overlapping ranges each contribute their cell count. Discover the grid from metadata before requesting large selections. The view enum controls the returned matrices:
  • values (default): return calculated values for selected cells, without a formula matrix.
  • formulas: return saved formula strings beginning with = and null for non-formula cells. No financial evaluation runs and no calculation object is returned.
  • both: return the formula matrix alongside calculated values, allowing callers to inspect assumptions and results together.
Matrices are rectangular and row-major. A selected A1:B2 has two rows and two entries per row. Blank cells are null in the value matrix; formula-error cells can also be null, so inspect calculation.errors to distinguish them. The include HTTP parameter is a comma-separated selection: charts includes embedded chart definitions on worksheets, and formats includes explicit formatting entries for selected cells. Both are opt-in. A chart definition is not a rendered image. Requesting formats without ranges does not retrieve all cell formats.
Blank and custom creation starts at 100 rows by 26 columns; existing documents and templates can have different dimensions.

Cell units and live calculation

Spreadsheet values are generic cell values and preserve worksheet units. A sheet amount of $20,000 is 20000, not 2000000. Do not divide cell values by 100 merely because other Finta endpoints use integer _cents monetary fields. Formatting does not convert the underlying number. Authored whitespace-only strings remain text in calculated output rather than becoming numeric zero. This exception is limited to generic spreadsheet arrays; transactions, reports and other financial resource fields retain their cents contracts. Selected values use the existing spreadsheet evaluator, including supported FINTA financial functions and existing authorization. Saved formulas are distinct from their results. Supported FINTA functions follow the existing sheet evaluator; a saved number stays a snapshot rather than becoming a live financial formula. Calculation is synchronous and bounded; it does not create a pending job or a polling endpoint. Clients must inspect calculation.status even after HTTP 200:
  • complete: evaluation completed without formula errors. Warnings can still be present.
  • error: one or more formulas failed. Corresponding cells have null values and errors identify the cell and/or formula where available. Other results can still be returned.
  • unavailable: evaluation could not complete. Value matrices are omitted, not fabricated. Readable formulas remain available with view=both; retry the selected GET ranges when appropriate.
Each error has code and message, with optional worksheet_id, cell and formula. Warnings include code/message and may include the formula and a count. In particular, uncategorized_transactions means uncategorized transactions may affect that financial result. Treat new error/warning codes defensively rather than failing to display the whole response. These diagnostic codes are open strings.

Find authored cells

GET /sheets/{id}/cells requires a nonempty query (maximum 1,000 characters). It searches saved authored input and formula text, not evaluated financial results or displayed formatting. A request for a number will therefore not find every formula whose current result equals that number. Matching is case-insensitive:
  • contains (default): the authored text contains the query.
  • exact: the full authored text equals the query, ignoring case.
Omit worksheet_id to search every tab, or supply a stable worksheet ID to restrict the search. Results are traversed in worksheet order, then row/column order. Each match includes worksheet_id, worksheet_name, unqualified cell and authored string input. It does not include calculated values. Blank authored cells are skipped.
Pagination accepts the same 1–500 limit, default 100. Search cursors bind the document, query, match mode, worksheet filter and document revision. Keep those filters unchanged between pages. A cursor from a different search returns 400; a document changed during pagination returns 409 revision_conflict. Restart from the first page without starting_after after inspecting the changed document; do not keep retrying a stale cursor.

Create a document

Create sheet uses POST /sheets with a JSON body. It requires API access: Manage, Forecast: Manage and the existing sheet entitlement. All tabs, cells and charts are created atomically in the authenticated company. name is required, nonblank and at most 50 characters. Choose one creation mode: Do not combine template_id and worksheets. template_options requires template_id. There is no company or grid-size input. return_ranges is optional in every mode. A minimal request is:

Use a statement or breakdown template

Omit template_options, or pass {}, to use the template’s defaults. Nonempty options are supported only for the three statement templates. Supply both starting_month and ending_month as ISO dates. period_grouping is month (default), quarter or year. These select whole calendar months, quarters or years, with the starting date aligned to the beginning of its group. They are not arbitrary partial-period filters. A selection must cover 1–13 periods, preserve a preceding period in year 2000 or later and end by year 9999. Invalid dates, reversed dates and selections that would need truncation are rejected.
Prefer the matching statement template for a standard editable financial statement. It preserves the same formula-backed actuals and totals as the editor. There is no separate template-list endpoint.

Submit custom tables and formulas

worksheets accepts 1–100 tab definitions. Each requires a nonblank name of at most 50 characters, unique ignoring case, and may contain ranges, formats and charts. The surrounding worksheet identifies the target of local A1 selections such as A1:B8. A range’s values must be a rectangular row-major matrix exactly matching its inclusive A1 dimensions. Cells accept strings, finite numbers, booleans or null:
  • null skips writing that position; retain it as a placeholder in sparse matrices.
  • "" clears the cell’s contents.
  • Strings beginning with = are evaluated as formulas by the existing engine.
There is no RAW/USER_ENTERED switch or new literal-formula escaping syntax. The existing engine stores input text and interprets it during evaluation. Generic worksheet numbers remain in worksheet units: a $20,000 amount is 20000, including when accounting formatting is applied. The function set remains SUM, AVERAGE, SUMPRODUCT, CATEGORY, DEPARTMENT, DATE, DATEVALUE, EDATE, EOMONTH and FINTA. Use live FINTA formulas for historical actuals and ordinary spreadsheet formulas referencing actuals and editable assumptions for forecasts. Use static actuals when an explicitly frozen snapshot is wanted. Discover the company’s real category references rather than inventing names or unsupported function arguments.

Filter actuals by tag

Transaction tags add a filter to an existing category; a tag reference alone is a label, not an amount. Both FINTA forms accept an optional tag in the last slot:
Brackets mark optional arguments, not formula characters. Leave skipped department/name slots empty:
The tag intersects the category, period and any department/name filters. Keep the tag in its final slot; existing shorter formulas retain their meanings. Category is required, as is the period or date-form end date. Date inputs retain the existing month-end summary normalization, not day-precise windows. An omitted start date selects the end month and its preceding month, not all history. A final tag literal accepts a current company tag name or a stable tag_ ID. Names can stop matching after a rename or select a different tag if the old name is reused. Prefer an existing company tag ID or a typed cell reference for stable identity:
For the second form, A1 needs its label plus both format fields: reference_kind: "tag" and reference_id: "tag_1234567890AbCd". The illustrative ID must be replaced with a real company tag ID. The text #Infrastructure alone does not preserve tag identity. A tag and a department or category can share a name and remain distinct references. Typed references resolve through their ID after a rename. A missing, deleted or foreign-company ID fails calculation; it never becomes an unfiltered total or falls back to a same-named tag. A string beginning with tag_ in the tag slot is interpreted as an ID. Other means no tag. Use "Other" in the last formula slot, or a #Other cell with reference_kind: "tag" and reference_id: "Other". It does not include named tags omitted from your model. For example, expenses of $150 tagged Infrastructure, $500 tagged AWS and $50 untagged produce a total of -700, with -150, -500 and -50 respectively in worksheet units. Keep a live category total when authoring a partial breakdown. This request creates typed tag rows using existing company tags. It does not create tags or apply them to transactions. Both formulas use the period in B1; the second row’s null skips that cell write.
Read the result with GET /api/v1/sheets/{id}?ranges[]=Plan!A1:C2&view=both&include=formats. Existing write_range and format_range operations can author the same content with PATCH; set base_revision to the revision returned by the latest read or successful write. Native copy/fill retains reference metadata. When reconstructing cells yourself, preserve the text, reference_kind and reference_id. Strict clients must accept the new tag enum value and preserve reference_id in returned formats. Tag use, including Other, is included in Sheets access without separate Dashboard, Transactions or Accounting settings access. Existing API access, company scope, financial permissions, entitlements and tag-feature availability still apply. This does not grant tag-management access. Web link sharing still requires Forecast: Manage and the sharing entitlement; the owner’s current access is checked, and guests can evaluate only authorized saved formulas. There is no new public sharing endpoint. Unavailable tags use the existing calculation errors, not a successful zero. An HTTP-successful save can still have formula errors; inspect calculation.status and its diagnostics before using the results. The editor’s Populate Tags action creates ordinary authored rows; there is no separate Populate API operation.

Add formatting and embedded charts

Each formats entry supplies a local range and a format object. Partial formatting preserves unspecified properties. Supported fields include alignment, bold/italic, colors, borders, indent, font size, decimal precision and number style; see Create sheet for the complete schema. number_style supports number, accounting, date, period and percent. Accounting changes display, not units; percent displays a fractional rate as a percentage. Period formatting, reference_kind: "department", and typed tag references carry semantic meaning, not just presentation. Preserve their metadata when working with reference cells. Each chart requires type and a local source_range. Available types are bar (vertical bars), stacked_bar (stacked vertical series), horizontal_bar, line, area, stacked_area and pie. Charts are embedded in the worksheet, not exported as images in the API response. series_orientation defaults to columns; use rows for series arranged by rows. Optional fields include anchor_cell (default A1), width/height (defaults 408/240), offset_x/offset_y (defaults 0), chart/axis titles and display flags for titles, axis labels, data labels and legend. Dimensions must be positive and at most 10,000; offsets are between -10,000 and 10,000. Geometry supports at most two decimal places; title text is limited to 10,000 characters.

Example: live revenue forecast with a chart

This example assumes the company has a category named Revenue; substitute its discovered category reference when necessary. It forecasts a full October from September actuals and an editable 5% growth assumption. It does not model seasonality.

Grid size and request budget

Blank/custom tabs start at the editor’s 100-row, 26-column default; templates keep their dimensions. Value writes, formatting and chart anchors automatically append blank grid space as needed without moving existing cells or changing formula references. A chart’s source must fit the resulting grid; only its anchor requests expansion. Read selections, including return_ranges, must fit the final grid. Company grid limits apply, normally 500 rows and 52 columns. Documents also have limits of 100 tabs, 50 charts per tab and a 1 MiB normalized snapshot. The 500 expanded-operation budget applies to the entire custom request, across every tab, range and chart. Each non-null value write or empty-string clear counts once; each formatted cell counts again. Worksheet setup, charts, grid expansion and any additional writes needed to preserve formulas also count. Template seeding does not consume this budget. Sparse rectangles can span the company’s grid even if their area exceeds 500 cells: null entries skip their individual cell writes. They still need the full rectangular matrix and must fit all other limits. For example, 250 cell writes plus 250 formatting changes already use 500 operations before tab setup and therefore do not fit. Splitting content into more ranges or tabs in the same request does not reset the budget. An invalid or oversized request is rejected atomically. Reduce custom content, use a supported template, or create a smaller initial document and populate it with sequential PATCH requests.

Handle the creation response

HTTP 201 returns id, name, absolute Finta url, revision and worksheet metadata, including embedded chart definitions and IDs. Keep the returned IDs and revision; do not assume a fixed initial revision. Creation does not emit operation_results. Omit return_ranges for metadata without calculation. Supplying it requests selected calculated outputs and their dependencies after saving, up to 100 selections and 10,000 selected cells total. Qualify ranges with the worksheet name, such as 'Plan'!B2:B4. Invalid return selections reject creation before persistence. When calculation is requested, inspect calculation.status independently from HTTP 201. complete means no formula errors, though warnings can remain; error includes failed cells and structured errors; unavailable omits value matrices rather than inventing zeros. There is no pending calculation job. Calculation failure does not undo a successful save. Retain the document ID and use GET to inspect formulas or retry reading selected values instead of creating the document again. Creation is not idempotent and introduces no idempotency key. After an ambiguous network result, check whether the document already exists before repeating POST. The document revision tracks edits, not the freshness of accounting data used by live FINTA formulas. Validation failures return 400 invalid_request with param where available. Invalid result selections identify return_ranges; invalid chart anchor selections identify chart.anchor_cell. Correct the input before retrying. A company at its sheet cap receives 403 plan_upgrade_required; an immediate retry does not raise that cap. Existing authentication, permission and rate-limit recovery rules apply.

Delete the whole document safely

DELETE /sheets/{id}?base_revision=3 requires the revision from a current read. It accepts no request body, including an empty JSON object. The revision is compared under a lock before deletion. A stale revision returns 409 and does not delete the document. Reread and decide whether the changed document should still be deleted; do not automatically substitute the new revision and retry a destructive action. This permanently deletes the document and all its worksheets. To clear cells or remove one tab, use PATCH with clear_range or delete_worksheet instead. Success returns HTTP 204 with no JSON body:
The corresponding MCP tool returns a small confirmation {"id":"sht_example","deleted":true} after the HTTP 204. A second HTTP deletion of the missing ID returns 404; do not assume an additional 204 confirmation.

Errors, headers and recovery

Sheets use the existing error envelope: error.type, error.code, error.message, error.doc_url, optional error.param, and optional error.current_revision. There is no revision HTTP header; use the JSON revision and error.current_revision fields. Error messages are human-readable guidance, not stable machine identifiers. 400 is a caller input failure, including unknown parameters, invalid range syntax/selection, unsupported view/match, too many cells/ranges, invalid limits or wrong-search cursors. Correct the request before retrying.
404 resource_missing covers an absent or inaccessible document, and unavailable list cursors. Verify company context and rediscover accessible resources rather than assuming a guessed ID exists.
Deletion conflicts include the current revision:
Search pagination has a separate recovery action even though it uses the same conflict code:
401 and 403 preserve existing distinctions: obtain a valid credential for authentication failures, restore required company/product access for permission failures. Existing 429 rate_limit_exceeded uses Retry-After; monthly monthly_limit_exceeded is not retryable in the short term and deliberately omits that header. See Usage Limits for the shared headers and retry rules.

Edit a sheet

PATCH /sheets/{id} renames the document or edits its cells, formatting, structure, worksheets and embedded charts. It requires API access: Manage and Forecast: Manage. Read the sheet first, then send its revision as base_revision. Supply name, a nonempty operations array, or both. A document rename happens first; the operations then run in their submitted order. Later ranges refer to the result of earlier edits, including worksheet renames and inserted or deleted rows. The request is atomic: a validation failure or stale revision saves none of its edits. Unmentioned content is preserved. Formatting and chart updates merge only the supplied properties. Omitted chart positions, dimensions and offsets stay unchanged; creation defaults are not applied to updates.

Update a forecast and its chart

Continue with the Plan worksheet from the creation example. Its B2 contains =FINTA("Revenue","Sep 2026"), B3 is the editable growth rate, and B4 contains =B2*(1+B3). The chart source A6:B8 references these actual and forecast cells. This changes growth to 8% and updates the existing chart title. The actual remains live; no financial numbers are copied into the request. Replace sht_example, sheet-01, chart_example and revision 1 with the document, worksheet, chart and current revision returned by creation or retrieval. Keep the discovered company category reference already used in B2.
To add another embedded chart instead, replace the update_chart operation with:
HTTP 200 returns the document ID, name, absolute Finta url, current revision, worksheet metadata and chart definitions. operation_results follows the request order: each entry has a zero-based index, its type, and the affected range or worksheet/chart IDs. A newly created chart’s ID is returned here. Top-level document renaming is not an operation-result entry. With return_ranges, the response also includes calculated ranges and calculation. Here the selected results are September actual revenue, the growth assumption, and October forecast revenue. Their amounts depend on the company’s books. Use the returned link directly and retain the returned revision for the next edit; do not increment it yourself.

Available operations

All operations require type. The table lists their other inputs. Range operations use bounded A1 selections such as 'Plan'!A1:C10. Write, format and clear may instead use worksheet_id with an unqualified range. If both an ID and worksheet-qualified range are supplied, they must agree. Names in later ranges must reflect any preceding worksheet rename. Explicit row/column edits shift existing content and adjust formula references. Writes, formats, copy/fill destinations and chart anchors automatically append blank rows or columns within company limits, preserving existing positions and formula references. Reads, clears and copy/fill sources must fit the existing grid. A chart’s source must fit the worksheet after any anchor-driven expansion. Charts are embedded definitions, not image responses.

Keep each batch within its budget

The limit is 500 expanded native operations across the entire request. It is not 500 public action objects or a fresh allowance for each range.
  • Each cell value write or format change consumes one operation. Null values skip writes.
  • Clearing contents or formats costs one per selected cell, even if blank; clearing all costs two.
  • Copy/fill can emit both value and format changes.
  • Renames, tab/chart operations, structural edits and automatic grid expansion share the budget. Expansion also counts any writes needed to preserve formulas the structural engine would otherwise rewrite.
Format, clear, and copy/fill selections are limited to 500 cells per rectangle. Sparse write matrices may cover the company grid if the emitted operations fit the budget. Grid and normalized-document size limits still apply. For larger edits, send separate sequential PATCH requests and use each returned revision for the next request. Splitting one range into multiple ranges in the same request does not reduce the total. If a later request fails, earlier successful requests remain saved; report partial completion accurately. Large custom creations can start with a smaller document and use PATCH to populate it.

Recover from an edit failure

400 invalid_request means the input or batch must change. Examples include a nonrectangular values matrix, an out-of-bounds clear range, a missing worksheet or chart selector, or an exceeded operation budget. The whole rejected request is unchanged. A missing or inaccessible document returns 404 resource_missing. Existing 401, 403 and 429 handling also applies. A stale base_revision returns 409 revision_conflict. Read the document again and reconsider the planned edits; do not blindly substitute the new revision.
409 revision_history_mismatch is different: the saved revision and legacy operation history disagree. No edit is saved. Contact Finta support for reconciliation; rereading or retrying cannot fix it.
These conflict responses have no Retry-After or revision header. For stale revisions, read error.current_revision in the JSON body. return_ranges is calculated after saving. A successful PATCH can therefore return calculation.status: error or unavailable. Keep its saved revision and inspect the diagnostics; do not resend the mutation just to retry calculation. Read the needed ranges instead. Formula errors produce null values; unavailable calculation omits values rather than inventing zeros. Neither creates a pending job to poll.