API en lecture

Référence des endpoints

117 endpoints en lecture seule, générés depuis les schémas du serveur : cette page est toujours à jour. Chaque endpoint accepte GET (paramètres dans l’URL) et POST (corps JSON). Version machine : openapi.json.

Comptes et soldes

account_balance_at_date

GET · POST /api/v1/account_balance_at_date

Balance of an account at a given date

Returns the most recent balance snapshot at or before the requested date. If no snapshot exists in the window, falls back to reconstructing by reverse-walking transactions from the earliest snapshot AFTER the date.

ParamètreTypeDescription
account_id*uuid
at*stringISO timestamp — the date you want the balance for

account_balance_over_time

GET · POST /api/v1/account_balance_over_time

Balance evolution for an account

Returns daily balance snapshots within the window. Down-sampled to one per day (latest snapshot of the day). Use to answer "show me my balance last quarter" or to detect a sudden drop.

ParamètreTypeDescription
account_id*uuid
fromstringISO timestamp, defaults to 90 days ago
tostringISO timestamp, defaults to now

cash_runway

GET · POST /api/v1/cash_runway

Cash runway in days at current burn rate

Sums current balance across the user's accounts (filtered by currency if given), computes monthly burn from the past 90 days net flow, and projects how many days of cash remain. Returns "infinite" if net is positive.

ParamètreTypeDescription
currencystringDéfaut : "EUR"

compare_accounts

GET · POST /api/v1/compare_accounts

Side-by-side totals for two accounts over a period

Aggregates credit/debit/net/count for two accounts over the same window.

ParamètreTypeDescription
account_a_id*uuid
account_b_id*uuid
from*string
to*string

get_account

GET · POST /api/v1/get_account

Get a single bank account

Fetch one account by id. IBAN is intentionally omitted.

ParamètreTypeDescription
id*uuid

list_accounts

GET · POST /api/v1/list_accounts

List bank accounts

Returns the user's connected bank accounts with current balances. IBANs are intentionally not included.

Aucun paramètre.

sync_status

GET · POST /api/v1/sync_status

Last sync date + errors per account

Returns the latest sync status for each of the user's accounts. Useful to spot stalled syncs ("why didn't my new Stripe payment show up?").

Aucun paramètre.

Transactions et recherche

counterpart_profile

GET · POST /api/v1/counterpart_profile

Full profile of one counterpart

For a counterpart name (surname-match, ILIKE substring), returns: timeline span, total count, total amount, mean / median / p90, first/last seen, side breakdown. Use after `find_recurring_counterparts` to drill into a specific client/vendor.

ParamètreTypeDescription
counterpart*stringSurname or ILIKE substring — case-insensitive
window_daysinteger 7…720Défaut : 365

detect_recurring_rhythm

GET · POST /api/v1/detect_recurring_rhythm

Infer a counterpart's payment rhythm

Compute the gaps in days between consecutive transactions and classify the rhythm: "weekly" (≈ 7d), "biweekly" (≈ 14d), "monthly" (≈ 30d), "quarterly" (≈ 90d), or "irregular".

ParamètreTypeDescription
counterpart*string
window_daysinteger 30…720Défaut : 365

find_duplicate_transactions

GET · POST /api/v1/find_duplicate_transactions

Spot likely double-charges

Returns transactions with the same amount + same counterpart + same day. Likely duplicates from a misfire (Stripe retries, bank double-posts). Default window: 90 days.

ParamètreTypeDescription
window_daysinteger 7…365Défaut : 90
side"credit" | "debit"

find_missed_recurrences

GET · POST /api/v1/find_missed_recurrences

Subscriptions whose expected payment did not land

For each active subscription with `next_payment_at` in the past, check whether a transaction matching the expected amount (±10 %) landed in the past 7 days. If not, flag it as "missed". Useful to spot bills you forgot to pay, or unexpected vendor pauses.

ParamètreTypeDescription
grace_daysinteger 1…30Défaut : 7
amount_tolerance_pctnumber 0…50Défaut : 10

find_outlier_transactions

GET · POST /api/v1/find_outlier_transactions

Spot transactions abnormally large for their counterpart

For each counterpart with ≥ N historical transactions, compute mean+stddev over the past window, then flag transactions exceeding `mean + threshold_stddev × stddev`. Use to surface unusual spend (a Stripe payout 5× higher than usual, an unexpected vendor bill).

ParamètreTypeDescription
window_daysinteger 30…720Défaut : 180
threshold_stddevnumber 1…5Défaut : 2
min_historyinteger 3…50Défaut : 5
side"credit" | "debit"
limitinteger 1…50Défaut : 20

find_recurring_counterparts

GET · POST /api/v1/find_recurring_counterparts

Detect recurring counterparts

Groups credit transactions by counterpart and surfaces those seen 3+ times in the past 6 months. Useful to spot regular clients you might want a dedicated rule for.

ParamètreTypeDescription
min_occurrencesinteger 2…50Défaut : 3
side"credit" | "debit"Défaut : "credit"

find_similar_transactions

GET · POST /api/v1/find_similar_transactions

Find transactions similar to a reference one

Given a transaction id, returns other transactions sharing its counterpart, OR with amount within ±tolerance % AND occurring on the same day of month (±2 days). Use to spot recurring payments or related charges.

ParamètreTypeDescription
transaction_id*uuid
amount_tolerance_pctnumber 0…50Défaut : 10
limitinteger 1…100Défaut : 20

find_transactions_by_pattern

GET · POST /api/v1/find_transactions_by_pattern

Find transactions by regex / wildcard pattern

Postgres ILIKE pattern (use % as wildcard) against label, counterpart, and/or the transfer reference (the free-text memo, e.g. "Places psg finale"). Defaults to all three. For richer matching, prefer this over list_transactions which only does ilike with the percent wrapping added automatically.

ParamètreTypeDescription
pattern*stringPattern with % wildcards, e.g. "Stripe%paiement"
fields"label" | "counterpart" | "reference"[]Défaut : ["label","counterpart","reference"]
fromstring
tostring
side"credit" | "debit"
limitinteger 1…200Défaut : 50

find_transactions_with_attachments

GET · POST /api/v1/find_transactions_with_attachments

