Skip to content

Interpret a natural-language search phrase into structured filters

GET
/ledgers/{ledgerId}/search/interpret
curl --request GET \
--url http://127.0.0.1:47821/api/v1/ledgers/example/search/interpret \
--header 'Authorization: Bearer <token>'

Interpret a natural-language search phrase into structured filters, as the search box does (changes nothing).

ledgerId
required
string
q
string

The phrase to read, e.g. “starbuks over 20 last month” (required)

today
string

YYYY-MM-DD to treat as today, for repeatable results (default: today)

typos
string

False to match names exactly, with no typo correction (default true)

Success. JSON, or a file download for export endpoints and ?format=csv.

Validation error

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details

Example generated

{
"error": {
"code": "example",
"message": "example",
"details": "example"
}
}

Missing or invalid bearer token

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details

Example generated

{
"error": {
"code": "example",
"message": "example",
"details": "example"
}
}

Not found

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details

Example generated

{
"error": {
"code": "example",
"message": "example",
"details": "example"
}
}

Conflict

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details

Example generated

{
"error": {
"code": "example",
"message": "example",
"details": "example"
}
}