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ètre | Type | Description |
|---|
| counterpart* | string | Surname or ILIKE substring — case-insensitive |
| window_days | integer 7…720 | Défaut : 365 |
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ètre | Type | Description |
|---|
| counterpart* | string | |
| window_days | integer 30…720 | Défaut : 365 |
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ètre | Type | Description |
|---|
| window_days | integer 7…365 | Défaut : 90 |
| side | "credit" | "debit" | |
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ètre | Type | Description |
|---|
| grace_days | integer 1…30 | Défaut : 7 |
| amount_tolerance_pct | number 0…50 | Défaut : 10 |
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ètre | Type | Description |
|---|
| window_days | integer 30…720 | Défaut : 180 |
| threshold_stddev | number 1…5 | Défaut : 2 |
| min_history | integer 3…50 | Défaut : 5 |
| side | "credit" | "debit" | |
| limit | integer 1…50 | Défaut : 20 |
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ètre | Type | Description |
|---|
| min_occurrences | integer 2…50 | Défaut : 3 |
| side | "credit" | "debit" | Défaut : "credit" |
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ètre | Type | Description |
|---|
| transaction_id* | uuid | |
| amount_tolerance_pct | number 0…50 | Défaut : 10 |
| limit | integer 1…100 | Défaut : 20 |
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ètre | Type | Description |
|---|
| pattern* | string | Pattern with % wildcards, e.g. "Stripe%paiement" |
| fields | "label" | "counterpart" | "reference"[] | Défaut : ["label","counterpart","reference"] |
| from | string | |
| to | string | |
| side | "credit" | "debit" | |
| limit | integer 1…200 | Défaut : 50 |
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ètre | Type | Description |
|---|
| from | string | |
| to | string | |
| limit | integer 1…100 | Défaut : 50 |
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ètre | Type | Description |
|---|
| from | string | |
| to | string | |
| limit | integer 1…100 | Défaut : 50 |
| min_amount_cents | integer | |
GET · POST /api/v1/get_transaction Get a single transaction
Fetch one transaction by id. Counterpart is redacted to a surname.
| Paramètre | Type | Description |
|---|
| id* | uuid | |
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ètre | Type | Description |
|---|
| search | string | Free-text search on label, counterpart and transfer reference |
| account_id | uuid | |
| side | "debit" | "credit" | |
| status | string | |
| from | string | ISO date/time lower bound on occurred_at |
| to | string | ISO date/time upper bound on occurred_at |
| min_amount_cents | integer | |
| max_amount_cents | integer | |
| limit | integer 1…100 | Défaut : 50 |
| offset | integer 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_transfers | boolean | Hide transfers between the user's own accounts. Filters the fetched page, so a page may return fewer than `limit` rows.Défaut : false |
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ètre | Type | Description |
|---|
| query* | string | |
| per_entity_limit | integer 1…20 | Défaut : 5 |
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ètre | Type | Description |
|---|
| target_amount_cents* | integer | |
| tolerance_pct | number 0…50 | Défaut : 5 |
| side | "credit" | "debit" | |
| from | string | |
| to | string | |
| limit | integer 1…100 | Défaut : 30 |
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ètre | Type | Description |
|---|
| account_id | uuid | |
| from | string | |
| to | string | |
| status | string | |
| exclude_internal_transfers | boolean | Exclude transfers between the user's own accounts (neither income nor expense). See find_internal_transfers.Défaut : true |
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ètre | Type | Description |
|---|
| from | string | |
| to | string | |
| limit | integer 1…50 | Défaut : 10 |
| account_id | uuid | |
| exclude_internal_transfers | boolean | Exclude transfers between the user's own accounts — they are not real expensesDéfaut : true |
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ètre | Type | Description |
|---|
| from | string | |
| to | string | |
| limit | integer 1…50 | Défaut : 10 |
| account_id | uuid | |
| exclude_internal_transfers | boolean | Exclude transfers between the user's own accounts — they are not real incomeDéfaut : true |
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ètre | Type | Description |
|---|
| id* | uuid | |
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ètre | Type | Description |
|---|
| from | string | |
| to | string | |
| side | "credit" | "debit" | |
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ètre | Type | Description |
|---|
| from | string | |
| to | string | |
| side | "credit" | "debit" | |