Transactions that have receipts / attachments

Lists transactions where `transaction_attachments` is non-empty. Useful for "show me all transactions where I uploaded a receipt".

ParamètreTypeDescription
fromstring
tostring
limitinteger 1…100Défaut : 50

find_unmatched_credits

GET · POST /api/v1/find_unmatched_credits

Find credits not attributed to any goal or rule

Returns credit transactions with NO rule_execution AND NO goal_contribution. Useful to spot money that came in but slipped through your automation.

ParamètreTypeDescription
fromstring
tostring
limitinteger 1…100Défaut : 50
min_amount_centsinteger

get_transaction

GET · POST /api/v1/get_transaction

Get a single transaction

Fetch one transaction by id. Counterpart is redacted to a surname.

ParamètreTypeDescription
id*uuid

list_transactions

GET · POST /api/v1/list_transactions

List bank transactions

Search and list bank transactions for the user with rich filters. Returns up to 100 transactions per call. Counterpart names are reduced to surnames; counterpart IBANs are stripped.

ParamètreTypeDescription
searchstringFree-text search on label, counterpart and transfer reference
account_iduuid
side"debit" | "credit"
statusstring
fromstringISO date/time lower bound on occurred_at
tostringISO date/time upper bound on occurred_at
min_amount_centsinteger
max_amount_centsinteger
limitinteger 1…100Défaut : 50
offsetinteger 0…Défaut : 0
sort_by"occurred_at" | "amount_cents" | "created_at"Défaut : "occurred_at"
sort_order"asc" | "desc"Défaut : "desc"
exclude_internal_transfersbooleanHide transfers between the user's own accounts. Filters the fetched page, so a page may return fewer than `limit` rows.Défaut : false

search_all

GET · POST /api/v1/search_all

Free-text search across transactions, beneficiaries, subscriptions, rules, goals

One query, scanned in parallel across all major entities. Each match contains the entity type and a small preview. Use to answer "find anything related to STRIPE" without knowing which domain to query.

ParamètreTypeDescription
query*string
per_entity_limitinteger 1…20Défaut : 5

search_transactions_around_amount

GET · POST /api/v1/search_transactions_around_amount

Find transactions around a target amount

Returns transactions within ±tolerance_pct of the target amount. Use to answer "that 1200€ Stripe payment, where was it again?" without remembering the exact cents.

ParamètreTypeDescription
target_amount_cents*integer
tolerance_pctnumber 0…50Défaut : 5
side"credit" | "debit"
fromstring
tostring
limitinteger 1…100Défaut : 30

sum_transactions

GET · POST /api/v1/sum_transactions

Sum transactions amounts

Returns total credit, total debit and net for transactions matching the filters. Useful for quick "how much did I spend" / "how much did I earn" questions.

ParamètreTypeDescription
account_iduuid
fromstring
tostring
statusstring
exclude_internal_transfersbooleanExclude transfers between the user's own accounts (neither income nor expense). See find_internal_transfers.Défaut : true

top_expenses

GET · POST /api/v1/top_expenses

Top N largest debit transactions in a period

Returns the N largest debits (expenses) ordered by amount desc. Useful for "what was my biggest spend this month?".

ParamètreTypeDescription
fromstring
tostring
limitinteger 1…50Défaut : 10
account_iduuid
exclude_internal_transfersbooleanExclude transfers between the user's own accounts — they are not real expensesDéfaut : true

top_income

GET · POST /api/v1/top_income

Top N largest credit transactions in a period

Returns the N largest credits ordered by amount desc. "Who paid me the most this quarter?".

ParamètreTypeDescription
fromstring
tostring
limitinteger 1…50Défaut : 10
account_iduuid
exclude_internal_transfersbooleanExclude transfers between the user's own accounts — they are not real incomeDéfaut : true

transaction_lineage

GET · POST /api/v1/transaction_lineage

Full audit trail for one transaction

For a transaction id, returns the source meta (sync provider, qonto_id, settlement date), all linked rule executions, all goal contributions, all subscription matches, and all attachments. Use when the user asks "where did this transaction come from and what happened with it?".

ParamètreTypeDescription
id*uuid

transactions_by_label

GET · POST /api/v1/transactions_by_label

Aggregate transactions by Qonto label

Groups transactions by their label_ids (synced from Qonto via embed=labels). Returns per-label totals for a date range. Answers "how much did I spend on Transport this quarter?".

ParamètreTypeDescription
fromstring
tostring
side"credit" | "debit"

transactions_by_weekday

GET · POST /api/v1/transactions_by_weekday

Distribution of transactions by weekday

Counts and totals per day of the week (Mon..Sun) for a date window. Helpful to spot patterns ("I get paid on Fridays", "I overspend on weekends").

ParamètreTypeDescription
fromstring
tostring
side"credit" | "debit"

Analyses, rapports et prévisions

analyze_period

GET · POST /api/v1/analyze_period

Analyse income / expense over a period

Aggregate income, expense and net for a date range. Optionally breaks down top counterparts on both sides. Use to answer "how was my October?", "who did I pay the most this quarter?", "is my CA up vs last month?".

ParamètreTypeDescription
from*stringISO date lower bound on occurred_at, inclusive
to*stringISO date upper bound on occurred_at, inclusive
account_iduuid
top_counterpartsinteger 0…20How many top counterparts to return per sideDéfaut : 5
exclude_internal_transfersbooleanExclude transfers between the user's own accounts (neither income nor expense). See find_internal_transfers.Défaut : true

compare_periods

GET · POST /api/v1/compare_periods

Compare two date ranges side by side

Aggregates credit/debit/net/count for two windows and returns the delta. Use for "how does October compare to September?", "Q3 vs Q3 last year".

ParamètreTypeDescription
period_a*object
period_b*object
account_iduuid
exclude_internal_transfersbooleanExclude transfers between the user's own accounts (neither income nor expense)Défaut : true

forecast_cash_flow

GET · POST /api/v1/forecast_cash_flow

Forecast monthly cash flow

Projects N months ahead using the average monthly net of the past 3 months. Naive but useful as a sanity check. Use to answer "where will I be in 6 months if nothing changes?". NOT a projected balance: for a 30/60/90-day projection built from the current balance and dated commitments, use forecast_cash_flow_by_due_date.

