Skip to main content
POST
Resolve 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

The category name, as the user said it. A blank or non-string value returns 400.

Required string length: 1 - 200
Example:

"bank costs"

use
enum<string>
required

What the category is for, which sets the categories it can be and how sure the match must be.

Available options:
search,
total,
write
Example:

"search"

Response

The category the name means

The category a name means, from POST /categories/resolve.

object
enum<string>
required
Available options:
category_resolution
category
object
required
matched
enum<string>
required

exact: the name of one category, ignoring case and extra spaces. jev: Finta's model picked it; see confidence. fuzzy: the one category whose name is close enough; see similarity. New values may be added.

Available options:
exact,
jev,
fuzzy
confidence
number

With jev, the model's probability for this category, counting the categories under it for search.

Required range: 0 <= x <= 1
similarity
number

With fuzzy, how close the two names are (Jaro-Winkler, 1 is identical). Not a probability.

Required range: 0 <= x <= 1