Switch new-transaction pushes for one bank account
Idempotent. 422 when the account is not connected over the bank API, so
a client can never believe it configured an account that will stay silent.
404 for an account outside the workspace, and for a caller who is not an
owner of it.
Authentication
JWT issued via POST /api/v1/auth/sign_in. Used by mobile and SPA clients. Revoked tokens are rejected.
Lucanto API key. Two prefixes:
lct_pat_<random><checksum>— personal access token (owner: User)lct_live_<random><checksum>— workspace token, live data
Issue keys at /settings/api_keys (personal) or
/:workspace_id/settings/api_keys (workspace). Plaintext token is
shown once and never again.
Path parameters
Bank account the switch belongs to. Either the numeric id or the public_id (ba_…).
Request
Response
The per-account switch on its own — it does not fold in the
new_transaction category switch from /notification_preferences. A
push fires only when both are on; keeping them separate here means a
write is echoed back as written instead of being masked by the other
gate.
ISO-4217 currency code.