ParamètreTypeDescription
months_aheadinteger 1…24Défaut : 6
account_iduuid
exclude_internal_transfersbooleanExclude transfers between the user's own accounts from the baselineDéfaut : true

forecast_cash_flow_by_due_date

GET · POST /api/v1/forecast_cash_flow_by_due_date

Cash-flow projection by due dates (30/60/90 days)

Projects the organisation balance from today using only dated, known commitments: booked balance of the active accounts in the currency, open client invoices at their due date (never already-paid ones), unpaid supplier invoices (due date or planned payment date), active subscriptions (end-of-month safe), and URSSAF échéances priced by the assistant (EUR only). Distinguishes available money (opening balance) from expected receipts; overdue or undated items are listed in `unscheduled` without inventing a date. One currency per call, no per-account mode. Supports a client-delay scenario (client_delay_days). Returns assumptions, warnings, freshness and truncation flags. Use forecast_cash_flow for the naive 90-day average instead.

ParamètreTypeDescription
horizon_daysinteger 1…180Projection window in days (30, 60, 90…)Défaut : 90
currencystringSingle currency; other currencies are counted as excluded, never converted
client_delay_daysinteger 0…120Scenario: shift every expected client payment by N days (e.g. 14)Défaut : 0
include_external_accountsbooleanAlso count connected external accounts in the opening balanceDéfaut : false
include_subscriptionsbooleanDéfaut : true
include_supplier_invoicesbooleanDéfaut : true
include_urssafbooleanURSSAF échéances are EUR only and ignored for any other currencyDéfaut : true

generate_period_summary

GET · POST /api/v1/generate_period_summary

Generate a narrative markdown summary for a period

Composes a human-readable report covering income, expenses, net, top counterparts, goal progress and subscription burn for the requested window. Output is ready to paste into a note or message.

ParamètreTypeDescription
from*string
to*string
currencystringDéfaut : "EUR"

generate_quarterly_summary

GET · POST /api/v1/generate_quarterly_summary

Narrative report for a calendar quarter

Convenience wrapper around generate_period_summary scoped to a Q1..Q4 of a given year.

ParamètreTypeDescription
year*integer 2020…2100
quarter*integer 1…4
currencystringDéfaut : "EUR"

generate_urssaf_summary

GET · POST /api/v1/generate_urssaf_summary

CA + provisioning summary for an URSSAF declaration window

For a date range, sums credit transactions (CA) and the total contributed to tax_reserve goals over the same window. Output is a markdown block + raw numbers ready for the user to pre-fill their declaration.

ParamètreTypeDescription
from*string
to*string

list_audit_log

GET · POST /api/v1/list_audit_log

List recent audit events

Returns recent actions taken on the account (rules created/updated, transfers, profile imports, etc.) ordered by most recent. Useful to answer "what did I change yesterday?" or to confirm an automation fired.

ParamètreTypeDescription
actionstringFilter by exact action name, e.g. "apply_profile_template"
resource_typestring
fromstring
tostring
limitinteger 1…100Défaut : 50
offsetinteger 0…Défaut : 0

list_profile_templates

GET · POST /api/v1/list_profile_templates

List available profile templates

Curated bundles of rules + goals for common fiscal regimes (micro-BNC ACRE, réel simplifié + TVA, SASU dividendes). Returns the full structure so the LLM can describe what each profile would create.

Aucun paramètre.

monthly_breakdown

GET · POST /api/v1/monthly_breakdown

Per-month income/expense/net breakdown

For a date range, returns one row per calendar month with credit/debit/net/count. Useful for "show me my last 12 months" or "year-to-date P&L".

ParamètreTypeDescription
from*string
to*string
account_iduuid
exclude_internal_transfersbooleanExclude transfers between the user's own accounts (neither income nor expense)Défaut : true

provisioning_status

GET · POST /api/v1/provisioning_status

Provisioning status of tax_reserve goals

For each tax_reserve goal, returns target / current / ratio + projected coverage given the recent cadence. Use to answer "am I behind on URSSAF for Q3?".

Aucun paramètre.

spending_percentiles

GET · POST /api/v1/spending_percentiles

Percentiles of monthly spend

Computes p50/p90/p99 of monthly total debit for the past N months. Useful to spot how unusual the current month is vs. baseline.

ParamètreTypeDescription
months_backinteger 3…24Défaut : 12

tva_calculator

GET · POST /api/v1/tva_calculator

Convert between HT and TTC at a given VAT rate

Given an amount and a VAT rate (default 20 %), returns the HT, the TVA, and the TTC. Specify which side of the equation you have via `mode`.

ParamètreTypeDescription
amount_cents*integer
rate_pctnumber 0…100Défaut : 20
mode"from_ht" | "from_ttc"Défaut : "from_ttc"

Clients, factures et fournisseurs

client_ytd_summary

GET · POST /api/v1/client_ytd_summary

Year-to-date summary for one client

For a counterpart name (case-insensitive match), returns YTD CA, monthly breakdown, payment count, average delay, and linked rules.

ParamètreTypeDescription
counterpart*string
yearinteger

detect_late_clients

GET · POST /api/v1/detect_late_clients

Clients who haven't paid in a while

Returns credit counterparts with ≥ 2 past transactions but last payment > threshold days ago. Sorted by days_since_last desc. Use for "any client I should chase?".

ParamètreTypeDescription
late_threshold_daysinteger 1…365Défaut : 45

list_clients

GET · POST /api/v1/list_clients

List clients by aggregated credit counterpart

Groups credit transactions by counterpart and returns CA YTD, total CA, transaction count, average gap between payments, days since last payment, is_new, is_late. Sorted by YTD CA desc. Use to answer "who are my top clients?" or "who should I follow up with?".

ParamètreTypeDescription
yearinteger
late_threshold_daysinteger 1…365Défaut : 45
filter"all" | "new" | "late"Défaut : "all"
min_transactionsinteger 1…100Défaut : 1
limitinteger 1…200Défaut : 50

list_labels

GET · POST /api/v1/list_labels

List Qonto transaction labels (categories)

