cURL
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": [ { "id": "<string>", "name": "<string>", "tag_id": "<string>", "expression": "<string>", "priority": 123 } ] }
Lists all tag rules.
The access token received from the authorization server in the OAuth 2.0 flow.
The teal instance ID
The number of records to return. Max limit is 1000.
1 <= x < 1001
Successful Response
The token to use to request the next page
"ikal0NEVfMhF8dJf4yQ6KQZmGD"
The token to use to request the previous page
"vuA7JeKI5c6FLnPt5JfRcZcJxW"
A list of tag rules.
Show child attributes
The unique ID of the object.
An arbitrary string, useful for identifying the tag rule.
If the rule finds a match, the ID of the tag that will be assigned.
A comparative expression to match on Transactions. Use t to access the Transaction object. Must evaluate to a boolean. Accepts regex evaluations.
t
Read more: Categorization guide
The priority of the rule.