Create and attach ordered API v2 rules that skip, recategorise, rename, or annotate transactions before delivery.
A ruleset is a named, reusable list of up to 50 rules; a sync has at most one ruleset attached. Each rule has conditions (groups of conditions: OR across groups, AND within a group) and one action. The Rules guide covers the behaviour; this page covers the API surface.
Numbers: amount (absolute), signedAmount (keeps the sign), dayOfMonth (1–31)
category reads the resolved custom category when the user has one, else the raw bank category. dayOfMonth/dayOfWeek derive from the posting date in the account’s timezone.Operators:
Actions:{ "type": "skip" }, { "type": "email" } (notify by email, still written), { "type": "set_category", "value": "…" }, { "type": "set_category_group", "value": "…" }, { "type": "clear_category" }, { "type": "set_merchant", "value": "…" }, { "type": "set_description", "value": "…" }, { "type": "set_note", "value": "…" }, { "type": "add_tag", "value": "…" }.Merchant, description, note, and tag values support {merchant}, {description}, {category}, {subcategory}, {amount}, {account}, {reference}, and {date} placeholders. Rules evaluate in position order; the first matching rule wins each field, and the first skip stops evaluation.Notes and tags land in dedicated Note/Tags fields on Sheets and Notion, and note / tags payload keys on Webhook destinations. The sync must have custom categories enabled. Category actions write the enriched custom_category / custom_category_group fields under the same gating. Airtable and YNAB receive none of these category, note, or tag outputs.value is always a string, or an array of strings for between, is_in and is_not_in. A number is rejected with 400 parameter_invalid.
Rule amounts are the only place in v2 where money is not minor units. An amount value is a decimal string in major units — "100" means one hundred dollars, not one hundred cents — and it is compared against the absolute value of the transaction, so gt "100" matches a −$104.96 debit and a +$104.96 credit alike. Use a direction condition in the same group to restrict to one side. between takes two values and orders them for you.
Dry-run a ruleset before attaching it: POST /v2/rulesets/{id}/preview returns the actions each recent transaction would receive, and writes nothing.
Method and path
Scope
Notes
GET /v2/rulesets, POST /v2/rulesets
rules:read / write
{ name, enabled?, metadata? }
GET/POST/DELETE /v2/rulesets/{id}
rules:read / write
POST /v2/rulesets/{id}/duplicate
rules:write
Copies the ruleset and its rules
GET/POST /v2/rulesets/{id}/rules
rules:read / write
Create appends; 409 rule_limit_reached at 50
POST /v2/rulesets/{id}/rules/reorder
rules:write
{ rules: [every rule id, in order] }
GET/POST/DELETE /v2/rules/{id}
rules:read / write
POST /v2/rulesets/{id}/preview
rules:read (heavy)
{ account, limit?, from?, to? } dry run over recent transactions; returns { transaction, actions, skipped } per row, writes nothing
POST /v2/syncs/{id}/rulesets
syncs:write
Attach (["rset_…"]) or detach ([])
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Redbark","colors":{"primary":"#FF5454","light":"#FF8A8A","dark":"#D40A20"},"logo":{"light":"https://mintcdn.com/redbark/Lg8qacPKNh5Xpue4/logo/light.png?fit=max\u0026auto=format\u0026n=Lg8qacPKNh5Xpue4\u0026q=85\u0026s=de3279ffc7bef823bfa1e593b81265d9","dark":"https://mintcdn.com/redbark/Lg8qacPKNh5Xpue4/logo/dark.png?fit=max\u0026auto=format\u0026n=Lg8qacPKNh5Xpue4\u0026q=85\u0026s=7960b0842dc00cfd472af3821d8ca953"},"favicon":"https://mintcdn.com/redbark/4quigyRAqPSbF82b/favicon.svg?fit=max\u0026auto=format\u0026n=4quigyRAqPSbF82b\u0026q=85\u0026s=9b80c48967b4ae7c425626dff0d139d2","api":{"playground":{"display":"interactive"},"examples":{"defaults":"required","languages":["curl","javascript","python"]}},"navbar":{"links":[{"href":"mailto:support@redbark.com","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.redbark.com/sign-in"}},"footer":{"socials":{"github":"https://github.com/redbark-co"}},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"redbark","hasAudioNarration":false,"actualSubdomain":"redbark","customDomains":["redbark.com"],"gitSource":{"type":"github","owner":"redbark-co","repo":"core","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":"","_id":"6b10d38e9ffae5051c40c2b1"},"feedback":{"agentFeedback":true},"entitlements":{},"buildId":"6b10d0125971c906b2131631","clientVersion":"0.0.4428","searchFilterCounts":[{"language":"default","tag":"API Reference","count":285},{"language":"default","tag":"Advisor","count":201},{"language":"default","tag":"Sync","count":154},{"language":"default","tag":"Documentation","count":58},{"language":"default","tag":"Meetings","count":23},{"language":"default","tag":"Checklists","count":22},{"language":"default","tag":"Documents","count":21},{"language":"default","tag":"Forms","count":21},{"language":"default","tag":"Destinations","count":18},{"language":"default","tag":"Document types","count":18}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/v2/rules","slug":"/api-reference/v2/rules","pageMetadata":{"title":"Rules","description":"Create and attach ordered API v2 rules that skip, recategorise, rename, or annotate transactions before delivery.","href":"/api-reference/v2/rules"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Create and attach ordered API v2 rules that skip, recategorise, rename, or annotate transactions before delivery.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`A `,_jsx(_components.strong,{children:`ruleset`}),` is a named, reusable list of up to 50 `,_jsx(_components.strong,{children:`rules`}),`; a sync has at most one ruleset attached. Each rule has `,_jsx(_components.code,{children:`conditions`}),` (groups of conditions: OR across groups, AND within a group) and one `,_jsx(_components.code,{children:`action`}),`. The `,_jsx(_components.a,{href:`/rules`,children:`Rules guide`}),` covers the behaviour; this page covers the API surface.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`14`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`14`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"rule_2Ab4Cd6eFg8hJk0lMn2oPq\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"object\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"rule\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"ruleset\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"rset_6Kp8Lm1nQr3sTu5vWx7yZa\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Skip internal transfers\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"position\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"enabled\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"conditions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"groups\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [ { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"conditions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [ { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"field\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"description\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"operator\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"contains\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"transfer to savings\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } ] } ] },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"action\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"skip\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"metadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"livemode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-08-21T02:00:00.000Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"updated\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-08-21T02:00:00.000Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Fields:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Strings: `,_jsx(_components.code,{children:`merchantName`}),`, `,_jsx(_components.code,{children:`description`}),`, `,_jsx(_components.code,{children:`reference`}),`, `,_jsx(_components.code,{children:`accountName`}),`, `,_jsx(_components.code,{children:`merchantCategoryCode`})]}),`\n`,_jsxs(_components.li,{children:[`Enums: `,_jsx(_components.code,{children:`direction`}),`, `,_jsx(_components.code,{children:`category`}),`, `,_jsx(_components.code,{children:`subcategory`}),`, `,_jsx(_components.code,{children:`customCategoryGroup`}),`, `,_jsx(_components.code,{children:`class`}),`, `,_jsx(_components.code,{children:`accountId`}),`, `,_jsx(_components.code,{children:`currency`}),`, `,_jsx(_components.code,{children:`dayOfWeek`}),` (`,_jsx(_components.code,{children:`monday`}),`…`,_jsx(_components.code,{children:`sunday`}),`)`]}),`\n`,_jsxs(_components.li,{children:[`Numbers: `,_jsx(_components.code,{children:`amount`}),` (absolute), `,_jsx(_components.code,{children:`signedAmount`}),` (keeps the sign), `,_jsx(_components.code,{children:`dayOfMonth`}),` (1–31)`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`category`}),` reads the resolved custom category when the user has one, else the raw bank category. `,_jsx(_components.code,{children:`dayOfMonth`}),`/`,_jsx(_components.code,{children:`dayOfWeek`}),` derive from the posting date in the account’s timezone.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Operators:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Strings: `,_jsx(_components.code,{children:`contains`}),`, `,_jsx(_components.code,{children:`does_not_contain`}),`, `,_jsx(_components.code,{children:`equals`}),`, `,_jsx(_components.code,{children:`starts_with`}),`, `,_jsx(_components.code,{children:`ends_with`}),`, `,_jsx(_components.code,{children:`matches_glob`}),` / `,_jsx(_components.code,{children:`does_not_match_glob`}),` (`,_jsx(_components.code,{children:`*`}),` and `,_jsx(_components.code,{children:`?`}),` wildcards, not regex), `,_jsx(_components.code,{children:`is_empty`}),` / `,_jsx(_components.code,{children:`is_not_empty`}),` (omit `,_jsx(_components.code,{children:`value`}),`), `,_jsx(_components.code,{children:`is_in`}),`, `,_jsx(_components.code,{children:`is_not_in`})]}),`\n`,_jsxs(_components.li,{children:[`Enums: `,_jsx(_components.code,{children:`is`}),`, `,_jsx(_components.code,{children:`is_not`}),`, `,_jsx(_components.code,{children:`is_in`}),`, `,_jsx(_components.code,{children:`is_not_in`})]}),`\n`,_jsxs(_components.li,{children:[`Numbers: `,_jsx(_components.code,{children:`gt`}),`, `,_jsx(_components.code,{children:`lt`}),`, `,_jsx(_components.code,{children:`eq`}),`, `,_jsx(_components.code,{children:`between`})]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Actions:`}),` `,_jsx(_components.code,{children:`{ \"type\": \"skip\" }`}),`, `,_jsx(_components.code,{children:`{ \"type\": \"email\" }`}),` (notify by email, still written), `,_jsx(_components.code,{children:`{ \"type\": \"set_category\", \"value\": \"…\" }`}),`, `,_jsx(_components.code,{children:`{ \"type\": \"set_category_group\", \"value\": \"…\" }`}),`, `,_jsx(_components.code,{children:`{ \"type\": \"clear_category\" }`}),`, `,_jsx(_components.code,{children:`{ \"type\": \"set_merchant\", \"value\": \"…\" }`}),`, `,_jsx(_components.code,{children:`{ \"type\": \"set_description\", \"value\": \"…\" }`}),`, `,_jsx(_components.code,{children:`{ \"type\": \"set_note\", \"value\": \"…\" }`}),`, `,_jsx(_components.code,{children:`{ \"type\": \"add_tag\", \"value\": \"…\" }`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Merchant, description, note, and tag values support `,_jsx(_components.code,{children:`{merchant}`}),`, `,_jsx(_components.code,{children:`{description}`}),`, `,_jsx(_components.code,{children:`{category}`}),`, `,_jsx(_components.code,{children:`{subcategory}`}),`, `,_jsx(_components.code,{children:`{amount}`}),`, `,_jsx(_components.code,{children:`{account}`}),`, `,_jsx(_components.code,{children:`{reference}`}),`, and `,_jsx(_components.code,{children:`{date}`}),` placeholders. Rules evaluate in `,_jsx(_components.code,{children:`position`}),` order; the first matching rule wins each field, and the first `,_jsx(_components.code,{children:`skip`}),` stops evaluation.`]}),`\n`,_jsxs(_components.p,{children:[`Notes and tags land in dedicated Note/Tags fields on Sheets and Notion, and `,_jsx(_components.code,{children:`note`}),` / `,_jsx(_components.code,{children:`tags`}),` payload keys on Webhook destinations. The sync must have custom categories enabled. Category actions write the enriched `,_jsx(_components.code,{children:`custom_category`}),` / `,_jsx(_components.code,{children:`custom_category_group`}),` fields under the same gating. Airtable and YNAB receive none of these category, note, or tag outputs.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`value`}),` is always a string, or an array of strings for `,_jsx(_components.code,{children:`between`}),`, `,_jsx(_components.code,{children:`is_in`}),` and `,_jsx(_components.code,{children:`is_not_in`}),`. A number is rejected with `,_jsx(_components.code,{children:`400 parameter_invalid`}),`.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Rule amounts are the `,_jsx(_components.strong,{children:`only`}),` place in v2 where money is not minor units. An `,_jsx(_components.code,{children:`amount`}),` value is a decimal string in major units — `,_jsx(_components.code,{children:`\"100\"`}),` means one hundred dollars, not one hundred cents — and it is compared against the `,_jsx(_components.strong,{children:`absolute`}),` value of the transaction, so `,_jsx(_components.code,{children:`gt \"100\"`}),` matches a −`,`$104.96 debit and a +$`,`104.96 credit alike. Use a `,_jsx(_components.code,{children:`direction`}),` condition in the same group to restrict to one side. `,_jsx(_components.code,{children:`between`}),` takes two values and orders them for you.`]})}),`\n`,_jsxs(_components.p,{children:[`Dry-run a ruleset before attaching it: `,_jsx(_components.code,{children:`POST /v2/rulesets/{id}/preview`}),` returns the actions each recent transaction would receive, and writes nothing.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Method and path`}),_jsx(_components.th,{children:`Scope`}),_jsx(_components.th,{children:`Notes`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`GET /v2/rulesets`}),`, `,_jsx(_components.code,{children:`POST /v2/rulesets`})]}),_jsx(_components.td,{children:`rules:read / write`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{ name, enabled?, metadata? }`})})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`GET`}),`/`,_jsx(_components.code,{children:`POST`}),`/`,_jsx(_components.code,{children:`DELETE /v2/rulesets/{id}`})]}),_jsx(_components.td,{children:`rules:read / write`}),_jsx(_components.td,{})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST /v2/rulesets/{id}/duplicate`})}),_jsx(_components.td,{children:`rules:write`}),_jsx(_components.td,{children:`Copies the ruleset and its rules`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`GET`}),`/`,_jsx(_components.code,{children:`POST /v2/rulesets/{id}/rules`})]}),_jsx(_components.td,{children:`rules:read / write`}),_jsxs(_components.td,{children:[`Create appends; 409 `,_jsx(_components.code,{children:`rule_limit_reached`}),` at 50`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST /v2/rulesets/{id}/rules/reorder`})}),_jsx(_components.td,{children:`rules:write`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{ rules: [every rule id, in order] }`})})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`GET`}),`/`,_jsx(_components.code,{children:`POST`}),`/`,_jsx(_components.code,{children:`DELETE /v2/rules/{id}`})]}),_jsx(_components.td,{children:`rules:read / write`}),_jsx(_components.td,{})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST /v2/rulesets/{id}/preview`})}),_jsx(_components.td,{children:`rules:read (heavy)`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`{ account, limit?, from?, to? }`}),` dry run over recent transactions; returns `,_jsx(_components.code,{children:`{ transaction, actions, skipped }`}),` per row, writes nothing`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST /v2/syncs/{id}/rulesets`})}),_jsx(_components.td,{children:`syncs:write`}),_jsxs(_components.td,{children:[`Attach (`,_jsx(_components.code,{children:`[\"rset_…\"]`}),`) or detach (`,_jsx(_components.code,{children:`[]`}),`)`]})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Rules","description":"Create and attach ordered API v2 rules that skip, recategorise, rename, or annotate transactions before delivery.","href":"/api-reference/v2/rules"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"subdomain":"redbark","siteName":"Redbark","title":"Rules - Redbark","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{"v2":{"href":"/api-reference/v2/rules","matchLevel":0},"v1":{"href":"/api-reference/overview","matchLevel":3}},"firstHrefInLanguage":{}},"lastModified":"2026-11-20T05:36:22.795Z","originalFileLocation":"api-reference/v2/rules.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Create and attach ordered API v2 rules that skip, recategorise, rename, or annotate transactions before delivery.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Redbark\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/redbark/18Zou9nIgNt39LhG/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/redbark/18Zou9nIgNt39LhG/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/redbark/18Zou9nIgNt39LhG/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/redbark/18Zou9nIgNt39LhG/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/redbark/18Zou9nIgNt39LhG/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/redbark/18Zou9nIgNt39LhG/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/redbark/18Zou9nIgNt39LhG/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/redbark/18Zou9nIgNt39LhG/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/redbark/18Zou9nIgNt39LhG/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Rules - Redbark\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create and attach ordered API v2 rules that skip, recategorise, rename, or annotate transactions before delivery.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Redbark\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://redbark.com/docs/api-reference/v2/rules\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://redbark.mintlify.site/docs/_mintlify/api/og/v2?division=Guides\u0026amp;title=Rules\u0026amp;description=Create+and+attach+ordered+API+v2+rules+that+skip%2C+recategorise%2C+rename%2C+or+annotate+transactions+before+delivery.\u0026amp;theme=9f0bb7dd708754f984ac624f\u0026amp;signature=cc684afc68a1ef2c73d8db33e6b5c422a3a352fa5edd2c06252208721fcb76cb\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Rules - Redbark\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create and attach ordered API v2 rules that skip, recategorise, rename, or annotate transactions before delivery.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://redbark.mintlify.site/docs/_mintlify/api/og/v2?division=Guides\u0026amp;title=Rules\u0026amp;description=Create+and+attach+ordered+API+v2+rules+that+skip%2C+recategorise%2C+rename%2C+or+annotate+transactions+before+delivery.\u0026amp;theme=9f0bb7dd708754f984ac624f\u0026amp;signature=cc684afc68a1ef2c73d8db33e6b5c422a3a352fa5edd2c06252208721fcb76cb\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/redbark/18Zou9nIgNt39LhG/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Redbark\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#FF5454\">\u003clink data-mint-head rel=\"canonical\" href=\"https://redbark.com/docs/api-reference/v2/rules\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/v2/rules.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://redbark.com/#organization\",\"name\":\"Redbark\",\"url\":\"https://redbark.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/redbark/Lg8qacPKNh5Xpue4/logo/light.png?fit=max\u0026auto=format\u0026n=Lg8qacPKNh5Xpue4\u0026q=85\u0026s=de3279ffc7bef823bfa1e593b81265d9\"}},{\"@type\":\"WebSite\",\"@id\":\"https://redbark.com/docs#website\",\"name\":\"Redbark\",\"url\":\"https://redbark.com/docs\",\"publisher\":{\"@id\":\"https://redbark.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://redbark.com/docs/api-reference/v2/rules#webpage\",\"url\":\"https://redbark.com/docs/api-reference/v2/rules\",\"name\":\"Rules\",\"description\":\"Create and attach ordered API v2 rules that skip, recategorise, rename, or annotate transactions before delivery.\",\"dateModified\":\"2026-11-20T05:36:22.795Z\",\"isPartOf\":{\"@id\":\"https://redbark.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://redbark.com/docs/api-reference/v2/rules#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://redbark.com/docs/api-reference/v2/rules#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Guides\",\"item\":\"https://redbark.com/docs/api-reference/v2/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Rules\",\"item\":\"https://redbark.com/docs/api-reference/v2/rules\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://redbark.com/docs/api-reference/v2/rules#article\",\"headline\":\"Rules\",\"name\":\"Rules\",\"description\":\"Create and attach ordered API v2 rules that skip, recategorise, rename, or annotate transactions before delivery.\",\"url\":\"https://redbark.com/docs/api-reference/v2/rules\",\"mainEntityOfPage\":{\"@id\":\"https://redbark.com/docs/api-reference/v2/rules#webpage\"},\"dateModified\":\"2026-11-20T05:36:22.795Z\",\"publisher\":{\"@id\":\"https://redbark.com/#organization\"},\"isPartOf\":{\"@id\":\"https://redbark.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Redbark\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Redbark\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/api-reference/v2/rules.md","siteName":"Redbark","nav":{"global":null,"products":[{"product":"Sync","icon":"arrows-rotate","description":"Bank feeds to spreadsheets, budgeting apps and your own code","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API Reference","versions":[{"version":"v2","default":true,"groups":[{"group":"Guides","pages":[{"title":"API v2 overview","href":"/api-reference/v2/overview"},{"title":"Account and API keys","href":"/api-reference/v2/account-and-keys"},{"title":"Connections, accounts and transactions","href":"/api-reference/v2/banking"},{"title":"Connecting banks and destinations","href":"/api-reference/v2/connect"},{"title":"Syncs, runs and categories","description":"Create and run syncs through API v2, monitor their execution, and manage category mappings and custom taxonomies.","href":"/api-reference/v2/syncs"},{"title":"Rules","href":"/api-reference/v2/rules"},{"title":"Events and event destinations","description":"Receive signed Redbark events at a webhook endpoint, inspect the 30-day event log, and redeliver unsuccessful notifications.","href":"/api-reference/v2/events"},{"title":"Errors","href":"/api-reference/v2/errors"},{"title":"Migrating from v1","href":"/api-reference/v2/migrating-from-v1"}]},{"group":"Account","pages":[{"title":"Retrieve the account","deprecated":null,"version":null,"openapi":"/openapi/v2.json get /me","href":"/api-reference/v2/account/retrieve-the-account"}]},{"group":"API keys","pages":[{"title":"List API keys","deprecated":null,"version":null,"openapi":"/openapi/v2.json get /api_keys","href":"/api-reference/v2/api-keys/list-api-keys"},{"title":"Create an API key","deprecated":null,"version":null,"openapi":"/openapi/v2.json post /api_keys","href":"/api-reference/v2/api-keys/create-an-api-key"},{"title":"Retrieve an API key","deprecated":null,"version":null,"openapi":"/openapi/v2.json get /api_keys/{id}","href":"/api-reference/v2/api-keys/retrieve-an-api-key"},{"title":"Update an API key","deprecated":null,"version":null,"openapi":"/openapi/v2.json post /api_keys/{id}","href":"/api-reference/v2/api-keys/update-an-api-key"},{"title":"Revoke an API key","deprecated":null,"version":null,"openapi":"/openapi/v2.json delete /api_keys/{id}","href":"/api-reference/v2/api-keys/revoke-an-api-key"},{"title":"Rotate an API key","deprecated":null,"version":null,"openapi":"/openapi/v2.json post /api_keys/{id}/rotate","href":"/api-reference/v2/api-keys/rotate-an-api-key"}]},{"group":"Connections","pages":[{"title":"List connections","deprecated":null,"version":null,"openapi":"/openapi/v2.json get /connections","href":"/api-reference/v2/connections/list-connections"},{"title":"Retrieve a connection","deprecated":null,"version":null,"openapi":"/openapi/v2.json get /connections/{id}","href":"/api-reference/v2/connections/retrieve-a-connection"},{"title":"Revoke a connection","deprecated":null,"version":null,"openapi":"/openapi/v2.json delete /connections/{id}","href":"/api-reference/v2/connections/revoke-a-connection"},{"title":"Reauthorize a connection","deprecated":null,"version":null,"openapi":"/openapi/v2.json post /connections/{id}/reauthorize","href":"/api-reference/v2/connections/reauthorize-a-connection"},{"title":"Refresh a connection","deprecated":null,"version":null,"openapi":"/openapi/v2.json post /connections/{id}/refresh","href":"/api-reference/v2/connections/refresh-a-connection"}]},{"group":"Consents","pages":[{"title":"List consents","deprecated":null,"version":null,"openapi":"/openapi/v2.json get /consents","href":"/api-reference/v2/consents/list-consents"},{"title":"Retrieve a consent","deprecated":null,"version":null,"openapi":"/openapi/v2.json get /consents/{id}","href":"/api-reference/v2/consents/retrieve-a-consent"}]},{"group":"Accounts","pages":[{"title":"List accounts","deprecated":null,"version":null,"openapi":"/openapi/v2.json get /accounts","href":"/api-reference/v2/accounts/list-accounts"},{"title":"Retrieve an account","deprecated":null,"version":null,"openapi":"/openapi/v2.json get /accounts/{id}","href":"/api-reference/v2/accounts/retrieve-an-account"},{"title":"Update an account","deprecated":null,"version":null,"openapi":"/openapi/v2.json post /accounts/{id}","href":"/api-reference/v2/accounts/update-an-account"},{"title":"Update an account (PATCH alias)","deprecated":null,"version":null,"openapi":"/openapi/v2.json patch /accounts/{id}","href":"/api-reference/v2/accounts/update-an-account-patch-alias"},{"title":"Retrieve the account balance","deprecated":null,"version":null,"openapi":"/openapi/v2.json get /accounts/{account}/balance","href":"/api-reference/v2/accounts/retrieve-the-account-balance"},{"title":"Retrieve account details","deprecated":null,"version":null,"openapi":"/openapi/v2.json get /accounts/{account}/details","href":"/api-reference/v2/accounts/retrieve-account-details"},{"title":"List balances","deprecated":null,"version":null,"openapi":"/openapi/v2.json get /balances","href":"/api-reference/v2/accounts/list-balances"}]},{"group":"Transactions","pages":[{"title":"List transactions","deprecated":null,"version":null,"openapi":"/openapi/v2.json get /transactions","href":"/api-reference/v2/transactions/list-transactions"},{"title":"Retrieve a transaction","deprecated":null,"version":null,"openapi":"/openapi/v2.json get /transactions/{id}","href":"/api-reference/v2/transactions/retrieve-a-transaction"}]},{"group":"Holdings","pages":[{"title":"List holdings","deprecated":null,"version":null,"openapi":"/openapi/v2.json get /holdings","href":"/api-reference/v2/holdings/list-holdings"}]},{"group":"Trades","pages":[{"title":"List trades","deprecated":null,"version":null,"openapi":"/openapi/v2.json get /trades","href":"/api-reference/v2/trades/list-trades"}]},{"group":"Categories","pages":[{"title":"List provider categories","deprecated":null,"version":null,"openapi":"/openapi/v2.json get /provider_categories","href":"/api-reference/v2/categories/list-provider-categories"},{"title":"List categories","deprecated":null,"version":null,"openapi":"/openapi/v2.json get /categories","href":"/api-reference/v2/categories/list-categories"},{"title":"Create a group or category","deprecated":null,"version":null,"openapi":"/openapi/v2.json post /categories","href":"/api-reference/v2/categories/create-a-group-or-category"},{"title":"Reset the taxonomy","deprecated":null,"version":null,"openapi":"/openapi/v2.json post /categories/reset","href":"/api-reference/v2/categories/reset-the-taxonomy"},{"title":"Retrieve a category","deprecated":null,"version":null,"openapi":"/openapi/v2.json get /categories/{id}","href":"/api-reference/v2/categories/retrieve-a-category"},{"title":"Update a category","deprecated":null,"version":null,"openapi":"/openapi/v2.json post /categories/{id}","href":"/api-reference/v2/categories/update-a-category"},{"title":"Update a category (PATCH alias)","deprecated":null,"version":null,"openapi":"/openapi/v2.json patch /categories/{id}","href":"/api-reference/v2/categories/update-a-category-patch-alias"},{"title":"Delete a group or category","deprecated":null,"version":null,"openapi":"/openapi/v2.json delete /categories/{id}","href":"/api-reference/v2/categories/delete-a-group-or-category"},{"title":"Replace the claimed sources","deprecated":null,"version":null,"openapi":"/openapi/v2.json post /categories/{id}/sources","href":"/api-reference/v2/categories/replace-the-claimed-sources"}]},{"group":"Syncs","pages":[{"title":"List syncs","deprecated":null,"version":null,"openapi":"/openapi/v2.json get /syncs","href":"/api-reference/v2/syncs/list-syncs"},{"title":"Create a sync","deprecated":null,"version":null,"openapi":"/openapi/v2.json post /syncs","href":"/api-reference/v2/syncs/create-a-sync"},{"title":"Retrieve a sync","deprecated":null,"version":null,"openapi":"/openapi/v2.json get /syncs/{id}","href":"/api-reference/v2/syncs/retrieve-a-sync"},{"title":"Update a sync","deprecated":null,"version":null,"openapi":"/openapi/v2.json post /syncs/{id}","href":"/api-reference/v2/syncs/update-a-sync"},{"title":"Update a sync (PATCH alias)","deprecated":null,"version":null,"openapi":"/openapi/v2.json patch /syncs/{id}","href":"/api-reference/v2/syncs/update-a-sync-patch-alias"},{"title":"Delete a sync","deprecated":null,"version":null,"openapi":"/openapi/v2.json delete /syncs/{id}","href":"/api-reference/v2/syncs/delete-a-sync"},{"title":"Run a sync now","deprecated":null,"version":null,"openapi":"/openapi/v2.json post /syncs/{id}/run","href":"/api-reference/v2/syncs/run-a-sync-now"},{"title":"Resync from the start date","deprecated":null,"version":null,"openapi":"/openapi/v2.json post /syncs/{id}/resync","href":"/api-reference/v2/syncs/resync-from-the-start-date"},{"title":"List category mappings","deprecated":null,"version":null,"openapi":"/openapi/v2.json get /syncs/{id}/category_mappings","href":"/api-reference/v2/syncs/list-category-mappings"},{"title":"Replace category mappings","deprecated":null,"version":null,"openapi":"/openapi/v2.json post /syncs/{id}/category_mappings","href":"/api-reference/v2/syncs/replace-category-mappings"}]},{"group":"Sync runs","pages":[{"title":"List runs for a sync","deprecated":null,"version":null,"openapi":"/openapi/v2.json get /syncs/{id}/runs","href":"/api-reference/v2/sync-runs/list-runs-for-a-sync"},{"title":"Retrieve a run","deprecated":null,"version":null,"openapi":"/openapi/v2.json get /sync_runs/{id}","href":"/api-reference/v2/sync-runs/retrieve-a-run"},{"title":"Cancel a queued run","deprecated":null,"version":null,"openapi":"/openapi/v2.json post /sync_runs/{id}/cancel","href":"/api-reference/v2/sync-runs/cancel-a-queued-run"}]},{"group":"Rules","pages":[{"title":"List rulesets","deprecated":null,"version":null,"openapi":"/openapi/v2.json get /rulesets","href":"/api-reference/v2/rules/list-rulesets"},{"title":"Create a ruleset","deprecated":null,"version":null,"openapi":"/openapi/v2.json post /rulesets","href":"/api-reference/v2/rules/create-a-ruleset"},{"title":"Retrieve a ruleset","deprecated":null,"version":null,"openapi":"/openapi/v2.json get /rulesets/{id}","href":"/api-reference/v2/rules/retrieve-a-ruleset"},{"title":"Update a ruleset","deprecated":null,"version":null,"openapi":"/openapi/v2.json post /rulesets/{id}","href":"/api-reference/v2/rules/update-a-ruleset"},{"title":"Delete a ruleset","deprecated":null,"version":null,"openapi":"/openapi/v2.json delete /rulesets/{id}","href":"/api-reference/v2/rules/delete-a-ruleset"},{"title":"Duplicate a ruleset","deprecated":null,"version":null,"openapi":"/openapi/v2.json post /rulesets/{id}/duplicate","href":"/api-reference/v2/rules/duplicate-a-ruleset"},{"title":"List rules in a ruleset","deprecated":null,"version":null,"openapi":"/openapi/v2.json get /rulesets/{id}/rules","href":"/api-reference/v2/rules/list-rules-in-a-ruleset"},{"title":"Create a rule","deprecated":null,"version":null,"openapi":"/openapi/v2.json post /rulesets/{id}/rules","href":"/api-reference/v2/rules/create-a-rule"},{"title":"Reorder rules","deprecated":null,"version":null,"openapi":"/openapi/v2.json post /rulesets/{id}/rules/reorder","href":"/api-reference/v2/rules/reorder-rules"},{"title":"Preview a ruleset","deprecated":null,"version":null,"openapi":"/openapi/v2.json post /rulesets/{id}/preview","href":"/api-reference/v2/rules/preview-a-ruleset"},{"title":"Retrieve a rule","deprecated":null,"version":null,"openapi":"/openapi/v2.json get /rules/{id}","href":"/api-reference/v2/rules/retrieve-a-rule"},{"title":"Update a rule","deprecated":null,"version":null,"openapi":"/openapi/v2.json post /rules/{id}","href":"/api-reference/v2/rules/update-a-rule"},{"title":"Delete a rule","deprecated":null,"version":null,"openapi":"/openapi/v2.json delete /rules/{id}","href":"/api-reference/v2/rules/delete-a-rule"},{"title":"Attach a ruleset to a sync","deprecated":null,"version":null,"openapi":"/openapi/v2.json post /syncs/{id}/rulesets","href":"/api-reference/v2/rules/attach-a-ruleset-to-a-sync"}]},{"group":"Destinations","pages":[{"title":"List destinations","deprecated":null,"version":null,"openapi":"/openapi/v2.json get /destinations","href":"/api-reference/v2/destinations/list-destinations"},{"title":"Create a webhook destination","deprecated":null,"version":null,"openapi":"/openapi/v2.json post /destinations","href":"/api-reference/v2/destinations/create-a-webhook-destination"},{"title":"Retrieve a destination","deprecated":null,"version":null,"openapi":"/openapi/v2.json get /destinations/{id}","href":"/api-reference/v2/destinations/retrieve-a-destination"},{"title":"Update a destination","deprecated":null,"version":null,"openapi":"/openapi/v2.json post /destinations/{id}","href":"/api-reference/v2/destinations/update-a-destination"},{"title":"Update a destination (PATCH alias)","deprecated":null,"version":null,"openapi":"/openapi/v2.json patch /destinations/{id}","href":"/api-reference/v2/destinations/update-a-destination-patch-alias"},{"title":"Delete a destination","deprecated":null,"version":null,"openapi":"/openapi/v2.json delete /destinations/{id}","href":"/api-reference/v2/destinations/delete-a-destination"},{"title":"Rotate a webhook signing secret","deprecated":null,"version":null,"openapi":"/openapi/v2.json post /destinations/{id}/rotate_secret","href":"/api-reference/v2/destinations/rotate-a-webhook-signing-secret"},{"title":"Re-enable a disabled destination","deprecated":null,"version":null,"openapi":"/openapi/v2.json post /destinations/{id}/enable","href":"/api-reference/v2/destinations/re-enable-a-disabled-destination"},{"title":"List what a destination offers","deprecated":null,"version":null,"openapi":"/openapi/v2.json get /destinations/{id}/resources","href":"/api-reference/v2/destinations/list-what-a-destination-offers"}]},{"group":"Link sessions","pages":[{"title":"Create a link session","deprecated":null,"version":null,"openapi":"/openapi/v2.json post /link_sessions","href":"/api-reference/v2/link-sessions/create-a-link-session"},{"title":"Retrieve a link session","deprecated":null,"version":null,"openapi":"/openapi/v2.json get /link_sessions/{id}","href":"/api-reference/v2/link-sessions/retrieve-a-link-session"}]},{"group":"Destination links","pages":[{"title":"Create a destination link","deprecated":null,"version":null,"openapi":"/openapi/v2.json post /destination_links","href":"/api-reference/v2/destination-links/create-a-destination-link"},{"title":"Retrieve a destination link","deprecated":null,"version":null,"openapi":"/openapi/v2.json get /destination_links/{id}","href":"/api-reference/v2/destination-links/retrieve-a-destination-link"}]},{"group":"Institutions","pages":[{"title":"List institutions","deprecated":null,"version":null,"openapi":"/openapi/v2.json get /institutions","href":"/api-reference/v2/institutions/list-institutions"}]},{"group":"Event destinations","pages":[{"title":"List event destinations","deprecated":null,"version":null,"openapi":"/openapi/v2.json get /event_destinations","href":"/api-reference/v2/event-destinations/list-event-destinations"},{"title":"Create an event destination","deprecated":null,"version":null,"openapi":"/openapi/v2.json post /event_destinations","href":"/api-reference/v2/event-destinations/create-an-event-destination"},{"title":"Retrieve an event destination","deprecated":null,"version":null,"openapi":"/openapi/v2.json get /event_destinations/{id}","href":"/api-reference/v2/event-destinations/retrieve-an-event-destination"},{"title":"Update an event destination","deprecated":null,"version":null,"openapi":"/openapi/v2.json post /event_destinations/{id}","href":"/api-reference/v2/event-destinations/update-an-event-destination"},{"title":"Delete an event destination","deprecated":null,"version":null,"openapi":"/openapi/v2.json delete /event_destinations/{id}","href":"/api-reference/v2/event-destinations/delete-an-event-destination"},{"title":"Enable an event destination","deprecated":null,"version":null,"openapi":"/openapi/v2.json post /event_destinations/{id}/enable","href":"/api-reference/v2/event-destinations/enable-an-event-destination"},{"title":"Disable an event destination","deprecated":null,"version":null,"openapi":"/openapi/v2.json post /event_destinations/{id}/disable","href":"/api-reference/v2/event-destinations/disable-an-event-destination"},{"title":"Send a ping event","deprecated":null,"version":null,"openapi":"/openapi/v2.json post /event_destinations/{id}/ping","href":"/api-reference/v2/event-destinations/send-a-ping-event"},{"title":"Rotate the signing secret","deprecated":null,"version":null,"openapi":"/openapi/v2.json post /event_destinations/{id}/rotate_secret","href":"/api-reference/v2/event-destinations/rotate-the-signing-secret"}]},{"group":"Events","pages":[{"title":"List events","deprecated":null,"version":null,"openapi":"/openapi/v2.json get /events","href":"/api-reference/v2/events/list-events"},{"title":"Retrieve an event","deprecated":null,"version":null,"openapi":"/openapi/v2.json get /events/{id}","href":"/api-reference/v2/events/retrieve-an-event"},{"title":"Redeliver an event","deprecated":null,"version":null,"openapi":"/openapi/v2.json post /events/{id}/redeliver","href":"/api-reference/v2/events/redeliver-an-event"}]},{"group":"CLI","pages":[{"title":"CLI","href":"/api-reference/cli"}]},{"group":"SimpleFIN","pages":[{"title":"SimpleFIN","href":"/api-reference/simplefin"}]},{"group":"Webhooks","pages":[{"title":"Webhook Payload","href":"/api-reference/webhooks"}]}]},{"version":"v1","tag":"Deprecated","pages":[{"title":"v1","href":"/api-reference/overview"}]}]},{"tab":"MCP","pages":[{"title":"MCP","href":"/mcp-server"}]}]},{"product":"Advisor","icon":"briefcase","description":"Client portal for advisory firms. Early Access","pages":[{"title":"Advisor","href":"/advisor"}]}]},"basePath":"","title":"Rules - Redbark","deploymentId":"dpl_2XYgqAEo2Z87hCspE7GmXvEteEBv","buildId":"dpl_2XYgqAEo2Z87hCspE7GmXvEteEBv","dynamics":[],"chunks":[]}