Returns the hierarchical labels synced from Qonto. Use POST /api/sync/labels first if the list is empty. Labels can be used to categorize transactions.

Aucun paramètre.

list_receivables

GET · POST /api/v1/list_receivables

Open client invoices (à encaisser)

What clients still owe, from the Qonto client invoices mirrored locally: open invoices with due state (overdue / due_today / upcoming / no_due_date), partial payments, credit notes applied per invoice, remaining per client, per-currency totals and overdue ageing buckets. Paid, draft and canceled invoices are never counted; unknown statuses and missing amounts are reported, not guessed; an invoice whose avoir is missing from the cache is flagged `uncertain` (remaining = upper bound). Avoirs on paid or absent invoices are listed as `to_verify` and never netted. Answers "qui me doit quoi ?", "quelles factures sont en retard ?".

ParamètreTypeDescription
currencystringOnly invoices in this currency
state"overdue" | "due_today" | "upcoming" | "no_due_date"
clientstringCase-insensitive substring of the client name or invoice number
include_settledbooleanAlso list open invoices whose remaining is 0Défaut : false
limitinteger 1…500Défaut : 200
offsetinteger 0…Défaut : 0

list_supplier_invoices_local

GET · POST /api/v1/list_supplier_invoices_local

List synced supplier invoices

Returns supplier invoices from the local cache (synced from Qonto). Use POST /api/sync/supplier-invoices to refresh. Useful for "what vendor bills are coming up?" or "how much do I owe suppliers?".

ParamètreTypeDescription
statusstringFilter by status: to_review, awaiting_payment, paid, etc.
due_beforestringISO date — only invoices due before this date
limitinteger 1…100Défaut : 50

upcoming_supplier_payments

GET · POST /api/v1/upcoming_supplier_payments

Supplier invoices due in the next N days

Lists unpaid supplier invoices with due_date within the window. Sorted by due date asc. Answers "what do I need to pay this month?".

ParamètreTypeDescription
days_aheadinteger 1…180Défaut : 30

Abonnements et prélèvements

find_dormant_subscriptions

GET · POST /api/v1/find_dormant_subscriptions

Active subscriptions you might have forgotten

Returns active subscriptions where `last_payment_at` is older than N days. Likely auto-renewing services you stopped using — a recurring expense audit shortlist.

ParamètreTypeDescription
dormant_threshold_daysinteger 30…365Défaut : 60

find_transactions_by_subscription

GET · POST /api/v1/find_transactions_by_subscription

List all transactions linked to a subscription

Returns every transaction the detector matched to this subscription, newest first.

ParamètreTypeDescription
subscription_id*uuid
limitinteger 1…200Défaut : 50

get_subscription

GET · POST /api/v1/get_subscription

Get a single subscription

Fetch one subscription with its payment history (last 12 matched transactions).

ParamètreTypeDescription
id*uuid

list_subscriptions

GET · POST /api/v1/list_subscriptions

List recurring subscriptions

List the user's recurring payments (SaaS, streaming, utilities, insurance, rent, telecom). Vendor names reduced to surname; beneficiary IBANs stripped.

ParamètreTypeDescription
status"active" | "paused" | "cancelled" | "pending_confirmation"
category"saas" | "streaming" | "utilities" | "insurance" | "rent" | "telecom" | "other"
frequency"weekly" | "monthly" | "quarterly" | "yearly"
limitinteger 1…100Défaut : 50
offsetinteger 0…Défaut : 0
sort_by"next_payment_at" | "amount_cents" | "name" | "created_at"Défaut : "next_payment_at"
sort_order"asc" | "desc"Défaut : "asc"

subscription_cost_evolution

GET · POST /api/v1/subscription_cost_evolution

Historical price changes for a subscription

Reads `subscription_price_history` for the given subscription. Useful to spot price creep ("my insurance went up 30 % last year").

ParamètreTypeDescription
subscription_id*uuid

subscriptions_by_category

GET · POST /api/v1/subscriptions_by_category

Aggregate active subscriptions by category

For each category (saas, streaming, utilities, insurance, rent, telecom, other), returns total monthly equivalent and count of active subs. Answers "how much do I spend on SaaS per month?".

Aucun paramètre.

upcoming_bills

GET · POST /api/v1/upcoming_bills

Subscriptions billing in the next N days

Lists active subscriptions with `next_payment_at` within the window, sorted by date. Returns total expected outflow. Answers "what bills are coming up?".

ParamètreTypeDescription
days_aheadinteger 1…180Défaut : 30

Objectifs d’épargne

find_goals_at_risk

GET · POST /api/v1/find_goals_at_risk

Active goals projected to miss their deadline

For each active goal with a deadline, computes projected_completion using the past 30 days of contributions and flags those where projection > deadline. Returns the gap in days and the required monthly bump to recover.

Aucun paramètre.

find_transactions_by_goal

GET · POST /api/v1/find_transactions_by_goal

List all transactions contributing to a goal

Returns goal_contributions joined with their source transactions. Source can be "transaction" (manual attribution), "rule" (automatic via a rule), or "manual" (no transaction, an arbitrary amount the user added).

ParamètreTypeDescription
goal_id*uuid
source"transaction" | "rule" | "manual"
limitinteger 1…200Défaut : 50

get_goal

GET · POST /api/v1/get_goal

Get a single goal

Fetch one goal by id with progress.

ParamètreTypeDescription
id*uuid

get_goal_cadence

GET · POST /api/v1/get_goal_cadence

Cadence calculator for a goal

Returns: monthly_income_estimate (3-month avg of credits), current monthly contribution to this goal (30-day window), required percentage of each incoming transaction to hit the target by the deadline, and projected completion date at the current rate.

ParamètreTypeDescription
goal_id*uuid

list_goals

GET · POST /api/v1/list_goals

List financial goals

Lists the user's savings/financial goals with progress.

ParamètreTypeDescription
status"active" | "completed" | "paused" | "cancelled"
category"emergency" | "equipment" | "travel" | "tax_reserve" | "custom"
limitinteger 1…100Défaut : 50
offsetinteger 0…Défaut : 0

simulate_goal_with_contribution

GET · POST /api/v1/simulate_goal_with_contribution

What-if: project goal completion after a hypothetical contribution

