GET
/
v0
/
platform
/
categorization
/
rules
curl --request GET \
  --url https://api.sandbox.teal.dev/v0/platform/categorization/rules \
  --header 'Authorization: Bearer <token>'
{
  "next_page_token": "ikal0NEVfMhF8dJf4yQ6KQZmGD",
  "prev_page_token": "vuA7JeKI5c6FLnPt5JfRcZcJxW",
  "records": [
    {
      "id": "N6ntpvTtiA4L31vVyVat5n",
      "expression": "t.description == 'SHELL GAS'",
      "ledger_name": "Fuel Expenses",
      "name": "Shell to Fuel Expenses",
      "priority": "100"
    }
  ]
}

Authorizations

Authorization
string
headerrequired

The access token received from the authorization server in the OAuth 2.0 flow.

Query Parameters

name
string | null

The name of the rule for filtering.

ledger_name
string | null

The ledger name for filtering.

sort
enum<string>[] | null

The sort order of the results.

Available options:
name,
-name,
ledger_name,
-ledger_name
limit
integer | null

The number of records to return. Max limit is 1000.

page_token
string

Response

200 - application/json
next_page_token
string | null
required

The token to use to request the next page

prev_page_token
string | null
required

The token to use to request the previous page

records
object[]
required

The categorization rule objects