{"openapi":"3.1.0","info":{"title":"couicoui read API","version":"1.0.0","description":"Read-only access to your couicoui data: accounts, transactions, goals, rules, subscriptions, beneficiaries, transfers, clients, documents, URSSAF, impots.gouv, France Travail, housing, zakat and analytics. Counterpart IBANs are removed and names reduced, as in the MCP server."},"servers":[{"url":"https://www.couicoui.com"}],"security":[{"apiKey":[]}],"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","bearerFormat":"cc_read_…"}},"responses":{"Error":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]},"meta":{"type":"object","properties":{"request_id":{"type":"string"}}}}}}}}}},"paths":{"/api/v1/account_balance_at_date":{"get":{"operationId":"account_balance_at_date","summary":"Balance of an account at a given date","description":"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.","tags":["accounts"],"parameters":[{"name":"account_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"at","in":"query","required":true,"description":"ISO timestamp — the date you want the balance for","schema":{"description":"ISO timestamp — the date you want the balance for","type":"string"}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"account_balance_at_date_post","summary":"Balance of an account at a given date (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["accounts"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"at":{"description":"ISO timestamp — the date you want the balance for","type":"string"}},"required":["account_id","at"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/account_balance_over_time":{"get":{"operationId":"account_balance_over_time","summary":"Balance evolution for an account","description":"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.","tags":["accounts"],"parameters":[{"name":"account_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"from","in":"query","required":false,"description":"ISO timestamp, defaults to 90 days ago","schema":{"description":"ISO timestamp, defaults to 90 days ago","type":"string"}},{"name":"to","in":"query","required":false,"description":"ISO timestamp, defaults to now","schema":{"description":"ISO timestamp, defaults to now","type":"string"}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"account_balance_over_time_post","summary":"Balance evolution for an account (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["accounts"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"from":{"description":"ISO timestamp, defaults to 90 days ago","type":"string"},"to":{"description":"ISO timestamp, defaults to now","type":"string"}},"required":["account_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/analyze_period":{"get":{"operationId":"analyze_period","summary":"Analyse income / expense over a period","description":"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?\".","tags":["analytics"],"parameters":[{"name":"from","in":"query","required":true,"description":"ISO date lower bound on occurred_at, inclusive","schema":{"description":"ISO date lower bound on occurred_at, inclusive","type":"string"}},{"name":"to","in":"query","required":true,"description":"ISO date upper bound on occurred_at, inclusive","schema":{"description":"ISO date upper bound on occurred_at, inclusive","type":"string"}},{"name":"account_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"top_counterparts","in":"query","required":false,"description":"How many top counterparts to return per side","schema":{"description":"How many top counterparts to return per side","default":5,"type":"integer","minimum":0,"maximum":20}},{"name":"exclude_internal_transfers","in":"query","required":false,"description":"Exclude transfers between the user's own accounts (neither income nor expense). See find_internal_transfers.","schema":{"description":"Exclude transfers between the user's own accounts (neither income nor expense). See find_internal_transfers.","default":true,"type":"boolean"}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"analyze_period_post","summary":"Analyse income / expense over a period (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["analytics"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"from":{"description":"ISO date lower bound on occurred_at, inclusive","type":"string"},"to":{"description":"ISO date upper bound on occurred_at, inclusive","type":"string"},"account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"top_counterparts":{"description":"How many top counterparts to return per side","default":5,"type":"integer","minimum":0,"maximum":20},"exclude_internal_transfers":{"description":"Exclude transfers between the user's own accounts (neither income nor expense). See find_internal_transfers.","default":true,"type":"boolean"}},"required":["from","to"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/cash_runway":{"get":{"operationId":"cash_runway","summary":"Cash runway in days at current burn rate","description":"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.","tags":["accounts"],"parameters":[{"name":"currency","in":"query","required":false,"schema":{"default":"EUR","type":"string","minLength":3,"maxLength":3}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"cash_runway_post","summary":"Cash runway in days at current burn rate (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["accounts"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"currency":{"default":"EUR","type":"string","minLength":3,"maxLength":3}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/client_ytd_summary":{"get":{"operationId":"client_ytd_summary","summary":"Year-to-date summary for one client","description":"For a counterpart name (case-insensitive match), returns YTD CA, monthly breakdown, payment count, average delay, and linked rules.","tags":["clients"],"parameters":[{"name":"counterpart","in":"query","required":true,"schema":{"type":"string","minLength":1}},{"name":"year","in":"query","required":false,"schema":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"client_ytd_summary_post","summary":"Year-to-date summary for one client (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["clients"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"counterpart":{"type":"string","minLength":1},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["counterpart"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/compare_accounts":{"get":{"operationId":"compare_accounts","summary":"Side-by-side totals for two accounts over a period","description":"Aggregates credit/debit/net/count for two accounts over the same window.","tags":["accounts"],"parameters":[{"name":"account_a_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"account_b_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"from","in":"query","required":true,"schema":{"type":"string"}},{"name":"to","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"compare_accounts_post","summary":"Side-by-side totals for two accounts over a period (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["accounts"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"account_a_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"account_b_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"from":{"type":"string"},"to":{"type":"string"}},"required":["account_a_id","account_b_id","from","to"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/compare_periods":{"get":{"operationId":"compare_periods","summary":"Compare two date ranges side by side","description":"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\".","tags":["analytics"],"parameters":[{"name":"period_a","in":"query","required":true,"schema":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"label":{"default":"A","type":"string"}},"required":["from","to"]}},{"name":"period_b","in":"query","required":true,"schema":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"label":{"default":"B","type":"string"}},"required":["from","to"]}},{"name":"account_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"exclude_internal_transfers","in":"query","required":false,"description":"Exclude transfers between the user's own accounts (neither income nor expense)","schema":{"description":"Exclude transfers between the user's own accounts (neither income nor expense)","default":true,"type":"boolean"}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"compare_periods_post","summary":"Compare two date ranges side by side (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["analytics"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"period_a":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"label":{"default":"A","type":"string"}},"required":["from","to"]},"period_b":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"label":{"default":"B","type":"string"}},"required":["from","to"]},"account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"exclude_internal_transfers":{"description":"Exclude transfers between the user's own accounts (neither income nor expense)","default":true,"type":"boolean"}},"required":["period_a","period_b"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/counterpart_profile":{"get":{"operationId":"counterpart_profile","summary":"Full profile of one counterpart","description":"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.","tags":["transactions"],"parameters":[{"name":"counterpart","in":"query","required":true,"description":"Surname or ILIKE substring — case-insensitive","schema":{"description":"Surname or ILIKE substring — case-insensitive","type":"string","minLength":1}},{"name":"window_days","in":"query","required":false,"schema":{"default":365,"type":"integer","minimum":7,"maximum":720}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"counterpart_profile_post","summary":"Full profile of one counterpart (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["transactions"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"counterpart":{"description":"Surname or ILIKE substring — case-insensitive","type":"string","minLength":1},"window_days":{"default":365,"type":"integer","minimum":7,"maximum":720}},"required":["counterpart"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/detect_late_clients":{"get":{"operationId":"detect_late_clients","summary":"Clients who haven't paid in a while","description":"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?\".","tags":["clients"],"parameters":[{"name":"late_threshold_days","in":"query","required":false,"schema":{"default":45,"type":"integer","minimum":1,"maximum":365}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"detect_late_clients_post","summary":"Clients who haven't paid in a while (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["clients"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"late_threshold_days":{"default":45,"type":"integer","minimum":1,"maximum":365}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/detect_recurring_rhythm":{"get":{"operationId":"detect_recurring_rhythm","summary":"Infer a counterpart's payment rhythm","description":"Compute the gaps in days between consecutive transactions and classify the rhythm: \"weekly\" (≈ 7d), \"biweekly\" (≈ 14d), \"monthly\" (≈ 30d), \"quarterly\" (≈ 90d), or \"irregular\".","tags":["transactions"],"parameters":[{"name":"counterpart","in":"query","required":true,"schema":{"type":"string","minLength":1}},{"name":"window_days","in":"query","required":false,"schema":{"default":365,"type":"integer","minimum":30,"maximum":720}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"detect_recurring_rhythm_post","summary":"Infer a counterpart's payment rhythm (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["transactions"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"counterpart":{"type":"string","minLength":1},"window_days":{"default":365,"type":"integer","minimum":30,"maximum":720}},"required":["counterpart"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/find_dormant_subscriptions":{"get":{"operationId":"find_dormant_subscriptions","summary":"Active subscriptions you might have forgotten","description":"Returns active subscriptions where `last_payment_at` is older than N days. Likely auto-renewing services you stopped using — a recurring expense audit shortlist.","tags":["subscriptions"],"parameters":[{"name":"dormant_threshold_days","in":"query","required":false,"schema":{"default":60,"type":"integer","minimum":30,"maximum":365}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"find_dormant_subscriptions_post","summary":"Active subscriptions you might have forgotten (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["subscriptions"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"dormant_threshold_days":{"default":60,"type":"integer","minimum":30,"maximum":365}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/find_duplicate_transactions":{"get":{"operationId":"find_duplicate_transactions","summary":"Spot likely double-charges","description":"Returns transactions with the same amount + same counterpart + same day. Likely duplicates from a misfire (Stripe retries, bank double-posts). Default window: 90 days.","tags":["transactions"],"parameters":[{"name":"window_days","in":"query","required":false,"schema":{"default":90,"type":"integer","minimum":7,"maximum":365}},{"name":"side","in":"query","required":false,"schema":{"type":"string","enum":["credit","debit"]}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"find_duplicate_transactions_post","summary":"Spot likely double-charges (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["transactions"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"window_days":{"default":90,"type":"integer","minimum":7,"maximum":365},"side":{"type":"string","enum":["credit","debit"]}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/find_goals_at_risk":{"get":{"operationId":"find_goals_at_risk","summary":"Active goals projected to miss their deadline","description":"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.","tags":["goals"],"parameters":[],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"find_goals_at_risk_post","summary":"Active goals projected to miss their deadline (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["goals"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/find_internal_transfers":{"get":{"operationId":"find_internal_transfers","summary":"Detect transfers between the user's own accounts","description":"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?\".","tags":["transfers"],"parameters":[{"name":"from","in":"query","required":false,"description":"ISO date lower bound on occurred_at","schema":{"description":"ISO date lower bound on occurred_at","type":"string"}},{"name":"to","in":"query","required":false,"description":"ISO date upper bound on occurred_at","schema":{"description":"ISO date upper bound on occurred_at","type":"string"}},{"name":"window_hours","in":"query","required":false,"description":"Max 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.","schema":{"description":"Max 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.","default":6,"type":"integer","minimum":1,"maximum":168}},{"name":"include_self_named","in":"query","required":false,"description":"Also flag unpaired transfers labelled with the owner's own full name","schema":{"description":"Also flag unpaired transfers labelled with the owner's own full name","default":true,"type":"boolean"}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"find_internal_transfers_post","summary":"Detect transfers between the user's own accounts (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["transfers"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"from":{"description":"ISO date lower bound on occurred_at","type":"string"},"to":{"description":"ISO date upper bound on occurred_at","type":"string"},"window_hours":{"description":"Max 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.","default":6,"type":"integer","minimum":1,"maximum":168},"include_self_named":{"description":"Also flag unpaired transfers labelled with the owner's own full name","default":true,"type":"boolean"}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/find_missed_recurrences":{"get":{"operationId":"find_missed_recurrences","summary":"Subscriptions whose expected payment did not land","description":"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.","tags":["transactions"],"parameters":[{"name":"grace_days","in":"query","required":false,"schema":{"default":7,"type":"integer","minimum":1,"maximum":30}},{"name":"amount_tolerance_pct","in":"query","required":false,"schema":{"default":10,"type":"number","minimum":0,"maximum":50}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"find_missed_recurrences_post","summary":"Subscriptions whose expected payment did not land (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["transactions"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"grace_days":{"default":7,"type":"integer","minimum":1,"maximum":30},"amount_tolerance_pct":{"default":10,"type":"number","minimum":0,"maximum":50}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/find_outlier_transactions":{"get":{"operationId":"find_outlier_transactions","summary":"Spot transactions abnormally large for their counterpart","description":"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).","tags":["transactions"],"parameters":[{"name":"window_days","in":"query","required":false,"schema":{"default":180,"type":"integer","minimum":30,"maximum":720}},{"name":"threshold_stddev","in":"query","required":false,"schema":{"default":2,"type":"number","minimum":1,"maximum":5}},{"name":"min_history","in":"query","required":false,"schema":{"default":5,"type":"integer","minimum":3,"maximum":50}},{"name":"side","in":"query","required":false,"schema":{"type":"string","enum":["credit","debit"]}},{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":50}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"find_outlier_transactions_post","summary":"Spot transactions abnormally large for their counterpart (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["transactions"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"window_days":{"default":180,"type":"integer","minimum":30,"maximum":720},"threshold_stddev":{"default":2,"type":"number","minimum":1,"maximum":5},"min_history":{"default":5,"type":"integer","minimum":3,"maximum":50},"side":{"type":"string","enum":["credit","debit"]},"limit":{"default":20,"type":"integer","minimum":1,"maximum":50}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/find_recurring_counterparts":{"get":{"operationId":"find_recurring_counterparts","summary":"Detect recurring counterparts","description":"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.","tags":["transactions"],"parameters":[{"name":"min_occurrences","in":"query","required":false,"schema":{"default":3,"type":"integer","minimum":2,"maximum":50}},{"name":"side","in":"query","required":false,"schema":{"default":"credit","type":"string","enum":["credit","debit"]}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"find_recurring_counterparts_post","summary":"Detect recurring counterparts (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["transactions"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"min_occurrences":{"default":3,"type":"integer","minimum":2,"maximum":50},"side":{"default":"credit","type":"string","enum":["credit","debit"]}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/find_rules_never_fired":{"get":{"operationId":"find_rules_never_fired","summary":"Rules with zero historical executions","description":"Lists enabled rules with `trigger_count = 0` — they either match nothing, have wrong conditions, or were created for a use-case that never materialized.","tags":["rules"],"parameters":[{"name":"include_disabled","in":"query","required":false,"schema":{"default":false,"type":"boolean"}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"find_rules_never_fired_post","summary":"Rules with zero historical executions (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["rules"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"include_disabled":{"default":false,"type":"boolean"}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/find_similar_transactions":{"get":{"operationId":"find_similar_transactions","summary":"Find transactions similar to a reference one","description":"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.","tags":["transactions"],"parameters":[{"name":"transaction_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"amount_tolerance_pct","in":"query","required":false,"schema":{"default":10,"type":"number","minimum":0,"maximum":50}},{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":100}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"find_similar_transactions_post","summary":"Find transactions similar to a reference one (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["transactions"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"transaction_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"amount_tolerance_pct":{"default":10,"type":"number","minimum":0,"maximum":50},"limit":{"default":20,"type":"integer","minimum":1,"maximum":100}},"required":["transaction_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/find_transactions_by_beneficiary":{"get":{"operationId":"find_transactions_by_beneficiary","summary":"List transactions related to a beneficiary","description":"Finds transactions whose counterpart matches the beneficiary's name or alias (case-insensitive substring). Also lists any transfers explicitly targeting this beneficiary.","tags":["beneficiaries"],"parameters":[{"name":"beneficiary_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":200}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"find_transactions_by_beneficiary_post","summary":"List transactions related to a beneficiary (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["beneficiaries"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"beneficiary_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"limit":{"default":50,"type":"integer","minimum":1,"maximum":200}},"required":["beneficiary_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/find_transactions_by_goal":{"get":{"operationId":"find_transactions_by_goal","summary":"List all transactions contributing to a goal","description":"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).","tags":["goals"],"parameters":[{"name":"goal_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"source","in":"query","required":false,"schema":{"type":"string","enum":["transaction","rule","manual"]}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":200}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"find_transactions_by_goal_post","summary":"List all transactions contributing to a goal (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["goals"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"goal_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source":{"type":"string","enum":["transaction","rule","manual"]},"limit":{"default":50,"type":"integer","minimum":1,"maximum":200}},"required":["goal_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/find_transactions_by_pattern":{"get":{"operationId":"find_transactions_by_pattern","summary":"Find transactions by regex / wildcard pattern","description":"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.","tags":["transactions"],"parameters":[{"name":"pattern","in":"query","required":true,"description":"Pattern with % wildcards, e.g. \"Stripe%paiement\"","schema":{"description":"Pattern with % wildcards, e.g. \"Stripe%paiement\"","type":"string","minLength":1,"maxLength":200}},{"name":"fields","in":"query","required":false,"schema":{"default":["label","counterpart","reference"],"type":"array","items":{"type":"string","enum":["label","counterpart","reference"]}},"style":"form","explode":true},{"name":"from","in":"query","required":false,"schema":{"type":"string"}},{"name":"to","in":"query","required":false,"schema":{"type":"string"}},{"name":"side","in":"query","required":false,"schema":{"type":"string","enum":["credit","debit"]}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":200}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"find_transactions_by_pattern_post","summary":"Find transactions by regex / wildcard pattern (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["transactions"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"pattern":{"description":"Pattern with % wildcards, e.g. \"Stripe%paiement\"","type":"string","minLength":1,"maxLength":200},"fields":{"default":["label","counterpart","reference"],"type":"array","items":{"type":"string","enum":["label","counterpart","reference"]}},"from":{"type":"string"},"to":{"type":"string"},"side":{"type":"string","enum":["credit","debit"]},"limit":{"default":50,"type":"integer","minimum":1,"maximum":200}},"required":["pattern"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/find_transactions_by_rule":{"get":{"operationId":"find_transactions_by_rule","summary":"List all transactions that triggered a rule","description":"Returns every transaction with a rule_execution for the given rule (executed, pending, failed, skipped). Includes the execution status + amount actually applied.","tags":["rules"],"parameters":[{"name":"rule_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["pending","executed","failed","skipped"]}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":200}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"find_transactions_by_rule_post","summary":"List all transactions that triggered a rule (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["rules"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"rule_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["pending","executed","failed","skipped"]},"limit":{"default":50,"type":"integer","minimum":1,"maximum":200}},"required":["rule_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/find_transactions_by_subscription":{"get":{"operationId":"find_transactions_by_subscription","summary":"List all transactions linked to a subscription","description":"Returns every transaction the detector matched to this subscription, newest first.","tags":["subscriptions"],"parameters":[{"name":"subscription_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":200}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"find_transactions_by_subscription_post","summary":"List all transactions linked to a subscription (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["subscriptions"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"subscription_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"limit":{"default":50,"type":"integer","minimum":1,"maximum":200}},"required":["subscription_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/find_transactions_with_attachments":{"get":{"operationId":"find_transactions_with_attachments","summary":"Transactions that have receipts / attachments","description":"Lists transactions where `transaction_attachments` is non-empty. Useful for \"show me all transactions where I uploaded a receipt\".","tags":["transactions"],"parameters":[{"name":"from","in":"query","required":false,"schema":{"type":"string"}},{"name":"to","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"find_transactions_with_attachments_post","summary":"Transactions that have receipts / attachments (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["transactions"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"limit":{"default":50,"type":"integer","minimum":1,"maximum":100}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/find_unmatched_credits":{"get":{"operationId":"find_unmatched_credits","summary":"Find credits not attributed to any goal or rule","description":"Returns credit transactions with NO rule_execution AND NO goal_contribution. Useful to spot money that came in but slipped through your automation.","tags":["transactions"],"parameters":[{"name":"from","in":"query","required":false,"schema":{"type":"string"}},{"name":"to","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"min_amount_cents","in":"query","required":false,"schema":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"find_unmatched_credits_post","summary":"Find credits not attributed to any goal or rule (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["transactions"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"limit":{"default":50,"type":"integer","minimum":1,"maximum":100},"min_amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/find_unused_beneficiaries":{"get":{"operationId":"find_unused_beneficiaries","summary":"Beneficiaries never used in a transfer","description":"Lists beneficiaries with zero transfer history. Candidates for cleanup, or just unused recipients you forgot you added.","tags":["beneficiaries"],"parameters":[],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"find_unused_beneficiaries_post","summary":"Beneficiaries never used in a transfer (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["beneficiaries"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/forecast_cash_flow":{"get":{"operationId":"forecast_cash_flow","summary":"Forecast monthly cash flow","description":"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.","tags":["analytics"],"parameters":[{"name":"months_ahead","in":"query","required":false,"schema":{"default":6,"type":"integer","minimum":1,"maximum":24}},{"name":"account_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"exclude_internal_transfers","in":"query","required":false,"description":"Exclude transfers between the user's own accounts from the baseline","schema":{"description":"Exclude transfers between the user's own accounts from the baseline","default":true,"type":"boolean"}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"forecast_cash_flow_post","summary":"Forecast monthly cash flow (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["analytics"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"months_ahead":{"default":6,"type":"integer","minimum":1,"maximum":24},"account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"exclude_internal_transfers":{"description":"Exclude transfers between the user's own accounts from the baseline","default":true,"type":"boolean"}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/forecast_cash_flow_by_due_date":{"get":{"operationId":"forecast_cash_flow_by_due_date","summary":"Cash-flow projection by due dates (30/60/90 days)","description":"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.","tags":["analytics"],"parameters":[{"name":"horizon_days","in":"query","required":false,"description":"Projection window in days (30, 60, 90…)","schema":{"description":"Projection window in days (30, 60, 90…)","default":90,"type":"integer","minimum":1,"maximum":180}},{"name":"currency","in":"query","required":false,"description":"Single currency; other currencies are counted as excluded, never converted","schema":{"description":"Single currency; other currencies are counted as excluded, never converted","type":"string","pattern":"^[A-Za-z]{3}$"}},{"name":"client_delay_days","in":"query","required":false,"description":"Scenario: shift every expected client payment by N days (e.g. 14)","schema":{"description":"Scenario: shift every expected client payment by N days (e.g. 14)","default":0,"type":"integer","minimum":0,"maximum":120}},{"name":"include_external_accounts","in":"query","required":false,"description":"Also count connected external accounts in the opening balance","schema":{"description":"Also count connected external accounts in the opening balance","default":false,"type":"boolean"}},{"name":"include_subscriptions","in":"query","required":false,"schema":{"default":true,"type":"boolean"}},{"name":"include_supplier_invoices","in":"query","required":false,"schema":{"default":true,"type":"boolean"}},{"name":"include_urssaf","in":"query","required":false,"description":"URSSAF échéances are EUR only and ignored for any other currency","schema":{"description":"URSSAF échéances are EUR only and ignored for any other currency","default":true,"type":"boolean"}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"forecast_cash_flow_by_due_date_post","summary":"Cash-flow projection by due dates (30/60/90 days) (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["analytics"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"horizon_days":{"description":"Projection window in days (30, 60, 90…)","default":90,"type":"integer","minimum":1,"maximum":180},"currency":{"description":"Single currency; other currencies are counted as excluded, never converted","type":"string","pattern":"^[A-Za-z]{3}$"},"client_delay_days":{"description":"Scenario: shift every expected client payment by N days (e.g. 14)","default":0,"type":"integer","minimum":0,"maximum":120},"include_external_accounts":{"description":"Also count connected external accounts in the opening balance","default":false,"type":"boolean"},"include_subscriptions":{"default":true,"type":"boolean"},"include_supplier_invoices":{"default":true,"type":"boolean"},"include_urssaf":{"description":"URSSAF échéances are EUR only and ignored for any other currency","default":true,"type":"boolean"}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/francetravail_actualisations":{"get":{"operationId":"francetravail_actualisations","summary":"France Travail actualisation history","description":"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.","tags":["francetravail"],"parameters":[],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"francetravail_actualisations_post","summary":"France Travail actualisation history (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["francetravail"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/francetravail_attestations":{"get":{"operationId":"francetravail_attestations","summary":"France Travail attestations generated by couicoui","description":"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).","tags":["francetravail"],"parameters":[{"name":"type","in":"query","required":false,"schema":{"type":"string","maxLength":40}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"francetravail_attestations_post","summary":"France Travail attestations generated by couicoui (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["francetravail"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","maxLength":40}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/francetravail_conversations":{"get":{"operationId":"francetravail_conversations","summary":"France Travail messagerie (conversations with the conseiller)","description":"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).","tags":["francetravail"],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":100}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"francetravail_conversations_post","summary":"France Travail messagerie (conversations with the conseiller) (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["francetravail"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"q":{"type":"string","maxLength":100}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/francetravail_courriers":{"get":{"operationId":"francetravail_courriers","summary":"France Travail courriers (letters) with download links","description":"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.","tags":["francetravail"],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":80}},{"name":"year","in":"query","required":false,"schema":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":200}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"francetravail_courriers_post","summary":"France Travail courriers (letters) with download links (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["francetravail"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"q":{"type":"string","maxLength":80},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"default":50,"type":"integer","minimum":1,"maximum":200}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/francetravail_get_conversation":{"get":{"operationId":"francetravail_get_conversation","summary":"One France Travail conversation in full","description":"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).","tags":["francetravail"],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string","maxLength":40}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"francetravail_get_conversation_post","summary":"One France Travail conversation in full (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["francetravail"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","maxLength":40}},"required":["id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/francetravail_notifications":{"get":{"operationId":"francetravail_notifications","summary":"France Travail notifications and upcoming rendez-vous","description":"Notifications shown in the espace (message, service, dates, seen flag) and the next rendez-vous summary.","tags":["francetravail"],"parameters":[{"name":"unseen_only","in":"query","required":false,"schema":{"default":false,"type":"boolean"}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"francetravail_notifications_post","summary":"France Travail notifications and upcoming rendez-vous (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["francetravail"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"unseen_only":{"default":false,"type":"boolean"}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/francetravail_overview":{"get":{"operationId":"francetravail_overview","summary":"France Travail overview (rights, last payment, PAS rate, courriers)","description":"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\"]).","tags":["francetravail"],"parameters":[],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"francetravail_overview_post","summary":"France Travail overview (rights, last payment, PAS rate, courriers) (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["francetravail"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/francetravail_pas":{"get":{"operationId":"francetravail_pas","summary":"Prélèvement à la source applied by France Travail","description":"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).","tags":["francetravail"],"parameters":[],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"francetravail_pas_post","summary":"Prélèvement à la source applied by France Travail (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["francetravail"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/francetravail_payments":{"get":{"operationId":"francetravail_payments","summary":"France Travail allocation payments","description":"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.","tags":["francetravail"],"parameters":[{"name":"year","in":"query","required":false,"schema":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"francetravail_payments_post","summary":"France Travail allocation payments (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["francetravail"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/francetravail_raw_source":{"get":{"operationId":"francetravail_raw_source","summary":"Latest raw payload of one France Travail source","description":"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.","tags":["francetravail"],"parameters":[{"name":"source","in":"query","required":true,"schema":{"type":"string","maxLength":60}},{"name":"max_chars","in":"query","required":false,"schema":{"default":12000,"type":"integer","minimum":500,"maximum":60000}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"francetravail_raw_source_post","summary":"Latest raw payload of one France Travail source (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["francetravail"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"source":{"type":"string","maxLength":60},"max_chars":{"default":12000,"type":"integer","minimum":500,"maximum":60000}},"required":["source"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/generate_period_summary":{"get":{"operationId":"generate_period_summary","summary":"Generate a narrative markdown summary for a period","description":"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.","tags":["analytics"],"parameters":[{"name":"from","in":"query","required":true,"schema":{"type":"string"}},{"name":"to","in":"query","required":true,"schema":{"type":"string"}},{"name":"currency","in":"query","required":false,"schema":{"default":"EUR","type":"string","minLength":3,"maxLength":3}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"generate_period_summary_post","summary":"Generate a narrative markdown summary for a period (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["analytics"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"currency":{"default":"EUR","type":"string","minLength":3,"maxLength":3}},"required":["from","to"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/generate_quarterly_summary":{"get":{"operationId":"generate_quarterly_summary","summary":"Narrative report for a calendar quarter","description":"Convenience wrapper around generate_period_summary scoped to a Q1..Q4 of a given year.","tags":["analytics"],"parameters":[{"name":"year","in":"query","required":true,"schema":{"type":"integer","minimum":2020,"maximum":2100}},{"name":"quarter","in":"query","required":true,"schema":{"type":"integer","minimum":1,"maximum":4}},{"name":"currency","in":"query","required":false,"schema":{"default":"EUR","type":"string","minLength":3,"maxLength":3}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"generate_quarterly_summary_post","summary":"Narrative report for a calendar quarter (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["analytics"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"year":{"type":"integer","minimum":2020,"maximum":2100},"quarter":{"type":"integer","minimum":1,"maximum":4},"currency":{"default":"EUR","type":"string","minLength":3,"maxLength":3}},"required":["year","quarter"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/generate_urssaf_summary":{"get":{"operationId":"generate_urssaf_summary","summary":"CA + provisioning summary for an URSSAF declaration window","description":"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.","tags":["analytics"],"parameters":[{"name":"from","in":"query","required":true,"schema":{"type":"string"}},{"name":"to","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"generate_urssaf_summary_post","summary":"CA + provisioning summary for an URSSAF declaration window (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["analytics"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"}},"required":["from","to"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/get_account":{"get":{"operationId":"get_account","summary":"Get a single bank account","description":"Fetch one account by id. IBAN is intentionally omitted.","tags":["accounts"],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"get_account_post","summary":"Get a single bank account (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["accounts"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/get_beneficiary":{"get":{"operationId":"get_beneficiary","summary":"Get a single beneficiary","description":"Fetch one beneficiary by id. Redacted the same way as list_beneficiaries.","tags":["beneficiaries"],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"get_beneficiary_post","summary":"Get a single beneficiary (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["beneficiaries"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/get_document_link":{"get":{"operationId":"get_document_link","summary":"Fresh download link for one document","description":"Returns a couicoui.com link, valid 7 days, short enough to be copied safely, that serves the original file (URSSAF PDFs, Qonto receipts, invoice / credit-note / supplier-invoice PDFs). Use the source and id returned by list_documents. Always give the user this link, never a raw storage URL.","tags":["documents"],"parameters":[{"name":"source","in":"query","required":true,"schema":{"type":"string","enum":["urssaf_attestation","urssaf_message","impots_document","francetravail_courrier","transaction","client_invoice","credit_note","supplier_invoice","housing_document"]}},{"name":"id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"get_document_link_post","summary":"Fresh download link for one document (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["documents"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"source":{"type":"string","enum":["urssaf_attestation","urssaf_message","impots_document","francetravail_courrier","transaction","client_invoice","credit_note","supplier_invoice","housing_document"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["source","id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/get_goal":{"get":{"operationId":"get_goal","summary":"Get a single goal","description":"Fetch one goal by id with progress.","tags":["goals"],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"get_goal_post","summary":"Get a single goal (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["goals"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/get_goal_cadence":{"get":{"operationId":"get_goal_cadence","summary":"Cadence calculator for a goal","description":"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.","tags":["goals"],"parameters":[{"name":"goal_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"get_goal_cadence_post","summary":"Cadence calculator for a goal (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["goals"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"goal_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["goal_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/get_rule":{"get":{"operationId":"get_rule","summary":"Get a single rule","description":"Fetch one automation rule by id.","tags":["rules"],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"get_rule_post","summary":"Get a single rule (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["rules"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/get_subscription":{"get":{"operationId":"get_subscription","summary":"Get a single subscription","description":"Fetch one subscription with its payment history (last 12 matched transactions).","tags":["subscriptions"],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"get_subscription_post","summary":"Get a single subscription (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["subscriptions"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/get_transaction":{"get":{"operationId":"get_transaction","summary":"Get a single transaction","description":"Fetch one transaction by id. Counterpart is redacted to a surname.","tags":["transactions"],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"get_transaction_post","summary":"Get a single transaction (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["transactions"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/get_transfer":{"get":{"operationId":"get_transfer","summary":"Get a single transfer","description":"Fetch one transfer by id. Beneficiary IBAN stripped, name reduced to surname.","tags":["transfers"],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"get_transfer_post","summary":"Get a single transfer (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["transfers"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/housing_charges":{"get":{"operationId":"housing_charges","summary":"Housing charges and provider debits","description":"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?\".","tags":["housing"],"parameters":[{"name":"housing_id","in":"query","required":false,"description":"Housing id; defaults to the only (or first) housing of the user","schema":{"description":"Housing id; defaults to the only (or first) housing of the user","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"charge","in":"query","required":false,"description":"Filter by label or provider (substring)","schema":{"description":"Filter by label or provider (substring)","type":"string","maxLength":80}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"housing_charges_post","summary":"Housing charges and provider debits (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["housing"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"housing_id":{"description":"Housing id; defaults to the only (or first) housing of the user","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"charge":{"description":"Filter by label or provider (substring)","type":"string","maxLength":80}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/housing_documents":{"get":{"operationId":"housing_documents","summary":"Housing documents","description":"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).","tags":["housing"],"parameters":[{"name":"housing_id","in":"query","required":false,"description":"Housing id; defaults to the only (or first) housing of the user","schema":{"description":"Housing id; defaults to the only (or first) housing of the user","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":120}},{"name":"month","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}$"}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":200}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"housing_documents_post","summary":"Housing documents (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["housing"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"housing_id":{"description":"Housing id; defaults to the only (or first) housing of the user","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"q":{"type":"string","maxLength":120},"month":{"type":"string","pattern":"^\\d{4}-\\d{2}$"},"limit":{"default":50,"type":"integer","minimum":1,"maximum":200}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/housing_incidents":{"get":{"operationId":"housing_incidents","summary":"Housing incidents and works","description":"Incidents reported in the shared housing (leaks, breakdowns, works) with status, priority, cost and who pays it, and the conversation between members.","tags":["housing"],"parameters":[{"name":"housing_id","in":"query","required":false,"description":"Housing id; defaults to the only (or first) housing of the user","schema":{"description":"Housing id; defaults to the only (or first) housing of the user","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"open_only","in":"query","required":false,"schema":{"default":false,"type":"boolean"}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"housing_incidents_post","summary":"Housing incidents and works (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["housing"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"housing_id":{"description":"Housing id; defaults to the only (or first) housing of the user","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"open_only":{"default":false,"type":"boolean"}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/housing_inventory":{"get":{"operationId":"housing_inventory","summary":"Housing inventory (état des lieux)","description":"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).","tags":["housing"],"parameters":[{"name":"housing_id","in":"query","required":false,"description":"Housing id; defaults to the only (or first) housing of the user","schema":{"description":"Housing id; defaults to the only (or first) housing of the user","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"housing_inventory_post","summary":"Housing inventory (état des lieux) (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["housing"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"housing_id":{"description":"Housing id; defaults to the only (or first) housing of the user","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/housing_months":{"get":{"operationId":"housing_months","summary":"Housing monthly calls","description":"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.","tags":["housing"],"parameters":[{"name":"housing_id","in":"query","required":false,"description":"Housing id; defaults to the only (or first) housing of the user","schema":{"description":"Housing id; defaults to the only (or first) housing of the user","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"limit","in":"query","required":false,"schema":{"default":12,"type":"integer","minimum":1,"maximum":60}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"housing_months_post","summary":"Housing monthly calls (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["housing"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"housing_id":{"description":"Housing id; defaults to the only (or first) housing of the user","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"limit":{"default":12,"type":"integer","minimum":1,"maximum":60}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/housing_overview":{"get":{"operationId":"housing_overview","summary":"Shared housing overview","description":"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.","tags":["housing"],"parameters":[{"name":"housing_id","in":"query","required":false,"description":"Housing id; defaults to the only (or first) housing of the user","schema":{"description":"Housing id; defaults to the only (or first) housing of the user","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"housing_overview_post","summary":"Shared housing overview (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["housing"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"housing_id":{"description":"Housing id; defaults to the only (or first) housing of the user","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/housing_providers":{"get":{"operationId":"housing_providers","summary":"Housing providers (in’li rent, EDF electricity & gas, Sowee thermostat, Orange box)","description":"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.","tags":["housing"],"parameters":[{"name":"housing_id","in":"query","required":false,"description":"Housing id; defaults to the only (or first) housing of the user","schema":{"description":"Housing id; defaults to the only (or first) housing of the user","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"housing_providers_post","summary":"Housing providers (in’li rent, EDF electricity & gas, Sowee thermostat, Orange box) (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["housing"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"housing_id":{"description":"Housing id; defaults to the only (or first) housing of the user","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/housing_transfers":{"get":{"operationId":"housing_transfers","summary":"Transfers between housing members","description":"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).","tags":["housing"],"parameters":[{"name":"housing_id","in":"query","required":false,"description":"Housing id; defaults to the only (or first) housing of the user","schema":{"description":"Housing id; defaults to the only (or first) housing of the user","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"include_ignored","in":"query","required":false,"schema":{"default":false,"type":"boolean"}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"housing_transfers_post","summary":"Transfers between housing members (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["housing"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"housing_id":{"description":"Housing id; defaults to the only (or first) housing of the user","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"include_ignored":{"default":false,"type":"boolean"}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/impots_get_message":{"get":{"operationId":"impots_get_message","summary":"Full thread of one impots.gouv demande","description":"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.","tags":["impots"],"parameters":[{"name":"space","in":"query","required":true,"schema":{"type":"string","enum":["particulier","professionnel"]}},{"name":"numero","in":"query","required":true,"schema":{"type":"string","maxLength":20}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"impots_get_message_post","summary":"Full thread of one impots.gouv demande (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["impots"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"space":{"type":"string","enum":["particulier","professionnel"]},"numero":{"type":"string","maxLength":20}},"required":["space","numero"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/impots_list_messages":{"get":{"operationId":"impots_list_messages","summary":"impots.gouv secure messaging (demandes)","description":"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.","tags":["impots"],"parameters":[],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"impots_list_messages_post","summary":"impots.gouv secure messaging (demandes) (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["impots"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/impots_overview":{"get":{"operationId":"impots_overview","summary":"impots.gouv overview (PAS rate, acomptes, income tax balance, CFE, messages)","description":"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\"]).","tags":["impots"],"parameters":[],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"impots_overview_post","summary":"impots.gouv overview (PAS rate, acomptes, income tax balance, CFE, messages) (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["impots"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/impots_pas_history":{"get":{"operationId":"impots_pas_history","summary":"Prélèvement à la source history","description":"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.","tags":["impots"],"parameters":[{"name":"year","in":"query","required":false,"schema":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["acompte","retenue","taux","autre"]}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"impots_pas_history_post","summary":"Prélèvement à la source history (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["impots"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"type":{"type":"string","enum":["acompte","retenue","taux","autre"]}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/impots_raw_source":{"get":{"operationId":"impots_raw_source","summary":"Latest raw payload of one impots.gouv source","description":"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.","tags":["impots"],"parameters":[{"name":"source","in":"query","required":true,"schema":{"type":"string","maxLength":60}},{"name":"max_chars","in":"query","required":false,"schema":{"default":12000,"type":"integer","minimum":500,"maximum":60000}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"impots_raw_source_post","summary":"Latest raw payload of one impots.gouv source (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["impots"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"source":{"type":"string","maxLength":60},"max_chars":{"default":12000,"type":"integer","minimum":500,"maximum":60000}},"required":["source"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/list_accounts":{"get":{"operationId":"list_accounts","summary":"List bank accounts","description":"Returns the user's connected bank accounts with current balances. IBANs are intentionally not included.","tags":["accounts"],"parameters":[],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"list_accounts_post","summary":"List bank accounts (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["accounts"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/list_audit_log":{"get":{"operationId":"list_audit_log","summary":"List recent audit events","description":"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.","tags":["analytics"],"parameters":[{"name":"action","in":"query","required":false,"description":"Filter by exact action name, e.g. \"apply_profile_template\"","schema":{"description":"Filter by exact action name, e.g. \"apply_profile_template\"","type":"string"}},{"name":"resource_type","in":"query","required":false,"schema":{"type":"string"}},{"name":"from","in":"query","required":false,"schema":{"type":"string"}},{"name":"to","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"list_audit_log_post","summary":"List recent audit events (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["analytics"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"description":"Filter by exact action name, e.g. \"apply_profile_template\"","type":"string"},"resource_type":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"limit":{"default":50,"type":"integer","minimum":1,"maximum":100},"offset":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/list_beneficiaries":{"get":{"operationId":"list_beneficiaries","summary":"List beneficiaries (recipients)","description":"Lists payment recipients. Sensitive fields are redacted: full names become surnames only, IBANs become opaque fingerprints + country code, BIC is omitted.","tags":["beneficiaries"],"parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":200}},{"name":"label","in":"query","required":false,"schema":{"type":"string","maxLength":50}},{"name":"trusted","in":"query","required":false,"schema":{"type":"boolean"}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"list_beneficiaries_post","summary":"List beneficiaries (recipients) (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["beneficiaries"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"search":{"type":"string","maxLength":200},"label":{"type":"string","maxLength":50},"trusted":{"type":"boolean"},"limit":{"default":50,"type":"integer","minimum":1,"maximum":100},"offset":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/list_cascade_groups":{"get":{"operationId":"list_cascade_groups","summary":"List rule cascade groups by trigger signature","description":"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.","tags":["rules"],"parameters":[],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"list_cascade_groups_post","summary":"List rule cascade groups by trigger signature (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["rules"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/list_clients":{"get":{"operationId":"list_clients","summary":"List clients by aggregated credit counterpart","description":"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?\".","tags":["clients"],"parameters":[{"name":"year","in":"query","required":false,"schema":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},{"name":"late_threshold_days","in":"query","required":false,"schema":{"default":45,"type":"integer","minimum":1,"maximum":365}},{"name":"filter","in":"query","required":false,"schema":{"default":"all","type":"string","enum":["all","new","late"]}},{"name":"min_transactions","in":"query","required":false,"schema":{"default":1,"type":"integer","minimum":1,"maximum":100}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":200}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"list_clients_post","summary":"List clients by aggregated credit counterpart (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["clients"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"late_threshold_days":{"default":45,"type":"integer","minimum":1,"maximum":365},"filter":{"default":"all","type":"string","enum":["all","new","late"]},"min_transactions":{"default":1,"type":"integer","minimum":1,"maximum":100},"limit":{"default":50,"type":"integer","minimum":1,"maximum":200}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/list_documents":{"get":{"operationId":"list_documents","summary":"List documents across all sources","description":"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).","tags":["documents"],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":120}},{"name":"sources","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","enum":["urssaf_attestation","urssaf_message","impots_document","francetravail_courrier","transaction","client_invoice","credit_note","supplier_invoice","housing_document"]}},"style":"form","explode":true},{"name":"year","in":"query","required":false,"schema":{"type":"integer","minimum":2000,"maximum":2100}},{"name":"party","in":"query","required":false,"description":"Client, supplier or counterpart name (substring)","schema":{"description":"Client, supplier or counterpart name (substring)","type":"string","maxLength":120}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":200}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"list_documents_post","summary":"List documents across all sources (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["documents"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"q":{"type":"string","maxLength":120},"sources":{"type":"array","items":{"type":"string","enum":["urssaf_attestation","urssaf_message","impots_document","francetravail_courrier","transaction","client_invoice","credit_note","supplier_invoice","housing_document"]}},"year":{"type":"integer","minimum":2000,"maximum":2100},"party":{"description":"Client, supplier or counterpart name (substring)","type":"string","maxLength":120},"limit":{"default":50,"type":"integer","minimum":1,"maximum":200}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/list_goals":{"get":{"operationId":"list_goals","summary":"List financial goals","description":"Lists the user's savings/financial goals with progress.","tags":["goals"],"parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["active","completed","paused","cancelled"]}},{"name":"category","in":"query","required":false,"schema":{"type":"string","enum":["emergency","equipment","travel","tax_reserve","custom"]}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"list_goals_post","summary":"List financial goals (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["goals"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["active","completed","paused","cancelled"]},"category":{"type":"string","enum":["emergency","equipment","travel","tax_reserve","custom"]},"limit":{"default":50,"type":"integer","minimum":1,"maximum":100},"offset":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/list_labels":{"get":{"operationId":"list_labels","summary":"List Qonto transaction labels (categories)","description":"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.","tags":["clients"],"parameters":[],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"list_labels_post","summary":"List Qonto transaction labels (categories) (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["clients"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/list_profile_templates":{"get":{"operationId":"list_profile_templates","summary":"List available profile templates","description":"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.","tags":["analytics"],"parameters":[],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"list_profile_templates_post","summary":"List available profile templates (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["analytics"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/list_receivables":{"get":{"operationId":"list_receivables","summary":"Open client invoices (à encaisser)","description":"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 ?\".","tags":["clients"],"parameters":[{"name":"currency","in":"query","required":false,"description":"Only invoices in this currency","schema":{"description":"Only invoices in this currency","type":"string","pattern":"^[A-Za-z]{3}$"}},{"name":"state","in":"query","required":false,"schema":{"type":"string","enum":["overdue","due_today","upcoming","no_due_date"]}},{"name":"client","in":"query","required":false,"description":"Case-insensitive substring of the client name or invoice number","schema":{"description":"Case-insensitive substring of the client name or invoice number","type":"string","minLength":1,"maxLength":120}},{"name":"include_settled","in":"query","required":false,"description":"Also list open invoices whose remaining is 0","schema":{"description":"Also list open invoices whose remaining is 0","default":false,"type":"boolean"}},{"name":"limit","in":"query","required":false,"schema":{"default":200,"type":"integer","minimum":1,"maximum":500}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"list_receivables_post","summary":"Open client invoices (à encaisser) (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["clients"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"currency":{"description":"Only invoices in this currency","type":"string","pattern":"^[A-Za-z]{3}$"},"state":{"type":"string","enum":["overdue","due_today","upcoming","no_due_date"]},"client":{"description":"Case-insensitive substring of the client name or invoice number","type":"string","minLength":1,"maxLength":120},"include_settled":{"description":"Also list open invoices whose remaining is 0","default":false,"type":"boolean"},"limit":{"default":200,"type":"integer","minimum":1,"maximum":500},"offset":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/list_rule_executions":{"get":{"operationId":"list_rule_executions","summary":"List rule execution logs","description":"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.","tags":["rules"],"parameters":[{"name":"rule_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["pending","executed","failed","skipped"]}},{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"list_rule_executions_post","summary":"List rule execution logs (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["rules"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"rule_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["pending","executed","failed","skipped"]},"from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"to":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"limit":{"default":50,"type":"integer","minimum":1,"maximum":100},"offset":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/list_rules":{"get":{"operationId":"list_rules","summary":"List automation rules","description":"Lists the user's transaction-triggered transfer rules.","tags":["rules"],"parameters":[{"name":"enabled","in":"query","required":false,"schema":{"type":"boolean"}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"list_rules_post","summary":"List automation rules (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["rules"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"},"limit":{"default":50,"type":"integer","minimum":1,"maximum":100},"offset":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/list_subscriptions":{"get":{"operationId":"list_subscriptions","summary":"List recurring subscriptions","description":"List the user's recurring payments (SaaS, streaming, utilities, insurance, rent, telecom). Vendor names reduced to surname; beneficiary IBANs stripped.","tags":["subscriptions"],"parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["active","paused","cancelled","pending_confirmation"]}},{"name":"category","in":"query","required":false,"schema":{"type":"string","enum":["saas","streaming","utilities","insurance","rent","telecom","other"]}},{"name":"frequency","in":"query","required":false,"schema":{"type":"string","enum":["weekly","monthly","quarterly","yearly"]}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}},{"name":"sort_by","in":"query","required":false,"schema":{"default":"next_payment_at","type":"string","enum":["next_payment_at","amount_cents","name","created_at"]}},{"name":"sort_order","in":"query","required":false,"schema":{"default":"asc","type":"string","enum":["asc","desc"]}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"list_subscriptions_post","summary":"List recurring subscriptions (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["subscriptions"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["active","paused","cancelled","pending_confirmation"]},"category":{"type":"string","enum":["saas","streaming","utilities","insurance","rent","telecom","other"]},"frequency":{"type":"string","enum":["weekly","monthly","quarterly","yearly"]},"limit":{"default":50,"type":"integer","minimum":1,"maximum":100},"offset":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"sort_by":{"default":"next_payment_at","type":"string","enum":["next_payment_at","amount_cents","name","created_at"]},"sort_order":{"default":"asc","type":"string","enum":["asc","desc"]}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/list_supplier_invoices_local":{"get":{"operationId":"list_supplier_invoices_local","summary":"List synced supplier invoices","description":"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?\".","tags":["clients"],"parameters":[{"name":"status","in":"query","required":false,"description":"Filter by status: to_review, awaiting_payment, paid, etc.","schema":{"description":"Filter by status: to_review, awaiting_payment, paid, etc.","type":"string"}},{"name":"due_before","in":"query","required":false,"description":"ISO date — only invoices due before this date","schema":{"description":"ISO date — only invoices due before this date","type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"list_supplier_invoices_local_post","summary":"List synced supplier invoices (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["clients"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"description":"Filter by status: to_review, awaiting_payment, paid, etc.","type":"string"},"due_before":{"description":"ISO date — only invoices due before this date","type":"string"},"limit":{"default":50,"type":"integer","minimum":1,"maximum":100}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/list_transactions":{"get":{"operationId":"list_transactions","summary":"List bank transactions","description":"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.","tags":["transactions"],"parameters":[{"name":"search","in":"query","required":false,"description":"Free-text search on label, counterpart and transfer reference","schema":{"description":"Free-text search on label, counterpart and transfer reference","type":"string","maxLength":200}},{"name":"account_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"side","in":"query","required":false,"schema":{"type":"string","enum":["debit","credit"]}},{"name":"status","in":"query","required":false,"schema":{"type":"string"}},{"name":"from","in":"query","required":false,"description":"ISO date/time lower bound on occurred_at","schema":{"description":"ISO date/time lower bound on occurred_at","type":"string"}},{"name":"to","in":"query","required":false,"description":"ISO date/time upper bound on occurred_at","schema":{"description":"ISO date/time upper bound on occurred_at","type":"string"}},{"name":"min_amount_cents","in":"query","required":false,"schema":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},{"name":"max_amount_cents","in":"query","required":false,"schema":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}},{"name":"sort_by","in":"query","required":false,"schema":{"default":"occurred_at","type":"string","enum":["occurred_at","amount_cents","created_at"]}},{"name":"sort_order","in":"query","required":false,"schema":{"default":"desc","type":"string","enum":["asc","desc"]}},{"name":"exclude_internal_transfers","in":"query","required":false,"description":"Hide transfers between the user's own accounts. Filters the fetched page, so a page may return fewer than `limit` rows.","schema":{"description":"Hide transfers between the user's own accounts. Filters the fetched page, so a page may return fewer than `limit` rows.","default":false,"type":"boolean"}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"list_transactions_post","summary":"List bank transactions (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["transactions"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"search":{"description":"Free-text search on label, counterpart and transfer reference","type":"string","maxLength":200},"account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"side":{"type":"string","enum":["debit","credit"]},"status":{"type":"string"},"from":{"description":"ISO date/time lower bound on occurred_at","type":"string"},"to":{"description":"ISO date/time upper bound on occurred_at","type":"string"},"min_amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max_amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"default":50,"type":"integer","minimum":1,"maximum":100},"offset":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"sort_by":{"default":"occurred_at","type":"string","enum":["occurred_at","amount_cents","created_at"]},"sort_order":{"default":"desc","type":"string","enum":["asc","desc"]},"exclude_internal_transfers":{"description":"Hide transfers between the user's own accounts. Filters the fetched page, so a page may return fewer than `limit` rows.","default":false,"type":"boolean"}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/list_transfers":{"get":{"operationId":"list_transfers","summary":"List transfers","description":"Lists outgoing transfers for the user. Beneficiary names are reduced to surnames; beneficiary and account IBANs are stripped.","tags":["transfers"],"parameters":[{"name":"account_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"beneficiary_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string"}},{"name":"transfer_type","in":"query","required":false,"schema":{"type":"string"}},{"name":"from","in":"query","required":false,"schema":{"type":"string"}},{"name":"to","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}},{"name":"sort_by","in":"query","required":false,"schema":{"default":"created_at","type":"string","enum":["created_at","scheduled_at","amount_cents"]}},{"name":"sort_order","in":"query","required":false,"schema":{"default":"desc","type":"string","enum":["asc","desc"]}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"list_transfers_post","summary":"List transfers (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["transfers"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"beneficiary_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string"},"transfer_type":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"limit":{"default":50,"type":"integer","minimum":1,"maximum":100},"offset":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"sort_by":{"default":"created_at","type":"string","enum":["created_at","scheduled_at","amount_cents"]},"sort_order":{"default":"desc","type":"string","enum":["asc","desc"]}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/list_upcoming_scheduled_runs":{"get":{"operationId":"list_upcoming_scheduled_runs","summary":"Next scheduled rule fires within a window","description":"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.","tags":["rules"],"parameters":[{"name":"days_ahead","in":"query","required":false,"schema":{"default":90,"type":"integer","minimum":1,"maximum":365}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"list_upcoming_scheduled_runs_post","summary":"Next scheduled rule fires within a window (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["rules"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"days_ahead":{"default":90,"type":"integer","minimum":1,"maximum":365}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/metal_price_over_time":{"get":{"operationId":"metal_price_over_time","summary":"Gold & silver price history with nisab thresholds","description":"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?\".","tags":["zakat"],"parameters":[{"name":"from","in":"query","required":false,"description":"ISO timestamp, defaults to 90 days ago","schema":{"description":"ISO timestamp, defaults to 90 days ago","type":"string"}},{"name":"to","in":"query","required":false,"description":"ISO timestamp, defaults to now","schema":{"description":"ISO timestamp, defaults to now","type":"string"}},{"name":"currency","in":"query","required":false,"schema":{"default":"EUR","type":"string","minLength":3,"maxLength":3}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"metal_price_over_time_post","summary":"Gold & silver price history with nisab thresholds (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["zakat"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"from":{"description":"ISO timestamp, defaults to 90 days ago","type":"string"},"to":{"description":"ISO timestamp, defaults to now","type":"string"},"currency":{"default":"EUR","type":"string","minLength":3,"maxLength":3}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/monthly_breakdown":{"get":{"operationId":"monthly_breakdown","summary":"Per-month income/expense/net breakdown","description":"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\".","tags":["analytics"],"parameters":[{"name":"from","in":"query","required":true,"schema":{"type":"string"}},{"name":"to","in":"query","required":true,"schema":{"type":"string"}},{"name":"account_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"exclude_internal_transfers","in":"query","required":false,"description":"Exclude transfers between the user's own accounts (neither income nor expense)","schema":{"description":"Exclude transfers between the user's own accounts (neither income nor expense)","default":true,"type":"boolean"}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"monthly_breakdown_post","summary":"Per-month income/expense/net breakdown (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["analytics"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"exclude_internal_transfers":{"description":"Exclude transfers between the user's own accounts (neither income nor expense)","default":true,"type":"boolean"}},"required":["from","to"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/nisab_at_date":{"get":{"operationId":"nisab_at_date","summary":"Nisab thresholds at a given date","description":"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.","tags":["zakat"],"parameters":[{"name":"at","in":"query","required":true,"description":"ISO timestamp — the date you want the nisab for","schema":{"description":"ISO timestamp — the date you want the nisab for","type":"string"}},{"name":"currency","in":"query","required":false,"schema":{"default":"EUR","type":"string","minLength":3,"maxLength":3}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"nisab_at_date_post","summary":"Nisab thresholds at a given date (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["zakat"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"at":{"description":"ISO timestamp — the date you want the nisab for","type":"string"},"currency":{"default":"EUR","type":"string","minLength":3,"maxLength":3}},"required":["at"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/provisioning_status":{"get":{"operationId":"provisioning_status","summary":"Provisioning status of tax_reserve goals","description":"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?\".","tags":["analytics"],"parameters":[],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"provisioning_status_post","summary":"Provisioning status of tax_reserve goals (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["analytics"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/search_all":{"get":{"operationId":"search_all","summary":"Free-text search across transactions, beneficiaries, subscriptions, rules, goals","description":"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.","tags":["transactions"],"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}},{"name":"per_entity_limit","in":"query","required":false,"schema":{"default":5,"type":"integer","minimum":1,"maximum":20}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"search_all_post","summary":"Free-text search across transactions, beneficiaries, subscriptions, rules, goals (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["transactions"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","minLength":1,"maxLength":200},"per_entity_limit":{"default":5,"type":"integer","minimum":1,"maximum":20}},"required":["query"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/search_transactions_around_amount":{"get":{"operationId":"search_transactions_around_amount","summary":"Find transactions around a target amount","description":"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.","tags":["transactions"],"parameters":[{"name":"target_amount_cents","in":"query","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"name":"tolerance_pct","in":"query","required":false,"schema":{"default":5,"type":"number","minimum":0,"maximum":50}},{"name":"side","in":"query","required":false,"schema":{"type":"string","enum":["credit","debit"]}},{"name":"from","in":"query","required":false,"schema":{"type":"string"}},{"name":"to","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":30,"type":"integer","minimum":1,"maximum":100}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"search_transactions_around_amount_post","summary":"Find transactions around a target amount (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["transactions"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"target_amount_cents":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"tolerance_pct":{"default":5,"type":"number","minimum":0,"maximum":50},"side":{"type":"string","enum":["credit","debit"]},"from":{"type":"string"},"to":{"type":"string"},"limit":{"default":30,"type":"integer","minimum":1,"maximum":100}},"required":["target_amount_cents"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/simulate_cascade":{"get":{"operationId":"simulate_cascade","summary":"Simulate the cascade for a hypothetical transaction","description":"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.","tags":["rules"],"parameters":[{"name":"gross_amount_cents","in":"query","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"name":"label","in":"query","required":false,"schema":{"type":"string"}},{"name":"counterpart","in":"query","required":false,"schema":{"type":"string"}},{"name":"side","in":"query","required":false,"schema":{"default":"credit","type":"string","enum":["credit","debit"]}},{"name":"currency","in":"query","required":false,"schema":{"default":"EUR","type":"string","minLength":3,"maxLength":3}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"simulate_cascade_post","summary":"Simulate the cascade for a hypothetical transaction (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["rules"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"gross_amount_cents":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"label":{"type":"string"},"counterpart":{"type":"string"},"side":{"default":"credit","type":"string","enum":["credit","debit"]},"currency":{"default":"EUR","type":"string","minLength":3,"maxLength":3}},"required":["gross_amount_cents"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/simulate_dynamic_salary":{"get":{"operationId":"simulate_dynamic_salary","summary":"Preview the payout a scheduled rule would produce right now","description":"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?\".","tags":["rules"],"parameters":[{"name":"rule_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"simulate_dynamic_salary_post","summary":"Preview the payout a scheduled rule would produce right now (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["rules"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"rule_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["rule_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/simulate_goal_with_contribution":{"get":{"operationId":"simulate_goal_with_contribution","summary":"What-if: project goal completion after a hypothetical contribution","description":"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?\".","tags":["goals"],"parameters":[{"name":"goal_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"hypothetical_contribution_cents","in":"query","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"simulate_goal_with_contribution_post","summary":"What-if: project goal completion after a hypothetical contribution (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["goals"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"goal_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"hypothetical_contribution_cents":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["goal_id","hypothetical_contribution_cents"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/spending_percentiles":{"get":{"operationId":"spending_percentiles","summary":"Percentiles of monthly spend","description":"Computes p50/p90/p99 of monthly total debit for the past N months. Useful to spot how unusual the current month is vs. baseline.","tags":["analytics"],"parameters":[{"name":"months_back","in":"query","required":false,"schema":{"default":12,"type":"integer","minimum":3,"maximum":24}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"spending_percentiles_post","summary":"Percentiles of monthly spend (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["analytics"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"months_back":{"default":12,"type":"integer","minimum":3,"maximum":24}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/subscription_cost_evolution":{"get":{"operationId":"subscription_cost_evolution","summary":"Historical price changes for a subscription","description":"Reads `subscription_price_history` for the given subscription. Useful to spot price creep (\"my insurance went up 30 % last year\").","tags":["subscriptions"],"parameters":[{"name":"subscription_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"subscription_cost_evolution_post","summary":"Historical price changes for a subscription (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["subscriptions"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"subscription_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["subscription_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/subscriptions_by_category":{"get":{"operationId":"subscriptions_by_category","summary":"Aggregate active subscriptions by category","description":"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?\".","tags":["subscriptions"],"parameters":[],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"subscriptions_by_category_post","summary":"Aggregate active subscriptions by category (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["subscriptions"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/suggest_rules_from_unmatched":{"get":{"operationId":"suggest_rules_from_unmatched","summary":"Suggest new rules based on recurring unmatched credits","description":"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.","tags":["rules"],"parameters":[{"name":"min_occurrences","in":"query","required":false,"schema":{"default":3,"type":"integer","minimum":2,"maximum":20}},{"name":"window_days","in":"query","required":false,"schema":{"default":180,"type":"integer","minimum":60,"maximum":720}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"suggest_rules_from_unmatched_post","summary":"Suggest new rules based on recurring unmatched credits (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["rules"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"min_occurrences":{"default":3,"type":"integer","minimum":2,"maximum":20},"window_days":{"default":180,"type":"integer","minimum":60,"maximum":720}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/sum_transactions":{"get":{"operationId":"sum_transactions","summary":"Sum transactions amounts","description":"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.","tags":["transactions"],"parameters":[{"name":"account_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"from","in":"query","required":false,"schema":{"type":"string"}},{"name":"to","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string"}},{"name":"exclude_internal_transfers","in":"query","required":false,"description":"Exclude transfers between the user's own accounts (neither income nor expense). See find_internal_transfers.","schema":{"description":"Exclude transfers between the user's own accounts (neither income nor expense). See find_internal_transfers.","default":true,"type":"boolean"}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"sum_transactions_post","summary":"Sum transactions amounts (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["transactions"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"from":{"type":"string"},"to":{"type":"string"},"status":{"type":"string"},"exclude_internal_transfers":{"description":"Exclude transfers between the user's own accounts (neither income nor expense). See find_internal_transfers.","default":true,"type":"boolean"}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/sync_status":{"get":{"operationId":"sync_status","summary":"Last sync date + errors per account","description":"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?\").","tags":["accounts"],"parameters":[],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"sync_status_post","summary":"Last sync date + errors per account (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["accounts"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/test_rule":{"get":{"operationId":"test_rule","summary":"Dry-run a rule against recent transactions","description":"Evaluate an existing rule against the last N transactions WITHOUT persisting anything. Use to validate a rule's conditions before enabling it broadly.","tags":["rules"],"parameters":[{"name":"rule_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":200}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"test_rule_post","summary":"Dry-run a rule against recent transactions (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["rules"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"rule_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"limit":{"default":50,"type":"integer","minimum":1,"maximum":200}},"required":["rule_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/top_expenses":{"get":{"operationId":"top_expenses","summary":"Top N largest debit transactions in a period","description":"Returns the N largest debits (expenses) ordered by amount desc. Useful for \"what was my biggest spend this month?\".","tags":["transactions"],"parameters":[{"name":"from","in":"query","required":false,"schema":{"type":"string"}},{"name":"to","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":10,"type":"integer","minimum":1,"maximum":50}},{"name":"account_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"exclude_internal_transfers","in":"query","required":false,"description":"Exclude transfers between the user's own accounts — they are not real expenses","schema":{"description":"Exclude transfers between the user's own accounts — they are not real expenses","default":true,"type":"boolean"}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"top_expenses_post","summary":"Top N largest debit transactions in a period (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["transactions"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"limit":{"default":10,"type":"integer","minimum":1,"maximum":50},"account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"exclude_internal_transfers":{"description":"Exclude transfers between the user's own accounts — they are not real expenses","default":true,"type":"boolean"}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/top_income":{"get":{"operationId":"top_income","summary":"Top N largest credit transactions in a period","description":"Returns the N largest credits ordered by amount desc. \"Who paid me the most this quarter?\".","tags":["transactions"],"parameters":[{"name":"from","in":"query","required":false,"schema":{"type":"string"}},{"name":"to","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":10,"type":"integer","minimum":1,"maximum":50}},{"name":"account_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"exclude_internal_transfers","in":"query","required":false,"description":"Exclude transfers between the user's own accounts — they are not real income","schema":{"description":"Exclude transfers between the user's own accounts — they are not real income","default":true,"type":"boolean"}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"top_income_post","summary":"Top N largest credit transactions in a period (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["transactions"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"limit":{"default":10,"type":"integer","minimum":1,"maximum":50},"account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"exclude_internal_transfers":{"description":"Exclude transfers between the user's own accounts — they are not real income","default":true,"type":"boolean"}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/transaction_lineage":{"get":{"operationId":"transaction_lineage","summary":"Full audit trail for one transaction","description":"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?\".","tags":["transactions"],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"transaction_lineage_post","summary":"Full audit trail for one transaction (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["transactions"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/transactions_by_label":{"get":{"operationId":"transactions_by_label","summary":"Aggregate transactions by Qonto label","description":"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?\".","tags":["transactions"],"parameters":[{"name":"from","in":"query","required":false,"schema":{"type":"string"}},{"name":"to","in":"query","required":false,"schema":{"type":"string"}},{"name":"side","in":"query","required":false,"schema":{"type":"string","enum":["credit","debit"]}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"transactions_by_label_post","summary":"Aggregate transactions by Qonto label (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["transactions"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"side":{"type":"string","enum":["credit","debit"]}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/transactions_by_weekday":{"get":{"operationId":"transactions_by_weekday","summary":"Distribution of transactions by weekday","description":"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\").","tags":["transactions"],"parameters":[{"name":"from","in":"query","required":false,"schema":{"type":"string"}},{"name":"to","in":"query","required":false,"schema":{"type":"string"}},{"name":"side","in":"query","required":false,"schema":{"type":"string","enum":["credit","debit"]}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"transactions_by_weekday_post","summary":"Distribution of transactions by weekday (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["transactions"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"side":{"type":"string","enum":["credit","debit"]}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tva_calculator":{"get":{"operationId":"tva_calculator","summary":"Convert between HT and TTC at a given VAT rate","description":"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`.","tags":["analytics"],"parameters":[{"name":"amount_cents","in":"query","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"name":"rate_pct","in":"query","required":false,"schema":{"default":20,"type":"number","minimum":0,"maximum":100}},{"name":"mode","in":"query","required":false,"schema":{"default":"from_ttc","type":"string","enum":["from_ht","from_ttc"]}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"tva_calculator_post","summary":"Convert between HT and TTC at a given VAT rate (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["analytics"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"amount_cents":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"rate_pct":{"default":20,"type":"number","minimum":0,"maximum":100},"mode":{"default":"from_ttc","type":"string","enum":["from_ht","from_ttc"]}},"required":["amount_cents"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/upcoming_bills":{"get":{"operationId":"upcoming_bills","summary":"Subscriptions billing in the next N days","description":"Lists active subscriptions with `next_payment_at` within the window, sorted by date. Returns total expected outflow. Answers \"what bills are coming up?\".","tags":["subscriptions"],"parameters":[{"name":"days_ahead","in":"query","required":false,"schema":{"default":30,"type":"integer","minimum":1,"maximum":180}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"upcoming_bills_post","summary":"Subscriptions billing in the next N days (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["subscriptions"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"days_ahead":{"default":30,"type":"integer","minimum":1,"maximum":180}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/upcoming_goal_deadlines":{"get":{"operationId":"upcoming_goal_deadlines","summary":"Active goals sorted by deadline (soonest first)","description":"Returns active goals with a deadline, sorted ascending. Includes days_until_deadline and progress_pct so the LLM can prioritise.","tags":["goals"],"parameters":[{"name":"within_days","in":"query","required":false,"description":"Restrict to deadlines within N days","schema":{"description":"Restrict to deadlines within N days","type":"integer","minimum":1,"maximum":720}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"upcoming_goal_deadlines_post","summary":"Active goals sorted by deadline (soonest first) (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["goals"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"within_days":{"description":"Restrict to deadlines within N days","type":"integer","minimum":1,"maximum":720}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/upcoming_supplier_payments":{"get":{"operationId":"upcoming_supplier_payments","summary":"Supplier invoices due in the next N days","description":"Lists unpaid supplier invoices with due_date within the window. Sorted by due date asc. Answers \"what do I need to pay this month?\".","tags":["clients"],"parameters":[{"name":"days_ahead","in":"query","required":false,"schema":{"default":30,"type":"integer","minimum":1,"maximum":180}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"upcoming_supplier_payments_post","summary":"Supplier invoices due in the next N days (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["clients"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"days_ahead":{"default":30,"type":"integer","minimum":1,"maximum":180}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/urssaf_declaration_helper":{"get":{"operationId":"urssaf_declaration_helper","summary":"Everything needed to fill the URSSAF declaration of a period","description":"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.","tags":["urssaf"],"parameters":[{"name":"period","in":"query","required":false,"description":"URSSAF period code (\"2633\"), month (\"2026-09\") or omitted for the next one to declare","schema":{"description":"URSSAF period code (\"2633\"), month (\"2026-09\") or omitted for the next one to declare","type":"string"}},{"name":"include_credits","in":"query","required":false,"description":"Include the credit-by-credit list","schema":{"description":"Include the credit-by-credit list","default":true,"type":"boolean"}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"urssaf_declaration_helper_post","summary":"Everything needed to fill the URSSAF declaration of a period (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["urssaf"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"period":{"description":"URSSAF period code (\"2633\"), month (\"2026-09\") or omitted for the next one to declare","type":"string"},"include_credits":{"description":"Include the credit-by-credit list","default":true,"type":"boolean"}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/urssaf_declaration_history":{"get":{"operationId":"urssaf_declaration_history","summary":"Official declaration history (CA declared, contributions, remaining)","description":"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.","tags":["urssaf"],"parameters":[],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"urssaf_declaration_history_post","summary":"Official declaration history (CA declared, contributions, remaining) (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["urssaf"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/urssaf_estimator":{"get":{"operationId":"urssaf_estimator","summary":"Estimate URSSAF contributions for a CA","description":"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.","tags":["urssaf"],"parameters":[{"name":"ca_cents","in":"query","required":true,"description":"Turnover in cents","schema":{"description":"Turnover in cents","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"name":"activity_month","in":"query","required":false,"description":"Month the CA was earned (YYYY-MM); default: current month","schema":{"description":"Month the CA was earned (YYYY-MM); default: current month","type":"string","pattern":"^\\d{4}-\\d{2}$"}},{"name":"regime","in":"query","required":false,"description":"Override the stored regime","schema":{"description":"Override the stored regime","type":"string","enum":["micro_bnc","micro_bic_services","micro_bic_sales"]}},{"name":"acre","in":"query","required":false,"description":"Force ACRE on/off instead of using the stored end date","schema":{"description":"Force ACRE on/off instead of using the stored end date","type":"boolean"}},{"name":"versement_liberatoire","in":"query","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"urssaf_estimator_post","summary":"Estimate URSSAF contributions for a CA (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["urssaf"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"ca_cents":{"description":"Turnover in cents","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"activity_month":{"description":"Month the CA was earned (YYYY-MM); default: current month","type":"string","pattern":"^\\d{4}-\\d{2}$"},"regime":{"description":"Override the stored regime","type":"string","enum":["micro_bnc","micro_bic_services","micro_bic_sales"]},"acre":{"description":"Force ACRE on/off instead of using the stored end date","type":"boolean"},"versement_liberatoire":{"type":"boolean"}},"required":["ca_cents"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/urssaf_get_message":{"get":{"operationId":"urssaf_get_message","summary":"Full text of an URSSAF message and its attachments","description":"Returns the complete body of one messagerie message plus its stored attachments (with 1-hour download links when the Shortcut already pulled them).","tags":["urssaf"],"parameters":[{"name":"id_message","in":"query","required":true,"schema":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"urssaf_get_message_post","summary":"Full text of an URSSAF message and its attachments (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["urssaf"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"id_message":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id_message"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/urssaf_list_documents":{"get":{"operationId":"urssaf_list_documents","summary":"URSSAF documents stored in couicoui (attestations, pièces jointes)","description":"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.","tags":["urssaf"],"parameters":[{"name":"kind","in":"query","required":false,"schema":{"default":"all","type":"string","enum":["attestation","message_attachment","all"]}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"urssaf_list_documents_post","summary":"URSSAF documents stored in couicoui (attestations, pièces jointes) (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["urssaf"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"default":"all","type":"string","enum":["attestation","message_attachment","all"]}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/urssaf_list_messages":{"get":{"operationId":"urssaf_list_messages","summary":"URSSAF secure messaging (reçus / envoyés)","description":"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.","tags":["urssaf"],"parameters":[{"name":"query","in":"query","required":false,"description":"Case-insensitive text to find in subject or body","schema":{"description":"Case-insensitive text to find in subject or body","type":"string","maxLength":100}},{"name":"direction","in":"query","required":false,"schema":{"default":"all","type":"string","enum":["received","sent","all"]}},{"name":"unread_only","in":"query","required":false,"schema":{"default":false,"type":"boolean"}},{"name":"with_attachments_only","in":"query","required":false,"schema":{"default":false,"type":"boolean"}},{"name":"since","in":"query","required":false,"description":"ISO date lower bound","schema":{"description":"ISO date lower bound","type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":30,"type":"integer","minimum":1,"maximum":100}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"urssaf_list_messages_post","summary":"URSSAF secure messaging (reçus / envoyés) (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["urssaf"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"description":"Case-insensitive text to find in subject or body","type":"string","maxLength":100},"direction":{"default":"all","type":"string","enum":["received","sent","all"]},"unread_only":{"default":false,"type":"boolean"},"with_attachments_only":{"default":false,"type":"boolean"},"since":{"description":"ISO date lower bound","type":"string"},"limit":{"default":30,"type":"integer","minimum":1,"maximum":100}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/urssaf_list_periods":{"get":{"operationId":"urssaf_list_periods","summary":"URSSAF periods with their status","description":"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.","tags":["urssaf"],"parameters":[],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"urssaf_list_periods_post","summary":"URSSAF periods with their status (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["urssaf"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/urssaf_list_versements":{"get":{"operationId":"urssaf_list_versements","summary":"Payments received by the URSSAF (official)","description":"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.","tags":["urssaf"],"parameters":[{"name":"since","in":"query","required":false,"description":"ISO date lower bound","schema":{"description":"ISO date lower bound","type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":200}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"urssaf_list_versements_post","summary":"Payments received by the URSSAF (official) (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["urssaf"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"since":{"description":"ISO date lower bound","type":"string"},"limit":{"default":50,"type":"integer","minimum":1,"maximum":200}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/urssaf_provisioning_plan":{"get":{"operationId":"urssaf_provisioning_plan","summary":"Is the URSSAF cascade rule set to the right percentage?","description":"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).","tags":["urssaf"],"parameters":[],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"urssaf_provisioning_plan_post","summary":"Is the URSSAF cascade rule set to the right percentage? (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["urssaf"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/urssaf_raw_source":{"get":{"operationId":"urssaf_raw_source","summary":"Latest raw payload of one URSSAF source","description":"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.","tags":["urssaf"],"parameters":[{"name":"source","in":"query","required":true,"schema":{"type":"string","maxLength":60}},{"name":"max_chars","in":"query","required":false,"schema":{"default":12000,"type":"integer","minimum":500,"maximum":60000}}],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"urssaf_raw_source_post","summary":"Latest raw payload of one URSSAF source (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["urssaf"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"source":{"type":"string","maxLength":60},"max_chars":{"default":12000,"type":"integer","minimum":500,"maximum":60000}},"required":["source"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/urssaf_settings":{"get":{"operationId":"urssaf_settings","summary":"URSSAF regime settings and the rate in force","description":"The user’s micro-entrepreneur regime, ACRE end date (set or suggested), versement libératoire, and the contribution rate applied this month.","tags":["urssaf"],"parameters":[],"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"urssaf_settings_post","summary":"URSSAF regime settings and the rate in force (JSON body)","description":"Same as GET, with parameters in a JSON body. Still read-only.","tags":["urssaf"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}}}}