Pretends you add X cents to the goal right now (without persisting). Returns the new projected completion date based on the current 30-day cadence. Use for "if I dump 5 000€ on this goal now, when do I finish?".

ParamètreTypeDescription
goal_id*uuid
hypothetical_contribution_cents*integer

upcoming_goal_deadlines

GET · POST /api/v1/upcoming_goal_deadlines

Active goals sorted by deadline (soonest first)

Returns active goals with a deadline, sorted ascending. Includes days_until_deadline and progress_pct so the LLM can prioritise.

ParamètreTypeDescription
within_daysinteger 1…720Restrict to deadlines within N days

Règles et cascade

find_rules_never_fired

GET · POST /api/v1/find_rules_never_fired

Rules with zero historical executions

Lists enabled rules with `trigger_count = 0` — they either match nothing, have wrong conditions, or were created for a use-case that never materialized.

ParamètreTypeDescription
include_disabledbooleanDéfaut : false

find_transactions_by_rule

GET · POST /api/v1/find_transactions_by_rule

List all transactions that triggered a rule

Returns every transaction with a rule_execution for the given rule (executed, pending, failed, skipped). Includes the execution status + amount actually applied.

ParamètreTypeDescription
rule_id*uuid
status"pending" | "executed" | "failed" | "skipped"
limitinteger 1…200Défaut : 50

get_rule

GET · POST /api/v1/get_rule

Get a single rule

Fetch one automation rule by id.

ParamètreTypeDescription
id*uuid

list_cascade_groups

GET · POST /api/v1/list_cascade_groups

List rule cascade groups by trigger signature

Groups rules by identical (conditions + logic) and returns them. Mirrors the grouping shown in /rules/cascade. Tells the LLM which cascades exist and which rules belong together.

Aucun paramètre.

list_rule_executions

GET · POST /api/v1/list_rule_executions

List rule execution logs

Lists records of when transaction-triggered rules fired, including the triggering transaction and resulting transfer (if any). Counterpart names and beneficiary names are surname-only; IBANs stripped.

ParamètreTypeDescription
rule_iduuid
status"pending" | "executed" | "failed" | "skipped"
fromstring (date-time)
tostring (date-time)
limitinteger 1…100Défaut : 50
offsetinteger 0…Défaut : 0

list_rules

GET · POST /api/v1/list_rules

List automation rules

Lists the user's transaction-triggered transfer rules.

ParamètreTypeDescription
enabledboolean
limitinteger 1…100Défaut : 50
offsetinteger 0…Défaut : 0

list_upcoming_scheduled_runs

GET · POST /api/v1/list_upcoming_scheduled_runs

Next scheduled rule fires within a window

For every enabled scheduled rule, computes the next fire date within `days_ahead` (default 90). Returns sorted by date asc with the simulated payout for each.

ParamètreTypeDescription
days_aheadinteger 1…365Défaut : 90

simulate_cascade

GET · POST /api/v1/simulate_cascade

Simulate the cascade for a hypothetical transaction

Given a gross amount and trigger fields, walks through the cascade exactly like the engine would and returns the per-rule allocation + leftover. Useful for "if I receive 1000€ from Stripe, where does it go?". Does NOT execute anything.

ParamètreTypeDescription
gross_amount_cents*integer
labelstring
counterpartstring
side"credit" | "debit"Défaut : "credit"
currencystringDéfaut : "EUR"

simulate_dynamic_salary

GET · POST /api/v1/simulate_dynamic_salary

Preview the payout a scheduled rule would produce right now

For a rule with trigger_type="scheduled", reads the source account balance and returns the would-be transfer amount applying clamp(balance - buffer, min, max). Use to answer "if my end-of-month salary rule fired today, how much would I get?".

ParamètreTypeDescription
rule_id*uuid

suggest_rules_from_unmatched

GET · POST /api/v1/suggest_rules_from_unmatched

Suggest new rules based on recurring unmatched credits

Scans recurring credit counterparts and proposes a new rule for each that does NOT already have a matching rule (by counterpart substring). Output includes a ready-to-use condition + an estimated monthly cadence to help size the rule.

ParamètreTypeDescription
min_occurrencesinteger 2…20Défaut : 3
window_daysinteger 60…720Défaut : 180

test_rule

GET · POST /api/v1/test_rule

Dry-run a rule against recent transactions

Evaluate an existing rule against the last N transactions WITHOUT persisting anything. Use to validate a rule's conditions before enabling it broadly.

ParamètreTypeDescription
rule_id*uuid
limitinteger 1…200Défaut : 50

Bénéficiaires

find_transactions_by_beneficiary

GET · POST /api/v1/find_transactions_by_beneficiary

List transactions related to a beneficiary

Finds transactions whose counterpart matches the beneficiary's name or alias (case-insensitive substring). Also lists any transfers explicitly targeting this beneficiary.

ParamètreTypeDescription
beneficiary_id*uuid
limitinteger 1…200Défaut : 50

find_unused_beneficiaries

GET · POST /api/v1/find_unused_beneficiaries

Beneficiaries never used in a transfer

Lists beneficiaries with zero transfer history. Candidates for cleanup, or just unused recipients you forgot you added.

Aucun paramètre.

get_beneficiary

GET · POST /api/v1/get_beneficiary

Get a single beneficiary

Fetch one beneficiary by id. Redacted the same way as list_beneficiaries.

ParamètreTypeDescription
id*uuid

list_beneficiaries

GET · POST /api/v1/list_beneficiaries

List beneficiaries (recipients)

Lists payment recipients. Sensitive fields are redacted: full names become surnames only, IBANs become opaque fingerprints + country code, BIC is omitted.

ParamètreTypeDescription
searchstring
labelstring
trustedboolean
limitinteger 1…100Défaut : 50
offsetinteger 0…Défaut : 0

Virements

find_internal_transfers

GET · POST /api/v1/find_internal_transfers

Detect transfers between the user's own accounts

Identifies money moving between the user's OWN accounts — rule provisioning transfers, debit/credit pairs across two connected accounts (same amount, close in time), and transfers labelled with the owner's own name. These are neither income nor expense and are excluded by default from analytics tools (analyze_period, top_expenses, ...). Use this to audit what gets excluded, or to answer "how much did I move between my accounts?".

