GET
/
v0
/
tags
/
rules
curl --request GET \
  --url https://api.sandbox.teal.dev/v0/tags/rules \
  --header 'Authorization: Bearer <token>' \
  --header 'teal-instance-id: <teal-instance-id>'
{
  "next_page_token": "ikal0NEVfMhF8dJf4yQ6KQZmGD",
  "prev_page_token": "vuA7JeKI5c6FLnPt5JfRcZcJxW",
  "records": [
    {
      "expression": "t.description == 'SHELL GAS'",
      "id": "yB2xokXpQb5S1NgyWsNCwG",
      "name": "Tag gas expense",
      "priority": 10,
      "tag_id": "NCB2xo5S1yQbNgyWskXpwG"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Headers

teal-instance-id
string
required

The teal instance ID

Query Parameters

limit
integer | null
default:50

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

Required range: 1 <= x < 101
page_token
string | null

Response

200
application/json
Successful Response
next_page_token
string | null
required

The token to use to request the next page

Example:

"ikal0NEVfMhF8dJf4yQ6KQZmGD"

prev_page_token
string | null
required

The token to use to request the previous page

Example:

"vuA7JeKI5c6FLnPt5JfRcZcJxW"

records
object[]
required

A list of tag rules.

Example:
[
  {
    "expression": "t.description == 'SHELL GAS'",
    "id": "yB2xokXpQb5S1NgyWsNCwG",
    "name": "Tag gas expense",
    "priority": 10,
    "tag_id": "NCB2xo5S1yQbNgyWskXpwG"
  }
]