Skip to main content
POST
Create custom category

Authorizations

Authorization
string
header
required

An API key prefixed with finta_, or the access token from a Finta CLI browser login (finta login), prefixed with finta_oat_. A CLI login's access token lasts one hour and the CLI renews it itself.

Body

application/json
name
string
required

Start with a letter. Use only the letters A to Z (either case), digits, spaces, and the marks &, -, ', and .. Send at most 200 characters. Finta trims and collapses spaces. The name must be distinct from existing names, labels, keys, and balance-sheet row identifiers. Finta also reserves names used by templates, AI guidance, payroll, reports, and tax exports, the words true, false, null, nan and infinity, and a month followed by a number (such as Jan 2026), which sheets and spreadsheets read as a value or a date.

Required string length: 1 - 200
parent_category_id
string
required

The cat_ ID from GET /categories for Assets, Liabilities, or Equity itself. Refused once the company already has 100 categories of its own under that parent.

Pattern: ^cat_
description
string
required

Nonblank guidance on what belongs in this category. The category list and AI categorizer use it.

Required string length: 1 - 500
cash_flow_section
enum<string>
required

Required. operating places the row in Operating Activities, investing in Investing Activities, and financing in Financing Activities.

Available options:
operating,
investing,
financing
reason
string
required

Required nonblank explanation of why the company is adding the category. Null characters are invalid.

Maximum string length: 500
Pattern: ^[^\x00]*[^\s\x00][^\x00]*$
categorizable
boolean
default:true

Whether the category is offered in the transaction picker and AI categorizer prompt. Journal entry batches may still post to it when false.

Response

The custom category was created with its reason.

id
string
required

Unique identifier with cat_ prefix.

Example:

"cat_abc123"

object
enum<string>
required
Available options:
category
name
string
required
Example:

"Software & SaaS"

description
string
required

When to use this category, written for AI agents choosing a category for a transaction. Read it before picking a category. It is the same guidance Finta's AI categorizer uses, maintained by the Finta team and read when the request is made, so the text can change between requests. When that guidance is blank, a company-owned category uses the description stored on its own row. Empty string when neither source has a description.

Example:

"Recurring subscriptions to software and SaaS tools, such as GitHub, Slack, or Figma."

account_type
enum<string> | null
required

Top-level accounting classification derived from the root ancestor category. Null if the category has no top-level ancestor.

Available options:
asset,
liability,
equity,
income,
expense
Example:

"expense"

point_in_time
boolean
required

Whether the category represents a cumulative value at a point in time rather than activity over a period. True for balance-sheet categories and false for income-statement categories.

Example:

false

tier
enum<integer>
required

Category depth (1 = top-level, 2 = sub-category, 3 = sub-sub-category, 4 = detail category).

Available options:
1,
2,
3,
4
position
integer | null
required

Sort order within sibling categories at the same tier. Null if not explicitly set.

Example:

3

categorization_status
enum<string>
required

Whether transactions, splits and rules can use this category (invoice line items also need a revenue category). allowed: they can. never: they can't, because it's a top-level account type, has subcategories or is a bank or card account, or was created with categorizable: false; use a subcategory or another category. requires_support_approval: Finta blocks it on purpose, such as Accounts Receivable, and Finta support can turn it on for the company if it needs it. Every category works for transaction filters, and every category except Uncategorized Income and Uncategorized Expenses works for totals, whatever its status.

Available options:
allowed,
never,
requires_support_approval
Example:

"allowed"

accounting_treatment
string | null
required

What Finta does to the books when a transaction is categorized here. It is applied automatically and can't be turned off. Null when categorizing has no automatic accounting effect. Today only Equipment has one: the purchase is recorded as an asset and depreciated straight-line in monthly entries over 5 years.

Example:

"Depreciated straight-line over 5 years: the purchase is recorded as an asset and expensed monthly as depreciation."

created
integer
required

Unix timestamp of when the category was created.

Example:

1688053841

reason
object
required

Creation attribution for this company. The list omits the object when there is no recorded attribution.

cash_flow_section
enum<string>
required

Cash flow section assigned at creation.

Available options:
operating,
investing,
financing
parent_id
string | null

ID of the parent category, or null for top-level categories.

Example:

"cat_parent123"