ParamètreTypeDescription
fromstringISO date lower bound on occurred_at
tostringISO date upper bound on occurred_at
window_hoursinteger 1…168Max hours between the debit leg and the credit leg of a pair. Keep small: own-account moves are near-instant; wide windows create false pairs with unrelated same-amount transactions.Défaut : 6
include_self_namedbooleanAlso flag unpaired transfers labelled with the owner's own full nameDéfaut : true

get_transfer

GET · POST /api/v1/get_transfer

Get a single transfer

Fetch one transfer by id. Beneficiary IBAN stripped, name reduced to surname.

ParamètreTypeDescription
id*uuid

list_transfers

GET · POST /api/v1/list_transfers

List transfers

Lists outgoing transfers for the user. Beneficiary names are reduced to surnames; beneficiary and account IBANs are stripped.

ParamètreTypeDescription
account_iduuid
beneficiary_iduuid
statusstring
transfer_typestring
fromstring
tostring
limitinteger 1…100Défaut : 50
offsetinteger 0…Défaut : 0
sort_by"created_at" | "scheduled_at" | "amount_cents"Défaut : "created_at"
sort_order"asc" | "desc"Défaut : "desc"

Documents

list_documents

GET · POST /api/v1/list_documents

List documents across all sources

One index of every document: URSSAF attestations and letters, impots.gouv documents (avis d’impôt, déclarations, avis de situation, CFE), France Travail courriers (relevés de situation, attestations fiscales, notifications), Qonto transaction receipts, client invoices, credit notes, supplier invoices and housing documents (avis d’échéance, factures EDF/Orange…, shared with the other housing member). Filter by free text (number, client, supplier, subject, file name), source, year or party. Each item says whether a file can be opened; call get_document_link to obtain the actual URL (never guess one).

ParamètreTypeDescription
qstring
sources"urssaf_attestation" | "urssaf_message" | "impots_document" | "francetravail_courrier" | "transaction" | "client_invoice" | "credit_note" | "supplier_invoice" | "housing_document"[]
yearinteger 2000…2100
partystringClient, supplier or counterpart name (substring)
limitinteger 1…200Défaut : 50

URSSAF

urssaf_declaration_helper

GET · POST /api/v1/urssaf_declaration_helper

Everything needed to fill the URSSAF declaration of a period

For a period (URSSAF code like "2633", a month key like "2026-09", or omitted = the next period to declare): the CA encaissé on Qonto with the list of credits and why some were excluded (internal transfers, manual exclusions, cancelled, foreign currency), the estimated contributions (rate, ACRE, CFP, versement libératoire), the provision coverage from tax_reserve goals, the recorded declaration if any, and the reconciliation with the actual URSSAF debit. Includes a ready-to-read French markdown summary.

ParamètreTypeDescription
periodstringURSSAF period code ("2633"), month ("2026-09") or omitted for the next one to declare
include_creditsbooleanInclude the credit-by-credit listDéfaut : true

urssaf_declaration_history

GET · POST /api/v1/urssaf_declaration_history

Official declaration history (CA declared, contributions, remaining)

What the URSSAF shows in "Historique de mes déclarations", imported by the Shortcut from that page: per period, CA declared, cotisations, reste à payer. Compare with urssaf_declaration_helper to spot over/under-declarations.

Aucun paramètre.

urssaf_estimator

GET · POST /api/v1/urssaf_estimator

Estimate URSSAF contributions for a CA

For a turnover (CA encaissé), returns the contribution estimate from the shared rate table (cotisations sociales with ACRE when applicable, CFP, optional versement libératoire). By default uses the user’s stored regime/ACRE settings (see urssaf_settings); pass `regime` to override. Rates are approximations à vérifier sur urssaf.fr — the URSSAF computes the exact amount at declaration time.

ParamètreTypeDescription
ca_cents*integerTurnover in cents
activity_monthstringMonth the CA was earned (YYYY-MM); default: current month
regime"micro_bnc" | "micro_bic_services" | "micro_bic_sales"Override the stored regime
acrebooleanForce ACRE on/off instead of using the stored end date
versement_liberatoireboolean

urssaf_get_message

GET · POST /api/v1/urssaf_get_message

Full text of an URSSAF message and its attachments

Returns the complete body of one messagerie message plus its stored attachments (with 1-hour download links when the Shortcut already pulled them).

ParamètreTypeDescription
id_message*integer

urssaf_list_documents

GET · POST /api/v1/urssaf_list_documents

URSSAF documents stored in couicoui (attestations, pièces jointes)

Attestations (vigilance, fiscale, CA, CFP) and messagerie attachments pulled by the Shortcut, with 1-hour signed download links. Also lists attestations known to the URSSAF but not yet downloaded.

ParamètreTypeDescription
kind"attestation" | "message_attachment" | "all"Défaut : "all"

urssaf_list_messages

GET · POST /api/v1/urssaf_list_messages

URSSAF secure messaging (reçus / envoyés)

Messages exchanged with the URSSAF through the espace personnel messagerie, as imported by the Shortcut: subject, sender, date, read flag, attachment count, request motif. Filter by text (subject/body), direction and date. Use urssaf_get_message for a full body and its attachments.

ParamètreTypeDescription
querystringCase-insensitive text to find in subject or body
direction"received" | "sent" | "all"Défaut : "all"
unread_onlybooleanDéfaut : false
with_attachments_onlybooleanDéfaut : false
sincestringISO date lower bound
limitinteger 1…100Défaut : 30

urssaf_list_periods

GET · POST /api/v1/urssaf_list_periods

URSSAF periods with their status

Every URSSAF declaration period known for the user (imported échéances + recent months), with status (to_declare / overdue / declared / paid / probably_declared / upcoming / unknown), deadline, and for actionable periods the CA encaissé and estimated contributions. Also returns the period to act on first (`next`) and the provision coverage.

Aucun paramètre.

urssaf_list_versements

GET · POST /api/v1/urssaf_list_versements

Payments received by the URSSAF (official)

The versements list as the URSSAF sees it (date, amount, payment mode), imported by the Shortcut. Use it to check that a cotisation was actually received, or to reconcile with Qonto debits.

