{"components":{"responses":{},"schemas":{"User":{"description":"User profile","properties":{"country":{"nullable":true,"type":"string"},"currency":{"type":"string"},"daily_reminders_enabled":{"type":"boolean"},"email":{"nullable":true,"type":"string"},"features":{"description":"Feature toggle map","type":"object"},"feedback_bubble_enabled":{"type":"boolean"},"first_name":{"nullable":true,"type":"string"},"id":{"format":"uuid","type":"string"},"inserted_at":{"format":"date-time","type":"string"},"language":{"type":"string"},"mobile_setup_pending":{"type":"boolean"},"notifications_enabled":{"type":"boolean"},"reminder_hour":{"nullable":true,"type":"integer"},"role":{"enum":["user","admin"],"type":"string"},"timezone":{"nullable":true,"type":"string"},"tips_enabled":{"type":"boolean"},"updated_at":{"format":"date-time","type":"string"}},"required":["id","currency","language"],"title":"User","type":"object"},"AdminFixturesRestoreResponse":{"properties":{"data":{"properties":{"inserted":{"type":"integer"}},"type":"object"}},"required":["data"],"title":"AdminFixturesRestoreResponse","type":"object"},"Alert":{"description":"A transaction alert rule","properties":{"active":{"type":"boolean"},"currency":{"nullable":true,"type":"string"},"group_id":{"format":"uuid","nullable":true,"type":"string"},"id":{"format":"uuid","type":"string"},"inserted_at":{"format":"date-time","type":"string"},"name":{"type":"string"},"predicate_type":{"enum":["amount_above","amount_below","category_match","description_match"],"type":"string"},"predicate_value":{"type":"string"},"updated_at":{"format":"date-time","type":"string"}},"required":["id","name","predicate_type","predicate_value"],"title":"Alert","type":"object"},"VoiceInterpretResponse":{"properties":{"data":{"oneOf":[{"properties":{"kind":{"enum":["proposal"],"type":"string"},"proposal":{"$ref":"#/components/schemas/TransactionProposal"}},"required":["kind","proposal"],"type":"object"},{"properties":{"kind":{"enum":["totals"],"type":"string"},"totals":{"$ref":"#/components/schemas/VoiceTotals"}},"required":["kind","totals"],"type":"object"},{"properties":{"answer":{"description":"Topics read from the person's data (accounts, groups, budgets, latest with movements), text from the chat model when the question needed it, ai with its used and limit chat messages, or missing (quota or unavailable) when it could not answer.","properties":{"ai":{"nullable":true,"type":"object"},"missing":{"enum":["quota","unavailable"],"nullable":true,"type":"string"},"text":{"nullable":true,"type":"string"},"topics":{"items":{"type":"object"},"type":"array"}},"type":"object"},"kind":{"enum":["answer"],"type":"string"}},"required":["kind","answer"],"type":"object"},{"properties":{"kind":{"enum":["loan"],"type":"string"},"loan":{"$ref":"#/components/schemas/VoiceLoanDraft"}},"required":["kind","loan"],"type":"object"},{"properties":{"kind":{"enum":["clarify"],"type":"string"},"question":{"maxLength":200,"type":"string"}},"required":["kind","question"],"type":"object"}]}},"required":["data"],"title":"VoiceInterpretResponse","type":"object"},"Feedback":{"description":"A feedback submission","properties":{"category":{"enum":["bug","suggestion","other"],"type":"string"},"content":{"type":"string"},"id":{"format":"uuid","type":"string"},"inserted_at":{"format":"date-time","type":"string"},"source":{"description":"telegram is legacy only; rows created through this API are always api","enum":["web","telegram","api"],"type":"string"},"status":{"type":"string"},"tracking_number":{"nullable":true,"type":"integer"}},"required":["id","content","category"],"title":"Feedback","type":"object"},"AdminOverviewResponse":{"properties":{"data":{"properties":{"active_users":{"type":"integer"},"ai_usage":{"description":"AI usage for the period (365 days for max), as the web dashboard shows it","properties":{"by_intent":{"items":{"properties":{"avg_tokens":{"type":"number"},"count":{"type":"integer"},"intent":{"type":"string"},"total_tokens":{"type":"integer"}},"type":"object"},"type":"array"},"stats":{"properties":{"avg_tokens_per_request":{"type":"number"},"total_cached_tokens":{"type":"integer"},"total_completion_tokens":{"type":"integer"},"total_prompt_tokens":{"type":"integer"},"total_requests":{"type":"integer"},"total_tokens":{"type":"integer"},"unique_users":{"type":"integer"}},"type":"object"},"top_users":{"items":{"properties":{"total_requests":{"type":"integer"},"total_tokens":{"type":"integer"},"user_id":{"format":"uuid","type":"string"}},"type":"object"},"type":"array"}},"type":"object"},"new_users":{"type":"integer"},"open_feedback":{"type":"integer"},"open_voice_reports":{"type":"integer"},"pending_images":{"type":"integer"},"period":{"enum":["30d","3m","ytd","1y","max"],"type":"string"},"recent_users":{"items":{"$ref":"#/components/schemas/AdminRecentUser"},"type":"array"},"sources":{"description":"Transactions per source in the period, most frequent first","items":{"properties":{"count":{"type":"integer"},"source":{"type":"string"}},"type":"object"},"type":"array"},"total_groups":{"type":"integer"},"total_users":{"type":"integer"},"transactions":{"type":"integer"},"trends":{"description":"Daily series: transactions, new users and AI requests","properties":{"ai_requests":{"$ref":"#/components/schemas/AdminDailyPoints"},"new_users":{"$ref":"#/components/schemas/AdminDailyPoints"},"transactions":{"$ref":"#/components/schemas/AdminDailyPoints"}},"type":"object"}},"required":["period","total_users","active_users","new_users","transactions","total_groups","open_feedback","pending_images","open_voice_reports","ai_usage","sources","recent_users","trends"],"type":"object"}},"required":["data"],"title":"AdminOverviewResponse","type":"object"},"ApiKeyRequest":{"properties":{"name":{"default":"API Key","maxLength":100,"type":"string"}},"title":"ApiKeyRequest","type":"object"},"GroupInviteCode":{"properties":{"data":{"properties":{"code":{"type":"string"},"expires_at":{"format":"date-time","type":"string"}},"type":"object"}},"required":["data"],"title":"GroupInviteCode","type":"object"},"VoiceTotalsRequest":{"additionalProperties":false,"description":"Supply a date or relative offset for each end of an inclusive range, at most 366 days apart","properties":{"category_id":{"format":"uuid","nullable":true,"type":"string"},"date_from":{"format":"date","nullable":true,"type":"string"},"date_to":{"format":"date","nullable":true,"type":"string"},"from_days_ago":{"maximum":366,"minimum":0,"nullable":true,"type":"integer"},"group_id":{"format":"uuid","nullable":true,"type":"string"},"to_days_ago":{"maximum":366,"minimum":0,"nullable":true,"type":"integer"}},"title":"VoiceTotalsRequest","type":"object"},"CapitalPaymentRequest":{"description":"Repeating a request_id returns the payment it already recorded. paid_on defaults to today in the account timezone; record_income (loans) and record_expense (debts) default to true.","properties":{"amount":{"description":"Decimal amount above 0, at most what is still owed","type":"string"},"note":{"maxLength":500,"nullable":true,"type":"string"},"paid_on":{"format":"date","type":"string"},"record_expense":{"type":"boolean"},"record_income":{"type":"boolean"},"request_id":{"format":"uuid","type":"string"}},"title":"CapitalPaymentRequest","type":"object"},"ActivityDisplay":{"description":"Allowlisted presentation. Raw descriptions and metadata are not display-safe.","properties":{"actor":{"enum":["self","other","unknown"],"type":"string"},"changes":{"items":{"$ref":"#/components/schemas/ActivityChange"},"type":"array"},"count":{"minimum":0,"nullable":true,"type":"integer"},"event":{"type":"string"},"resource":{"enum":["transaction","category","settings","receipt","group","bank","import","recurring","capital","rule","account","voice","other"],"type":"string"},"subject":{"maxLength":255,"nullable":true,"type":"string"},"version":{"enum":[1],"type":"integer"}},"required":["version","event","resource","actor","subject","changes","count"],"title":"ActivityDisplay","type":"object"},"MobileSessionResponse":{"properties":{"data":{"properties":{"expires_at":{"format":"date-time","type":"string"},"token":{"type":"string"},"user":{"$ref":"#/components/schemas/User"}},"type":"object"}},"title":"MobileSessionResponse","type":"object"},"ReminderUpdate":{"additionalProperties":false,"minProperties":1,"properties":{"enabled":{"type":"boolean"},"hour":{"maximum":23,"minimum":0,"type":"integer"},"make_primary":{"description":"Assign this authenticated session as the primary reminder device","type":"boolean"},"minute":{"maximum":59,"minimum":0,"type":"integer"},"weekdays":{"items":{"maximum":7,"minimum":1,"type":"integer"},"maxItems":7,"minItems":1,"type":"array","uniqueItems":true}},"title":"ReminderUpdate","type":"object"},"ExactPeopleMatchResponse":{"properties":{"data":{"$ref":"#/components/schemas/ExactPeopleMatch"}},"required":["data"],"title":"ExactPeopleMatchResponse","type":"object"},"AccountDeletionPreview":{"properties":{"data":{"properties":{"counts":{"additionalProperties":false,"properties":{"accounts":{"minimum":0,"type":"integer"},"alerts":{"minimum":0,"type":"integer"},"assets":{"minimum":0,"type":"integer"},"budgets":{"minimum":0,"type":"integer"},"categories":{"minimum":0,"type":"integer"},"parsing_rules":{"minimum":0,"type":"integer"},"personal_transactions":{"minimum":0,"type":"integer"},"recordings":{"description":"Always 0. Suma stores no recordings; kept so older apps still parse the response.","minimum":0,"type":"integer"},"recurring":{"minimum":0,"type":"integer"},"shared_alerts_to_transfer":{"minimum":0,"type":"integer"},"shared_recurring_to_pause":{"minimum":0,"type":"integer"},"shared_transactions":{"minimum":0,"type":"integer"}},"required":["personal_transactions","shared_transactions","categories","budgets","accounts","recurring","assets","parsing_rules","alerts","shared_alerts_to_transfer","recordings","shared_recurring_to_pause"],"type":"object"},"groups":{"items":{"properties":{"action":{"enum":["transfer","dissolve","leave"],"type":"string"},"id":{"format":"uuid","type":"string"},"name":{"type":"string"},"next_owner_name":{"nullable":true,"type":"string"},"retained_by":{"format":"uuid","nullable":true,"type":"string"}},"required":["id","name","action"],"type":"object"},"type":"array"},"impact_hash":{"pattern":"^[A-Za-z0-9_-]{43}$","type":"string"},"providers":{"items":{"enum":["google","github"],"type":"string"},"type":"array"},"user_id":{"format":"uuid","type":"string"}},"required":["user_id","impact_hash","providers","counts","groups"],"type":"object"}},"required":["data"],"title":"AccountDeletionPreview","type":"object"},"ReviseProposal":{"additionalProperties":false,"properties":{"fingerprint":{"maxLength":64,"minLength":64,"type":"string"},"revision":{"minimum":1,"type":"integer"},"transactions":{"items":{"$ref":"#/components/schemas/ProposedTransaction"},"maxItems":10,"minItems":1,"type":"array"}},"required":["revision","fingerprint","transactions"],"title":"ReviseProposal","type":"object"},"SavingsGoal":{"description":"Savings plan calculation","properties":{"currency":{"type":"string"},"current_monthly_savings":{"type":"string"},"feasible":{"type":"boolean"},"monthly_required":{"type":"string"},"months_remaining":{"type":"integer"},"shortfall":{"type":"string"},"target_amount":{"type":"string"},"target_date":{"format":"date","type":"string"}},"required":["monthly_required","months_remaining","feasible"],"title":"SavingsGoal","type":"object"},"ProposalResponse":{"properties":{"data":{"$ref":"#/components/schemas/TransactionProposal"}},"required":["data"],"title":"ProposalResponse","type":"object"},"ProposalStatusResponse":{"properties":{"data":{"properties":{"id":{"format":"uuid","type":"string"},"request_id":{"format":"uuid","type":"string"},"revision":{"type":"integer"},"state":{"enum":["pending","expired","cancelled","committed"],"type":"string"},"transaction_ids":{"items":{"format":"uuid","type":"string"},"type":"array"}},"required":["id","request_id","revision","state","transaction_ids"],"type":"object"}},"required":["data"],"title":"ProposalStatusResponse","type":"object"},"AdminFeedbackSummary":{"properties":{"category":{"enum":["bug","suggestion","other"],"type":"string"},"content":{"type":"string"},"id":{"format":"uuid","type":"string"},"image_count":{"type":"integer"},"inserted_at":{"format":"date-time","type":"string"},"source":{"type":"string"},"status":{"enum":["open","resolved"],"type":"string"},"tracking_number":{"nullable":true,"type":"integer"},"updated_at":{"format":"date-time","type":"string"},"user":{"$ref":"#/components/schemas/AdminFeedbackUser"}},"title":"AdminFeedbackSummary","type":"object"},"PeopleDiscoverySettings":{"properties":{"alias":{"nullable":true,"type":"string"},"discoverable_by_alias":{"type":"boolean"},"discoverable_by_email":{"type":"boolean"},"email":{"nullable":true,"type":"string"},"email_verified":{"type":"boolean"},"verification_providers":{"items":{"enum":["google","github"],"type":"string"},"type":"array"}},"required":["alias","email","email_verified","discoverable_by_alias","discoverable_by_email"],"title":"PeopleDiscoverySettings","type":"object"},"GroupJoinRequest":{"description":"A 6-character legacy invite code","properties":{"code":{"type":"string"}},"required":["code"],"title":"GroupJoinRequest","type":"object"},"RecurringOperationRequest":{"additionalProperties":false,"properties":{"action":{"enum":["create","update","set_active","delete"],"type":"string"},"entry":{"description":"Full draft for create/update; is_active only for set_active; empty for delete","oneOf":[{"$ref":"#/components/schemas/PersonalRecurringDraft"},{"$ref":"#/components/schemas/RecurringDesiredState"},{"maxProperties":0,"type":"object"}]},"entry_id":{"format":"uuid","type":"string"},"observed_updated_at":{"description":"Exact current updated_at; required except create","format":"date-time","type":"string"},"request_id":{"format":"uuid","type":"string"}},"required":["request_id","action"],"title":"RecurringOperationRequest","type":"object"},"ImportExecuteRequest":{"description":"Confirmed import with mappings","properties":{"account_mappings":{"description":"Map of source account name to account ID","type":"object"},"auto_create_accounts":{"default":false,"type":"boolean"},"auto_create_categories":{"default":false,"type":"boolean"},"category_mappings":{"description":"Map of source category name to category ID","type":"object"},"csv_content":{"description":"Raw CSV content","type":"string"},"default_currency":{"nullable":true,"type":"string"},"group_id":{"format":"uuid","nullable":true,"type":"string"},"skip_duplicates":{"default":true,"type":"boolean"}},"required":["csv_content"],"title":"ImportExecuteRequest","type":"object"},"BankAlertResponse":{"properties":{"data":{"$ref":"#/components/schemas/BankAlert"}},"required":["data"],"title":"BankAlertResponse","type":"object"},"AccountList":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Account"},"type":"array"}},"title":"AccountList","type":"object"},"PeopleBlockList":{"properties":{"data":{"items":{"properties":{"inserted_at":{"format":"date-time","type":"string"},"sender_alias":{"nullable":true,"type":"string"},"sender_id":{"format":"uuid","type":"string"},"sender_name":{"nullable":true,"type":"string"}},"required":["sender_id","sender_name","sender_alias","inserted_at"],"type":"object"},"type":"array"},"meta":{"$ref":"#/components/schemas/PeoplePagination"}},"required":["data","meta"],"title":"PeopleBlockList","type":"object"},"GroupTransferOwnershipRequest":{"description":"The new owner, given as user_id or target_user_id","properties":{"target_user_id":{"format":"uuid","type":"string"},"user_id":{"format":"uuid","type":"string"}},"title":"GroupTransferOwnershipRequest","type":"object"},"Transaction":{"description":"A financial transaction","properties":{"account_id":{"format":"uuid","nullable":true,"type":"string"},"amount":{"description":"Decimal amount","type":"string"},"category":{"nullable":true,"properties":{"emoji":{"nullable":true,"type":"string"},"id":{"format":"uuid","type":"string"},"name":{"type":"string"},"type":{"type":"string"}},"type":"object"},"category_id":{"format":"uuid","nullable":true,"type":"string"},"currency":{"nullable":true,"type":"string"},"date":{"format":"date","type":"string"},"description":{"nullable":true,"type":"string"},"editable":{"description":"Single-transaction reads only: whether the caller may change or delete it","type":"boolean"},"group_id":{"format":"uuid","nullable":true,"type":"string"},"history":{"description":"Single-transaction reads of group movements only: creation and edits, oldest first","items":{"properties":{"actor":{"description":"Display name of who acted","type":"string"},"at":{"format":"date-time","type":"string"},"changes":{"description":"Changed fields (description, amount, date, category_id, group_id) as {old, new}","type":"object"},"event":{"enum":["transaction_created","transaction_updated"],"type":"string"}},"type":"object"},"type":"array"},"id":{"format":"uuid","type":"string"},"inserted_at":{"format":"date-time","type":"string"},"location":{"description":"Where it was recorded. Never shown on group transactions.","nullable":true,"properties":{"lat":{"type":"number"},"lng":{"type":"number"},"place":{"nullable":true,"type":"string"}},"type":"object"},"metadata":{"type":"object"},"occurred_at":{"format":"date-time","nullable":true,"type":"string"},"tax_amount":{"description":"Tax part of the amount, derived by the server","nullable":true,"type":"string"},"tax_kind":{"description":"The tax the total includes","enum":["iva","impoconsumo","other"],"nullable":true,"type":"string"},"tax_rate":{"description":"Tax rate in percent","nullable":true,"type":"string"},"tip_amount":{"description":"Tip part of the amount","nullable":true,"type":"string"},"tip_rate":{"description":"Tip in percent of the base, when the tip is a rate","nullable":true,"type":"string"},"type":{"enum":["income","expense"],"type":"string"},"updated_at":{"format":"date-time","type":"string"}},"required":["id","amount","type","date"],"title":"Transaction","type":"object"},"VoiceProposalRequest":{"additionalProperties":false,"properties":{"fingerprint":{"type":"string"},"proposal_id":{"format":"uuid","type":"string"},"request_id":{"format":"uuid","type":"string"},"revision":{"minimum":1,"type":"integer"},"transactions":{"items":{"additionalProperties":false,"properties":{"account_id":{"format":"uuid","nullable":true,"type":"string"},"amount":{"type":"string"},"category_id":{"format":"uuid","nullable":true,"type":"string"},"currency":{"type":"string"},"date":{"format":"date","nullable":true,"type":"string"},"days_ago":{"description":"Use this or an absolute date; resolved in the account timezone","maximum":366,"minimum":0,"nullable":true,"type":"integer"},"description":{"maxLength":500,"nullable":true,"type":"string"},"group_id":{"format":"uuid","nullable":true,"type":"string"},"type":{"enum":["expense","income"],"type":"string"}},"required":["amount","currency","type"],"type":"object"},"maxItems":20,"minItems":1,"type":"array"}},"required":["transactions"],"title":"VoiceProposalRequest","type":"object"},"VoiceReportRequest":{"description":"A dictation the person chose to share so Suma can improve. Nothing is stored unless the app sends this. Reports are deleted after 90 days.","properties":{"correction":{"description":"What the person changed it to","type":"object"},"failure_code":{"maxLength":64,"type":"string"},"heard_text":{"maxLength":1000,"minLength":1,"type":"string"},"interpretation":{"description":"What Suma understood, as the app got it","type":"object"},"kind":{"enum":["failure","wrong_result"],"type":"string"},"language":{"maxLength":16,"type":"string"},"platform":{"enum":["android","ios"],"type":"string"},"request_id":{"description":"Retry with the same ID; the first report is returned","format":"uuid","type":"string"}},"required":["request_id","kind","heard_text"],"title":"VoiceReportRequest","type":"object"},"MobileAuthPassword":{"properties":{"email":{"format":"email","type":"string"},"new_password":{"description":"The person's own password, after a password_change_required refusal; it replaces the temporary one","type":"string"},"password":{"description":"The current password","type":"string"},"platform":{"enum":["ios","android"],"type":"string"},"terms_version":{"description":"The terms version the person just accepted, after a terms_required refusal","type":"string"}},"required":["email","password","platform"],"title":"MobileAuthPassword","type":"object"},"CategoryRequest":{"description":"Parameters for creating or updating a category. On create, name and type are required.","properties":{"emoji":{"type":"string"},"group_id":{"description":"On create, a group the person belongs to; the category is then the group's","format":"uuid","type":"string"},"id":{"description":"On create, an id chosen by the client so the request can be repeated safely","format":"uuid","type":"string"},"name":{"maxLength":60,"type":"string"},"parent_id":{"format":"uuid","type":"string"},"type":{"enum":["income","expense"],"type":"string"}},"title":"CategoryRequest","type":"object"},"TaxSuggestion":{"properties":{"tax_kind":{"enum":["iva","impoconsumo","other"],"nullable":true,"type":"string"},"tax_rate":{"nullable":true,"type":"string"},"tip_rate":{"nullable":true,"type":"string"}},"title":"TaxSuggestion","type":"object"},"UpdateFeaturesRequest":{"description":"Unknown feature keys are rejected with 422","properties":{"features":{"$ref":"#/components/schemas/Features"}},"required":["features"],"title":"UpdateFeaturesRequest","type":"object"},"AdminUserDetailResponse":{"properties":{"data":{"$ref":"#/components/schemas/AdminUserDetail"}},"required":["data"],"title":"AdminUserDetailResponse","type":"object"},"AdminFeedbackReplyRequest":{"properties":{"content":{"maxLength":5000,"minLength":1,"type":"string"}},"required":["content"],"title":"AdminFeedbackReplyRequest","type":"object"},"VoiceTotalsResponse":{"properties":{"data":{"$ref":"#/components/schemas/VoiceTotals"}},"required":["data"],"title":"VoiceTotalsResponse","type":"object"},"BillHistory":{"description":"Recurring bill payment history with missed payment detection","properties":{"currency":{"nullable":true,"type":"string"},"message":{"description":"Present, with empty results, when there is nothing to check","type":"string"},"results":{"items":{"properties":{"amount":{"type":"string"},"description":{"type":"string"},"missed_count":{"type":"integer"},"months":{"items":{"properties":{"month":{"type":"integer"},"status":{"enum":["paid","missed"],"type":"string"},"year":{"type":"integer"}},"type":"object"},"type":"array"}},"type":"object"},"type":"array"}},"title":"BillHistory","type":"object"},"AdminCouponResponse":{"properties":{"data":{"$ref":"#/components/schemas/AdminCoupon"}},"required":["data"],"title":"AdminCouponResponse","type":"object"},"AdminUserSummary":{"properties":{"email":{"nullable":true,"type":"string"},"first_name":{"nullable":true,"type":"string"},"id":{"format":"uuid","type":"string"},"inserted_at":{"format":"date-time","type":"string"},"last_active":{"format":"date-time","nullable":true,"type":"string"},"role":{"enum":["user","admin"],"type":"string"},"status":{"enum":["active","blocked","pending"],"type":"string"},"tx_count":{"type":"integer"}},"title":"AdminUserSummary","type":"object"},"AdminUserPlanResponse":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/MyPlan"},{"properties":{"overrides":{"additionalProperties":{"nullable":true,"type":"integer"},"description":"The person's own limits; null means no limit","type":"object"}},"required":["overrides"],"type":"object"}]}},"required":["data"],"title":"AdminUserPlanResponse","type":"object"},"NoticeCreateRequest":{"properties":{"message":{"maxLength":280,"type":"string"},"minutes":{"description":"How long it shows from now, at most a week","minimum":1,"type":"integer"}},"required":["message","minutes"],"title":"NoticeCreateRequest","type":"object"},"Ping":{"description":"API connection test response","properties":{"api_version":{"type":"string"},"status":{"enum":["ok"],"type":"string"},"timestamp":{"format":"date-time","type":"string"},"user":{"properties":{"currency":{"type":"string"},"id":{"format":"uuid","type":"string"},"language":{"type":"string"}},"type":"object"}},"required":["status","user","timestamp","api_version"],"title":"Ping","type":"object"},"Daily review response":{"properties":{"data":{"$ref":"#/components/schemas/Daily review snapshot"}},"required":["data"],"title":"Daily review response","type":"object"},"AccountRequest":{"properties":{"currency":{"nullable":true,"type":"string"},"group_id":{"description":"On create, a group the person belongs to","format":"uuid","type":"string"},"icon":{"type":"string"},"id":{"description":"On create, an id chosen by the client so the request can be repeated safely","format":"uuid","type":"string"},"name":{"maxLength":50,"type":"string"}},"title":"AccountRequest","type":"object"},"ProposedTransaction":{"additionalProperties":false,"properties":{"account_id":{"format":"uuid","nullable":true,"type":"string"},"amount":{"description":"Exact positive decimal; at most 13 integer and two fractional digits","type":"string"},"category_id":{"format":"uuid","nullable":true,"type":"string"},"currency":{"type":"string"},"date":{"format":"date","type":"string"},"description":{"maxLength":500,"nullable":true,"type":"string"},"group_id":{"format":"uuid","nullable":true,"type":"string"},"location":{"description":"Where it was recorded. Dropped on group entries.","nullable":true,"properties":{"lat":{"type":"number"},"lng":{"type":"number"},"place":{"nullable":true,"type":"string"}},"type":"object"},"occurred_at":{"format":"date-time","nullable":true,"type":"string"},"tax_amount":{"description":"Tax part of the amount; derived, ignored on input","nullable":true,"type":"string"},"tax_kind":{"enum":["iva","impoconsumo","other"],"nullable":true,"type":"string"},"tax_rate":{"description":"Tax rate in percent","nullable":true,"type":"string"},"tip_amount":{"description":"Tip part of the amount; a fixed tip when tip_rate is absent","nullable":true,"type":"string"},"tip_rate":{"description":"Tip in percent of the base","nullable":true,"type":"string"},"type":{"enum":["expense","income"],"type":"string"}},"required":["amount","type","currency","date"],"title":"ProposedTransaction","type":"object"},"BudgetRecommendation":{"description":"Recommended budget amount based on historical spending","properties":{"avg_monthly":{"description":"Average monthly spending","type":"string"},"category":{"type":"string"},"currency":{"type":"string"},"max":{"type":"string"},"min":{"type":"string"},"months_analyzed":{"type":"integer"},"recommended":{"description":"Recommended budget amount","type":"string"},"trend":{"enum":["rising","stable","declining"],"type":"string"}},"required":["category","recommended","avg_monthly","months_analyzed"],"title":"BudgetRecommendation","type":"object"},"ExactPeopleSearch":{"additionalProperties":false,"properties":{"search":{"maxLength":320,"type":"string"}},"required":["search"],"title":"ExactPeopleSearch","type":"object"},"NoticeListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Notice"},"type":"array"}},"required":["data"],"title":"NoticeListResponse","type":"object"},"RetireBankCapture":{"additionalProperties":false,"properties":{"bank_account_fingerprint":{"nullable":true,"pattern":"^[0-9a-f]{64}$","type":"string"},"device_id":{"format":"uuid","type":"string"},"economic_reference":{"nullable":true,"pattern":"^[A-Za-z0-9:_/.\\-]{8,128}$","type":"string"},"notification_id":{"format":"uuid","type":"string"},"request_id":{"format":"uuid","type":"string"},"source_id":{"format":"uuid","type":"string"},"source_revision":{"minimum":1,"type":"integer"}},"required":["request_id","source_id","device_id","notification_id","source_revision"],"title":"RetireBankCapture","type":"object"},"AdminVoiceReportResponse":{"properties":{"data":{"$ref":"#/components/schemas/AdminVoiceReport"}},"required":["data"],"title":"AdminVoiceReportResponse","type":"object"},"BankImportReceipt":{"additionalProperties":false,"properties":{"action":{"enum":["configure","resolve","ingest","recover"],"type":"string"},"alert":{"$ref":"#/components/schemas/BankAlert"},"capture_request_id":{"format":"uuid","type":"string"},"provider":{"enum":["bancolombia","nequi","global66","wise"],"type":"string"},"reason":{"type":"string"},"request_id":{"format":"uuid","type":"string"},"source":{"$ref":"#/components/schemas/BankCaptureSource"},"source_id":{"format":"uuid","type":"string"},"state":{"enum":["configured","recorded","already_recorded","pending","review","ignored","dismissed","rejected","cancelled"],"type":"string"},"user_id":{"format":"uuid","type":"string"}},"required":["request_id","state"],"title":"BankImportReceipt","type":"object"},"AdminVoiceReport":{"description":"A dictation someone shared. The audio is only played on the web admin.","properties":{"account_names":{"items":{"type":"string"},"type":"array"},"admin_notes":{"nullable":true,"type":"string"},"correction":{"nullable":true,"type":"object"},"expires_at":{"format":"date-time","type":"string"},"failure_reason":{"nullable":true,"type":"string"},"has_audio":{"type":"boolean"},"heard_text":{"nullable":true,"type":"string"},"id":{"format":"uuid","type":"string"},"inserted_at":{"format":"date-time","type":"string"},"interpretation":{"nullable":true,"type":"object"},"kind":{"enum":["failure","wrong_result"],"type":"string"},"language":{"nullable":true,"type":"string"},"platform":{"nullable":true,"type":"string"},"reviewed_at":{"format":"date-time","nullable":true,"type":"string"},"source":{"enum":["web","mobile"],"type":"string"},"status":{"enum":["open","reviewed"],"type":"string"},"user":{"nullable":true,"properties":{"email":{"nullable":true,"type":"string"},"first_name":{"nullable":true,"type":"string"},"id":{"format":"uuid","type":"string"}},"type":"object"}},"title":"AdminVoiceReport","type":"object"},"AdminCouponUpdateRequest":{"properties":{"active":{"type":"boolean"}},"required":["active"],"title":"AdminCouponUpdateRequest","type":"object"},"Heatmap":{"description":"Transaction count per day for heatmap visualization","items":{"properties":{"count":{"type":"integer"},"date":{"format":"date","type":"string"}},"type":"object"},"title":"Heatmap","type":"array"},"GroupMember":{"description":"A group member","properties":{"id":{"format":"uuid","type":"string"},"joined_at":{"format":"date-time","type":"string"},"role":{"enum":["owner","member"],"type":"string"},"user_id":{"format":"uuid","type":"string"},"user_name":{"nullable":true,"type":"string"}},"required":["id","role","user_id"],"title":"GroupMember","type":"object"},"BankAlertFacts":{"additionalProperties":false,"properties":{"account_fingerprint":{"description":"Stable full bank-account/card discriminator; never a hash of masked last digits","nullable":true,"pattern":"^[0-9a-f]{64}$","type":"string"},"amount":{"description":"Exact positive decimal; never inferred from locale or symbol","maxLength":80,"nullable":true,"type":"string"},"currency":{"nullable":true,"pattern":"^[A-Z]{3}$","type":"string"},"date":{"description":"Date explicitly reported by the bank, not notification/device time","format":"date","nullable":true,"type":"string"},"economic_reference":{"description":"Only a provider-guaranteed stable transaction identity; omit ambiguous reference numbers","maxLength":128,"minLength":8,"nullable":true,"type":"string"},"kind":{"enum":["purchase_authorized","purchase_settled","declined","transfer","refund","withdrawal","income","unknown"],"type":"string"},"merchant":{"maxLength":200,"nullable":true,"type":"string"}},"required":["kind"],"title":"BankAlertFacts","type":"object"},"PaginationMeta":{"description":"Pagination metadata","properties":{"page":{"description":"Current page number","minimum":1,"type":"integer"},"per_page":{"description":"Items per page","maximum":100,"minimum":1,"type":"integer"},"total":{"description":"Total number of items","type":"integer"},"total_pages":{"description":"Total number of pages","minimum":1,"type":"integer"}},"required":["page","per_page","total","total_pages"],"title":"PaginationMeta","type":"object"},"AdminDailyPoints":{"items":{"properties":{"count":{"type":"integer"},"date":{"format":"date","type":"string"}},"type":"object"},"title":"AdminDailyPoints","type":"array"},"RecoverBankCapture":{"additionalProperties":false,"properties":{"capture":{"$ref":"#/components/schemas/BankAlertCapture"},"provider":{"enum":["bancolombia","nequi","global66","wise"],"type":"string"},"request_id":{"format":"uuid","type":"string"}},"required":["request_id","provider","capture"],"title":"RecoverBankCapture","type":"object"},"MobileAuthStartResponse":{"properties":{"data":{"properties":{"browser_url":{"format":"uri","type":"string"},"expires_at":{"format":"date-time","type":"string"},"state":{"type":"string"}},"type":"object"}},"title":"MobileAuthStartResponse","type":"object"},"RulePreview":{"properties":{"data":{"properties":{"category":{"$ref":"#/components/schemas/RuleCategoryLabel"},"entry":{"$ref":"#/components/schemas/PersonalRuleDraft"},"future_only":{"enum":[true],"type":"boolean"},"matches_pattern":{"type":"boolean"},"normalized_pattern":{"type":"string"},"sample":{"type":"string"},"scope":{"enum":["personal"],"type":"string"},"winner":{"nullable":true,"properties":{"category":{"$ref":"#/components/schemas/RuleCategoryLabel"},"category_id":{"format":"uuid","type":"string"},"pattern":{"type":"string"},"priority":{"type":"integer"},"rule_id":{"format":"uuid","nullable":true,"type":"string"},"source":{"enum":["draft","saved"],"type":"string"}},"type":"object"}},"required":["entry","category","sample","scope","normalized_pattern","matches_pattern","future_only","winner"],"type":"object"}},"title":"RulePreview","type":"object"},"CapitalSummaryResponse":{"properties":{"data":{"properties":{"currency":{"type":"string"},"net_worth":{"type":"string"},"total_gross":{"type":"string"},"total_liability":{"type":"string"}},"required":["total_gross","total_liability","net_worth","currency"],"type":"object"}},"required":["data"],"title":"CapitalSummaryResponse","type":"object"},"AdminCouponListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/AdminCoupon"},"type":"array"},"options":{"description":"What the create form may offer.","properties":{"percents":{"items":{"type":"integer"},"type":"array"},"plan_keys":{"items":{"type":"string"},"type":"array"}},"type":"object"}},"required":["data","options"],"title":"AdminCouponListResponse","type":"object"},"AccountDeletionVerification":{"properties":{"code_challenge":{"description":"S256 PKCE challenge","pattern":"^[A-Za-z0-9_-]{43}$","type":"string"},"impact_hash":{"pattern":"^[A-Za-z0-9_-]{43}$","type":"string"},"platform":{"enum":["ios","android"],"type":"string"}},"required":["platform","code_challenge","impact_hash"],"title":"AccountDeletionVerification","type":"object"},"VoiceReport":{"properties":{"expires_at":{"description":"When the report is deleted","format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"}},"required":["id","expires_at"],"title":"VoiceReport","type":"object"},"AdminIntelligenceResponse":{"description":"The web Intelligence per-user preview. Money amounts are decimal strings; percentages and rates in projection and patterns are numbers.","properties":{"data":{"properties":{"avg_expense":{"type":"string"},"avg_income":{"type":"string"},"budget_recs":{"items":{"properties":{"avg_monthly":{"type":"string"},"category_name":{"type":"string"},"max":{"type":"string"},"min":{"type":"string"},"months_analyzed":{"type":"integer"},"recommended":{"type":"string"},"trend":{"enum":["rising","declining","stable"],"type":"string"}},"type":"object"},"type":"array"},"currency":{"type":"string"},"insights":{"items":{"type":"string"},"type":"array"},"missed_bills":{"items":{"properties":{"amount":{"type":"string"},"category_id":{"format":"uuid","type":"string"},"description":{"type":"string"},"frequency":{"type":"string"},"missed_count":{"type":"integer"},"months":{"items":{"properties":{"month":{"type":"integer"},"status":{"enum":["paid","missed"],"type":"string"},"year":{"type":"integer"}},"type":"object"},"type":"array"}},"type":"object"},"type":"array"},"monthly_savings":{"type":"string"},"patterns":{"items":{"properties":{"avg":{"type":"string"},"category":{"type":"string"},"change_pct":{"type":"number"},"current":{"type":"string"},"direction":{"enum":["spike","drop"],"type":"string"}},"type":"object"},"type":"array"},"projection":{"description":"Null when the user has no expense this month","nullable":true,"properties":{"daily_rate":{"type":"string"},"days_in_month":{"type":"integer"},"days_remaining":{"type":"integer"},"pace":{"enum":["under","on_track","over"],"type":"string"},"projected":{"type":"string"},"vs_prev_pct":{"nullable":true,"type":"number"}},"type":"object"},"user":{"properties":{"email":{"nullable":true,"type":"string"},"first_name":{"nullable":true,"type":"string"},"id":{"format":"uuid","type":"string"}},"type":"object"}},"type":"object"}},"required":["data"],"title":"AdminIntelligenceResponse","type":"object"},"TaxPresets":{"properties":{"categories":{"additionalProperties":{"$ref":"#/components/schemas/TaxSuggestion"},"description":"Suggestions by category key, such as cat.restaurants","type":"object"},"country":{"description":"ISO country code","nullable":true,"type":"string"},"taxes":{"items":{"properties":{"kind":{"enum":["iva","impoconsumo","other"],"type":"string"},"rate":{"description":"Rate in percent","type":"string"}},"type":"object"},"type":"array"},"tips":{"description":"Tip rates in percent","items":{"type":"string"},"type":"array"}},"required":["taxes","tips","categories"],"title":"TaxPresets","type":"object"},"SendMessageResponse":{"description":"AI assistant response","properties":{"conversation_id":{"format":"uuid","type":"string"},"response":{"description":"Assistant response content","type":"string"},"title":{"nullable":true,"type":"string"}},"required":["conversation_id","response"],"title":"SendMessageResponse","type":"object"},"CategoryBreakdown":{"description":"Spending/income breakdown by category","items":{"properties":{"amount":{"description":"Decimal amount","type":"string"},"category":{"nullable":true,"type":"string"},"emoji":{"nullable":true,"type":"string"},"type":{"enum":["income","expense"],"type":"string"}},"type":"object"},"title":"CategoryBreakdown","type":"array"},"PeopleEmailVerificationResponse":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/PeopleDiscoverySettings"},{"properties":{"user_id":{"format":"uuid","type":"string"}},"required":["user_id"],"type":"object"}]}},"required":["data"],"title":"PeopleEmailVerificationResponse","type":"object"},"ActivityPageResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ActivityLog"},"type":"array"},"meta":{"properties":{"next_cursor":{"nullable":true,"type":"string"},"page":{"type":"integer"},"per_page":{"type":"integer"},"scope":{"enum":["account"],"type":"string"},"total":{"type":"integer"},"total_pages":{"type":"integer"}},"required":["page","per_page","total","total_pages","next_cursor","scope"],"type":"object"}},"required":["data","meta"],"title":"ActivityPageResponse","type":"object"},"AdminRecentUser":{"properties":{"email":{"nullable":true,"type":"string"},"first_name":{"nullable":true,"type":"string"},"id":{"format":"uuid","type":"string"},"inserted_at":{"format":"date-time","type":"string"},"status":{"enum":["active","blocked","pending"],"type":"string"}},"title":"AdminRecentUser","type":"object"},"Group":{"description":"A family/group budget","properties":{"emoji":{"nullable":true,"type":"string"},"id":{"format":"uuid","type":"string"},"inserted_at":{"format":"date-time","type":"string"},"name":{"type":"string"},"owner_id":{"format":"uuid","type":"string"},"updated_at":{"format":"date-time","type":"string"}},"required":["id","name","owner_id"],"title":"Group","type":"object"},"RecurringPreview":{"properties":{"data":{"properties":{"entry":{"$ref":"#/components/schemas/PersonalRecurringDraft"},"occurrences":{"items":{"format":"date","type":"string"},"type":"array"},"registers_ledger_only":{"enum":[true],"type":"boolean"},"scope":{"enum":["personal"],"type":"string"},"timezone":{"type":"string"},"today":{"format":"date","type":"string"}},"type":"object"}},"title":"RecurringPreview","type":"object"},"BankCaptureSource":{"additionalProperties":false,"properties":{"account_id":{"format":"uuid","nullable":true,"type":"string"},"automatic":{"type":"boolean"},"bank_account_fingerprint":{"nullable":true,"type":"string"},"currency":{"type":"string"},"destination":{"enum":["personal","account"],"type":"string"},"device_id":{"format":"uuid","type":"string"},"enabled":{"type":"boolean"},"id":{"format":"uuid","type":"string"},"provider":{"enum":["bancolombia","nequi","global66","wise"],"type":"string"},"revision":{"minimum":1,"type":"integer"},"scope":{"enum":["personal"],"type":"string"},"user_id":{"format":"uuid","type":"string"}},"required":["id","user_id","provider","revision","device_id","account_id","destination","currency","bank_account_fingerprint","enabled","automatic","scope"],"title":"BankCaptureSource","type":"object"},"CapitalPaymentResult":{"properties":{"data":{"properties":{"asset":{"$ref":"#/components/schemas/CapitalAsset"},"payment":{"$ref":"#/components/schemas/CapitalPayment"}},"required":["payment","asset"],"type":"object"}},"required":["data"],"title":"CapitalPaymentResult","type":"object"},"BankAlert":{"additionalProperties":false,"properties":{"facts":{"$ref":"#/components/schemas/BankAlertFacts"},"id":{"format":"uuid","type":"string"},"provider":{"enum":["bancolombia","nequi","global66","wise"],"type":"string"},"reason":{"nullable":true,"type":"string"},"received_at":{"format":"date-time","type":"string"},"recorded":{"allOf":[{"$ref":"#/components/schemas/BankRecordedExpense"}],"nullable":true},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["review","pending","recorded","ignored","dismissed"],"type":"string"},"transaction_deleted":{"type":"boolean"},"updated_at":{"format":"date-time","type":"string"},"user_id":{"format":"uuid","type":"string"}},"required":["id","user_id","provider","revision","state","reason","facts","recorded","received_at","updated_at","transaction_deleted"],"title":"BankAlert","type":"object"},"PlanTier":{"properties":{"availability":{"description":"open to all, by invitation or coupon, or not sold yet","enum":["open","invite","soon"],"type":"string"},"currency":{"nullable":true,"type":"string"},"key":{"description":"free, beta or plus","type":"string"},"limits":{"additionalProperties":{"nullable":true,"type":"integer"},"description":"Each limit's value; null means no limit","type":"object"},"name":{"type":"string"},"price_cents":{"nullable":true,"type":"integer"}},"required":["key","name","limits"],"title":"PlanTier","type":"object"},"ExchangeRatesResponse":{"properties":{"data":{"properties":{"base":{"example":"USD","type":"string"},"rates":{"additionalProperties":{"type":"string"},"description":"Currency code to its rate against the base, as a decimal string.","type":"object"}},"required":["base","rates"],"type":"object"}},"required":["data"],"title":"ExchangeRatesResponse","type":"object"},"ReceiptDraft":{"description":"What the photo says. Nothing is saved; the person confirms it as a movement.","properties":{"amount":{"description":"The total, as a decimal string","type":"string"},"category_id":{"format":"uuid","nullable":true,"type":"string"},"confidence":{"enum":["high","low"],"type":"string"},"date":{"format":"date","nullable":true,"type":"string"},"description":{"description":"The store's name","nullable":true,"type":"string"}},"required":["amount","confidence"],"title":"ReceiptDraft","type":"object"},"CouponRequest":{"properties":{"code":{"maxLength":40,"type":"string"}},"required":["code"],"title":"CouponRequest","type":"object"},"Daily review snapshot":{"properties":{"counts":{"properties":{"expense":{"type":"integer"},"income":{"type":"integer"},"total":{"type":"integer"}},"required":["total","expense","income"],"type":"object"},"date":{"format":"date","type":"string"},"fingerprint":{"type":"string"},"pagination":{"properties":{"page":{"type":"integer"},"per_page":{"type":"integer"},"total":{"type":"integer"},"total_pages":{"type":"integer"}},"required":["total","page","per_page"],"type":"object"},"pending_assistant_expenses":{"description":"Still-approvable external draft rows, excluded from recorded totals; must be resolved before confirming","maximum":1000,"minimum":0,"type":"integer"},"reopened":{"type":"boolean"},"reviewed_at":{"format":"date-time","nullable":true,"type":"string"},"scope_key":{"type":"string"},"scopes":{"items":{"type":"string"},"type":"array"},"state":{"enum":["pending","reviewed","no_expenses"],"type":"string"},"timezone":{"type":"string"},"totals":{"items":{"properties":{"currency":{"nullable":true,"type":"string"},"expense":{"description":"Exact decimal total in the original currency","type":"string"},"income":{"type":"string"}},"required":["currency","expense","income"],"type":"object"},"type":"array"},"transactions":{"items":{"$ref":"#/components/schemas/Transaction"},"type":"array"}},"required":["date","timezone","scopes","scope_key","fingerprint","state","reopened","pending_assistant_expenses","totals","counts","transactions","pagination"],"title":"Daily review snapshot","type":"object"},"AdminUserLimitsRequest":{"properties":{"overrides":{"additionalProperties":{"minimum":0,"nullable":true,"type":"integer"},"description":"Replaces every own limit. A key left out uses the plan's value again.","type":"object"}},"required":["overrides"],"title":"AdminUserLimitsRequest","type":"object"},"BankCaptureTokenResponse":{"properties":{"data":{"additionalProperties":false,"properties":{"device_id":{"format":"uuid","type":"string"},"expires_at":{"format":"date-time","type":"string"},"scope":{"enum":["bank-alerts:ingest"],"type":"string"},"source_id":{"format":"uuid","type":"string"},"source_revision":{"minimum":1,"type":"integer"},"token":{"maxLength":2052,"type":"string"},"user_id":{"format":"uuid","type":"string"}},"required":["token","user_id","source_id","source_revision","device_id","scope","expires_at"],"type":"object"}},"required":["data"],"title":"BankCaptureTokenResponse","type":"object"},"AdminVoiceReportListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/AdminVoiceReport"},"type":"array"},"meta":{"properties":{"page":{"type":"integer"},"per_page":{"type":"integer"},"total":{"type":"integer"},"total_pages":{"type":"integer"}},"type":"object"}},"required":["data","meta"],"title":"AdminVoiceReportListResponse","type":"object"},"BankAlertReview":{"additionalProperties":false,"properties":{"alert_id":{"format":"uuid","type":"string"},"decision":{"enum":["record","dismiss"],"type":"string"},"expected_revision":{"minimum":1,"type":"integer"},"request_id":{"format":"uuid","type":"string"},"transaction":{"allOf":[{"$ref":"#/components/schemas/BankReviewedExpense"}],"nullable":true}},"required":["request_id","alert_id","expected_revision","decision"],"title":"BankAlertReview","type":"object"},"StartVoice":{"additionalProperties":false,"properties":{"request_id":{"format":"uuid","type":"string"},"sdp":{"maxLength":24000,"type":"string"}},"required":["request_id","sdp"],"title":"StartVoice","type":"object"},"ActivityChange":{"properties":{"after":{"maxLength":1000,"nullable":true,"type":"string"},"before":{"maxLength":1000,"nullable":true,"type":"string"},"field":{"type":"string"},"shortened":{"type":"boolean"}},"required":["field","before","after","shortened"],"title":"ActivityChange","type":"object"},"MobileSessionDeleted":{"properties":{"data":{"properties":{"deleted":{"type":"boolean"}},"type":"object"}},"title":"MobileSessionDeleted","type":"object"},"RetireBankRecovery":{"additionalProperties":false,"properties":{"capture":{"$ref":"#/components/schemas/RetireBankCapture"},"provider":{"enum":["bancolombia","nequi","global66","wise"],"type":"string"},"request_id":{"format":"uuid","type":"string"}},"required":["request_id","provider","capture"],"title":"RetireBankRecovery","type":"object"},"GroupInvitationAcceptResponse":{"properties":{"data":{"properties":{"already_member":{"type":"boolean"},"group_id":{"format":"uuid","type":"string"}},"required":["group_id","already_member"],"type":"object"}},"required":["data"],"title":"GroupInvitationAcceptResponse","type":"object"},"Budgets with current status":{"description":"Personal budgets, including inactive ones","properties":{"data":{"items":{"$ref":"#/components/schemas/Budget"},"type":"array"}},"required":["data"],"title":"Budgets with current status","type":"object"},"FeedbackRequest":{"description":"Parameters for submitting feedback","properties":{"category":{"enum":["bug","suggestion","other"],"type":"string"},"content":{"maxLength":5000,"minLength":1,"type":"string"}},"required":["content"],"title":"FeedbackRequest","type":"object"},"CapitalOperationRequest":{"additionalProperties":false,"properties":{"action":{"enum":["create","update","delete"],"type":"string"},"entry":{"description":"Full reviewed draft for create/update; empty for delete","oneOf":[{"$ref":"#/components/schemas/PersonalCapitalDraft"},{"maxProperties":0,"type":"object"}]},"entry_id":{"format":"uuid","type":"string"},"observed_updated_at":{"description":"Exact current version, required except create","format":"date-time","type":"string"},"request_id":{"format":"uuid","type":"string"}},"required":["request_id","action"],"title":"CapitalOperationRequest","type":"object"},"Conversation":{"description":"A chat conversation with message history","properties":{"id":{"format":"uuid","type":"string"},"inserted_at":{"format":"date-time","type":"string"},"messages":{"items":{"properties":{"content":{"type":"string"},"role":{"enum":["user","assistant"],"type":"string"}},"type":"object"},"type":"array"},"model":{"nullable":true,"type":"string"},"title":{"nullable":true,"type":"string"},"updated_at":{"format":"date-time","type":"string"}},"required":["id","title","messages"],"title":"Conversation","type":"object"},"BankSourcesResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/BankCaptureSource"},"maxItems":4,"type":"array"}},"required":["data"],"title":"BankSourcesResponse","type":"object"},"ExactPeopleMatch":{"nullable":true,"properties":{"alias":{"description":"Present only for alias lookup","nullable":true,"type":"string"},"already_member":{"type":"boolean"},"name":{"nullable":true,"type":"string"},"selection":{"description":"Opaque account/group-bound selection; expires in five minutes. Never a membership grant.","type":"string"}},"required":["name","alias","already_member","selection"],"title":"ExactPeopleMatch","type":"object"},"JsonImportPreview":{"properties":{"entity_counts":{"additionalProperties":{"type":"integer"},"type":"object"},"exported_at":{"nullable":true,"type":"string"},"transaction_preview":{"items":{"properties":{"amount":{"type":"string"},"currency":{"nullable":true,"type":"string"},"date":{"format":"date","nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"type":{"enum":["income","expense"],"type":"string"}},"type":"object"},"type":"array"},"version":{"type":"integer"}},"title":"JsonImportPreview","type":"object"},"AdminUserUpdateRequest":{"description":"Only the fields present are changed","properties":{"admin_password":{"type":"string"},"country":{"description":"Empty string clears it","nullable":true,"type":"string"},"currency":{"type":"string"},"daily_reminders_enabled":{"type":"boolean"},"email":{"type":"string"},"feedback_bubble_enabled":{"type":"boolean"},"first_name":{"type":"string"},"labs_enabled":{"type":"boolean"},"language":{"type":"string"},"notifications_enabled":{"type":"boolean"},"timezone":{"type":"string"},"username":{"type":"string"}},"required":["admin_password"],"title":"AdminUserUpdateRequest","type":"object"},"CapitalOperationReceipt":{"properties":{"data":{"properties":{"action":{"enum":["create","update","delete"],"type":"string"},"entry":{"allOf":[{"$ref":"#/components/schemas/CapitalAsset"}],"description":"Immutable historical result; refresh the asset separately for its current state","nullable":true},"entry_id":{"format":"uuid","nullable":true,"type":"string"},"request_id":{"format":"uuid","type":"string"},"scope":{"enum":["personal"],"type":"string"},"state":{"enum":["committed","cancelled"],"type":"string"}},"required":["request_id","entry_id","action","scope","state"],"type":"object"}},"title":"CapitalOperationReceipt","type":"object"},"AdminReviewImage":{"description":"Image metadata for review; fetch the bytes from /feedback-images/{id}/raw","properties":{"admin_notes":{"nullable":true,"type":"string"},"content_type":{"type":"string"},"feedback":{"description":"The feedback the image belongs to","properties":{"content":{"type":"string"},"id":{"format":"uuid","type":"string"},"status":{"type":"string"},"user":{"nullable":true,"properties":{"email":{"nullable":true,"type":"string"},"first_name":{"nullable":true,"type":"string"},"id":{"format":"uuid","type":"string"}},"type":"object"}},"type":"object"},"feedback_id":{"format":"uuid","type":"string"},"filename":{"type":"string"},"id":{"format":"uuid","type":"string"},"inserted_at":{"format":"date-time","type":"string"},"review_status":{"enum":["pending","reviewed","needs_ai_improvement","needs_revision"],"type":"string"},"reviewed_at":{"format":"date-time","nullable":true,"type":"string"},"reviewed_by":{"nullable":true,"properties":{"email":{"nullable":true,"type":"string"},"first_name":{"nullable":true,"type":"string"},"id":{"format":"uuid","type":"string"}},"type":"object"},"size":{"type":"integer"}},"title":"AdminReviewImage","type":"object"},"CancelBankImportCommand":{"additionalProperties":false,"properties":{"command":{"oneOf":[{"$ref":"#/components/schemas/BankSourceCommand"},{"$ref":"#/components/schemas/BankAlertReview"},{"$ref":"#/components/schemas/BankAlertCapture"},{"$ref":"#/components/schemas/RecoverBankCapture"},{"$ref":"#/components/schemas/RetireBankCapture"},{"$ref":"#/components/schemas/RetireBankRecovery"}]},"kind":{"enum":["configure","resolve","ingest","recover","retire_ingest","retire_recover"],"type":"string"}},"required":["kind","command"],"title":"CancelBankImportCommand","type":"object"},"BankCaptureAcknowledgmentResponse":{"properties":{"data":{"additionalProperties":false,"properties":{"reason":{"type":"string"},"request_id":{"format":"uuid","type":"string"},"state":{"enum":["recorded","already_recorded","pending","review","ignored","dismissed","rejected","cancelled"],"type":"string"}},"required":["request_id","state"],"type":"object"}},"required":["data"],"title":"BankCaptureAcknowledgmentResponse","type":"object"},"CategorySuggestRequest":{"description":"What a new transaction is for","properties":{"description":{"maxLength":500,"type":"string"},"type":{"enum":["income","expense"],"type":"string"}},"required":["description","type"],"title":"CategorySuggestRequest","type":"object"},"BudgetScorecard":{"description":"Monthly budget scorecard","items":{"properties":{"budget_id":{"format":"uuid","type":"string"},"budget_name":{"type":"string"},"limit":{"description":"Decimal budget limit","type":"string"},"percentage":{"description":"Percentage of budget used","type":"number"},"result":{"enum":["kept","exceeded"],"type":"string"},"spent":{"description":"Decimal spent amount","type":"string"}},"type":"object"},"title":"BudgetScorecard","type":"array"},"Budget":{"description":"A spending budget. spent, remaining, percentage, period_start and period_end are present on reads, not on create or update.","properties":{"active":{"type":"boolean"},"alert_threshold":{"type":"integer"},"amount":{"description":"Decimal amount","type":"string"},"category_id":{"format":"uuid","nullable":true,"type":"string"},"category_name":{"nullable":true,"type":"string"},"currency":{"type":"string"},"group_id":{"format":"uuid","nullable":true,"type":"string"},"id":{"format":"uuid","type":"string"},"inserted_at":{"format":"date-time","type":"string"},"name":{"nullable":true,"type":"string"},"percentage":{"type":"number"},"period":{"enum":["weekly","monthly","yearly"],"type":"string"},"period_end":{"format":"date","type":"string"},"period_start":{"format":"date","type":"string"},"remaining":{"type":"string"},"spent":{"description":"Decimal spend converted to the budget currency","type":"string"},"updated_at":{"format":"date-time","type":"string"}},"required":["id","amount","period"],"title":"Budget","type":"object"},"AdminVoiceReportReviewRequest":{"properties":{"notes":{"nullable":true,"type":"string"}},"title":"AdminVoiceReportReviewRequest","type":"object"},"NoticeResponse":{"properties":{"data":{"$ref":"#/components/schemas/Notice"}},"required":["data"],"title":"NoticeResponse","type":"object"},"AndroidReleaseResponse":{"properties":{"data":{"properties":{"build":{"type":"integer"},"sha256":{"type":"string"},"size_bytes":{"type":"integer"},"url":{"description":"Short-lived download link","type":"string"},"version":{"type":"string"}},"required":["version","build","size_bytes","sha256","url"],"type":"object"}},"required":["data"],"title":"AndroidReleaseResponse","type":"object"},"BankImportReceiptResponse":{"properties":{"data":{"$ref":"#/components/schemas/BankImportReceipt"}},"required":["data"],"title":"BankImportReceiptResponse","type":"object"},"IssueGroupInvitation":{"additionalProperties":false,"properties":{"kind":{"description":"QR expires in 30 minutes; shared link in 24 hours","enum":["qr","link"],"type":"string"},"replace_id":{"format":"uuid","nullable":true,"type":"string"}},"required":["kind"],"title":"IssueGroupInvitation","type":"object"},"BudgetStatus":{"properties":{"data":{"properties":{"days_remaining":{"type":"integer"},"limit":{"type":"string"},"percentage":{"type":"number"},"period_end":{"format":"date","type":"string"},"period_start":{"format":"date","type":"string"},"remaining":{"type":"string"},"spent":{"type":"string"},"tier":{"enum":["on_track","halfway","warning","danger","exceeded"],"type":"string"}},"type":"object"}},"required":["data"],"title":"BudgetStatus","type":"object"},"ApiKey":{"description":"An API key (raw key never shown after creation)","properties":{"expires_at":{"format":"date-time","nullable":true,"type":"string"},"id":{"format":"uuid","type":"string"},"inserted_at":{"format":"date-time","type":"string"},"key_prefix":{"description":"First characters of the key","type":"string"},"kind":{"enum":["user","app"],"type":"string"},"last_used_at":{"format":"date-time","nullable":true,"type":"string"},"name":{"type":"string"},"request_count":{"description":"Total API requests made with this key","type":"integer"}},"required":["id","name","key_prefix","kind"],"title":"ApiKey","type":"object"},"BankCaptureDestinationsResponse":{"properties":{"data":{"properties":{"items":{"items":{"properties":{"currency":{"nullable":true,"type":"string"},"id":{"format":"uuid","type":"string"},"name":{"maxLength":50,"type":"string"}},"required":["id","name","currency"],"type":"object"},"maxItems":1000,"type":"array"},"scope":{"enum":["personal"],"type":"string"},"user_id":{"format":"uuid","type":"string"}},"required":["scope","user_id","items"],"type":"object"}},"required":["data"],"title":"BankCaptureDestinationsResponse","type":"object"},"GroupUpdateRequest":{"properties":{"emoji":{"nullable":true,"type":"string"},"features":{"description":"Per-group toggles; features are not returned in Group","properties":{"alerts":{"type":"boolean"},"budgets":{"type":"boolean"},"capital":{"type":"boolean"},"recurring":{"type":"boolean"},"rules":{"type":"boolean"}},"type":"object"},"name":{"type":"string"}},"title":"GroupUpdateRequest","type":"object"},"ReminderResponse":{"properties":{"data":{"$ref":"#/components/schemas/ReminderSettings"}},"required":["data"],"title":"ReminderResponse","type":"object"},"ObservedProposal":{"additionalProperties":false,"properties":{"fingerprint":{"maxLength":64,"minLength":64,"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["revision","fingerprint"],"title":"ObservedProposal","type":"object"},"GroupInvitationListResponse":{"properties":{"data":{"items":{"properties":{"expires_at":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"inserted_at":{"format":"date-time","type":"string"},"kind":{"enum":["qr","link"],"type":"string"},"revoked_at":{"format":"date-time","nullable":true,"type":"string"},"status":{"enum":["active","expired","used","revoked","inactive"],"type":"string"},"used_at":{"format":"date-time","nullable":true,"type":"string"}},"required":["id","kind","expires_at","inserted_at","revoked_at","used_at","status"],"type":"object"},"type":"array"},"meta":{"properties":{"page":{"type":"integer"},"per_page":{"type":"integer"},"total":{"type":"integer"},"total_pages":{"type":"integer"}},"required":["page","per_page","total","total_pages"],"type":"object"}},"required":["data","meta"],"title":"GroupInvitationListResponse","type":"object"},"PrepareTransactions":{"additionalProperties":false,"properties":{"request_id":{"format":"uuid","type":"string"},"transactions":{"items":{"$ref":"#/components/schemas/ProposedTransaction"},"maxItems":10,"minItems":1,"type":"array"}},"required":["request_id","transactions"],"title":"PrepareTransactions","type":"object"},"CashFlowForecast":{"description":"Financial position forecast for a future date","properties":{"currency":{"type":"string"},"days_ahead":{"type":"integer"},"expected_expenses":{"type":"string"},"expected_income":{"type":"string"},"forecast_date":{"format":"date","type":"string"},"projected_net":{"type":"string"},"recurring_expenses":{"type":"string"},"recurring_income":{"type":"string"}},"required":["forecast_date","projected_net"],"title":"CashFlowForecast","type":"object"},"AccountDeletionVerifyResponse":{"description":"Only state and expires_at are returned; there is no browser_url","properties":{"data":{"properties":{"expires_at":{"format":"date-time","type":"string"},"state":{"type":"string"}},"required":["state","expires_at"],"type":"object"}},"required":["data"],"title":"AccountDeletionVerifyResponse","type":"object"},"CapitalAsset":{"description":"A capital asset (property, vehicle, etc.)","properties":{"acquired_on":{"format":"date","nullable":true,"type":"string"},"asset_type":{"enum":["investment","loan","debt","real_estate","vehicle_other"],"type":"string"},"currency":{"type":"string"},"display_details":{"additionalProperties":{"nullable":true,"type":"string"},"description":"Recognized scalar metadata as exact text; original metadata remains unchanged","type":"object"},"gross_value":{"description":"Decimal amount","type":"string"},"group_id":{"format":"uuid","nullable":true,"type":"string"},"id":{"format":"uuid","type":"string"},"inserted_at":{"format":"date-time","type":"string"},"liability":{"description":"Decimal amount","type":"string"},"metadata":{"type":"object"},"name":{"type":"string"},"notes":{"nullable":true,"type":"string"},"updated_at":{"format":"date-time","type":"string"}},"required":["id","name","asset_type","gross_value","liability"],"title":"CapitalAsset","type":"object"},"SpendingProjection":{"description":"Projected month-end spending based on current pace","properties":{"category":{"nullable":true,"type":"string"},"currency":{"type":"string"},"daily_rate":{"description":"Average daily spending rate","type":"string"},"days_elapsed":{"type":"integer"},"days_remaining":{"type":"integer"},"pace":{"enum":["under","on_track","over"],"type":"string"},"projected":{"description":"Projected month-end expense","type":"string"},"vs_prev_pct":{"description":"% change vs last month","nullable":true,"type":"number"}},"required":["projected","daily_rate","days_elapsed","days_remaining","pace"],"title":"SpendingProjection","type":"object"},"AdminFeedbackReplyResponse":{"properties":{"data":{"$ref":"#/components/schemas/AdminFeedbackReply"}},"required":["data"],"title":"AdminFeedbackReplyResponse","type":"object"},"AdminUserListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/AdminUserSummary"},"type":"array"},"meta":{"properties":{"page":{"type":"integer"},"per_page":{"type":"integer"},"total":{"type":"integer"},"total_pages":{"type":"integer"}},"type":"object"}},"required":["data","meta"],"title":"AdminUserListResponse","type":"object"},"PlanSwitchRequest":{"properties":{"plan":{"description":"Key of an open plan, e.g. free","type":"string"}},"required":["plan"],"title":"PlanSwitchRequest","type":"object"},"AdminReviewImageResponse":{"properties":{"data":{"$ref":"#/components/schemas/AdminReviewImage"}},"required":["data"],"title":"AdminReviewImageResponse","type":"object"},"AccountDeletionConfirmation":{"additionalProperties":false,"properties":{"confirm":{"enum":[true],"type":"boolean"},"deletion_proof":{"pattern":"^[A-Za-z0-9_-]{43}$","type":"string"}},"required":["deletion_proof","confirm"],"title":"AccountDeletionConfirmation","type":"object"},"AdminUserRoleRequest":{"properties":{"admin_password":{"type":"string"},"role":{"enum":["admin","user"],"type":"string"}},"required":["role","admin_password"],"title":"AdminUserRoleRequest","type":"object"},"MobileAuthError":{"properties":{"error":{"properties":{"code":{"type":"string"},"details":{"nullable":true,"type":"object"},"message":{"type":"string"}},"type":"object"}},"title":"MobileAuthError","type":"object"},"SendMessageRequest":{"description":"Send a message to the chat assistant","properties":{"conversation_id":{"description":"Existing conversation ID to continue, or null for new","format":"uuid","nullable":true,"type":"string"},"message":{"description":"User message text","type":"string"}},"required":["message"],"title":"SendMessageRequest","type":"object"},"Daily review confirmation":{"properties":{"fingerprint":{"maxLength":64,"minLength":64,"type":"string"},"scopes":{"items":{"type":"string"},"maxItems":50,"minItems":1,"type":"array"},"state":{"enum":["reviewed","no_expenses"],"type":"string"},"timezone":{"type":"string"}},"required":["state","fingerprint"],"title":"Daily review confirmation","type":"object"},"AdminReviewImageDeleteResponse":{"properties":{"data":{"properties":{"deleted":{"type":"boolean"},"id":{"format":"uuid","type":"string"}},"type":"object"}},"required":["data"],"title":"AdminReviewImageDeleteResponse","type":"object"},"PeopleInvitationList":{"properties":{"data":{"items":{"$ref":"#/components/schemas/PeopleInvitation"},"type":"array"},"meta":{"$ref":"#/components/schemas/PeoplePagination"}},"required":["data","meta"],"title":"PeopleInvitationList","type":"object"},"ActivityLog":{"description":"An activity log entry","properties":{"description":{"nullable":true,"type":"string"},"display":{"$ref":"#/components/schemas/ActivityDisplay"},"event_type":{"type":"string"},"id":{"format":"uuid","type":"string"},"inserted_at":{"format":"date-time","type":"string"},"metadata":{"type":"object"},"resource_id":{"nullable":true,"type":"string"},"resource_type":{"type":"string"}},"required":["id","event_type","resource_type"],"title":"ActivityLog","type":"object"},"UserUpdateRequest":{"description":"Parameters for updating user settings","properties":{"country":{"type":"string"},"currency":{"type":"string"},"daily_reminders_enabled":{"type":"boolean"},"features":{"additionalProperties":{"type":"boolean"},"description":"Only the switches to change; the others keep their state","type":"object"},"feedback_bubble_enabled":{"type":"boolean"},"language":{"type":"string"},"notifications_enabled":{"type":"boolean"},"reminder_hour":{"maximum":23,"minimum":0,"type":"integer"},"timezone":{"type":"string"},"tips_enabled":{"type":"boolean"}},"title":"UserUpdateRequest","type":"object"},"RecurringOperationReceipt":{"properties":{"data":{"properties":{"action":{"enum":["create","update","set_active","delete"],"type":"string"},"entry":{"allOf":[{"$ref":"#/components/schemas/RecurringEntry"}],"description":"Immutable result at commit time; current state may differ","nullable":true},"entry_id":{"format":"uuid","nullable":true,"type":"string"},"request_id":{"format":"uuid","type":"string"},"scope":{"enum":["personal","group"],"type":"string"},"state":{"enum":["committed","cancelled"],"type":"string"}},"required":["request_id","entry_id","action","state","scope"],"type":"object"}},"title":"RecurringOperationReceipt","type":"object"},"AdminReviewImageRequest":{"description":"Only the fields present are changed","properties":{"admin_notes":{"nullable":true,"type":"string"},"admin_password":{"type":"string"},"review_status":{"enum":["pending","reviewed","needs_ai_improvement","needs_revision"],"type":"string"}},"required":["admin_password"],"title":"AdminReviewImageRequest","type":"object"},"CapitalPreview":{"properties":{"data":{"properties":{"entry":{"$ref":"#/components/schemas/PersonalCapitalDraft"},"net_value":{"description":"Gross minus liability in the explicitly selected currency; not a market quote","type":"string"},"registers_asset_only":{"enum":[true],"type":"boolean"},"scope":{"enum":["personal"],"type":"string"}},"required":["entry","net_value","scope","registers_asset_only"],"type":"object"}},"title":"CapitalPreview","type":"object"},"JsonImportResult":{"properties":{"errors":{"items":{"properties":{"detail":{"type":"string"},"type":{"type":"string"}},"type":"object"},"type":"array"},"imported":{"additionalProperties":{"type":"integer"},"type":"object"},"skipped":{"additionalProperties":{"type":"integer"},"type":"object"}},"title":"JsonImportResult","type":"object"},"AdminUserDetail":{"description":"The web admin drawer fields","properties":{"chat_data_consent":{"type":"boolean"},"chat_data_consent_at":{"format":"date-time","nullable":true,"type":"string"},"consent_given_at":{"format":"date-time","nullable":true,"type":"string"},"country":{"nullable":true,"type":"string"},"currency":{"type":"string"},"daily_reminders_enabled":{"type":"boolean"},"email":{"nullable":true,"type":"string"},"features":{"description":"Feature flag overrides","type":"object"},"feedback_bubble_enabled":{"type":"boolean"},"first_name":{"nullable":true,"type":"string"},"groups":{"items":{"properties":{"id":{"format":"uuid","type":"string"},"name":{"type":"string"}},"type":"object"},"type":"array"},"id":{"format":"uuid","type":"string"},"identities":{"items":{"properties":{"provider":{"type":"string"},"provider_email":{"nullable":true,"type":"string"},"provider_uid":{"type":"string"}},"type":"object"},"type":"array"},"inserted_at":{"format":"date-time","type":"string"},"invited_by":{"nullable":true,"properties":{"email":{"nullable":true,"type":"string"},"first_name":{"nullable":true,"type":"string"},"id":{"format":"uuid","type":"string"}},"type":"object"},"labs_enabled":{"type":"boolean"},"language":{"type":"string"},"last_active":{"format":"date-time","nullable":true,"type":"string"},"last_seen":{"format":"date-time","nullable":true,"type":"string"},"notifications_enabled":{"type":"boolean"},"preferences":{"type":"object"},"reminder_hour":{"nullable":true,"type":"integer"},"role":{"enum":["user","admin"],"type":"string"},"status":{"type":"string"},"timezone":{"nullable":true,"type":"string"},"tx_count":{"type":"integer"},"username":{"nullable":true,"type":"string"}},"title":"AdminUserDetail","type":"object"},"AdminFeedbackReply":{"properties":{"content":{"type":"string"},"id":{"format":"uuid","type":"string"},"images":{"items":{"$ref":"#/components/schemas/AdminFeedbackImage"},"type":"array"},"inserted_at":{"format":"date-time","type":"string"},"role":{"enum":["user","admin"],"type":"string"},"user":{"$ref":"#/components/schemas/AdminFeedbackUser"}},"title":"AdminFeedbackReply","type":"object"},"GroupInvitationLinkResponse":{"properties":{"data":{"properties":{"expires_at":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"kind":{"enum":["qr","link"],"type":"string"},"url":{"description":"One-time bearer URL. Its fragment is not sent in HTTP access logs.","format":"uri","type":"string"}},"required":["id","kind","expires_at","url"],"type":"object"}},"required":["data"],"title":"GroupInvitationLinkResponse","type":"object"},"RulePreviewRequest":{"additionalProperties":false,"properties":{"entry":{"$ref":"#/components/schemas/PersonalRuleDraft"},"entry_id":{"format":"uuid","type":"string"},"sample":{"maxLength":1000,"minLength":1,"type":"string"}},"required":["entry","sample"],"title":"RulePreviewRequest","type":"object"},"MobileAuthStart":{"properties":{"code_challenge":{"description":"S256 PKCE challenge, base64url without padding","pattern":"^[A-Za-z0-9_-]{43}$","type":"string"},"platform":{"enum":["ios","android"],"type":"string"}},"required":["code_challenge","platform"],"title":"MobileAuthStart","type":"object"},"CapitalLoanResult":{"properties":{"data":{"properties":{"asset":{"$ref":"#/components/schemas/CapitalAsset"},"transaction_id":{"format":"uuid","nullable":true,"type":"string"}},"required":["asset","transaction_id"],"type":"object"}},"required":["data"],"title":"CapitalLoanResult","type":"object"},"PreferenceOptions":{"properties":{"data":{"properties":{"currencies":{"items":{"properties":{"code":{"type":"string"},"flag":{"type":"string"},"symbol":{"type":"string"}},"type":"object"},"type":"array"},"languages":{"items":{"type":"string"},"type":"array"},"timezones":{"items":{"type":"string"},"type":"array"}},"type":"object"}},"required":["data"],"title":"PreferenceOptions","type":"object"},"PeoplePagination":{"properties":{"page":{"type":"integer"},"per_page":{"type":"integer"},"total":{"type":"integer"},"total_pages":{"type":"integer"}},"required":["page","per_page","total","total_pages"],"title":"PeoplePagination","type":"object"},"AdminCouponCreateRequest":{"properties":{"code":{"type":"string"},"duration_months":{"nullable":true,"type":"integer"},"expires_on":{"description":"Last day it can be redeemed, until 23:59:59 UTC.","format":"date","nullable":true,"type":"string"},"max_redemptions":{"nullable":true,"type":"integer"},"percent_off":{"type":"integer"},"plan_key":{"type":"string"}},"required":["code","percent_off","plan_key"],"title":"AdminCouponCreateRequest","type":"object"},"AdminFeedbackListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/AdminFeedbackSummary"},"type":"array"},"meta":{"properties":{"page":{"type":"integer"},"per_page":{"type":"integer"},"total":{"type":"integer"},"total_pages":{"type":"integer"}},"type":"object"}},"required":["data","meta"],"title":"AdminFeedbackListResponse","type":"object"},"PlanLimit":{"properties":{"daily":{"type":"boolean"},"granted":{"description":"Extra uses an admin gave for this period, on top of the limit","type":"integer"},"key":{"type":"string"},"limit":{"description":"null means no limit","nullable":true,"type":"integer"},"period":{"description":"How often the use starts again; null for a running count","enum":["day","month"],"nullable":true,"type":"string"},"resets_at":{"format":"date-time","nullable":true,"type":"string"},"used":{"description":"This period's use, or how many the person has now","type":"integer"}},"required":["key","limit","used","daily"],"title":"PlanLimit","type":"object"},"BankRecordedExpense":{"additionalProperties":false,"properties":{"account_id":{"format":"uuid","nullable":true,"type":"string"},"amount":{"type":"string"},"category_id":{"format":"uuid","nullable":true,"type":"string"},"currency":{"type":"string"},"date":{"format":"date","type":"string"},"description":{"nullable":true,"type":"string"},"group_id":{"enum":[null],"nullable":true,"type":"string"},"id":{"format":"uuid","type":"string"},"reported_merchant":{"nullable":true,"type":"string"},"type":{"enum":["expense"],"type":"string"}},"title":"BankRecordedExpense","type":"object"},"Account":{"description":"Where money was paid from or received into, such as a card or a bank account. No account means cash.","properties":{"currency":{"description":"When set, only movements in this currency may use it","nullable":true,"type":"string"},"group_id":{"format":"uuid","nullable":true,"type":"string"},"icon":{"description":"Its kind: debit_card, credit_card, bank or wallet (other)","type":"string"},"id":{"format":"uuid","type":"string"},"name":{"type":"string"},"owner_name":{"description":"In a group's list, the member another person's account belongs to","type":"string"},"user_id":{"description":"The person a personal account belongs to","format":"uuid","nullable":true,"type":"string"}},"required":["id","name"],"title":"Account","type":"object"},"ApiKeyCreated":{"description":"Newly created API key with raw key (shown once)","properties":{"expires_at":{"format":"date-time","nullable":true,"type":"string"},"id":{"format":"uuid","type":"string"},"inserted_at":{"format":"date-time","type":"string"},"key_prefix":{"type":"string"},"kind":{"enum":["user","app"],"type":"string"},"last_used_at":{"format":"date-time","nullable":true,"type":"string"},"name":{"type":"string"},"raw_key":{"description":"Full API key (shown only once)","type":"string"},"request_count":{"description":"Total API requests made with this key","type":"integer"}},"required":["id","name","key_prefix","kind","raw_key"],"title":"ApiKeyCreated","type":"object"},"CapitalLoanRequest":{"description":"Opens a loan the user made (lent) or a debt the user owes (borrowed). Repeating a request_id returns the asset and movement already written. date defaults to today in the account timezone and record_movement to true.","properties":{"amount":{"description":"Decimal amount above 0, at most 2 decimals","type":"string"},"currency":{"description":"A supported currency code","type":"string"},"date":{"format":"date","type":"string"},"direction":{"enum":["lent","borrowed"],"type":"string"},"note":{"maxLength":500,"nullable":true,"type":"string"},"person":{"maxLength":120,"minLength":1,"type":"string"},"record_movement":{"description":"Also record an expense (lent) or income (borrowed) movement","type":"boolean"},"request_id":{"format":"uuid","type":"string"}},"required":["request_id","direction","person","amount","currency"],"title":"CapitalLoanRequest","type":"object"},"AccountDeleted":{"properties":{"data":{"properties":{"deleted":{"type":"boolean"}},"type":"object"}},"title":"AccountDeleted","type":"object"},"AdminUserGrantRequest":{"properties":{"key":{"description":"A daily or monthly limit key","type":"string"},"uses":{"maximum":1000,"minimum":1,"type":"integer"}},"required":["key","uses"],"title":"AdminUserGrantRequest","type":"object"},"Sync":{"description":"Opaque token that changes whenever anything the account can read may have changed","properties":{"parts":{"additionalProperties":{"type":"object"},"description":"Home reads by name, each exactly as its own endpoint returns it; a part that failed is left out","type":"object"},"token":{"type":"string"}},"required":["token"],"title":"Sync","type":"object"},"Features":{"description":"Feature toggle states","properties":{"accounts":{"type":"boolean"},"activity":{"type":"boolean"},"alerts":{"type":"boolean"},"budgets":{"type":"boolean"},"capital":{"type":"boolean"},"chat":{"type":"boolean"},"groups":{"type":"boolean"},"import":{"type":"boolean"},"receipts":{"type":"boolean"},"recurring":{"type":"boolean"},"rules":{"type":"boolean"}},"title":"Features","type":"object"},"VoiceInterpretRequest":{"additionalProperties":false,"properties":{"context":{"additionalProperties":false,"description":"Optional form state. group_id fixes the scope and must be a group the account belongs to; date, currency and type are defaults that spoken values override. spoken_at is when a dictation kept offline was spoken, at most 7 days ago; relative days count from that local day. always_ai sends every question to the chat model, spending a chat message.","nullable":true,"properties":{"always_ai":{"nullable":true,"type":"boolean"},"currency":{"maxLength":3,"minLength":3,"nullable":true,"type":"string"},"date":{"format":"date","nullable":true,"type":"string"},"group_id":{"format":"uuid","nullable":true,"type":"string"},"spoken_at":{"format":"date-time","nullable":true,"type":"string"},"type":{"enum":["expense","income"],"nullable":true,"type":"string"}},"type":"object"},"request_id":{"format":"uuid","type":"string"},"text":{"maxLength":1000,"minLength":1,"type":"string"}},"required":["request_id","text"],"title":"VoiceInterpretRequest","type":"object"},"PeopleInvitationResponse":{"properties":{"data":{"$ref":"#/components/schemas/PeopleInvitation"}},"required":["data"],"title":"PeopleInvitationResponse","type":"object"},"TransactionProposal":{"properties":{"committed_at":{"format":"date-time","nullable":true,"type":"string"},"expires_at":{"format":"date-time","type":"string"},"fingerprint":{"type":"string"},"id":{"format":"uuid","type":"string"},"request_id":{"format":"uuid","type":"string"},"result":{"description":"Immutable original creation receipt, not current transaction state","nullable":true,"properties":{"transactions":{"items":{"$ref":"#/components/schemas/Transaction"},"type":"array"}},"type":"object"},"revision":{"type":"integer"},"state":{"enum":["pending","expired","cancelled","committed"],"type":"string"},"transactions":{"items":{"$ref":"#/components/schemas/ProposedTransaction"},"type":"array"}},"required":["id","request_id","revision","fingerprint","state","transactions","expires_at"],"title":"TransactionProposal","type":"object"},"AdminUserDeleteResponse":{"properties":{"data":{"properties":{"deleted":{"type":"boolean"},"id":{"format":"uuid","type":"string"}},"type":"object"}},"required":["data"],"title":"AdminUserDeleteResponse","type":"object"},"ConversationListItem":{"description":"A conversation without full message history","properties":{"id":{"format":"uuid","type":"string"},"inserted_at":{"format":"date-time","type":"string"},"message_count":{"type":"integer"},"model":{"nullable":true,"type":"string"},"title":{"nullable":true,"type":"string"},"updated_at":{"format":"date-time","type":"string"}},"required":["id","title"],"title":"ConversationListItem","type":"object"},"CategorySuggestResponse":{"description":"The suggested category, or null when none fits well enough","properties":{"data":{"properties":{"category_id":{"format":"uuid","nullable":true,"type":"string"}},"type":"object"}},"title":"CategorySuggestResponse","type":"object"},"ReceiptImage":{"properties":{"content_type":{"type":"string"},"id":{"format":"uuid","type":"string"},"inserted_at":{"format":"date-time","type":"string"},"size":{"type":"integer"}},"required":["id","content_type","size"],"title":"ReceiptImage","type":"object"},"AdminCouponRedemptionListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/AdminCouponRedemption"},"type":"array"}},"required":["data"],"title":"AdminCouponRedemptionListResponse","type":"object"},"AdminReviewImageListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/AdminReviewImage"},"type":"array"},"meta":{"properties":{"page":{"type":"integer"},"per_page":{"type":"integer"},"total":{"type":"integer"},"total_pages":{"type":"integer"}},"type":"object"}},"required":["data","meta"],"title":"AdminReviewImageListResponse","type":"object"},"PeopleInvitation":{"properties":{"expires_at":{"format":"date-time","type":"string"},"group_emoji":{"nullable":true,"type":"string"},"group_id":{"format":"uuid","type":"string"},"group_name":{"nullable":true,"type":"string"},"id":{"format":"uuid","type":"string"},"inserted_at":{"format":"date-time","type":"string"},"recipient_alias":{"nullable":true,"type":"string"},"recipient_id":{"format":"uuid","nullable":true,"type":"string"},"recipient_name":{"nullable":true,"type":"string"},"sender_alias":{"nullable":true,"type":"string"},"sender_id":{"format":"uuid","type":"string"},"sender_name":{"nullable":true,"type":"string"},"status":{"enum":["pending","accepted","declined","revoked","expired","inactive"],"type":"string"}},"required":["id","group_id","group_name","group_emoji","sender_id","sender_name","sender_alias","recipient_name","recipient_alias","status","expires_at","inserted_at"],"title":"PeopleInvitation","type":"object"},"ImportResult":{"description":"Result of CSV import execution","properties":{"errors":{"items":{"properties":{"error":{"type":"string"},"row_number":{"type":"integer"}},"type":"object"},"type":"array"},"imported":{"type":"integer"},"skipped":{"type":"integer"}},"title":"ImportResult","type":"object"},"ReminderSettings":{"properties":{"enabled":{"type":"boolean"},"hour":{"maximum":23,"minimum":0,"type":"integer"},"is_primary_device":{"type":"boolean"},"minute":{"maximum":59,"minimum":0,"type":"integer"},"primary_device_name":{"nullable":true,"type":"string"},"timezone":{"type":"string"},"updated_at":{"format":"date-time","nullable":true,"type":"string"},"weekdays":{"items":{"maximum":7,"minimum":1,"type":"integer"},"maxItems":7,"minItems":1,"type":"array","uniqueItems":true}},"required":["enabled","hour","minute","weekdays","timezone","is_primary_device"],"title":"ReminderSettings","type":"object"},"VoiceSessionResponse":{"properties":{"data":{"properties":{"expires_at":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"request_id":{"format":"uuid","type":"string"},"sdp":{"description":"WebRTC answer, only for an active unexpired allocation","type":"string"},"state":{"enum":["starting","active","closing","closed","failed","expired"],"type":"string"}},"required":["id","request_id","state","expires_at"],"type":"object"}},"required":["data"],"title":"VoiceSessionResponse","type":"object"},"Streak":{"description":"Transaction tracking streak","properties":{"current_streak":{"description":"Current consecutive days","type":"integer"},"longest_streak":{"description":"Longest consecutive days","type":"integer"}},"required":["current_streak","longest_streak"],"title":"Streak","type":"object"},"GroupInvitationToken":{"additionalProperties":false,"properties":{"token":{"maxLength":43,"minLength":43,"type":"string"}},"required":["token"],"title":"GroupInvitationToken","type":"object"},"AdminCoupon":{"properties":{"active":{"type":"boolean"},"code":{"type":"string"},"duration_months":{"nullable":true,"type":"integer"},"expires_at":{"format":"date-time","nullable":true,"type":"string"},"id":{"format":"uuid","type":"string"},"inserted_at":{"format":"date-time","type":"string"},"max_redemptions":{"nullable":true,"type":"integer"},"percent_off":{"type":"integer"},"plan_key":{"type":"string"},"redemptions_count":{"type":"integer"}},"title":"AdminCoupon","type":"object"},"AdminUserMergeRequest":{"description":"All data of source_id moves into target_id and source_id is deleted","properties":{"admin_password":{"type":"string"},"source_id":{"format":"uuid","type":"string"},"target_id":{"format":"uuid","type":"string"}},"required":["source_id","target_id","admin_password"],"title":"AdminUserMergeRequest","type":"object"},"Category":{"description":"A transaction category","properties":{"children":{"items":{"properties":{"emoji":{"nullable":true,"type":"string"},"id":{"format":"uuid","type":"string"},"name":{"type":"string"}},"type":"object"},"nullable":true,"type":"array"},"display_name":{"type":"string"},"editable":{"description":"Listings only: whether the caller may change or delete it","type":"boolean"},"emoji":{"nullable":true,"type":"string"},"equivalent_ids":{"items":{"format":"uuid","type":"string"},"type":"array"},"group_id":{"format":"uuid","nullable":true,"type":"string"},"group_name":{"nullable":true,"type":"string"},"id":{"format":"uuid","type":"string"},"inserted_at":{"format":"date-time","type":"string"},"key":{"nullable":true,"type":"string"},"name":{"type":"string"},"parent_id":{"format":"uuid","nullable":true,"type":"string"},"type":{"enum":["income","expense"],"type":"string"},"updated_at":{"format":"date-time","type":"string"}},"required":["id","name","type"],"title":"Category","type":"object"},"CapitalAssetRequest":{"description":"On create, asset_type, name and gross_value are required; currency defaults to USD and liability to 0. Updates are partial.","properties":{"acquired_on":{"format":"date","nullable":true,"type":"string"},"asset_type":{"enum":["investment","loan","debt","real_estate","vehicle_other"],"type":"string"},"currency":{"description":"A supported currency code","type":"string"},"gross_value":{"description":"Decimal amount, 0 or more","type":"string"},"liability":{"description":"Decimal amount, 0 or more","type":"string"},"metadata":{"type":"object"},"name":{"maxLength":200,"type":"string"},"notes":{"nullable":true,"type":"string"}},"title":"CapitalAssetRequest","type":"object"},"BankCaptureTokenRequest":{"additionalProperties":false,"properties":{"device_id":{"format":"uuid","type":"string"},"source_revision":{"minimum":1,"type":"integer"}},"required":["device_id","source_revision"],"title":"BankCaptureTokenRequest","type":"object"},"PeopleExplicitAction":{"additionalProperties":false,"properties":{},"title":"PeopleExplicitAction","type":"object"},"UpdatePeopleDiscovery":{"additionalProperties":false,"properties":{"alias":{"description":"Choose a 3–32 character base; the server appends a private collision-resistant suffix. An unchanged full alias is also accepted.","maxLength":49,"nullable":true,"type":"string"},"discoverable_by_alias":{"type":"boolean"},"discoverable_by_email":{"type":"boolean"}},"title":"UpdatePeopleDiscovery","type":"object"},"PeopleDiscoverySettingsResponse":{"properties":{"data":{"$ref":"#/components/schemas/PeopleDiscoverySettings"}},"required":["data"],"title":"PeopleDiscoverySettingsResponse","type":"object"},"IssuePeopleInvitation":{"additionalProperties":false,"properties":{"selection":{"maxLength":2048,"type":"string"}},"required":["selection"],"title":"IssuePeopleInvitation","type":"object"},"RuleOperationRequest":{"additionalProperties":false,"properties":{"action":{"enum":["create","update","delete"],"type":"string"},"entry":{"description":"Full reviewed draft for create/update; empty for delete","oneOf":[{"$ref":"#/components/schemas/PersonalRuleDraft"},{"maxProperties":0,"type":"object"}]},"entry_id":{"format":"uuid","type":"string"},"observed_updated_at":{"description":"Exact current version, required except create","format":"date-time","type":"string"},"request_id":{"format":"uuid","type":"string"}},"required":["request_id","action"],"title":"RuleOperationRequest","type":"object"},"RecurringEntry":{"description":"A recurring income or expense entry","properties":{"amount":{"description":"Decimal amount","type":"string"},"category_id":{"format":"uuid","nullable":true,"type":"string"},"currency":{"type":"string"},"description":{"nullable":true,"type":"string"},"frequency":{"enum":["daily","weekly","biweekly","monthly","yearly"],"type":"string"},"group_id":{"format":"uuid","nullable":true,"type":"string"},"id":{"format":"uuid","type":"string"},"inserted_at":{"format":"date-time","type":"string"},"is_active":{"type":"boolean"},"last_generated_date":{"format":"date","nullable":true,"type":"string"},"metadata":{"type":"object"},"next_date":{"format":"date","nullable":true,"type":"string"},"type":{"enum":["income","expense"],"type":"string"},"updated_at":{"format":"date-time","type":"string"}},"required":["id","amount","type","frequency"],"title":"RecurringEntry","type":"object"},"PersonalCapitalDraft":{"additionalProperties":false,"properties":{"acquired_on":{"format":"date","nullable":true,"type":"string"},"asset_type":{"enum":["investment","loan","debt","real_estate","vehicle_other"],"type":"string"},"currency":{"description":"Explicit supported ISO currency","type":"string"},"details":{"description":"Type-specific text/null fields, at most 500 characters each. A shallow patch preserves all unedited legacy/provider metadata on update.","type":"object"},"gross_value":{"description":"Nonnegative exact decimal, at most 13 integer and 2 fractional digits","type":"string"},"liability":{"description":"Nonnegative exact decimal in the same currency","type":"string"},"name":{"maxLength":200,"type":"string"},"notes":{"maxLength":4000,"nullable":true,"type":"string"}},"required":["asset_type","name","gross_value","liability","currency"],"title":"PersonalCapitalDraft","type":"object"},"ImportPreview":{"description":"CSV import preview with parsed rows and suggested mappings","properties":{"account_mappings":{"description":"Suggested account mappings","type":"object"},"category_mappings":{"description":"Suggested category mappings","type":"object"},"duplicate_count":{"description":"Rows among those previewed that look like existing transactions","type":"integer"},"errors":{"items":{"properties":{"error":{"type":"string"},"row_number":{"type":"integer"}},"type":"object"},"type":"array"},"headers":{"items":{"type":"string"},"type":"array"},"provider":{"description":"Detected format provider","type":"string"},"rows":{"items":{"properties":{"account_name":{"nullable":true,"type":"string"},"amount":{"type":"string"},"category_name":{"nullable":true,"type":"string"},"currency":{"nullable":true,"type":"string"},"date":{"format":"date","type":"string"},"description":{"type":"string"},"type":{"enum":["income","expense"],"type":"string"}},"type":"object"},"type":"array"},"total_rows":{"type":"integer"}},"title":"ImportPreview","type":"object"},"ParsingRule":{"description":"A text parsing rule for automatic categorization","properties":{"active":{"description":"Paused rules never categorize new entries","type":"boolean"},"category_id":{"format":"uuid","type":"string"},"group_id":{"format":"uuid","nullable":true,"type":"string"},"id":{"format":"uuid","type":"string"},"inserted_at":{"format":"date-time","type":"string"},"pattern":{"description":"Literal text; case- and accent-insensitive, never a regular expression","type":"string"},"priority":{"description":"Rule priority (higher = first)","type":"integer"},"updated_at":{"format":"date-time","type":"string"}},"required":["id","pattern","priority","category_id"],"title":"ParsingRule","type":"object"},"ReceiptUpload":{"description":"A JPEG, PNG or WebP photo of a receipt, up to the upload size limit.","properties":{"group_id":{"description":"Scan only: read categories of this group the person belongs to","format":"uuid","type":"string"},"image":{"format":"binary","type":"string"}},"required":["image"],"title":"ReceiptUpload","type":"object"},"Insights":{"description":"Financial insights for the user, computed per request","properties":{"insights":{"description":"List of insight strings (max 5)","items":{"type":"string"},"type":"array"}},"title":"Insights","type":"object"},"PersonalRuleDraft":{"additionalProperties":false,"properties":{"active":{"type":"boolean"},"category_id":{"description":"Owned personal category","format":"uuid","type":"string"},"pattern":{"description":"Literal text, case- and accent-insensitive","maxLength":100,"minLength":1,"type":"string"},"priority":{"maximum":2147483647,"minimum":-2147483648,"type":"integer"}},"required":["pattern","category_id","priority","active"],"title":"PersonalRuleDraft","type":"object"},"PersonalRecurringDraft":{"additionalProperties":false,"properties":{"amount":{"description":"Positive decimal, up to 13 integer and 2 fractional digits","type":"string"},"category_id":{"format":"uuid","nullable":true,"type":"string"},"currency":{"description":"Explicit supported ISO currency","type":"string"},"description":{"maxLength":500,"nullable":true,"type":"string"},"frequency":{"enum":["daily","weekly","biweekly","monthly","yearly"],"type":"string"},"group_id":{"description":"Only when creating: a group the person belongs to","format":"uuid","type":"string"},"is_active":{"type":"boolean"},"next_date":{"format":"date","type":"string"},"type":{"enum":["income","expense"],"type":"string"}},"required":["amount","type","currency","frequency","next_date"],"title":"PersonalRecurringDraft","type":"object"},"AdminFeedbackImage":{"description":"Image metadata only; the bytes are not served to the app","properties":{"content_type":{"type":"string"},"filename":{"type":"string"},"id":{"format":"uuid","type":"string"},"inserted_at":{"format":"date-time","type":"string"},"review_status":{"type":"string"},"size":{"type":"integer"}},"title":"AdminFeedbackImage","type":"object"},"ErrorResponse":{"description":"Standard error response","properties":{"error":{"properties":{"code":{"description":"Machine-readable error code","type":"string"},"details":{"description":"Additional error details","type":"object"},"message":{"description":"Human-readable error message; some errors carry only a code","type":"string"}},"required":["code"],"type":"object"}},"required":["error"],"title":"ErrorResponse","type":"object"},"VoiceLoanDraft":{"description":"A loan or debt the person dictated. lent means the other person owes the user (a loan); borrowed means the user owes the other person (a debt). Nothing is written until the person confirms: open goes to POST /api/v1/capital/loans, payment to the payments route of one match. matches lists the open personal loans and debts, up to 10 of each type, newest first and the dictated direction's type first; for each type it is narrowed to the assets of the person named when any match, else all of that type.","properties":{"action":{"enum":["open","payment"],"type":"string"},"amount":{"description":"Decimal amount above 0, at most 2 decimals","type":"string"},"currency":{"type":"string"},"date":{"format":"date","type":"string"},"direction":{"enum":["lent","borrowed"],"type":"string"},"matches":{"items":{"properties":{"asset_type":{"enum":["loan","debt"],"type":"string"},"currency":{"type":"string"},"id":{"format":"uuid","type":"string"},"name":{"type":"string"},"outstanding":{"description":"Decimal amount still open","type":"string"},"person":{"nullable":true,"type":"string"}},"required":["id","name","person","outstanding","currency","asset_type"],"type":"object"},"maxItems":20,"type":"array"},"note":{"maxLength":500,"nullable":true,"type":"string"},"person":{"maxLength":120,"nullable":true,"type":"string"}},"required":["action","direction","person","amount","currency","date","note","matches"],"title":"VoiceLoanDraft","type":"object"},"DailyTotals":{"description":"Daily income/expense totals for charts","items":{"properties":{"amount":{"description":"Decimal amount","type":"string"},"date":{"format":"date","type":"string"},"type":{"enum":["income","expense"],"type":"string"}},"type":"object"},"title":"DailyTotals","type":"array"},"VoiceContextResponse":{"properties":{"data":{"properties":{"accounts":{"description":"Personal accounts and those of the person's groups; empty when the accounts feature is off.","items":{"properties":{"currency":{"nullable":true,"type":"string"},"group_id":{"format":"uuid","nullable":true,"type":"string"},"id":{"format":"uuid","type":"string"},"name":{"type":"string"}},"type":"object"},"type":"array"},"categories":{"items":{"properties":{"group_id":{"format":"uuid","nullable":true,"type":"string"},"id":{"format":"uuid","type":"string"},"name":{"type":"string"},"type":{"enum":["income","expense"],"type":"string"}},"type":"object"},"type":"array"},"currency":{"type":"string"},"groups":{"items":{"properties":{"id":{"format":"uuid","type":"string"},"name":{"type":"string"}},"type":"object"},"type":"array"},"language":{"type":"string"},"timezone":{"type":"string"},"today":{"format":"date","type":"string"}},"required":["today","currency","language","timezone","groups","categories","accounts"],"type":"object"}},"required":["data"],"title":"VoiceContextResponse","type":"object"},"Notice":{"properties":{"ends_at":{"description":"Hide it after this","format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"inserted_at":{"format":"date-time","type":"string"},"message":{"type":"string"}},"required":["id","message","ends_at"],"title":"Notice","type":"object"},"VoiceTotals":{"properties":{"category_id":{"format":"uuid","nullable":true,"type":"string"},"date_from":{"format":"date","type":"string"},"date_to":{"format":"date","type":"string"},"group_id":{"format":"uuid","nullable":true,"type":"string"},"totals":{"items":{"properties":{"amount":{"type":"string"},"currency":{"type":"string"},"type":{"enum":["expense","income"],"type":"string"}},"required":["currency","type","amount"],"type":"object"},"type":"array"}},"required":["date_from","date_to","totals"],"title":"VoiceTotals","type":"object"},"ParsingRuleRequest":{"description":"Parameters for creating or updating a parsing rule. On create, pattern and category_id are required.","properties":{"active":{"type":"boolean"},"category_id":{"format":"uuid","type":"string"},"pattern":{"description":"Trimmed and lowercased on save; a duplicate pattern returns 422","maxLength":100,"minLength":1,"type":"string"},"priority":{"type":"integer"}},"title":"ParsingRuleRequest","type":"object"},"RuleCategoryLabel":{"properties":{"emoji":{"nullable":true,"type":"string"},"id":{"format":"uuid","type":"string"},"name":{"type":"string"},"type":{"enum":["income","expense"],"type":"string"}},"required":["id","name","type"],"title":"RuleCategoryLabel","type":"object"},"ParsingRuleExamples":{"properties":{"data":{"items":{"properties":{"active":{"type":"boolean"},"category_id":{"format":"uuid","type":"string"},"pattern":{"type":"string"},"priority":{"type":"integer"}},"type":"object"},"type":"array"}},"required":["data"],"title":"ParsingRuleExamples","type":"object"},"PeriodSummary":{"description":"Income/expense summary for a time period","properties":{"balance":{"description":"Decimal balance (income - expense)","type":"string"},"category_breakdown":{"items":{"$ref":"#/components/schemas/ReportCategory"},"type":"array"},"conversion_available":{"type":"boolean"},"currency":{"type":"string"},"date_from":{"format":"date","type":"string"},"date_to":{"format":"date","type":"string"},"expense":{"description":"Decimal total expense","type":"string"},"expense_series":{"description":"Converted spending per day, or per month or year over long periods, every bucket present","properties":{"points":{"items":{"properties":{"amount":{"type":"string"},"date":{"description":"Bucket start","format":"date","type":"string"}},"type":"object"},"type":"array"},"unit":{"enum":["day","month","year"],"type":"string"}},"type":"object"},"income":{"description":"Decimal total income","type":"string"},"income_category_breakdown":{"items":{"$ref":"#/components/schemas/ReportCategory"},"type":"array"},"member_breakdown":{"items":{"properties":{"name":{"nullable":true,"type":"string"},"total":{"type":"string"},"type":{"enum":["income","expense"],"type":"string"},"user_id":{"format":"uuid","nullable":true,"type":"string"}},"type":"object"},"type":"array"},"mixed_currencies":{"type":"boolean"},"tax":{"description":"Tax included in the period's expenses, in the report currency","type":"string"},"timezone":{"type":"string"},"tip":{"description":"Tips included in the period's expenses, in the report currency","type":"string"},"transaction_count":{"type":"integer"}},"required":["income","expense","balance"],"title":"PeriodSummary","type":"object"},"MobileAuthExchange":{"properties":{"code":{"pattern":"^[A-Za-z0-9_-]{43}$","type":"string"},"code_verifier":{"maxLength":128,"minLength":43,"pattern":"^[A-Za-z0-9._~-]{43,128}$","type":"string"}},"required":["code","code_verifier"],"title":"MobileAuthExchange","type":"object"},"RuleOperationReceipt":{"properties":{"data":{"properties":{"action":{"enum":["create","update","delete"],"type":"string"},"entry":{"allOf":[{"$ref":"#/components/schemas/ParsingRule"}],"description":"Immutable historical result; refresh the rule separately for its current state","nullable":true},"entry_id":{"format":"uuid","nullable":true,"type":"string"},"request_id":{"format":"uuid","type":"string"},"scope":{"enum":["personal"],"type":"string"},"state":{"enum":["committed","cancelled"],"type":"string"}},"required":["request_id","entry_id","action","scope","state"],"type":"object"}},"title":"RuleOperationReceipt","type":"object"},"TransactionRequest":{"description":"Parameters for creating or updating a transaction. On create, amount, type and date are required; updates are partial.","properties":{"account_id":{"description":"What it was paid from or into; null means cash","format":"uuid","nullable":true,"type":"string"},"amount":{"description":"Decimal amount, greater than 0 and below 1e13","type":"string"},"category_id":{"format":"uuid","type":"string"},"currency":{"pattern":"^[A-Z]{3}$","type":"string"},"date":{"format":"date","type":"string"},"description":{"type":"string"},"group_id":{"description":"Update only (ignored on create): moves the transaction to this group, or out of its group when null","format":"uuid","nullable":true,"type":"string"},"location":{"nullable":true,"properties":{"lat":{"type":"number"},"lng":{"type":"number"},"place":{"nullable":true,"type":"string"}},"type":"object"},"metadata":{"type":"object"},"occurred_at":{"format":"date-time","nullable":true,"type":"string"},"tax_kind":{"description":"The tax the amount includes; send it with tax_rate, or null to clear","enum":["iva","impoconsumo","other"],"nullable":true,"type":"string"},"tax_rate":{"description":"Tax rate in percent, above 0 and at most 100","nullable":true,"type":"string"},"tip_amount":{"description":"A fixed tip, below the amount; ignored when tip_rate is set","nullable":true,"type":"string"},"tip_rate":{"description":"Tip in percent of the base; the server derives tip_amount from it","nullable":true,"type":"string"},"type":{"enum":["income","expense"],"type":"string"}},"title":"TransactionRequest","type":"object"},"BankAlertPageResponse":{"properties":{"data":{"properties":{"items":{"items":{"$ref":"#/components/schemas/BankAlert"},"maxItems":50,"type":"array"},"meta":{"properties":{"next_cursor":{"maxLength":256,"nullable":true,"type":"string"},"scope":{"enum":["personal"],"type":"string"},"total":{"minimum":0,"type":"integer"},"user_id":{"format":"uuid","type":"string"}},"required":["scope","user_id","total","next_cursor"],"type":"object"}},"required":["items","meta"],"type":"object"}},"required":["data"],"title":"BankAlertPageResponse","type":"object"},"RecurringEntryRequest":{"description":"Parameters for creating or updating a recurring entry. On create, amount, type, frequency and next_date are required; is_active applies to updates only.","properties":{"amount":{"description":"Decimal amount (> 0)","type":"string"},"category_id":{"format":"uuid","type":"string"},"currency":{"type":"string"},"description":{"type":"string"},"frequency":{"enum":["daily","weekly","biweekly","monthly","yearly"],"type":"string"},"is_active":{"type":"boolean"},"metadata":{"type":"object"},"next_date":{"format":"date","type":"string"},"type":{"enum":["income","expense"],"type":"string"}},"title":"RecurringEntryRequest","type":"object"},"BankSourceCommand":{"additionalProperties":false,"properties":{"account_id":{"format":"uuid","nullable":true,"type":"string"},"automatic":{"type":"boolean"},"bank_account_fingerprint":{"nullable":true,"pattern":"^[0-9a-f]{64}$","type":"string"},"currency":{"pattern":"^[A-Z]{3}$","type":"string"},"device_id":{"format":"uuid","type":"string"},"enabled":{"type":"boolean"},"expected_revision":{"maximum":9007199254740990,"minimum":0,"type":"integer"},"provider":{"enum":["bancolombia","nequi","global66","wise"],"type":"string"},"request_id":{"format":"uuid","type":"string"}},"required":["request_id","provider","device_id","currency","enabled","automatic","expected_revision"],"title":"BankSourceCommand","type":"object"},"MyPlan":{"properties":{"ends_at":{"format":"date-time","nullable":true,"type":"string"},"limits":{"items":{"$ref":"#/components/schemas/PlanLimit"},"type":"array"},"pending_discount":{"nullable":true,"properties":{"percent_off":{"type":"integer"},"plan":{"type":"string"}},"type":"object"},"plan":{"$ref":"#/components/schemas/PlanTier"},"plans":{"items":{"$ref":"#/components/schemas/PlanTier"},"type":"array"}},"required":["plan","limits","plans"],"title":"MyPlan","type":"object"},"AlertRequest":{"properties":{"currency":{"description":"Required for amount_above and amount_below","type":"string"},"name":{"maxLength":100,"type":"string"},"predicate_type":{"enum":["amount_above","amount_below","category_match","description_match"],"type":"string"},"predicate_value":{"type":"string"}},"required":["name","predicate_type","predicate_value"],"title":"AlertRequest","type":"object"},"AdminCouponRedemption":{"properties":{"id":{"format":"uuid","type":"string"},"inserted_at":{"format":"date-time","type":"string"},"plan_given":{"description":"Whether it started a subscription.","type":"boolean"},"user":{"properties":{"email":{"nullable":true,"type":"string"},"first_name":{"nullable":true,"type":"string"},"id":{"format":"uuid","type":"string"}},"type":"object"}},"title":"AdminCouponRedemption","type":"object"},"AdminPasswordRequest":{"properties":{"admin_password":{"description":"The web admin password","type":"string"}},"required":["admin_password"],"title":"AdminPasswordRequest","type":"object"},"AdminFeedbackDetailResponse":{"description":"A feedback with its own images and the reply thread, oldest first","properties":{"data":{"allOf":[{"$ref":"#/components/schemas/AdminFeedbackSummary"},{"properties":{"images":{"items":{"$ref":"#/components/schemas/AdminFeedbackImage"},"type":"array"},"replies":{"items":{"$ref":"#/components/schemas/AdminFeedbackReply"},"type":"array"}},"type":"object"}]}},"required":["data"],"title":"AdminFeedbackDetailResponse","type":"object"},"BankReviewedExpense":{"additionalProperties":false,"properties":{"account_id":{"format":"uuid","nullable":true,"type":"string"},"amount":{"type":"string"},"category_id":{"format":"uuid","nullable":true,"type":"string"},"currency":{"type":"string"},"date":{"format":"date","type":"string"},"description":{"maxLength":500,"nullable":true,"type":"string"},"group_id":{"enum":[null],"nullable":true,"type":"string"},"type":{"enum":["expense"],"type":"string"}},"required":["amount","currency","date","type"],"title":"BankReviewedExpense","type":"object"},"GroupCreateRequest":{"properties":{"id":{"description":"On create, an id chosen by the client so the request can be repeated safely","format":"uuid","type":"string"},"name":{"type":"string"}},"required":["name"],"title":"GroupCreateRequest","type":"object"},"AdminFeedbackUser":{"properties":{"email":{"nullable":true,"type":"string"},"first_name":{"nullable":true,"type":"string"},"id":{"format":"uuid","type":"string"}},"title":"AdminFeedbackUser","type":"object"},"SpendingPatterns":{"description":"Categories with significant spending changes vs average","properties":{"currency":{"type":"string"},"patterns":{"items":{"properties":{"average":{"type":"string"},"category":{"type":"string"},"change_pct":{"type":"number"},"current":{"type":"string"},"direction":{"enum":["spike","drop"],"type":"string"}},"type":"object"},"type":"array"},"threshold":{"type":"number"}},"title":"SpendingPatterns","type":"object"},"BudgetRequest":{"description":"Parameters for creating or updating a budget. On create, amount and period are required; updates are partial.","properties":{"active":{"default":true,"type":"boolean"},"alert_threshold":{"default":80,"maximum":100,"minimum":1,"type":"integer"},"amount":{"description":"Decimal above 0, at most two decimal places","type":"string"},"category_id":{"description":"A personal expense category; any other value returns 400","format":"uuid","type":"string"},"currency":{"description":"A supported currency code; defaults to the account currency","type":"string"},"id":{"description":"On create, an id chosen by the client so the request can be repeated safely","format":"uuid","type":"string"},"name":{"maxLength":100,"type":"string"},"period":{"enum":["weekly","monthly","yearly"],"type":"string"}},"title":"BudgetRequest","type":"object"},"CapitalPayment":{"description":"A repayment received on a loan or made on a debt","properties":{"amount":{"description":"Decimal amount","type":"string"},"id":{"format":"uuid","type":"string"},"inserted_at":{"format":"date-time","type":"string"},"note":{"nullable":true,"type":"string"},"paid_on":{"format":"date","type":"string"},"request_id":{"format":"uuid","type":"string"},"transaction_id":{"description":"The income (loan) or expense (debt) movement recorded with this payment, if any","format":"uuid","nullable":true,"type":"string"}},"required":["id","request_id","amount","paid_on"],"title":"CapitalPayment","type":"object"},"ReportCategory":{"properties":{"category_equivalents":{"description":"Use the same category_equivalents filter when opening transactions; this row groups scoped seeded variants","type":"boolean"},"category_id":{"format":"uuid","nullable":true,"type":"string"},"category_name":{"type":"string"},"emoji":{"nullable":true,"type":"string"},"percentage":{"type":"number"},"total":{"type":"string"}},"title":"ReportCategory","type":"object"},"AccountDeletionPermission":{"properties":{"data":{"properties":{"deletion_proof":{"description":"Private, short-lived secret; never log or place in URLs","pattern":"^[A-Za-z0-9_-]{43}$","type":"string"},"expires_at":{"format":"date-time","type":"string"},"user_id":{"format":"uuid","type":"string"}},"required":["user_id","deletion_proof","expires_at"],"type":"object"}},"required":["data"],"title":"AccountDeletionPermission","type":"object"},"GroupInvitationPreviewResponse":{"properties":{"data":{"properties":{"already_member":{"type":"boolean"},"emoji":{"nullable":true,"type":"string"},"expires_at":{"format":"date-time","type":"string"},"group_id":{"format":"uuid","type":"string"},"inviter_name":{"nullable":true,"type":"string"},"name":{"type":"string"},"role":{"enum":["member","owner"],"type":"string"}},"required":["group_id","name","emoji","inviter_name","role","already_member","expires_at"],"type":"object"}},"required":["data"],"title":"GroupInvitationPreviewResponse","type":"object"},"InitialPreferencesRequest":{"additionalProperties":false,"description":"Reviewed account defaults, using the authoritative /me/options catalogs","properties":{"currency":{"type":"string"},"language":{"type":"string"},"timezone":{"type":"string"}},"required":["language","currency","timezone"],"title":"InitialPreferencesRequest","type":"object"},"RecurringDesiredState":{"additionalProperties":false,"properties":{"is_active":{"type":"boolean"}},"required":["is_active"],"title":"RecurringDesiredState","type":"object"},"BankAlertCapture":{"additionalProperties":false,"properties":{"device_id":{"format":"uuid","type":"string"},"facts":{"$ref":"#/components/schemas/BankAlertFacts"},"notification_id":{"format":"uuid","type":"string"},"request_id":{"format":"uuid","type":"string"},"source_id":{"format":"uuid","type":"string"},"source_revision":{"maximum":9007199254740990,"minimum":1,"type":"integer"}},"required":["request_id","source_id","device_id","notification_id","source_revision","facts"],"title":"BankAlertCapture","type":"object"}},"securitySchemes":{"bank_capture":{"description":"Ingest-only capture token (starts with sbc_) issued by POST /api/v1/bank-sources/{id}/capture-token. Accepted only by POST /api/v1/bank-captures.","scheme":"bearer","type":"http"},"bearer":{"description":"API key authentication. Generate a key in Settings > API Keys. Use the raw key (starts with sb_) as a Bearer token. Mobile device sessions (90 days) use the same scheme.","scheme":"bearer","type":"http"}}},"info":{"description":"REST API for Suma personal and family budget tracking. Successful responses wrap their payload as {\"data\": ...}; lists add \"meta\" with page, per_page, total and total_pages. Errors are {\"error\": {\"code\", \"message\"}}; some carry only a code. Every response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset; a 429 adds Retry-After. The default limit is 60 requests per minute per key.","title":"Suma API","version":"0.102.0"},"openapi":"3.0.0","paths":{"/api/v1/assistants/{id}":{"delete":{"callbacks":{},"operationId":"SumaWeb.API.V1.AssistantController.delete","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"revoked":{"type":"boolean"}},"type":"object"}},"required":["data"],"type":"object"}}},"description":"Disconnected"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"not_found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Disconnect an owned assistant","tags":["Connected assistants"]}},"/api/v1/capital/{capital_id}/payments":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.CapitalPaymentController.index","parameters":[{"description":"The loan or debt capital asset id","in":"path","name":"capital_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/CapitalPayment"},"type":"array"}},"required":["data"],"type":"object"}}},"description":"Payments"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"feature_disabled: the capital feature is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"List a loan or debt's payments, newest first","tags":["Capital Assets"]},"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.CapitalPaymentController.create","parameters":[{"description":"The loan or debt capital asset id","in":"path","name":"capital_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapitalPaymentRequest"}}},"description":"Payment","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapitalPaymentResult"}}},"description":"Recorded"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"feature_disabled: the capital feature is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"not_a_loan (neither loan nor debt), exceeds_balance, already_repaid or invalid_payment"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Record a payment received on a loan or made on a debt","tags":["Capital Assets"]}},"/api/v1/me/reminders":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.ReminderController.show","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReminderResponse"}}},"description":"Reminder preferences"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Read daily-review reminder preferences for this device session","tags":["Reminders"]},"put":{"callbacks":{},"operationId":"SumaWeb.API.V1.ReminderController.update","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReminderUpdate"}}},"description":"Reminder settings","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReminderResponse"}}},"description":"Reminder preferences"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"422":{"content":{"application/json":{}},"description":"Invalid settings or primary device missing"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Set reminder time, weekdays and primary device","tags":["Reminders"]}},"/api/v1/groups/{id}/invite":{"post":{"callbacks":{},"description":"Only the owner can create a code. A member who is not the owner currently gets 400 bad_request, not 403.","operationId":"SumaWeb.API.V1.GroupController.invite","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupInviteCode"}}},"description":"Invite code, valid for 24 hours"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The caller is not the group owner (bad_request)"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not a member"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Create invite code","tags":["Groups"]}},"/api/v1/admin/users/{id}/plan":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.Admin.UserPlanController.show","parameters":[{"description":"User ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUserPlanResponse"}}},"description":"The person's plan and limits"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{}},"description":"Not an admin device session"},"404":{"content":{"application/json":{}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"A person's plan, limits and use","tags":["Admin"]}},"/api/v1/admin/feedback":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.Admin.FeedbackController.index","parameters":[{"description":"open (default), resolved or all","in":"query","name":"status","required":false,"schema":{"type":"string"}},{"description":"","in":"query","name":"page","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"per_page","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminFeedbackListResponse"}}},"description":"Feedback page"},"400":{"content":{"application/json":{}},"description":"Invalid status"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{}},"description":"Not an admin device session"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"List feedback","tags":["Admin"]}},"/api/v1/recurring/{id}":{"delete":{"callbacks":{},"operationId":"SumaWeb.API.V1.RecurringEntryController.delete","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"deleted":{"type":"boolean"}},"type":"object"}},"required":["data"],"type":"object"}}},"description":"Deleted"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"feature_disabled: the recurring feature is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"unsupported_scope"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Delete a recurring entry","tags":["Recurring Entries"]},"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.RecurringEntryController.show","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/RecurringEntry"}},"required":["data"],"type":"object"}}},"description":"Entry"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"feature_disabled: the recurring feature is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"unsupported_scope"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Get a recurring entry","tags":["Recurring Entries"]},"patch":{"callbacks":{},"operationId":"SumaWeb.API.V1.RecurringEntryController.update (2)","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecurringEntryRequest"}}},"description":"Entry params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/RecurringEntry"}},"required":["data"],"type":"object"}}},"description":"Updated"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"feature_disabled: the recurring feature is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation error or unsupported_scope"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Update a recurring entry","tags":["Recurring Entries"]},"put":{"callbacks":{},"operationId":"SumaWeb.API.V1.RecurringEntryController.update","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecurringEntryRequest"}}},"description":"Entry params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/RecurringEntry"}},"required":["data"],"type":"object"}}},"description":"Updated"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"feature_disabled: the recurring feature is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation error or unsupported_scope"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Update a recurring entry","tags":["Recurring Entries"]}},"/api/v1/capital/{capital_id}/settle":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.CapitalPaymentController.settle","parameters":[{"description":"The loan or debt capital asset id","in":"path","name":"capital_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapitalPaymentRequest"}}},"description":"Payment","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapitalPaymentResult"}}},"description":"Settled"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"feature_disabled: the capital feature is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"not_a_loan (neither loan nor debt), exceeds_balance, already_repaid or invalid_payment"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Record a payment for everything still owed, marking the loan or debt repaid","tags":["Capital Assets"]}},"/api/v1/people/invitations/{id}":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.PeopleController.show","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PeopleInvitationResponse"}}},"description":"Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"404":{"content":{"application/json":{}},"description":"Not this recipient's request"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Recipient preview with immutable labels, without joining","tags":["People and group requests"]}},"/api/v1/admin/costs":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.Admin.CostController.index","parameters":[{"description":"YYYY-MM-DD, default the first of this month","in":"query","name":"from","required":false,"schema":{"type":"string"}},{"description":"YYYY-MM-DD, default the end of this month","in":"query","name":"to","required":false,"schema":{"type":"string"}},{"description":"","in":"query","name":"page","required":false,"schema":{"type":"integer"}},{"description":"Default 50, at most 100","in":"query","name":"per_page","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{}},"description":"Cost report"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{}},"description":"Not an admin device session"},"422":{"content":{"application/json":{}},"description":"Invalid date range"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Cost analysis","tags":["Admin"]}},"/api/v1/bank-import-operations/{request_id}/cancel":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.BankImportController.cancel","parameters":[{"description":"","in":"path","name":"request_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelBankImportCommand"}}},"description":"Original reviewed command","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankImportReceiptResponse"}}},"description":"Durable receipt"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"forbidden: restricted or delegated key"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid request (error code names the reason)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Fence an exact owned command, including capture, or return its committed receipt","tags":["Bank Alerts"]}},"/api/v1/sync":{"get":{"callbacks":{},"description":"Returns a token that changes whenever anything this account can read may have changed. Clients keep cached responses while it stays the same. With `home=1` and a `since` token that no longer matches, the response also carries the home screen's reads. Parts are summary, transactions, groups, recurring, budgets and daily_review; daily_review needs both `date` and `timezone`, and a `group_id` the person belongs to adds group_summary and group_transactions.","operationId":"SumaWeb.API.V1.SyncController.show","parameters":[{"description":"The token the client holds","in":"query","name":"since","required":false,"schema":{"type":"string"}},{"description":"1 to receive home reads on a change","in":"query","name":"home","required":false,"schema":{"type":"string"}},{"description":"The account home shows","in":"query","name":"group_id","required":false,"schema":{"type":"string"}},{"description":"Today in the account's time zone","in":"query","name":"date","required":false,"schema":{"type":"string"}},{"description":"The account's time zone","in":"query","name":"timezone","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Sync"}},"required":["data"],"type":"object"}}},"description":"Change token"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Change token","tags":["System"]}},"/api/v1/alerts":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.AlertController.index","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Alert"},"type":"array"}},"required":["data"],"type":"object"}}},"description":"Alerts list"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"List personal alerts","tags":["Alerts"]},"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.AlertController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertRequest"}}},"description":"Alert params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Alert"}},"required":["data"],"type":"object"}}},"description":"Created alert"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation error"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Create an alert","tags":["Alerts"]}},"/api/v1/admin/feedback-images/{id}/raw":{"get":{"callbacks":{},"description":"Served with its own content type and cache-control: no-store. Send no Accept header or Accept: */*.","operationId":"SumaWeb.API.V1.Admin.FeedbackImageController.raw","parameters":[{"description":"Image ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"image/*":{}},"description":"Image bytes"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{}},"description":"Not an admin device session"},"404":{"content":{"application/json":{}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Image bytes","tags":["Admin"]}},"/api/v1/recurring/{id}/toggle":{"put":{"callbacks":{},"operationId":"SumaWeb.API.V1.RecurringEntryController.toggle","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/RecurringEntry"}},"required":["data"],"type":"object"}}},"description":"Toggled"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"feature_disabled: the recurring feature is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"unsupported_scope"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Toggle active/inactive","tags":["Recurring Entries"]}},"/api/v1/groups/{group_id}/members/{user_id}":{"delete":{"callbacks":{},"description":"Also revokes all outstanding unused group links and legacy codes, so a removed member cannot use a previously shared invitation. The owner must reissue invitations for other people.","operationId":"SumaWeb.API.V1.GroupMemberController.remove","parameters":[{"description":"","in":"path","name":"group_id","required":true,"schema":{"type":"string"}},{"description":"","in":"path","name":"user_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"outstanding_invitations_revoked":{"type":"boolean"},"removed":{"type":"boolean"}},"type":"object"}},"required":["data"],"type":"object"}}},"description":"Removed"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Removing oneself, the target is not a member, or the group does not exist (bad_request)"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not the owner"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Remove a member from group (owner only)","tags":["Group Members"]}},"/api/v1/bank-sources":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.BankImportController.sources","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankSourcesResponse"}}},"description":"Sources"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"forbidden: restricted or delegated key"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid request (error code names the reason)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"List personal bank capture consent; no bank credentials","tags":["Bank Alerts"]}},"/api/v1/admin/feedback/{id}/replies":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.Admin.FeedbackController.reply","parameters":[{"description":"Feedback ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminFeedbackReplyRequest"}}},"description":"Reply","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminFeedbackReplyResponse"}}},"description":"Created reply"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{}},"description":"Not an admin device session"},"404":{"content":{"application/json":{}},"description":"Not found"},"422":{"content":{"application/json":{}},"description":"Validation error"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Reply to a feedback as admin","tags":["Admin"]}},"/api/v1/voice/interpret":{"post":{"callbacks":{},"description":"A request_id identifies one utterance. Replaying it returns the stored draft whatever the text or context; send a new request_id for new text or a changed context. Delegated and scoped keys are refused.","operationId":"SumaWeb.API.V1.VoiceController.interpret","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceInterpretRequest"}}},"description":"Transcript and retained request UUID","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceInterpretResponse"}}},"description":"Draft, totals, loan or question"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"forbidden: restricted or delegated key, or scope denied"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid or oversized text"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Daily interpretation cap reached"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Provider unavailable; retry with the same request ID"}},"summary":"Turn on-device transcribed text into a draft, totals, a loan or a question; never saves","tags":["Voice"]}},"/api/v1/groups/{group_id}/transactions":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.GroupSubResourceController.transactions","parameters":[{"description":"","in":"path","name":"group_id","required":true,"schema":{"type":"string"}},{"description":"","in":"query","name":"page","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"per_page","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Transaction"},"type":"array"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"required":["data","meta"],"type":"object"}}},"description":"Group transactions"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not a member"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"List group transactions","tags":["Groups"]}},"/api/v1/summary/by-category":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.SummaryController.by_category","parameters":[{"description":"Same values as GET /summary; an unknown value falls back to month_1","in":"query","name":"period","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/CategoryBreakdown"}},"required":["data"],"type":"object"}}},"description":"Category breakdown"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Category breakdown","tags":["Summary"]}},"/api/v1/transactions/batch-delete":{"post":{"callbacks":{},"description":"Rows that are not the caller's own, or do not exist, are skipped; deleted counts the rows removed.","operationId":"SumaWeb.API.V1.TransactionController.batch_delete","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"properties":{"ids":{"items":{"type":"string"},"type":"array"}},"required":["ids"],"type":"object"}}},"description":"IDs","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"deleted":{"type":"integer"}},"type":"object"}},"required":["data"],"type":"object"}}},"description":"Batch result"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"An id is not a valid UUID (bad_request)"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Delete multiple of the person's own transactions","tags":["Transactions"]}},"/api/v1/summary/streak":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.SummaryController.streak","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Streak"}},"required":["data"],"type":"object"}}},"description":"Streak data"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Current and longest streak","tags":["Summary"]}},"/api/v1/assistants/proposals/{id}/status":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.AssistantController.status","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"type":"object"}},"required":["data"],"type":"object"}}},"description":"Operation metadata"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"not_found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Proposal no longer actionable (error code names the reason)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Reconcile an owned external request after an uncertain response","tags":["Connected assistants"]}},"/api/v1/people/blocks":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.PeopleController.blocks","parameters":[{"description":"","in":"query","name":"page","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"per_page","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PeopleBlockList"}}},"description":"Private block list"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"List only this account's blocked senders","tags":["People and group requests"]}},"/api/v1/admin/voice-reports":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.Admin.VoiceReportController.index","parameters":[{"description":"open (default), reviewed or all","in":"query","name":"status","required":false,"schema":{"type":"string"}},{"description":"","in":"query","name":"page","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"per_page","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminVoiceReportListResponse"}}},"description":"Voice report page"},"400":{"content":{"application/json":{}},"description":"Invalid status"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{}},"description":"Not an admin device session"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"List shared voice reports","tags":["Admin"]}},"/api/v1/groups/{group_id}/people/invitations":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.PeopleController.sent","parameters":[{"description":"","in":"path","name":"group_id","required":true,"schema":{"type":"string"}},{"description":"","in":"query","name":"page","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"per_page","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PeopleInvitationList"}}},"description":"Requests"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{}},"description":"Owner required"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"List this current owner's sent requests","tags":["People and group requests"]},"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.PeopleController.create","parameters":[{"description":"","in":"path","name":"group_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuePeopleInvitation"}}},"description":"Selected account","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PeopleInvitationResponse"}}},"description":"Request receipt"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"409":{"content":{"application/json":{}},"description":"Already member or another request pending"},"422":{"content":{"application/json":{}},"description":"Selection unavailable or invalid"},"429":{"content":{"application/json":{}},"description":"Account budget exhausted"}},"summary":"Send a request without adding membership; eligible selection retries return its existing status","tags":["People and group requests"]}},"/api/v1/import/preview":{"post":{"callbacks":{},"description":"Upload CSV content for preview. Returns the first 10 parsed rows, any errors among them, and suggested mappings.","operationId":"SumaWeb.API.V1.ImportController.preview","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"properties":{"csv_content":{"type":"string"}},"required":["csv_content"],"type":"object"}}},"description":"CSV content","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/ImportPreview"}},"required":["data"],"type":"object"}}},"description":"Import preview"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Parse error (bad_request)"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"feature_disabled (import feature off)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"rate_limited: 10 imports per minute"}},"summary":"Preview CSV import","tags":["Import"]}},"/api/v1/voice/totals":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.VoiceController.totals","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceTotalsRequest"}}},"description":"Period and permitted scope","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceTotalsResponse"}}},"description":"Separate currency totals"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Scope denied"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid period"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Read exact totals in each original currency","tags":["Voice"]}},"/api/v1/transactions/batch-move":{"post":{"callbacks":{},"description":"Moves only the caller's own transactions; others are skipped. A null group_id moves them back to personal. Moving into a group clears location, and category and account are re-resolved for the new scope.","operationId":"SumaWeb.API.V1.TransactionController.batch_move","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"properties":{"group_id":{"format":"uuid","nullable":true,"type":"string"},"ids":{"items":{"type":"string"},"type":"array"}},"required":["ids"],"type":"object"}}},"description":"Move params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"moved":{"type":"integer"}},"type":"object"}},"required":["data"],"type":"object"}}},"description":"Batch result"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"An id is not a valid UUID (bad_request)"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not a member of the group"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Move transactions to a group","tags":["Transactions"]}},"/api/v1/intelligence/bill-history":{"get":{"callbacks":{},"description":"Check recurring bills against actual payments. Flags missed bills.","operationId":"SumaWeb.API.V1.IntelligenceController.bill_history","parameters":[{"description":"Months back to check (default 3, max 12)","in":"query","name":"months","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/BillHistory"}},"required":["data"],"type":"object"}}},"description":"Bill history"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Check bill payment history","tags":["Intelligence"]}},"/api/v1/daily-reviews/{date}":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.DailyReviewController.show","parameters":[{"description":"","in":"path","name":"date","required":true,"schema":{"format":"date","type":"string"}},{"description":"","in":"query","name":"timezone","required":false,"schema":{"type":"string"}},{"description":"Comma-separated personal and/or authorized group UUIDs","in":"query","name":"scopes","required":false,"schema":{"type":"string"}},{"description":"","in":"query","name":"page","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"per_page","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Daily review response"}}},"description":"Daily review"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Scope denied"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"invalid_review: invalid or future date, timezone, scopes or state"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Read your daily review and own transactions","tags":["Daily reviews"]},"put":{"callbacks":{},"description":"Idempotent for the same state and fingerprint. Own transaction changes reopen a saved review. Never creates a financial transaction.","operationId":"SumaWeb.API.V1.DailyReviewController.update","parameters":[{"description":"","in":"path","name":"date","required":true,"schema":{"format":"date","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Daily review confirmation"}}},"description":"Review confirmation","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Daily review response"}}},"description":"Confirmed review"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Scope denied"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"review_changed (day changed; read again) or pending_drafts (assistant expenses await approval)"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"day_has_expenses or invalid_review (including a future date)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Confirm a day you have reviewed","tags":["Daily reviews"]}},"/api/v1/me/deletion/exchange":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.AccountDeletionController.exchange","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileAuthExchange"}}},"description":"One-use code and verifier","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountDeletionPermission"}}},"description":"Deletion permission"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid or mismatched verification"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Retry later"}},"summary":"Exchange deletion identity verification","tags":["Account deletion"]}},"/api/v1/tax-presets":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.TaxPresetController.show","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/TaxPresets"}},"required":["data"],"type":"object"}}},"description":"Presets"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"The taxes and tips to offer on an expense, for your country","tags":["Transactions"]}},"/api/v1/transactions/{transaction_id}/receipts":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.ReceiptController.create","parameters":[{"description":"","in":"path","name":"transaction_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/ReceiptUpload"}}},"description":"Receipt photo","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/ReceiptImage"}},"required":["data"],"type":"object"}}},"description":"Kept"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"No such movement of theirs"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"unsupported_image, too_large or too_many_receipts"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Keep a receipt photo on a movement the person recorded","tags":["Receipts"]}},"/api/v1/bank-captures":{"post":{"callbacks":{},"description":"Authenticated only with an sbc_ capture token from POST /bank-sources/{id}/capture-token; a normal sb_ API key gets 401. Limited to 30 requests per minute per parent key.","operationId":"SumaWeb.API.V1.BankCaptureController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankAlertCapture"}}},"description":"Minimal typed facts","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankCaptureAcknowledgmentResponse"}}},"description":"Minimal acknowledgment"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"invalid_capture_credential: missing, expired or revoked capture token, or its source, device or revision no longer matches"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"request_conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"invalid_capture"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"rate_limited"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"audit_failed"}},"security":[{"bank_capture":[]}],"summary":"Ingest-only capability delivery; live consent and parent session rechecked atomically","tags":["Bank Alerts"]}},"/api/v1/transaction-proposals/requests/{request_id}":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.ProposalController.by_request","parameters":[{"description":"","in":"path","name":"request_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalResponse"}}},"description":"Proposal"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Scope denied"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Proposal no longer valid"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Recover an uncertain prepare request","tags":["Transaction proposals"]}},"/api/v1/people/discovery/verify":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.PeopleVerificationController.start","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileAuthStart"}}},"description":"Device PKCE challenge","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileAuthStartResponse"}}},"description":"Proof-only browser handoff"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"422":{"content":{"application/json":{}},"description":"Invalid request or no linked identity"},"429":{"content":{"application/json":{}},"description":"Account budget exhausted"}},"summary":"Verify this account's email using an already linked provider, without signing out","tags":["People and group requests"]}},"/api/v1/me/deletion/verify":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.AccountDeletionController.start","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountDeletionVerification"}}},"description":"Reviewed impact and device PKCE","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountDeletionVerifyResponse"}}},"description":"PKCE state to hand to the browser flow"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Impact changed"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid verification request"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Retry later"}},"summary":"Verify identity before account deletion","tags":["Account deletion"]}},"/api/mobile/auth/password":{"post":{"callbacks":{},"description":"Only an existing, active, non-admin account an admin gave a password can sign in; no account is ever created. Tries are limited per IPv4 address or IPv6 /64, and every refusal reads the same. Someone who has not accepted the current terms gets 403 terms_required with the version to send back as terms_version once they accept. An account still on a temporary password then gets 403 password_change_required and signs in by sending its own password as new_password; a refused one gets 422 invalid_new_password with the reason.","operationId":"SumaWeb.MobileAuthController.password","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileAuthPassword"}}},"description":"Email and password","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileSessionResponse"}}},"description":"Device session"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileAuthError"}}},"description":"Wrong email or password"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileAuthError"}}},"description":"The current terms need accepting, or a new password choosing"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileAuthError"}}},"description":"Unsupported platform or refused new password"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileAuthError"}}},"description":"Rate limited"}},"security":[],"summary":"Sign in with an admin-issued password","tags":["Mobile authentication"]}},"/api/v1/capital/{capital_id}/payments/{id}":{"delete":{"callbacks":{},"operationId":"SumaWeb.API.V1.CapitalPaymentController.delete","parameters":[{"description":"The loan or debt capital asset id","in":"path","name":"capital_id","required":true,"schema":{"type":"string"}},{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/CapitalAsset"}},"required":["data"],"type":"object"}}},"description":"Loan or debt after the removal"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"feature_disabled: the capital feature is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Remove a payment, restoring its amount and removing its movement","tags":["Capital Assets"]}},"/api/v1/capital/preview":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.CapitalOperationController.preview","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonalCapitalDraft"}}},"description":"Personal entry","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapitalPreview"}}},"description":"Preview"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"forbidden (restricted key) or feature_disabled"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid valuation"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"audit_failed: nothing was committed"}},"summary":"Validate a personal recorded valuation; writes no asset or ledger entry","tags":["Capital Assets"]}},"/api/v1/parsing-rules/examples":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.ParsingRuleController.examples","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParsingRuleExamples"}}},"description":"Suggestions"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"forbidden (restricted key) or feature_disabled (rules feature off)"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"unsupported_scope: any query string or body group_id"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Read optional personal rule suggestions; creates no rules","tags":["Parsing Rules"]}},"/api/v1/parsing-rules/{id}":{"delete":{"callbacks":{},"operationId":"SumaWeb.API.V1.ParsingRuleController.delete","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"deleted":{"type":"boolean"}},"type":"object"}},"required":["data"],"type":"object"}}},"description":"Deleted"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"unsupported_scope: any query string or body group_id"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Delete a parsing rule","tags":["Parsing Rules"]},"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.ParsingRuleController.show","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/ParsingRule"}},"required":["data"],"type":"object"}}},"description":"Rule"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"unsupported_scope: any query string or body group_id"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Read a personal classification rule","tags":["Parsing Rules"]},"patch":{"callbacks":{},"operationId":"SumaWeb.API.V1.ParsingRuleController.update (2)","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParsingRuleRequest"}}},"description":"Rule params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/ParsingRule"}},"required":["data"],"type":"object"}}},"description":"Updated"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation error or unsupported_scope"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Update a parsing rule","tags":["Parsing Rules"]},"put":{"callbacks":{},"operationId":"SumaWeb.API.V1.ParsingRuleController.update","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParsingRuleRequest"}}},"description":"Rule params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/ParsingRule"}},"required":["data"],"type":"object"}}},"description":"Updated"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation error or unsupported_scope"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Update a parsing rule","tags":["Parsing Rules"]}},"/api/v1/ping":{"get":{"callbacks":{},"description":"Verify your API key is valid and see basic account info.","operationId":"SumaWeb.API.V1.PingController.index","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Ping"}},"required":["data"],"type":"object"}}},"description":"Ping response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Test API connection","tags":["System"]}},"/api/v1/notices":{"get":{"callbacks":{},"description":"Keep a copy: a notice about maintenance must still show while the server is down. Hide each one after its ends_at.","operationId":"SumaWeb.API.V1.NoticeController.index","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeListResponse"}}},"description":"Notices"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Notices showing now","tags":["Notices"]}},"/api/v1/transactions":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.TransactionController.index","parameters":[{"description":"Page number","in":"query","name":"page","required":false,"schema":{"default":1,"minimum":1,"type":"integer"}},{"description":"Items per page; values above 100 are clamped to 100","in":"query","name":"per_page","required":false,"schema":{"default":25,"maximum":100,"minimum":1,"type":"integer"}},{"description":"Filter by type","in":"query","name":"type","required":false,"schema":{"enum":["income","expense"],"type":"string"}},{"description":"Filter by category ID","in":"query","name":"category_id","required":false,"schema":{"type":"string"}},{"description":"Only transactions with no category visible in their scope; mutually exclusive with category_id","in":"query","name":"uncategorized","required":false,"schema":{"type":"boolean"}},{"description":"Include seeded language variants of this category in its authorized scope","in":"query","name":"category_equivalents","required":false,"schema":{"type":"boolean"}},{"description":"Inclusive start date","in":"query","name":"date_from","required":false,"schema":{"format":"date","type":"string"}},{"description":"Inclusive end date","in":"query","name":"date_to","required":false,"schema":{"format":"date","type":"string"}},{"description":"Search every word across description, category, account, place, amount, currency, date and type over the whole history, tolerating small typos; =13.01 matches an exact amount.","in":"query","name":"search","required":false,"schema":{"type":"string"}},{"description":"Sort field; other values are ignored","in":"query","name":"sort_by","required":false,"schema":{"enum":["date","amount","type"],"type":"string"}},{"description":"Sort direction; other values are ignored","in":"query","name":"sort_dir","required":false,"schema":{"enum":["asc","desc"],"type":"string"}},{"description":"List this group's movements, from every member, instead of personal ones","in":"query","name":"group_id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Transaction"},"type":"array"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"required":["data","meta"],"type":"object"}}},"description":"Transactions list"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not a member of the group"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"invalid_search (over 120 characters), invalid_category_filter or invalid_date_range"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"List transactions","tags":["Transactions"]},"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.TransactionController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionRequest"}}},"description":"Transaction params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Transaction"}},"required":["data"],"type":"object"}}},"description":"Created transaction"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation error"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Create a transaction; metadata.source is always set to api","tags":["Transactions"]}},"/api/v1/groups/{group_id}/summary":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.GroupSubResourceController.summary","parameters":[{"description":"","in":"path","name":"group_id","required":true,"schema":{"type":"string"}},{"description":"today, week, week_1, month, month_1 (default), month_3, month_6, ytd, year_1, max, or range:YYYY-MM-DD:YYYY-MM-DD","in":"query","name":"period","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/PeriodSummary"}},"required":["data"],"type":"object"}}},"description":"Group summary"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unknown group id, or not a member"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Historical currency needs review"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"invalid_period"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conversion unavailable"}},"summary":"Group period summary","tags":["Groups"]}},"/api/v1/transaction-proposals/{id}":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.ProposalController.show","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalResponse"}}},"description":"Proposal"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Scope denied"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Proposal no longer valid"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Read an owned proposal and its immutable creation receipt","tags":["Transaction proposals"]},"put":{"callbacks":{},"operationId":"SumaWeb.API.V1.ProposalController.update","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviseProposal"}}},"description":"Revision","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalResponse"}}},"description":"Proposal"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Scope denied"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Changed or closed proposal"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Expired"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid revision"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Revise a pending proposal; prior approval becomes stale","tags":["Transaction proposals"]}},"/api/v1/people/invitations/{id}/accept":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.PeopleController.accept","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PeopleExplicitAction"}}},"description":"Explicit acceptance","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupInvitationAcceptResponse"}}},"description":"Membership receipt"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"409":{"content":{"application/json":{}},"description":"Request closed"},"410":{"content":{"application/json":{}},"description":"Expired"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Explicitly join as member; never as owner","tags":["People and group requests"]}},"/api/v1/admin/users/{id}/limits":{"put":{"callbacks":{},"operationId":"SumaWeb.API.V1.Admin.UserPlanController.limits","parameters":[{"description":"User ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUserLimitsRequest"}}},"description":"Own limits","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUserPlanResponse"}}},"description":"The person's plan and limits"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{}},"description":"Not an admin device session"},"404":{"content":{"application/json":{}},"description":"Not found"},"422":{"content":{"application/json":{}},"description":"Invalid limits"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Set a person's own limits","tags":["Admin"]}},"/api/v1/groups/join":{"post":{"callbacks":{},"description":"Limited to 10 attempts per hour per person.","operationId":"SumaWeb.API.V1.GroupController.join","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupJoinRequest"}}},"description":"Invite code","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Group"}},"required":["data"],"type":"object"}}},"description":"Joined group"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid code or already a member (bad_request)"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"too_many_attempts"}},"summary":"Join a group by invite code","tags":["Groups"]}},"/api/v1/admin/users/{id}":{"delete":{"callbacks":{},"operationId":"SumaWeb.API.V1.Admin.UserOperationController.delete","parameters":[{"description":"User ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminPasswordRequest"}}},"description":"The admin password","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUserDeleteResponse"}}},"description":"Deleted"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{}},"description":"Not an admin device session, or admin_password_required"},"404":{"content":{"application/json":{}},"description":"Not found"},"422":{"content":{"application/json":{}},"description":"Deleting yourself"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Delete a user and all their data","tags":["Admin"]},"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.Admin.UserController.show","parameters":[{"description":"User ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUserDetailResponse"}}},"description":"User detail"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{}},"description":"Not an admin device session"},"404":{"content":{"application/json":{}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Read a user","tags":["Admin"]},"put":{"callbacks":{},"operationId":"SumaWeb.API.V1.Admin.UserOperationController.update","parameters":[{"description":"User ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUserUpdateRequest"}}},"description":"Profile fields and the admin password","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUserDetailResponse"}}},"description":"User detail"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{}},"description":"Not an admin device session, or admin_password_required"},"404":{"content":{"application/json":{}},"description":"Not found"},"422":{"content":{"application/json":{}},"description":"Validation error"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Edit a user profile","tags":["Admin"]}},"/api/v1/summary/budget-scorecard":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.SummaryController.budget_scorecard","parameters":[{"description":"","in":"query","name":"year","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"month","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/BudgetScorecard"}},"required":["data"],"type":"object"}}},"description":"Budget scorecard"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Monthly budget scorecard","tags":["Summary"]}},"/api/v1/parsing-rules/operations/{request_id}":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.RuleOperationController.show","parameters":[{"description":"","in":"path","name":"request_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleOperationReceipt"}}},"description":"Immutable receipt"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"forbidden (restricted key) or feature_disabled"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unknown request"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"audit_failed: nothing was committed"}},"summary":"Reconcile an owned operation after timeout, app restart or rule deletion","tags":["Parsing Rules"]}},"/api/v1/voice/reports":{"post":{"callbacks":{},"description":"Text only. The report is kept 90 days, seen only by the Suma team, and deleted with the account. A retried request_id returns 200 with the same report.","operationId":"SumaWeb.API.V1.VoiceReportController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceReportRequest"}}},"description":"Shared dictation","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/VoiceReport"}},"required":["data"],"type":"object"}}},"description":"Already shared"},"201":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/VoiceReport"}},"required":["data"],"type":"object"}}},"description":"Shared"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Restricted or delegated key"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid input"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Daily report cap reached"}},"summary":"Share a failed or wrong dictation so Suma can improve","tags":["Voice"]}},"/api/v1/summary/daily-totals":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.SummaryController.daily_totals","parameters":[{"description":"Same values as GET /summary; an unknown value falls back to month_1","in":"query","name":"period","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/DailyTotals"}},"required":["data"],"type":"object"}}},"description":"Daily totals"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Daily totals for charts","tags":["Summary"]}},"/api/v1/groups/{group_id}/people/search":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.PeopleController.search","parameters":[{"description":"","in":"path","name":"group_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExactPeopleSearch"}}},"description":"Exact alias or verified email","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExactPeopleMatchResponse"}}},"description":"Eligible match or null; never a directory"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{}},"description":"Owner required"},"422":{"content":{"application/json":{}},"description":"Invalid search"},"429":{"content":{"application/json":{}},"description":"Account budget exhausted"}},"summary":"Find one exact, discoverable account as group owner","tags":["People and group requests"]}},"/api/v1/admin/users":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.Admin.UserController.index","parameters":[{"description":"Name or user id; at least 2 characters","in":"query","name":"search","required":false,"schema":{"type":"string"}},{"description":"","in":"query","name":"page","required":false,"schema":{"type":"integer"}},{"description":"Default 20, at most 100","in":"query","name":"per_page","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUserListResponse"}}},"description":"User page"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{}},"description":"Not an admin device session"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"List and search users","tags":["Admin"]}},"/api/v1/conversations/{id}":{"delete":{"callbacks":{},"operationId":"SumaWeb.API.V1.ConversationController.delete","parameters":[{"description":"Conversation ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"deleted":{"type":"boolean"}},"type":"object"}},"required":["data"],"type":"object"}}},"description":"Deleted"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"feature_disabled: the chat feature is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Delete a conversation","tags":["Chat"]},"get":{"callbacks":{},"description":"Get a conversation with its full message history.","operationId":"SumaWeb.API.V1.ConversationController.show","parameters":[{"description":"Conversation ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Conversation"}},"required":["data"],"type":"object"}}},"description":"Conversation"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"feature_disabled: the chat feature is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Get a conversation","tags":["Chat"]}},"/api/v1/conversations":{"get":{"callbacks":{},"description":"List the user's chat conversations. Requires the chat feature.","operationId":"SumaWeb.API.V1.ConversationController.index","parameters":[{"description":"Page number","in":"query","name":"page","required":false,"schema":{"type":"integer"}},{"description":"Items per page (max 100)","in":"query","name":"per_page","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ConversationListItem"},"type":"array"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"required":["data","meta"],"type":"object"}}},"description":"Conversations"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"feature_disabled: the chat feature is off"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"List conversations","tags":["Chat"]}},"/api/v1/me":{"delete":{"callbacks":{},"deprecated":true,"description":"Always returns 428 reauthentication_required and deletes nothing. Use GET /me/deletion, POST /me/deletion/verify, POST /me/deletion/exchange and POST /api/mobile/account-deletion/confirm.","operationId":"SumaWeb.API.V1.UserController.delete_me","parameters":[],"responses":{"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"428":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Use the account-deletion flow"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Account deletion requires a separate review and identity verification","tags":["User"]},"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.UserController.me","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/User"}},"required":["data"],"type":"object"}}},"description":"User"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Get current user profile","tags":["User"]},"put":{"callbacks":{},"operationId":"SumaWeb.API.V1.UserController.update_me","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserUpdateRequest"}}},"description":"User settings","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/User"}},"required":["data"],"type":"object"}}},"description":"Updated user"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation error"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Update user settings","tags":["User"]}},"/api/v1/transaction-proposals/{id}/cancel":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.ProposalController.cancel","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObservedProposal"}}},"description":"Exact observed revision","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalStatusResponse"}}},"description":"Operation state"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Scope denied"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Changed or already committed"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid revision"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Cancel a proposal without deleting committed records","tags":["Transaction proposals"]}},"/api/v1/intelligence/savings-goal":{"get":{"callbacks":{},"description":"Calculate monthly savings needed to reach a target amount by a date.","operationId":"SumaWeb.API.V1.IntelligenceController.savings_goal","parameters":[{"description":"Target savings amount","in":"query","name":"target_amount","required":true,"schema":{"type":"number"}},{"description":"Target date (ISO 8601)","in":"query","name":"target_date","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/SavingsGoal"}},"required":["data"],"type":"object"}}},"description":"Savings goal"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing or invalid target_amount or target_date (bad_request)"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Calculate savings goal","tags":["Intelligence"]}},"/api/v1/people/blocks/{id}":{"delete":{"callbacks":{},"operationId":"SumaWeb.API.V1.PeopleController.unblock","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Unblocked"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Unblock future requests without reviving old ones","tags":["People and group requests"]}},"/api/v1/intelligence/spending-projection":{"get":{"callbacks":{},"description":"Project total spending for the current month based on daily rate.","operationId":"SumaWeb.API.V1.IntelligenceController.spending_projection","parameters":[{"description":"Optional category name filter","in":"query","name":"category","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/SpendingProjection"}},"required":["data"],"type":"object"}}},"description":"Spending projection"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Project month-end spending","tags":["Intelligence"]}},"/api/v1/admin/feedback/{id}/resolve":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.Admin.FeedbackController.resolve","parameters":[{"description":"Feedback ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminFeedbackDetailResponse"}}},"description":"Feedback thread"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{}},"description":"Not an admin device session"},"404":{"content":{"application/json":{}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Resolve a feedback (deletes its attached images)","tags":["Admin"]}},"/api/v1/groups/{group_id}/capital":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.GroupSubResourceController.capital","parameters":[{"description":"","in":"path","name":"group_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/CapitalAsset"},"type":"array"}},"required":["data"],"type":"object"}}},"description":"Group capital assets"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not a member"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"List group capital assets","tags":["Groups"]}},"/api/v1/categories/{id}":{"delete":{"callbacks":{},"description":"The category is removed permanently.","operationId":"SumaWeb.API.V1.CategoryController.delete","parameters":[{"description":"Category ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"deleted":{"type":"boolean"}},"type":"object"}},"required":["data"],"type":"object"}}},"description":"Deleted"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Delete a category","tags":["Categories"]},"patch":{"callbacks":{},"operationId":"SumaWeb.API.V1.CategoryController.update (2)","parameters":[{"description":"Category ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryRequest"}}},"description":"Category params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Category"}},"required":["data"],"type":"object"}}},"description":"Updated category"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation error"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Update a category","tags":["Categories"]},"put":{"callbacks":{},"operationId":"SumaWeb.API.V1.CategoryController.update","parameters":[{"description":"Category ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryRequest"}}},"description":"Category params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Category"}},"required":["data"],"type":"object"}}},"description":"Updated category"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation error"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Update a category","tags":["Categories"]}},"/api/v1/transaction-proposals/{id}/status":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.ProposalController.status","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalStatusResponse"}}},"description":"Operation state"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account unavailable"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Reconcile an owned operation without exposing scoped financial data","tags":["Transaction proposals"]}},"/api/v1/budgets/{id}/transactions":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.BudgetController.transactions","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"","in":"query","name":"page","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"per_page","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Transaction"},"type":"array"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"required":["data","meta"],"type":"object"}}},"description":"Budget expenses"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"List the expenses counted by a personal budget in its current period","tags":["Budgets"]}},"/api/v1/receipts/scan":{"post":{"callbacks":{},"description":"Counts one of the plan's daily receipt reads.","operationId":"SumaWeb.API.V1.ReceiptController.scan","parameters":[],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/ReceiptUpload"}}},"description":"Receipt photo","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/ReceiptDraft"}},"required":["data"],"type":"object"}}},"description":"Draft"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"feature_disabled, a restricted key or a group not joined"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"unsupported_image, too_large or receipt_unreadable"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Daily receipt reads used up"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"receipt_unavailable: the reader cannot be reached"}},"summary":"Read a receipt photo into a movement draft; saves nothing","tags":["Receipts"]}},"/api/v1/import/json/preview":{"post":{"callbacks":{},"description":"Parse a JSON export made with GET /export/json?download=true for preview. Returns entity counts.","operationId":"SumaWeb.API.V1.ImportController.json_preview","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"properties":{"json_content":{"type":"string"}},"required":["json_content"],"type":"object"}}},"description":"JSON content","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/JsonImportPreview"}},"required":["data"],"type":"object"}}},"description":"JSON import preview"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Parse error (bad_request)"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"feature_disabled (import feature off)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"rate_limited: 10 imports per minute"}},"summary":"Preview JSON import","tags":["Import"]}},"/api/v1/me/features":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.UserController.features","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Features"}},"required":["data"],"type":"object"}}},"description":"Features"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Get feature toggle states","tags":["User"]},"put":{"callbacks":{},"operationId":"SumaWeb.API.V1.UserController.update_features","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateFeaturesRequest"}}},"description":"Feature toggles","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Features"}},"required":["data"],"type":"object"}}},"description":"Updated features"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unknown feature keys"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Update feature toggles","tags":["User"]}},"/api/v1/groups/{group_id}/categories":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.GroupSubResourceController.categories","parameters":[{"description":"","in":"path","name":"group_id","required":true,"schema":{"type":"string"}},{"description":"Filter by type","in":"query","name":"type","required":false,"schema":{"enum":["income","expense"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Category"},"type":"array"}},"required":["data"],"type":"object"}}},"description":"Group categories"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not a member"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"List group categories","tags":["Groups"]}},"/api/v1/capital/operations/{request_id}":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.CapitalOperationController.show","parameters":[{"description":"","in":"path","name":"request_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapitalOperationReceipt"}}},"description":"Immutable receipt"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"forbidden (restricted key) or feature_disabled"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unknown request"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"audit_failed: nothing was committed"}},"summary":"Reconcile an owned operation after timeout, app restart or asset deletion","tags":["Capital Assets"]}},"/api/v1/me/plan":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.PlanController.show","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/MyPlan"}},"required":["data"],"type":"object"}}},"description":"Plan"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Your plan, its limits with today's use, and every plan to compare","tags":["Plans"]},"post":{"callbacks":{},"description":"Works only between plans open to everyone, such as Free and Beta during the trial.","operationId":"SumaWeb.API.V1.PlanController.switch","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanSwitchRequest"}}},"description":"Plan","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/MyPlan"}},"required":["data"],"type":"object"}}},"description":"Plan after the move"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"unknown_plan or not_open"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Move to another plan anyone may choose","tags":["Plans"]}},"/api/v1/me/options":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.UserController.options","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferenceOptions"}}},"description":"Preference catalogs"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Get supported preference options","tags":["User"]}},"/api/v1/admin/feedback-images/{id}":{"delete":{"callbacks":{},"operationId":"SumaWeb.API.V1.Admin.FeedbackImageController.delete","parameters":[{"description":"Image ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminPasswordRequest"}}},"description":"The admin password","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminReviewImageDeleteResponse"}}},"description":"Deleted"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{}},"description":"Not an admin device session, or admin_password_required"},"404":{"content":{"application/json":{}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Delete one feedback image","tags":["Admin"]},"put":{"callbacks":{},"operationId":"SumaWeb.API.V1.Admin.FeedbackImageController.update","parameters":[{"description":"Image ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminReviewImageRequest"}}},"description":"Review and the admin password","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminReviewImageResponse"}}},"description":"Image"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{}},"description":"Not an admin device session, or admin_password_required"},"404":{"content":{"application/json":{}},"description":"Not found"},"422":{"content":{"application/json":{}},"description":"Validation error"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Set an image's review status and notes","tags":["Admin"]}},"/api/v1/people/invitations/{id}/decline":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.PeopleController.decline","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PeopleExplicitAction"}}},"description":"Explicit rejection","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PeopleInvitationResponse"}}},"description":"Request receipt"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Decline without joining","tags":["People and group requests"]}},"/api/v1/admin/feedback/{id}":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.Admin.FeedbackController.show","parameters":[{"description":"Feedback ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminFeedbackDetailResponse"}}},"description":"Feedback thread"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{}},"description":"Not an admin device session"},"404":{"content":{"application/json":{}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Read a feedback thread","tags":["Admin"]}},"/api/v1/voice/sessions/requests/{request_id}":{"delete":{"callbacks":{},"operationId":"SumaWeb.API.V1.VoiceController.delete_request","parameters":[{"description":"","in":"path","name":"request_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceSessionResponse"}}},"description":"Teardown state"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session unavailable"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Cancel even when the start response was lost or has not arrived","tags":["Voice"]},"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.VoiceController.by_request","parameters":[{"description":"","in":"path","name":"request_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceSessionResponse"}}},"description":"Session"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session unavailable"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Recover this device's voice allocation without creating another connection","tags":["Voice"]}},"/api/v1/admin/users/merge":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.Admin.UserOperationController.merge","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUserMergeRequest"}}},"description":"Source, target and the admin password","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUserDetailResponse"}}},"description":"The surviving user"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{}},"description":"Not an admin device session, or admin_password_required"},"404":{"content":{"application/json":{}},"description":"Not found"},"422":{"content":{"application/json":{}},"description":"Same user, or merging yourself away"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Merge one user into another","tags":["Admin"]}},"/api/v1/conversations/messages":{"post":{"callbacks":{},"description":"Send a message to the AI assistant. Creates a new conversation or continues an existing one; an unknown conversation_id starts a new one. The response includes the assistant's reply. This is a synchronous call that may take several seconds.","operationId":"SumaWeb.API.V1.ConversationController.send_message","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendMessageRequest"}}},"description":"Message params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/SendMessageResponse"}},"required":["data"],"type":"object"}}},"description":"Assistant response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"bad_request: empty message or assistant failure"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"feature_disabled: the chat feature is off"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"limit_reached: today's assistant messages are used up"}},"summary":"Send a chat message","tags":["Chat"]}},"/api/mobile/auth/start":{"post":{"callbacks":{},"operationId":"SumaWeb.MobileAuthController.start","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileAuthStart"}}},"description":"S256 challenge","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileAuthStartResponse"}}},"description":"Browser handoff"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileAuthError"}}},"description":"Invalid challenge"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileAuthError"}}},"description":"Rate limited"}},"security":[],"summary":"Begin a PKCE mobile login","tags":["Mobile authentication"]}},"/api/v1/feedback":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.FeedbackController.index","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Feedback"},"type":"array"}},"required":["data"],"type":"object"}}},"description":"Feedback list"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"List user's feedback","tags":["Feedback"]},"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.FeedbackController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackRequest"}}},"description":"Feedback params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Feedback"}},"required":["data"],"type":"object"}}},"description":"Created feedback"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation error"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Submit feedback","tags":["Feedback"]}},"/api/v1/transaction-proposals/{id}/commit":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.ProposalController.commit","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObservedProposal"}}},"description":"Exact observed revision","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProposalResponse"},{"$ref":"#/components/schemas/ProposalStatusResponse"}]}}},"description":"Committed proposal; a retry for an already committed proposal whose entries can no longer be validated (such as after access was lost) returns the status shape"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Scope denied"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Changed or closed proposal"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Expired"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid confirmation"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Audit failed; no entries committed"}},"summary":"Approve and commit the exact reviewed batch once","tags":["Transaction proposals"]}},"/api/v1/transactions/{id}":{"delete":{"callbacks":{},"operationId":"SumaWeb.API.V1.TransactionController.delete","parameters":[{"description":"Transaction ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"deleted":{"type":"boolean"}},"type":"object"}},"required":["data"],"type":"object"}}},"description":"Deleted"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Delete a transaction","tags":["Transactions"]},"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.TransactionController.show","parameters":[{"description":"Transaction ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Transaction"}},"required":["data"],"type":"object"}}},"description":"Transaction"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Get a transaction","tags":["Transactions"]},"patch":{"callbacks":{},"operationId":"SumaWeb.API.V1.TransactionController.update (2)","parameters":[{"description":"Transaction ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionRequest"}}},"description":"Transaction params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Transaction"}},"required":["data"],"type":"object"}}},"description":"Updated transaction"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The move is not allowed: a group the person is not in, someone else's movement moved to another group, or an orphaned group movement moved to a personal ledger"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation error"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Update a transaction","tags":["Transactions"]},"put":{"callbacks":{},"operationId":"SumaWeb.API.V1.TransactionController.update","parameters":[{"description":"Transaction ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionRequest"}}},"description":"Transaction params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Transaction"}},"required":["data"],"type":"object"}}},"description":"Updated transaction"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The move is not allowed: a group the person is not in, someone else's movement moved to another group, or an orphaned group movement moved to a personal ledger"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation error"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Update a transaction","tags":["Transactions"]}},"/api/v1/transactions/{transaction_id}/receipts/{id}":{"delete":{"callbacks":{},"operationId":"SumaWeb.API.V1.ReceiptController.delete","parameters":[{"description":"","in":"path","name":"transaction_id","required":true,"schema":{"type":"string"}},{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{"application/json":{}},"description":"Deleted"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Delete a receipt photo from a movement the person recorded","tags":["Receipts"]},"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.ReceiptController.show","parameters":[{"description":"","in":"path","name":"transaction_id","required":true,"schema":{"type":"string"}},{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"image/*":{"schema":{"format":"binary","type":"string"}}},"description":"The photo"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"A receipt photo of a movement the person can see","tags":["Receipts"]}},"/api/v1/capital/{id}":{"delete":{"callbacks":{},"operationId":"SumaWeb.API.V1.CapitalAssetController.delete","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"deleted":{"type":"boolean"}},"type":"object"}},"required":["data"],"type":"object"}}},"description":"Deleted"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"feature_disabled: the capital feature is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Delete a capital asset","tags":["Capital Assets"]},"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.CapitalAssetController.show","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/CapitalAsset"}},"required":["data"],"type":"object"}}},"description":"Asset"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"feature_disabled: the capital feature is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Get a capital asset","tags":["Capital Assets"]},"patch":{"callbacks":{},"operationId":"SumaWeb.API.V1.CapitalAssetController.update (2)","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapitalAssetRequest"}}},"description":"Asset params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/CapitalAsset"}},"required":["data"],"type":"object"}}},"description":"Updated"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"feature_disabled: the capital feature is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation error"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Update a capital asset","tags":["Capital Assets"]},"put":{"callbacks":{},"operationId":"SumaWeb.API.V1.CapitalAssetController.update","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapitalAssetRequest"}}},"description":"Asset params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/CapitalAsset"}},"required":["data"],"type":"object"}}},"description":"Updated"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"feature_disabled: the capital feature is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation error"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Update a capital asset","tags":["Capital Assets"]}},"/api/v1/parsing-rules/operations":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.RuleOperationController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleOperationRequest"}}},"description":"Exact command","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleOperationReceipt"}}},"description":"Immutable receipt"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"forbidden (restricted key) or feature_disabled"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Request ID reused or observed rule changed"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid rule"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"audit_failed: nothing was committed"}},"summary":"Commit one personal rule operation, replay-safe for this account and exact payload","tags":["Parsing Rules"]}},"/api/v1/bank-alerts/recover":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.BankImportController.recover","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecoverBankCapture"}}},"description":"Exact retained capture","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankImportReceiptResponse"}}},"description":"Recovery receipt"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"forbidden: restricted or delegated key"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid request (error code names the reason)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Recover retained facts for review and fence the original delivery atomically","tags":["Bank Alerts"]}},"/api/v1/people/invitations":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.PeopleController.received","parameters":[{"description":"","in":"query","name":"page","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"per_page","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PeopleInvitationList"}}},"description":"Requests"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"List only usable requests for this recipient","tags":["People and group requests"]}},"/api/v1/summary":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.SummaryController.index","parameters":[{"description":"today, week, week_1, month, month_1 (default), month_3, month_6, ytd, year_1, max, or range:YYYY-MM-DD:YYYY-MM-DD","in":"query","name":"period","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/PeriodSummary"}},"required":["data"],"type":"object"}}},"description":"Summary"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Historical currency needs review"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"invalid_period"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conversion unavailable"}},"summary":"Period summary","tags":["Summary"]}},"/api/v1/me/setup":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.UserController.complete_setup","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InitialPreferencesRequest"}}},"description":"Reviewed preferences","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/User"}},"required":["data"],"type":"object"}}},"description":"Current profile; retries preserve later edits"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account unavailable"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid preference choices"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Complete a new mobile account's initial preferences","tags":["User"]}},"/api/v1/admin/users/{id}/role":{"put":{"callbacks":{},"operationId":"SumaWeb.API.V1.Admin.UserOperationController.role","parameters":[{"description":"User ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUserRoleRequest"}}},"description":"Role and the admin password","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUserDetailResponse"}}},"description":"User detail"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{}},"description":"Not an admin device session, or admin_password_required"},"404":{"content":{"application/json":{}},"description":"Not found"},"422":{"content":{"application/json":{}},"description":"Invalid role, or demoting yourself"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Promote or demote a user","tags":["Admin"]}},"/api/v1/capital":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.CapitalAssetController.index","parameters":[{"description":"Filter by asset type","in":"query","name":"type","required":false,"schema":{"enum":["investment","loan","debt","real_estate","vehicle_other"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/CapitalAsset"},"type":"array"}},"required":["data"],"type":"object"}}},"description":"Assets list"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"feature_disabled: the capital feature is off"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"List personal capital assets","tags":["Capital Assets"]},"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.CapitalAssetController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapitalAssetRequest"}}},"description":"Asset params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/CapitalAsset"}},"required":["data"],"type":"object"}}},"description":"Created"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"feature_disabled: the capital feature is off"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation error"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Create a capital asset","tags":["Capital Assets"]}},"/api/v1/accounts/{id}":{"delete":{"callbacks":{},"operationId":"SumaWeb.API.V1.AccountController.delete","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Another account's id, or cash, to move the movements that use it","in":"query","name":"move_to","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountDeleted"}}},"description":"Deleted"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"account_in_use, account_shared (movements the caller may not change) or account_mismatch (the target cannot hold them), with details.count"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Delete an account, moving its movements first","tags":["Accounts"]},"patch":{"callbacks":{},"operationId":"SumaWeb.API.V1.AccountController.update (2)","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountRequest"}}},"description":"Account","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}},"description":"Updated account"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation error"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Update an account","tags":["Accounts"]},"put":{"callbacks":{},"operationId":"SumaWeb.API.V1.AccountController.update","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountRequest"}}},"description":"Account","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}},"description":"Updated account"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation error"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Update an account","tags":["Accounts"]}},"/api/v1/assistants":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.AssistantController.index","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"connections":{"items":{"properties":{"active":{"type":"boolean"},"client_id":{"type":"string"},"client_name":{"type":"string"},"expires_at":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"last_used_at":{"format":"date-time","nullable":true,"type":"string"},"redirect_uris":{"items":{"type":"string"},"type":"array"},"resources":{"items":{"properties":{"available":{"type":"boolean"},"id":{"type":"string"},"name":{"nullable":true,"type":"string"}},"type":"object"},"type":"array"},"scopes":{"items":{"type":"string"},"type":"array"}},"type":"object"},"type":"array"},"endpoint":{"type":"string"},"proposals":{"items":{"type":"object"},"type":"array"}},"type":"object"}},"required":["data"],"type":"object"}}},"description":"Connections"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"List your connected assistants and pending external requests","tags":["Connected assistants"]}},"/api/v1/admin/coupons/{id}/redemptions":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.Admin.CouponController.redemptions","parameters":[{"description":"Coupon ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminCouponRedemptionListResponse"}}},"description":"Redemptions"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{}},"description":"Not an admin device session"},"404":{"content":{"application/json":{}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"List who redeemed a coupon","tags":["Admin"]}},"/api/v1/alerts/{id}/toggle":{"put":{"callbacks":{},"operationId":"SumaWeb.API.V1.AlertController.toggle","parameters":[{"description":"Alert ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Alert"}},"required":["data"],"type":"object"}}},"description":"Toggled alert"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Toggle alert active/inactive","tags":["Alerts"]}},"/api/v1/categories":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.CategoryController.index","parameters":[{"description":"Filter by type (income/expense)","in":"query","name":"type","required":false,"schema":{"type":"string"}},{"description":"choices groups seeded language variants and retains equivalent IDs","in":"query","name":"view","required":false,"schema":{"type":"string"}},{"description":"all includes personal and every authorized group; omitted keeps the legacy primary scope","in":"query","name":"scope","required":false,"schema":{"type":"string"}},{"description":"Only return top-level categories","in":"query","name":"top_level_only","required":false,"schema":{"type":"boolean"}},{"description":"Include children in response","in":"query","name":"include_children","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Category"},"type":"array"}},"required":["data"],"type":"object"}}},"description":"Categories list"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"List categories","tags":["Categories"]},"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.CategoryController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryRequest"}}},"description":"Category params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Category"}},"required":["data"],"type":"object"}}},"description":"Replay: the category already created with this id"},"201":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Category"}},"required":["data"],"type":"object"}}},"description":"Created category"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not a member of the group"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"id_conflict: the id belongs to someone else"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation error or malformed id"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Create a category","tags":["Categories"]}},"/api/v1/groups/{group_id}/invitations":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.GroupInvitationController.index","parameters":[{"description":"","in":"path","name":"group_id","required":true,"schema":{"type":"string"}},{"description":"","in":"query","name":"page","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"per_page","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupInvitationListResponse"}}},"description":"Invitation metadata"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{}},"description":"Owner required"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"List invitation metadata as the current owner; bearer links cannot be retrieved","tags":["Group invitations"]},"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.GroupInvitationController.create","parameters":[{"description":"","in":"path","name":"group_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssueGroupInvitation"}}},"description":"Invitation kind and optional replacement","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupInvitationLinkResponse"}}},"description":"Invitation URL; token is never stored in clear"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{}},"description":"Owner required"},"422":{"content":{"application/json":{}},"description":"Invalid request"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Issue or replace a single-use invitation as group owner","tags":["Group invitations"]}},"/api/v1/recurring/operations":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.RecurringOperationController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecurringOperationRequest"}}},"description":"Exact command","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecurringOperationReceipt"}}},"description":"Immutable receipt"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"forbidden (restricted key) or feature_disabled"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Request ID reused or observed schedule changed"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid schedule"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"audit_failed: nothing was committed"}},"summary":"Commit one personal schedule operation, replay-safe for this account and exact payload","tags":["Recurring Entries"]}},"/api/v1/capital/summary":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.CapitalAssetController.summary","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapitalSummaryResponse"}}},"description":"Summary"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"feature_disabled: the capital feature is off"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unknown source currency"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conversion unavailable"}},"summary":"Net worth summary","tags":["Capital Assets"]}},"/api/v1/recurring/operations/{request_id}/cancel":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.RecurringOperationController.cancel","parameters":[{"description":"","in":"path","name":"request_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecurringOperationRequest"}}},"description":"Original exact command","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecurringOperationReceipt"}}},"description":"Committed or cancelled receipt"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"forbidden (restricted key) or feature_disabled"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Request payload conflict"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"audit_failed: nothing was committed"}},"summary":"Fence an uncertain exact command or recover a commit that already won; never undo a committed schedule","tags":["Recurring Entries"]}},"/api/v1/export/json":{"get":{"callbacks":{},"description":"Rejects the period parameter with 422 invalid_period. Only the download=true form can be re-imported.","operationId":"SumaWeb.API.V1.ExportController.json_export","parameters":[{"description":"Download the original backup document without the API envelope","in":"query","name":"download","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"type":"object"}},"required":["data"],"type":"object"}}},"description":"JSON export, wrapped in data unless download=true"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"invalid_period"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Full JSON data export","tags":["Export"]}},"/api/v1/bank-alerts/{id}/resolve":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.BankImportController.resolve","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankAlertReview"}}},"description":"Exact reviewed alert","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankImportReceiptResponse"}}},"description":"Review receipt"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"forbidden: restricted or delegated key"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Alert changed"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid request (error code names the reason)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Review an exact alert revision; never auto-convert an authorization, refund or transfer to spending","tags":["Bank Alerts"]}},"/api/v1/groups/{group_id}/members":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.GroupMemberController.index","parameters":[{"description":"","in":"path","name":"group_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/GroupMember"},"type":"array"}},"required":["data"],"type":"object"}}},"description":"Members list"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not a member"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"List group members","tags":["Group Members"]}},"/api/v1/groups/{group_id}/budgets":{"get":{"callbacks":{},"description":"Only active budgets. Spend fields (spent, remaining, percentage, period_start, period_end) are not included.","operationId":"SumaWeb.API.V1.GroupSubResourceController.budgets","parameters":[{"description":"","in":"path","name":"group_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Budget"},"type":"array"}},"required":["data"],"type":"object"}}},"description":"Group budgets"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not a member"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"List active group budgets","tags":["Groups"]}},"/api/v1/admin/feedback-images":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.Admin.FeedbackImageController.index","parameters":[{"description":"all (default), pending, reviewed, needs_ai_improvement or needs_revision","in":"query","name":"status","required":false,"schema":{"type":"string"}},{"description":"","in":"query","name":"page","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"per_page","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminReviewImageListResponse"}}},"description":"Image page"},"400":{"content":{"application/json":{}},"description":"Invalid status"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{}},"description":"Not an admin device session"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"List feedback images for review","tags":["Admin"]}},"/api/v1/import/json/execute":{"post":{"callbacks":{},"description":"Import data from a JSON export made with GET /export/json?download=true.","operationId":"SumaWeb.API.V1.ImportController.json_execute","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"properties":{"default_currency":{"nullable":true,"type":"string"},"json_content":{"type":"string"},"skip_duplicates":{"default":true,"type":"boolean"}},"required":["json_content"],"type":"object"}}},"description":"JSON import params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/JsonImportResult"}},"required":["data"],"type":"object"}}},"description":"Import result"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Parse or import error (bad_request)"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"feature_disabled (import feature off)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"rate_limited: 10 imports per minute, or limit_reached: this month's imports are used up"}},"summary":"Execute JSON import","tags":["Import"]}},"/api/v1/export/csv":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.ExportController.csv","parameters":[{"description":"","in":"query","name":"period","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"text/csv":{}},"description":"CSV binary"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"invalid_period, invalid_group, invalid_filter or export_too_large"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"limit_reached"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"rates_unavailable or export_failed"}},"summary":"CSV transaction export","tags":["Export"]}},"/api/meta/data-deletion/status":{"get":{"callbacks":{},"operationId":"SumaWeb.MetaDataDeletionController.status","parameters":[{"description":"The confirmation_code","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"confirmation_code":{"type":"string"},"requested_at":{"format":"date-time","type":"string"},"status":{"type":"string"}},"type":"object"}}},"description":"Request status"},"400":{"content":{"application/json":{"schema":{"properties":{"error":{"type":"string"}},"type":"object"}}},"description":"Missing id"},"404":{"content":{"application/json":{"schema":{"properties":{"error":{"type":"string"}},"type":"object"}}},"description":"Unknown confirmation code"}},"security":[],"summary":"Meta data deletion status","tags":["Meta data deletion"]}},"/api/mobile/account-deletion/confirm":{"post":{"callbacks":{},"description":"Requires both the original device Bearer credential and a deletion proof in the body. A confirmed receipt remains readable for at least 24 hours after the device credential is deleted, until the retention worker purges it.","operationId":"SumaWeb.API.V1.AccountDeletionController.confirm","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountDeletionConfirmation"}}},"description":"Explicit confirmation or same-operation retry","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileSessionDeleted"}}},"description":"Confirmed removal"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Review required or account unavailable"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unexecuted permission expired; review again"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid proof; result remains unknown"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Retry later"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Removal not confirmed; retry the same operation"}},"security":[{"bearer":[]}],"summary":"Confirm or reconcile the same account deletion","tags":["Account deletion"]}},"/api/v1/android-release":{"get":{"callbacks":{},"description":"Version, hash and a short-lived download link for the signed APK.","operationId":"SumaWeb.API.V1.AndroidReleaseController.show","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AndroidReleaseResponse"}}},"description":"Android release"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Release unavailable"}},"summary":"Current Android release","tags":["App"]}},"/api/v1/groups/{group_id}/invitations/{id}":{"delete":{"callbacks":{},"operationId":"SumaWeb.API.V1.GroupInvitationController.delete","parameters":[{"description":"","in":"path","name":"group_id","required":true,"schema":{"type":"string"}},{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Revoked"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{}},"description":"Owner required"},"404":{"content":{"application/json":{}},"description":"Invitation not found in this group"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Revoke a group invitation as its current owner","tags":["Group invitations"]}},"/api/v1/bank-import-operations/{request_id}":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.BankImportController.receipt","parameters":[{"description":"","in":"path","name":"request_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankImportReceiptResponse"}}},"description":"Operation receipt"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"forbidden: restricted or delegated key"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unknown receipt"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid request (error code names the reason)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Reconcile an owned command after a lost response; returns no capture credential","tags":["Bank Alerts"]}},"/api/v1/assistants/proposals/{id}":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.AssistantController.show","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"type":"object"}},"required":["data"],"type":"object"}}},"description":"Canonical draft"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"not_found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Proposal no longer actionable (error code names the reason)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Review an owned external proposal","tags":["Connected assistants"]}},"/api/v1/voice/sessions/{id}":{"delete":{"callbacks":{},"operationId":"SumaWeb.API.V1.VoiceController.delete","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceSessionResponse"}}},"description":"Teardown state"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session unavailable"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Request durable teardown; stop local capture immediately","tags":["Voice"]},"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.VoiceController.show","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceSessionResponse"}}},"description":"Session"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session unavailable"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Read this device's session state","tags":["Voice"]}},"/api/v1/groups/{id}/leave":{"delete":{"callbacks":{},"description":"The last member leaving dissolves the group; an owner leaving transfers ownership to the longest-standing member.","operationId":"SumaWeb.API.V1.GroupController.leave","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"left":{"type":"boolean"}},"type":"object"}},"required":["data"],"type":"object"}}},"description":"Left group"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not a member, or the group is gone"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Leave a group","tags":["Groups"]}},"/api/v1/capital/operations":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.CapitalOperationController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapitalOperationRequest"}}},"description":"Exact command","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapitalOperationReceipt"}}},"description":"Immutable receipt"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"forbidden (restricted key) or feature_disabled"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Request ID reused or observed asset changed"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid valuation"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"audit_failed: nothing was committed"}},"summary":"Commit one personal asset operation, replay-safe for this account and exact payload","tags":["Capital Assets"]}},"/api/v1/voice/proposals":{"post":{"callbacks":{},"description":"The body is required. A new proposal needs request_id; a revision needs proposal_id, revision and fingerprint. Each row gives exactly one of date or days_ago.","operationId":"SumaWeb.API.V1.VoiceController.prepare","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceProposalRequest"}}},"description":"Proposed entries","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalResponse"}}},"description":"Canonical proposal"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Scope denied"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Proposal changed"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"proposal_expired"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid values"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Resolve relative dates and prepare or revise a proposal without saving expenses","tags":["Voice"]}},"/api/v1/group-invitations/accept":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.GroupInvitationController.accept","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupInvitationToken"}}},"description":"Invitation token","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupInvitationAcceptResponse"}}},"description":"Membership receipt"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"404":{"content":{"application/json":{}},"description":"Invalid invitation"},"410":{"content":{"application/json":{}},"description":"Invitation no longer usable"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Join only after explicit confirmation; same-user retry reconciles membership","tags":["Group invitations"]}},"/api/v1/intelligence/budget-recommendation":{"get":{"callbacks":{},"description":"Recommend a budget for a category from its past monthly spending (deterministic arithmetic, no AI).","operationId":"SumaWeb.API.V1.IntelligenceController.budget_recommendation","parameters":[{"description":"Category name","in":"query","name":"category","required":true,"schema":{"type":"string"}},{"description":"Months of history (default 3, max 12)","in":"query","name":"months","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/BudgetRecommendation"}},"required":["data"],"type":"object"}}},"description":"Budget recommendation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing category or insufficient data (bad_request)"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Recommend a budget amount","tags":["Intelligence"]}},"/api/v1/intelligence/insights":{"get":{"callbacks":{},"description":"Financial insights (spending pace, anomalies, missed bills), computed on each request as English text.","operationId":"SumaWeb.API.V1.IntelligenceController.insights","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Insights"}},"required":["data"],"type":"object"}}},"description":"Insights"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Get financial insights","tags":["Intelligence"]}},"/api/v1/me/deletion":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.AccountDeletionController.preview","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountDeletionPreview"}}},"description":"Removal impact"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session required"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Review account deletion impact","tags":["Account deletion"]}},"/api/v1/accounts":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.AccountController.index","parameters":[{"description":"Instead of personal, the accounts a movement in this group may use: the group's and its members' personal ones","in":"query","name":"group_id","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountList"}}},"description":"Accounts"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not a member of the group"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"List accounts","tags":["Accounts"]},"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.AccountController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountRequest"}}},"description":"Account","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}},"description":"Replay: the account already created with this id"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}},"description":"Created account"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not a member of the group"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"id_conflict: the id belongs to someone else"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation error or malformed id"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Create an account","tags":["Accounts"]}},"/api/v1/export/excel":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.ExportController.excel","parameters":[{"description":"","in":"query","name":"period","required":false,"schema":{"type":"string"}},{"description":"A group you belong to, for the group report instead of your own","in":"query","name":"group_id","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{}},"description":"Excel binary"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"group_not_found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"invalid_period, invalid_group, invalid_filter or export_too_large"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"limit_reached"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"rates_unavailable or export_failed"}},"summary":"Excel report download","tags":["Export"]}},"/api/v1/parsing-rules/preview":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.RuleOperationController.preview","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RulePreviewRequest"}}},"description":"Personal entry","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RulePreview"}}},"description":"Preview"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"forbidden (restricted key) or feature_disabled"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid rule"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"audit_failed: nothing was committed"}},"summary":"Validate a personal classification rule; writes no rule or ledger entry","tags":["Parsing Rules"]}},"/api/v1/intelligence/cash-flow-forecast":{"get":{"callbacks":{},"description":"Forecast financial position on a future date using recurring entries and spending history.","operationId":"SumaWeb.API.V1.IntelligenceController.cash_flow_forecast","parameters":[{"description":"Target date (ISO 8601, default: end of month)","in":"query","name":"forecast_date","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/CashFlowForecast"}},"required":["data"],"type":"object"}}},"description":"Cash flow forecast"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Forecast cash flow","tags":["Intelligence"]}},"/api/v1/exchange-rates":{"get":{"callbacks":{},"description":"Rates relative to USD for every supported currency with a known rate.","operationId":"SumaWeb.API.V1.ExchangeRateController.index","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExchangeRatesResponse"}}},"description":"Exchange rates"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rates unavailable"}},"summary":"Current exchange rates","tags":["Exchange rates"]}},"/api/v1/voice/sessions":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.VoiceController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartVoice"}}},"description":"Offer and retained request UUID","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceSessionResponse"}}},"description":"Session"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session unavailable"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session busy or request conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid offer"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"voice_quota: technical voice quota reached"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Provider unavailable; recover by request ID"}},"summary":"Allocate or recover a bounded WebRTC connection","tags":["Voice"]}},"/api/v1/transactions/delete-range":{"post":{"callbacks":{},"description":"Omitting both date_from and date_to deletes every personal transaction of the caller. Group transactions are kept. With before, only movements inserted at or before that instant go, so a late replay spares newer ones.","operationId":"SumaWeb.API.V1.TransactionController.delete_range","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"properties":{"before":{"format":"date-time","nullable":true,"type":"string"},"date_from":{"format":"date","nullable":true,"type":"string"},"date_to":{"format":"date","nullable":true,"type":"string"}},"type":"object"}}},"description":"Range","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"deleted":{"type":"integer"}},"type":"object"}},"required":["data"],"type":"object"}}},"description":"Deleted count"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid range (invalid_date_range) or before (invalid_before)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Delete personal transactions, all or within a date range","tags":["Transactions"]}},"/api/v1/admin/notices":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.Admin.NoticeController.index","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeListResponse"}}},"description":"Notices"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{}},"description":"Not an admin device session"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Latest notices, showing or ended","tags":["Admin"]},"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.Admin.NoticeController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeCreateRequest"}}},"description":"Notice","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeResponse"}}},"description":"Notice"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{}},"description":"Not an admin device session"},"422":{"content":{"application/json":{}},"description":"Validation error"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Show a notice to everyone","tags":["Admin"]}},"/api/v1/import/execute":{"post":{"callbacks":{},"description":"Import transactions from CSV with confirmed mappings.","operationId":"SumaWeb.API.V1.ImportController.execute","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportExecuteRequest"}}},"description":"Import params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/ImportResult"}},"required":["data"],"type":"object"}}},"description":"Import result"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Parse error (bad_request)"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"feature_disabled (import feature off) or forbidden (group_id not one of the caller's groups)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"rate_limited: 10 imports per minute, or limit_reached: this month's imports are used up"}},"summary":"Execute CSV import","tags":["Import"]}},"/api/v1/people/discovery":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.PeopleController.settings","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PeopleDiscoverySettingsResponse"}}},"description":"Private settings"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Read this account's separate opt-in choices","tags":["People and group requests"]},"put":{"callbacks":{},"operationId":"SumaWeb.API.V1.PeopleController.update","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePeopleDiscovery"}}},"description":"Private choices","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PeopleDiscoverySettingsResponse"}}},"description":"Private settings"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"422":{"content":{"application/json":{}},"description":"Invalid choices or email proof required"},"429":{"content":{"application/json":{}},"description":"Account budget exhausted"}},"summary":"Choose an alias and explicit discovery consent","tags":["People and group requests"]}},"/api/meta/data-deletion":{"post":{"callbacks":{},"description":"Called by Meta, not by API clients. signed_request is verified with the Meta app secret; no Authorization header is used.","operationId":"SumaWeb.MetaDataDeletionController.create","parameters":[],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"properties":{"signed_request":{"type":"string"}},"required":["signed_request"],"type":"object"}}},"description":"Meta signed request","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"confirmation_code":{"type":"string"},"url":{"format":"uri","type":"string"}},"type":"object"}}},"description":"Deletion request recorded"},"400":{"content":{"application/json":{"schema":{"properties":{"error":{"type":"string"}},"type":"object"}}},"description":"Missing or invalid signed_request"}},"security":[],"summary":"Meta data deletion callback","tags":["Meta data deletion"]}},"/api/v1/categories/suggest":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.CategoryController.suggest","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategorySuggestRequest"}}},"description":"What it is for","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategorySuggestResponse"}}},"description":"Suggestion"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Suggest a category for a description","tags":["Categories"]}},"/api/v1/assistants/proposals/{id}/approve":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.AssistantController.approve","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"fingerprint":{"description":"The fingerprint of the proposal as last read; a stale value returns 409 proposal_changed","type":"string"}},"required":["fingerprint"],"type":"object"}}},"description":"Fingerprint","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"type":"object"}},"required":["data"],"type":"object"}}},"description":"Confirmed result"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"not_found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Proposal no longer actionable (error code names the reason)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Approve the exact canonical external draft in Suma","tags":["Connected assistants"]}},"/api/v1/budgets/{id}":{"delete":{"callbacks":{},"operationId":"SumaWeb.API.V1.BudgetController.delete","parameters":[{"description":"Budget ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"deleted":{"type":"boolean"}},"type":"object"}},"required":["data"],"type":"object"}}},"description":"Deleted"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Delete a budget","tags":["Budgets"]},"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.BudgetController.show","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Budget"}},"required":["data"],"type":"object"}}},"description":"Budget"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"exchange_rates_unavailable"}},"summary":"Get a personal budget and current status","tags":["Budgets"]},"patch":{"callbacks":{},"operationId":"SumaWeb.API.V1.BudgetController.update (2)","parameters":[{"description":"Budget ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BudgetRequest"}}},"description":"Budget params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Budget"}},"required":["data"],"type":"object"}}},"description":"Updated budget"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid category_id (bad_request)"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation error"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Update a budget","tags":["Budgets"]},"put":{"callbacks":{},"operationId":"SumaWeb.API.V1.BudgetController.update","parameters":[{"description":"Budget ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BudgetRequest"}}},"description":"Budget params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Budget"}},"required":["data"],"type":"object"}}},"description":"Updated budget"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid category_id (bad_request)"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation error"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Update a budget","tags":["Budgets"]}},"/api/v1/admin/voice-reports/{id}/review":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.Admin.VoiceReportController.review","parameters":[{"description":"Voice report ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminVoiceReportReviewRequest"}}},"description":"Notes","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminVoiceReportResponse"}}},"description":"Voice report"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{}},"description":"Not an admin device session"},"404":{"content":{"application/json":{}},"description":"Not found"},"422":{"content":{"application/json":{}},"description":"Validation error"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Mark a voice report reviewed","tags":["Admin"]}},"/api/v1/admin/fixtures/restore":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.Admin.FixturesController.restore","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminPasswordRequest"}}},"description":"The admin password","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminFixturesRestoreResponse"}}},"description":"Restored"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{}},"description":"Not an admin device session, or admin_password_required"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"},"500":{"content":{"application/json":{}},"description":"Restore failed"}},"summary":"Restore the demo fixtures (replaces the fixture data of the oldest admin)","tags":["Admin"]}},"/api/v1/admin/notices/{id}/end":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.Admin.NoticeController.finish","parameters":[{"description":"Notice ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeResponse"}}},"description":"Notice"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{}},"description":"Not an admin device session"},"404":{"content":{"application/json":{}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"End a notice now","tags":["Admin"]}},"/api/v1/transaction-proposals":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.ProposalController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrepareTransactions"}}},"description":"Proposal","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalResponse"}}},"description":"Proposal"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Scope denied"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Request ID reused for different content"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid values"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Prepare transactions without saving ledger entries","tags":["Transaction proposals"]}},"/api/v1/groups":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.GroupController.index","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Group"},"type":"array"}},"required":["data"],"type":"object"}}},"description":"Groups list"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"List user's groups","tags":["Groups"]},"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.GroupController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupCreateRequest"}}},"description":"Group params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Group"}},"required":["data"],"type":"object"}}},"description":"Replay: the group already created with this id"},"201":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Group"}},"required":["data"],"type":"object"}}},"description":"Created group"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"id_conflict: the id belongs to someone else"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation error or malformed id"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Create a group","tags":["Groups"]}},"/api/v1/admin/users/{id}/grants":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.Admin.UserPlanController.grant","parameters":[{"description":"User ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUserGrantRequest"}}},"description":"Limit and uses","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUserPlanResponse"}}},"description":"The person's plan and limits"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{}},"description":"Not an admin device session"},"404":{"content":{"application/json":{}},"description":"Not found"},"422":{"content":{"application/json":{}},"description":"Invalid grant"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Give a person extra uses for today or this month","tags":["Admin"]}},"/api/v1/recurring":{"get":{"callbacks":{},"description":"Personal entries only, unless include=groups adds the schedules the person made in groups. Any group_id parameter returns 422 unsupported_scope.","operationId":"SumaWeb.API.V1.RecurringEntryController.index","parameters":[{"description":"groups","in":"query","name":"include","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/RecurringEntry"},"type":"array"}},"required":["data"],"type":"object"}}},"description":"Entries"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"feature_disabled: the recurring feature is off"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"unsupported_scope"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"List recurring entries","tags":["Recurring Entries"]},"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.RecurringEntryController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecurringEntryRequest"}}},"description":"Entry params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/RecurringEntry"}},"required":["data"],"type":"object"}}},"description":"Created"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"feature_disabled: the recurring feature is off"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation error or unsupported_scope"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Create a recurring entry","tags":["Recurring Entries"]}},"/api/v1/bank-alerts":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.BankImportController.index","parameters":[{"description":"","in":"query","name":"before","required":false,"schema":{"type":"string"}},{"description":"","in":"query","name":"per_page","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"state","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankAlertPageResponse"}}},"description":"Alert page"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"forbidden: restricted or delegated key"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid request (error code names the reason)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Owned pending/review inbox; stable cursor pages","tags":["Bank Alerts"]},"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.BankImportController.ingest","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankAlertCapture"}}},"description":"Minimal typed facts","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankImportReceiptResponse"}}},"description":"Immutable delivery receipt"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"forbidden: restricted or delegated key"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Request conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid request (error code names the reason)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Deliver minimal typed alert facts; a bank authorization is not final spending","tags":["Bank Alerts"]}},"/api/v1/me/coupons":{"post":{"callbacks":{},"description":"A 100% coupon puts you on its plan for its months. A smaller one is kept as a discount for when the plan is charged.","operationId":"SumaWeb.API.V1.PlanController.redeem","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CouponRequest"}}},"description":"Coupon","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/MyPlan"}},"required":["data"],"type":"object"}}},"description":"Plan after the coupon"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"invalid_coupon or already_redeemed"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"too_many_attempts"}},"summary":"Redeem a coupon","tags":["Plans"]}},"/api/mobile/auth/exchange":{"post":{"callbacks":{},"operationId":"SumaWeb.MobileAuthController.exchange","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileAuthExchange"}}},"description":"Handoff proof","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileSessionResponse"}}},"description":"Device session"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileAuthError"}}},"description":"Invalid or expired handoff"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileAuthError"}}},"description":"Rate limited"}},"security":[],"summary":"Exchange a one-use browser code and PKCE verifier for a device session","tags":["Mobile authentication"]}},"/api/v1/people/invitations/{id}/block":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.PeopleController.block","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PeopleExplicitAction"}}},"description":"Explicit block","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PeopleInvitationResponse"}}},"description":"Request receipt"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Block this sender and close their pending requests across groups","tags":["People and group requests"]}},"/api/v1/mobile/session":{"delete":{"callbacks":{},"operationId":"SumaWeb.MobileAuthController.delete","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileSessionDeleted"}}},"description":"Revoked session"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Revoke the current device credential","tags":["Mobile authentication"]}},"/api/v1/admin/overview":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.Admin.OverviewController.show","parameters":[{"description":"30d (default), 3m, ytd, 1y or max","in":"query","name":"period","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminOverviewResponse"}}},"description":"Overview"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{}},"description":"Not an admin device session"},"422":{"content":{"application/json":{}},"description":"Invalid period"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Admin overview counts","tags":["Admin"]}},"/api/v1/groups/{id}":{"delete":{"callbacks":{},"description":"Owner only. Each transaction stays with whoever recorded it, as a personal one.","operationId":"SumaWeb.API.V1.GroupController.delete","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"deleted":{"type":"boolean"}},"type":"object"}},"required":["data"],"type":"object"}}},"description":"Deleted group"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"A member who is not the owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The group does not exist"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Delete a group for everyone","tags":["Groups"]},"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.GroupController.show","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Group"}},"required":["data"],"type":"object"}}},"description":"Group"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not a member"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Get a group","tags":["Groups"]},"patch":{"callbacks":{},"operationId":"SumaWeb.API.V1.GroupController.update (2)","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupUpdateRequest"}}},"description":"Group params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Group"}},"required":["data"],"type":"object"}}},"description":"Updated group"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not the owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation error"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Update group settings","tags":["Groups"]},"put":{"callbacks":{},"operationId":"SumaWeb.API.V1.GroupController.update","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupUpdateRequest"}}},"description":"Group params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Group"}},"required":["data"],"type":"object"}}},"description":"Updated group"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not the owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation error"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Update group settings","tags":["Groups"]}},"/api/v1/parsing-rules/operations/{request_id}/cancel":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.RuleOperationController.cancel","parameters":[{"description":"","in":"path","name":"request_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleOperationRequest"}}},"description":"Original exact command","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleOperationReceipt"}}},"description":"Committed or cancelled receipt"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"forbidden (restricted key) or feature_disabled"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Request payload conflict"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"audit_failed: nothing was committed"}},"summary":"Fence an uncertain exact command or recover a commit that already won; never undo a committed rule","tags":["Parsing Rules"]}},"/api/v1/export/pdf":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.ExportController.pdf","parameters":[{"description":"","in":"query","name":"period","required":false,"schema":{"type":"string"}},{"description":"A group you belong to, for the group report instead of your own","in":"query","name":"group_id","required":false,"schema":{"type":"string"}},{"description":"Comma-separated accounts of the report's scope; all when absent","in":"query","name":"account_ids","required":false,"schema":{"type":"string"}},{"description":"Comma-separated categories of the report's scope, with their subcategories; all when absent","in":"query","name":"category_ids","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/pdf":{}},"description":"PDF binary"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"group_not_found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"invalid_period, invalid_group, invalid_filter or export_too_large"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"limit_reached"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"rates_unavailable or export_failed"}},"summary":"PDF report download","tags":["Export"]}},"/mobile/connect/{attempt}":{"get":{"callbacks":{},"description":"A browser route, not a JSON API call: it redirects to the OAuth provider.","operationId":"SumaWeb.MobileAuthController.connect","parameters":[{"description":"","in":"path","name":"attempt","required":true,"schema":{"type":"string"}},{"description":"Identity provider; any other value is treated as an expired request","in":"query","name":"provider","required":false,"schema":{"default":"google","enum":["google","github"],"type":"string"}}],"responses":{"302":{"description":"Continue with the selected Google or GitHub provider"},"410":{"description":"Unknown or expired attempt, or unsupported provider; plain text body"}},"security":[],"summary":"Continue mobile login in the system browser","tags":["Mobile authentication"]}},"/api/v1/recurring/operations/{request_id}":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.RecurringOperationController.show","parameters":[{"description":"","in":"path","name":"request_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecurringOperationReceipt"}}},"description":"Immutable receipt"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"forbidden (restricted key) or feature_disabled"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unknown request"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"audit_failed: nothing was committed"}},"summary":"Reconcile an owned operation after timeout, app restart or schedule deletion","tags":["Recurring Entries"]}},"/api/v1/bank-alerts/{id}":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.BankImportController.show","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankAlertResponse"}}},"description":"Alert"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"forbidden: restricted or delegated key"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unknown alert"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid request (error code names the reason)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Read one owned alert and original recording receipt","tags":["Bank Alerts"]}},"/api/v1/admin/coupons":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.Admin.CouponController.index","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminCouponListResponse"}}},"description":"Coupons and form choices"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{}},"description":"Not an admin device session"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"List coupons","tags":["Admin"]},"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.Admin.CouponController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminCouponCreateRequest"}}},"description":"Coupon","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminCouponResponse"}}},"description":"Coupon"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{}},"description":"Not an admin device session"},"422":{"content":{"application/json":{}},"description":"Validation error"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Create a coupon","tags":["Admin"]}},"/api/v1/group-invitations/preview":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.GroupInvitationController.preview","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupInvitationToken"}}},"description":"Invitation token","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupInvitationPreviewResponse"}}},"description":"Group preview without financial data"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"404":{"content":{"application/json":{}},"description":"Invalid invitation"},"410":{"content":{"application/json":{}},"description":"Invitation no longer usable"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Preview minimal invitation metadata without joining","tags":["Group invitations"]}},"/api/v1/bank-sources/{id}/capture-token":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.BankImportController.capture_token","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankCaptureTokenRequest"}}},"description":"Exact source epoch","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankCaptureTokenResponse"}}},"description":"Capture capability"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"forbidden: restricted or delegated key"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid request (error code names the reason)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Issue an ingest-only capability bound to this session and exact source revision","tags":["Bank Alerts"]}},"/api/v1/voice/context":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.VoiceController.context","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceContextResponse"}}},"description":"Voice context"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"invalid_timezone"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Read authorized labels and account-local date for the conversation","tags":["Voice"]}},"/api/v1/capital/operations/{request_id}/cancel":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.CapitalOperationController.cancel","parameters":[{"description":"","in":"path","name":"request_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapitalOperationRequest"}}},"description":"Original exact command","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapitalOperationReceipt"}}},"description":"Committed or cancelled receipt"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"forbidden (restricted key) or feature_disabled"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Request payload conflict"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"audit_failed: nothing was committed"}},"summary":"Fence an uncertain exact command or recover a commit that already won; never undo a committed asset","tags":["Capital Assets"]}},"/api/v1/budgets/{id}/status":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.BudgetController.status","parameters":[{"description":"Budget ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BudgetStatus"}}},"description":"Budget status"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"exchange_rates_unavailable"}},"summary":"Get budget status","tags":["Budgets"]}},"/api/v1/groups/{group_id}/alerts":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.GroupSubResourceController.alerts","parameters":[{"description":"","in":"path","name":"group_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Alert"},"type":"array"}},"required":["data"],"type":"object"}}},"description":"Group alerts"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not a member"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"List group alerts","tags":["Groups"]}},"/api/v1/api-keys":{"get":{"callbacks":{},"description":"Also lists the device sessions created by mobile sign-in; revoking one signs that device out.","operationId":"SumaWeb.API.V1.ApiKeyController.index","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ApiKey"},"type":"array"}},"required":["data"],"type":"object"}}},"description":"API keys"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"List API keys","tags":["API Keys"]},"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.ApiKeyController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyRequest"}}},"description":"Key params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/ApiKeyCreated"}},"required":["data"],"type":"object"}}},"description":"Created key (raw key shown once)"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation error"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Create an API key","tags":["API Keys"]}},"/api/v1/capital/loans":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.CapitalLoanController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapitalLoanRequest"}}},"description":"Loan","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapitalLoanResult"}}},"description":"Replay of an earlier request"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapitalLoanResult"}}},"description":"Opened"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"feature_disabled: the capital feature is off"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"invalid_loan or a validation error"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Open a loan the user made or a debt the user owes","tags":["Capital Assets"]}},"/api/v1/budgets":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.BudgetController.index","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Budgets with current status"}}},"description":"Budgets list"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"exchange_rates_unavailable"}},"summary":"List personal budgets, including inactive ones","tags":["Budgets"]},"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.BudgetController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BudgetRequest"}}},"description":"Budget params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Budget"}},"required":["data"],"type":"object"}}},"description":"Replay: the budget already created with this id"},"201":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Budget"}},"required":["data"],"type":"object"}}},"description":"Created budget"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid category_id (bad_request)"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"id_conflict: the id belongs to someone else"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation error or malformed id"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Create a budget","tags":["Budgets"]}},"/api/v1/admin/feedback/{id}/reopen":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.Admin.FeedbackController.reopen","parameters":[{"description":"Feedback ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminFeedbackDetailResponse"}}},"description":"Feedback thread"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{}},"description":"Not an admin device session"},"404":{"content":{"application/json":{}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Reopen a resolved feedback","tags":["Admin"]}},"/api/v1/people/discovery/exchange":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.PeopleVerificationController.exchange","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileAuthExchange"}}},"description":"One-use code and verifier","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PeopleEmailVerificationResponse"}}},"description":"Verified private settings"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"422":{"content":{"application/json":{}},"description":"Invalid or wrong-device handoff"},"429":{"content":{"application/json":{}},"description":"Account budget exhausted"}},"summary":"Consume a proof handoff for the original account and device; never issue a new session","tags":["People and group requests"]}},"/api/v1/bank-destinations":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.BankImportController.destinations","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankCaptureDestinationsResponse"}}},"description":"Personal destinations"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"forbidden: restricted or delegated key"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid request (error code names the reason)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"List owned personal bookkeeping accounts eligible for capture","tags":["Bank Alerts"]}},"/api/v1/admin/users/{id}/intelligence":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.Admin.IntelligenceController.show","parameters":[{"description":"User ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminIntelligenceResponse"}}},"description":"Preview"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{}},"description":"Not an admin device session"},"404":{"content":{"application/json":{}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Intelligence preview for one user","tags":["Admin"]}},"/api/v1/admin/coupons/{id}":{"delete":{"callbacks":{},"operationId":"SumaWeb.API.V1.Admin.CouponController.delete","parameters":[{"description":"Coupon ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{"application/json":{}},"description":"Deleted"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{}},"description":"Not an admin device session"},"404":{"content":{"application/json":{}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Delete a coupon","tags":["Admin"]},"put":{"callbacks":{},"operationId":"SumaWeb.API.V1.Admin.CouponController.update","parameters":[{"description":"Coupon ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminCouponUpdateRequest"}}},"description":"Active","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminCouponResponse"}}},"description":"Coupon"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{}},"description":"Not an admin device session"},"404":{"content":{"application/json":{}},"description":"Not found"},"422":{"content":{"application/json":{}},"description":"Validation error"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Turn a coupon on or off","tags":["Admin"]}},"/api/v1/parsing-rules":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.ParsingRuleController.index","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ParsingRule"},"type":"array"}},"required":["data"],"type":"object"}}},"description":"Rules"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"unsupported_scope: any query string or body group_id"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"List parsing rules","tags":["Parsing Rules"]},"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.ParsingRuleController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParsingRuleRequest"}}},"description":"Rule params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/ParsingRule"}},"required":["data"],"type":"object"}}},"description":"Created"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation error (including a duplicate pattern) or unsupported_scope"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Create a parsing rule","tags":["Parsing Rules"]}},"/api/v1/recurring/preview":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.RecurringOperationController.preview","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonalRecurringDraft"}}},"description":"Personal entry","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecurringPreview"}}},"description":"Preview"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"forbidden (restricted key) or feature_disabled"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid schedule"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"audit_failed: nothing was committed"}},"summary":"Validate a personal ledger schedule and preview three occurrences; writes no schedule","tags":["Recurring Entries"]}},"/api/v1/intelligence/spending-patterns":{"get":{"callbacks":{},"description":"Flag categories with spending significantly different from 3-month average.","operationId":"SumaWeb.API.V1.IntelligenceController.spending_patterns","parameters":[{"description":"Minimum % change to flag (default 30)","in":"query","name":"threshold","required":false,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/SpendingPatterns"}},"required":["data"],"type":"object"}}},"description":"Spending patterns"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Detect spending patterns","tags":["Intelligence"]}},"/api/v1/summary/heatmap":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.SummaryController.heatmap","parameters":[{"description":"Number of days back (default 365)","in":"query","name":"days","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Heatmap"}},"required":["data"],"type":"object"}}},"description":"Heatmap data"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Transaction count heatmap","tags":["Summary"]}},"/api/v1/api-keys/{id}":{"delete":{"callbacks":{},"operationId":"SumaWeb.API.V1.ApiKeyController.delete","parameters":[{"description":"API key ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"revoked":{"type":"boolean"}},"type":"object"}},"required":["data"],"type":"object"}}},"description":"Revoked"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Revoke an API key","tags":["API Keys"]}},"/api/v1/alerts/{id}":{"delete":{"callbacks":{},"operationId":"SumaWeb.API.V1.AlertController.delete","parameters":[{"description":"Alert ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"deleted":{"type":"boolean"}},"type":"object"}},"required":["data"],"type":"object"}}},"description":"Deleted"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Delete an alert","tags":["Alerts"]}},"/api/v1/groups/{group_id}/people/invitations/{id}":{"delete":{"callbacks":{},"operationId":"SumaWeb.API.V1.PeopleController.revoke","parameters":[{"description":"","in":"path","name":"group_id","required":true,"schema":{"type":"string"}},{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PeopleInvitationResponse"}}},"description":"Request receipt"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Account is not active (forbidden)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Revoke only the current owner's own request","tags":["People and group requests"]}},"/api/v1/activity":{"get":{"callbacks":{},"operationId":"SumaWeb.API.V1.ActivityLogController.index","parameters":[{"description":"","in":"query","name":"page","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"per_page","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"search","required":false,"schema":{"type":"string"}},{"description":"","in":"query","name":"event_type","required":false,"schema":{"type":"string"}},{"description":"Opaque next_cursor from the previous response; preserves position when new events arrive","in":"query","name":"before","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityPageResponse"}}},"description":"Activity log"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"forbidden (restricted key) or feature_disabled (activity feature off)"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"invalid_cursor or invalid_activity_filter"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Activity log","tags":["Activity"]}},"/api/v1/assistants/proposals/{id}/cancel":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.AssistantController.cancel","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"fingerprint":{"description":"The fingerprint of the proposal as last read; a stale value returns 409 proposal_changed","type":"string"}},"required":["fingerprint"],"type":"object"}}},"description":"Fingerprint","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"type":"object"}},"required":["data"],"type":"object"}}},"description":"Cancelled"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"not_found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Proposal no longer actionable (error code names the reason)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Reject an owned external proposal","tags":["Connected assistants"]}},"/api/v1/groups/{group_id}/transfer-ownership":{"put":{"callbacks":{},"operationId":"SumaWeb.API.V1.GroupMemberController.transfer_ownership","parameters":[{"description":"","in":"path","name":"group_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupTransferOwnershipRequest"}}},"description":"New owner","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"transferred":{"type":"boolean"}},"type":"object"}},"required":["data"],"type":"object"}}},"description":"Ownership transferred"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Transfer to oneself, the target is not a member, or the group does not exist (bad_request)"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not the owner"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Transfer group ownership","tags":["Group Members"]}},"/api/v1/bank-sources/operations":{"post":{"callbacks":{},"operationId":"SumaWeb.API.V1.BankImportController.configure","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankSourceCommand"}}},"description":"Reviewed source","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankImportReceiptResponse"}}},"description":"Consent receipt"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Missing, invalid or expired API key (unauthorized)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"forbidden: restricted or delegated key"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Revision or request conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid request (error code names the reason)"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Rate limit exceeded (rate_limited); see Retry-After"}},"summary":"Set exact reviewed consent on one capture device; replay-safe by request UUID","tags":["Bank Alerts"]}}},"security":[{"bearer":[]}],"servers":[{"url":"https://sumabot.online","variables":{}}],"tags":[]}