Get accounting intelligence settings
Get which dimensions the accounting intelligence agent codes automatically.
Authorizations
User API key authentication. Create a key under Settings → API keys in the Slash dashboard (https://app.slash.com/global-settings/api-keys) and send the x-legal-entity header naming the legal entity to act on with every request. Keys scoped to a legal entity are rejected with 403 user_api_key_required.
Headers
The legal entity to act on. Required on every request; a user API key can act on any legal entity its user has access to.
^le_[a-zA-Z0-9]+$Query Parameters
The accounting connection to read. Optional when the legal entity has exactly one connection; required (connection_id_required) when it has several. List them at GET /v2/accounting/connections.
Response
The connection's intelligence settings.
How the accounting intelligence agent auto-codes a connection's entries. The agent reads a transaction's merchant, card and history, proposes a value for each enabled dimension and writes it as an ai mapping, so its work shows up in GET /v2/accounting/mappings and can be corrected there.
"accounting_connection_2rj4l7hmrrrcv"
disabled never auto-codes. all_fields auto-codes every dimension in supportedDimensionKeys. selected_fields auto-codes only the dimensions chosen in enabledDimensionKeys.
disabled, all_fields, selected_fields The dimensions the agent codes under the current mode: empty when disabled, every supported key when all_fields, the chosen keys when selected_fields.
The dimensions the agent can code on this platform.