ParamètreTypeDescription
sincestringISO date lower bound
limitinteger 1…200Défaut : 50

urssaf_provisioning_plan

GET · POST /api/v1/urssaf_provisioning_plan

Is the URSSAF cascade rule set to the right percentage?

Compares the user’s URSSAF provisioning rule (percentage of each client credit) with what the real contribution rate requires: regime rate, ACRE in force or ending, VAT (the rule applies to the TTC credit while contributions are due on the HT), and the drift observed on past declarations. Returns the recommended percentage now and after ACRE, and the action (raise / lower / none).

Aucun paramètre.

urssaf_raw_source

GET · POST /api/v1/urssaf_raw_source

Latest raw payload of one URSSAF source

The untouched JSON the Shortcut pulled for a source: contexte, echeanciers, notifications, notifications_pref, plateformes_periodes, regularisations, tableau_de_bord, attestations, documents_index, declaration_history, messages_recus, messages_envoyes, versements. Use when a derived tool does not expose a field you need. Large payloads are truncated.

ParamètreTypeDescription
source*string
max_charsinteger 500…60000Défaut : 12000

urssaf_settings

GET · POST /api/v1/urssaf_settings

URSSAF regime settings and the rate in force

The user’s micro-entrepreneur regime, ACRE end date (set or suggested), versement libératoire, and the contribution rate applied this month.

Aucun paramètre.

impots.gouv

impots_get_message

GET · POST /api/v1/impots_get_message

Full thread of one impots.gouv demande

The complete exchange (each message: from, nature, date, to, text) of one demande, plus its stored attachments / accusés de réception with 1-hour download links.

ParamètreTypeDescription
space*"particulier" | "professionnel"
numero*string

impots_list_messages

GET · POST /api/v1/impots_list_messages

impots.gouv secure messaging (demandes)

Demandes exchanged with the SIP / SIE through the messagerie sécurisée of both spaces: number, subject, service, status, dates, and a preview of the thread. Call impots_get_message for the full exchange and its attachments.

Aucun paramètre.

impots_overview

GET · POST /api/v1/impots_overview

impots.gouv overview (PAS rate, acomptes, income tax balance, CFE, messages)

Latest state imported from the user’s impots.gouv spaces: prélèvement à la source rate and monthly acompte (DGFiP debits on the 15th), next acompte date, income tax due/paid/remaining per year, CFE and tax-debt status (professional space), document and message counts, last import dates. Documents themselves: list_documents(sources:["impots_document"]).

Aucun paramètre.

impots_pas_history

GET · POST /api/v1/impots_pas_history

Prélèvement à la source history

Every PAS line known: acomptes debited by the DGFiP, retenues by collectors (employer, France Travail…), rates transmitted. Useful to reconcile the monthly DGFiP debit on Qonto and to total what was paid per year.

ParamètreTypeDescription
yearinteger
type"acompte" | "retenue" | "taux" | "autre"

impots_raw_source

GET · POST /api/v1/impots_raw_source

Latest raw payload of one impots.gouv source

Untouched parsed page for a source: tableau_de_bord, documents, pas_historique, paiements, messagerie, page_tables (particulier); identite, cfe_avis, cfe_paiements, dettes_fiscales, paiements_etat, paiements_locaux, ordres_paiements (professionnel). Also list imports with impots_imports.

ParamètreTypeDescription
source*string
max_charsinteger 500…60000Défaut : 12000

France Travail

francetravail_actualisations

GET · POST /api/v1/francetravail_actualisations

France Travail actualisation history

Monthly actualisations declared (month, type, validation date, justificatif file name) as returned by the espace, plus the current actualisation status when available. Read-only: couicoui never actualises on the user’s behalf.

Aucun paramètre.

francetravail_attestations

GET · POST /api/v1/francetravail_attestations

France Travail attestations generated by couicoui

Attestations generated on the user’s behalf by the bookmarklet (avis de situation, périodes d’inscription, paiement, périodes indemnisées, fiscale, prélèvement à la source), one per type and month, with couicoui download links. A fresh one requires the user to click the bookmarklet again (never requested by post).

ParamètreTypeDescription
typestring

francetravail_conversations

GET · POST /api/v1/francetravail_conversations

France Travail messagerie (conversations with the conseiller)

Every conversation of the messagerie intégrée: subject, status, last message date, flattened messages (date, author, text) and attachment count. Attachments themselves: list_documents(sources:["francetravail_courrier"]) (kind message_attachment).

ParamètreTypeDescription
qstring

francetravail_courriers

GET · POST /api/v1/francetravail_courriers

France Travail courriers (letters) with download links

Letters received from France Travail (relevé de situation, déclaration fiscale annuelle, notifications d’admission/cessation, exonération CSG…): type, date, size, read flag, and a couicoui download link (1 h) when the PDF is archived. Filter by text, year or type code.

ParamètreTypeDescription
qstring
yearinteger
limitinteger 1…200Défaut : 50

francetravail_get_conversation

GET · POST /api/v1/francetravail_get_conversation

One France Travail conversation in full

Full thread of one messagerie intégrée conversation (every message with date, author, text) plus its stored attachments with couicoui download links (1 h).

ParamètreTypeDescription
id*string

francetravail_notifications

GET · POST /api/v1/francetravail_notifications

France Travail notifications and upcoming rendez-vous

Notifications shown in the espace (message, service, dates, seen flag) and the next rendez-vous summary.

ParamètreTypeDescription
unseen_onlybooleanDéfaut : false

francetravail_overview

GET · POST /api/v1/francetravail_overview

France Travail overview (rights, last payment, PAS rate, courriers)

Latest state imported from the user’s France Travail espace candidat: registration status, remaining days of rights, last and total allocation payments, PAS rate applied, counts of courriers / notifications / rendez-vous, last import. Courrier PDFs and generated attestations (avis de situation, fiscale, paiement, périodes indemnisées, prélèvement à la source): list_documents(sources:["francetravail_courrier"]).

Aucun paramètre.

francetravail_pas

GET · POST /api/v1/francetravail_pas

Prélèvement à la source applied by France Travail

PAS rates transmitted by the DGFiP to France Travail (rate, validity period) and the PAS withheld on each allocation payment. Cross-check with impots_pas_history (DGFiP side).

Aucun paramètre.

francetravail_payments

GET · POST /api/v1/francetravail_payments

France Travail allocation payments

Every allocation payment known (date, amount, label, period), newest first, with a total. Use it to reconcile France Travail credits on Qonto and to explain PAS retenues.

ParamètreTypeDescription
yearinteger

francetravail_raw_source

GET · POST /api/v1/francetravail_raw_source

Latest raw payload of one France Travail source

Untouched JSON for a source: individu, dossier_synthese, dossier_situations, paiements, prelevement_source, courriers, courriers_modeles, actualisation_declarations, actualisation_statut, inscription, messages, messagerie_integree, notifications, rendez_vous, documents_index, attestations_index; or francetravail_imports for the journal.

ParamètreTypeDescription
source*string
max_charsinteger 500…60000Défaut : 12000

Logement partagé

housing_charges

GET · POST /api/v1/housing_charges

Housing charges and provider debits

Recurring charges (rent, electricity, internet, insurance…), who pays the provider, amount in force, revisions, and month by month the provider debits found on the payer’s banks (linked, rejected, to review). Use it to answer "has the rent been debited?", "why is EDF missing?".

ParamètreTypeDescription
housing_iduuidHousing id; defaults to the only (or first) housing of the user
chargestringFilter by label or provider (substring)

housing_documents

GET · POST /api/v1/housing_documents

Housing documents

Documents of the shared housing (avis d’échéance in’li, EDF/Sowee/Orange invoices, insurance, contract…) filtered by free text, charge/provider or month. Use get_document_link with source "housing_document" and the id to obtain a download link. Paid months also have a receipt PDF and inventories a report (see housing_months / housing_overview).

ParamètreTypeDescription
housing_iduuidHousing id; defaults to the only (or first) housing of the user
qstring
monthstring
limitinteger 1…200Défaut : 50

housing_incidents

GET · POST /api/v1/housing_incidents

Housing incidents and works

Incidents reported in the shared housing (leaks, breakdowns, works) with status, priority, cost and who pays it, and the conversation between members.

ParamètreTypeDescription
housing_iduuidHousing id; defaults to the only (or first) housing of the user
open_onlybooleanDéfaut : false

housing_inventory

GET · POST /api/v1/housing_inventory

Housing inventory (état des lieux)

Check-in / check-out inventory: rooms, item conditions (good / worn / damaged), notes, photo counts, validation by each member, and at check-out the items that got worse since check-in (candidates for deposit deductions).

ParamètreTypeDescription
housing_iduuidHousing id; defaults to the only (or first) housing of the user

housing_months

GET · POST /api/v1/housing_months

Housing monthly calls

Every month called since the housing started: amount (with regularisations), paid, remaining, status, due date, the charge lines with the status of each provider debit, and the tenant transfers allocated to it.

ParamètreTypeDescription
housing_iduuidHousing id; defaults to the only (or first) housing of the user
limitinteger 1…60Défaut : 12

housing_overview

GET · POST /api/v1/housing_overview

Shared housing overview

Current month of a shared housing (rent + charges the landlord advances, what is left to pay and when), the status of each provider debit this month (paid / rejected / missing / pending / to review), totals still owed, one-off purchases between members, deposit arrangement, inventory and open incidents, plus a to-do list. Amounts in euros.

ParamètreTypeDescription
housing_iduuidHousing id; defaults to the only (or first) housing of the user

housing_providers

GET · POST /api/v1/housing_providers

Housing providers (in’li rent, EDF electricity & gas, Sowee thermostat, Orange box)

Everything imported from the provider spaces of the shared housing, with analyses: monthly cost of the housing per charge; in’li bills month by month split into rent / charges / parking with the line detail, direct debits, balance, lease holders and amount changes, the lease (start, renewal, duration, deposit paid to in’li, lots and surface), tenant insurance validity, due dates with paid status, debit history with in’li delay flags, requests sent to in’li (title, text, status) and in’li communications, customer service and on-call phone numbers; EDF payment schedule (electricity / gas split, paid vs remaining, next debit), next regularisation and a rough electricity consumption-vs-schedule check, last bill, both contracts (offer, PDL/PCE, power, off-peak hours, start dates), prices (subscription, kWh), subscribed services, SEPA mandate reference, consumption in € per month; Sowee by EDF connected thermostat (Station rental bills with status and debit date, debits, subscriptions with start/activation/end, support cases, installation appointment, balance and next debit — no temperature/humidity readings: the Sowee web space does not expose them, only the mobile app); Orange box internet (offer name and price, installed options, engagement, every monthly bill, debit status and history — only the internet/Box contract, not the holder’s personal mobile lines). History before the housing started is included and flagged.

ParamètreTypeDescription
housing_iduuidHousing id; defaults to the only (or first) housing of the user

housing_transfers

GET · POST /api/v1/housing_transfers

Transfers between housing members

Transfers from the tenant to the landlord (and deposit refunds back), found on every bank and Sumeria import of the tenant or entered by hand, with what each one pays: a month, a purchase, the deposit, or nothing yet (to classify).

ParamètreTypeDescription
housing_iduuidHousing id; defaults to the only (or first) housing of the user
include_ignoredbooleanDéfaut : false

Zakat et métaux

metal_price_over_time

GET · POST /api/v1/metal_price_over_time

Gold & silver price history with nisab thresholds

Daily gold and silver prices (per gram) over a window, plus the derived nisab thresholds (gold 85g, silver 595g). Use to see how the zakat threshold moved, e.g. "what was the nisab last quarter?".

ParamètreTypeDescription
fromstringISO timestamp, defaults to 90 days ago
tostringISO timestamp, defaults to now
currencystringDéfaut : "EUR"

nisab_at_date

GET · POST /api/v1/nisab_at_date

Nisab thresholds at a given date

Gold and silver nisab thresholds at a date, from the latest recorded price at or before that date. Returns the effective (lower) threshold — usually silver — which is the one wealth must exceed to owe zakat.

ParamètreTypeDescription
at*stringISO timestamp — the date you want the nisab for
currencystringDéfaut : "EUR"

* paramètre obligatoire.